From 2744b0e0ca8e0511b0e9aa0de0378e081123576a Mon Sep 17 00:00:00 2001 From: zskbot <241179063+zskbot@users.noreply.github.com> Date: Thu, 5 Nov 2026 04:54:39 +0700 Subject: [PATCH 1/4] fix: configure valid npm Dependabot updates --- .github/dependabot.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5990d9c..6ca59b7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,7 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - +# Dependabot version updates for the npm package. version: 2 updates: - - package-ecosystem: "" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "npm" + directory: "/" schedule: interval: "weekly" From 76a46c7e5dc32d0854da8dde1104f872db92143b Mon Sep 17 00:00:00 2001 From: zskbot <241179063+zskbot@users.noreply.github.com> Date: Thu, 5 Nov 2026 04:54:41 +0700 Subject: [PATCH 2/4] ci: use Node.js 22 and reproducible installs --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63c4281..488c5e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,10 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: - node-version: 20 + node-version: 22 + cache: npm - name: Install dependencies - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Build and run tests run: npm test - name: Generate API coverage report From 8b161cfbbba030fc9c6c37ccc75e9dcebecbb6d1 Mon Sep 17 00:00:00 2001 From: zskbot <241179063+zskbot@users.noreply.github.com> Date: Thu, 5 Nov 2026 04:54:44 +0700 Subject: [PATCH 3/4] ci: make release install reproducible on Node.js 22 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39c578a..4e25e5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,10 @@ jobs: with: node-version: 22 registry-url: https://registry.npmjs.org + cache: npm - name: Install dependencies - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Run tests and TypeScript build run: npm test From ec1086d4769b98642ada7c0d3fe8fd16f99a381f Mon Sep 17 00:00:00 2001 From: zskbot <241179063+zskbot@users.noreply.github.com> Date: Thu, 5 Nov 2026 04:54:46 +0700 Subject: [PATCH 4/4] chore: correct repository metadata --- package.json | 76 ++++++++++++---------------------------------------- 1 file changed, 17 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index 7eb98a9..83d62d1 100644 --- a/package.json +++ b/package.json @@ -8,46 +8,16 @@ "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, - "./string": { - "types": "./dist/string.d.ts", - "import": "./dist/string.js" - }, - "./object": { - "types": "./dist/object.d.ts", - "import": "./dist/object.js" - }, - "./async": { - "types": "./dist/async.d.ts", - "import": "./dist/async.js" - }, - "./url": { - "types": "./dist/url.d.ts", - "import": "./dist/url.js" - }, - "./validation": { - "types": "./dist/validation.d.ts", - "import": "./dist/validation.js" - }, - "./http": { - "types": "./dist/http.d.ts", - "import": "./dist/http.js" - }, - "./browser": { - "types": "./dist/browser.d.ts", - "import": "./dist/browser.js" - }, - "./env": { - "types": "./dist/env.d.ts", - "import": "./dist/env.js" - }, - "./logger": { - "types": "./dist/logger.d.ts", - "import": "./dist/logger.js" - } + ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "./string": { "types": "./dist/string.d.ts", "import": "./dist/string.js" }, + "./object": { "types": "./dist/object.d.ts", "import": "./dist/object.js" }, + "./async": { "types": "./dist/async.d.ts", "import": "./dist/async.js" }, + "./url": { "types": "./dist/url.d.ts", "import": "./dist/url.js" }, + "./validation": { "types": "./dist/validation.d.ts", "import": "./dist/validation.js" }, + "./http": { "types": "./dist/http.d.ts", "import": "./dist/http.js" }, + "./browser": { "types": "./dist/browser.d.ts", "import": "./dist/browser.js" }, + "./env": { "types": "./dist/env.d.ts", "import": "./dist/env.js" }, + "./logger": { "types": "./dist/logger.d.ts", "import": "./dist/logger.js" } }, "files": ["dist", "README.md", "LICENSE"], "scripts": { @@ -58,22 +28,10 @@ "prepack": "npm run build" }, "keywords": ["javascript", "typescript", "utilities", "web", "nextjs", "developer-tools"], - "engines": { - "node": ">=18" - }, - "devDependencies": { - "c8": "^10.1.3", - "typescript": "^5.8.3" - }, - "repository": { - "type": "git", - "url": "https://github.com/Velclaw/OCode.js.git" - }, - "bugs": { - "url": "https://github.com/Velclaw/OCode.js/issues" - }, - "homepage": "https://github.com/Velclaw/OCode.js#readme", - "dependencies": { - "@vercel/analytics": "^2.0.1" - } -} + "engines": { "node": ">=18" }, + "devDependencies": { "c8": "^10.1.3", "typescript": "^5.8.3" }, + "repository": { "type": "git", "url": "https://github.com/OCodejs/OCodejs.git" }, + "bugs": { "url": "https://github.com/OCodejs/OCodejs/issues" }, + "homepage": "https://github.com/OCodejs/OCodejs#readme", + "dependencies": { "@vercel/analytics": "^2.0.1" } +} \ No newline at end of file