Commit Graph
100 Commits
Author SHA1 Message Date
xixu-me 09c50c136f chore(repo): enforce conventional commits 2026-03-06 19:13:59 +08:00
xixu-me 60d4db8780 fix(docker): install workerd package by target arch 2026-03-06 18:51:57 +08:00
xixu-me 34a36b4ccc ci: publish multi-arch image for amd64 and arm64
Resolves #178
2026-03-06 18:45:10 +08:00
xixu-me 852f533d87 Add AGENTS.md referencing CLAUDE.md
Create AGENTS.md containing a single line referencing CLAUDE.md. Adds a placeholder/index file for agent-related documentation.
2026-03-06 18:35:49 +08:00
xixu-me ccf52aacc2 Merge pull request #199 from xixu-me/dependabot/npm_and_yarn/eslint-10.0.2
deps(deps-dev): bump eslint from 9.39.2 to 10.0.2
2026-03-02 20:13:33 +08:00
xixu-me 5fc40bf6ca Merge pull request #204 from xixu-me/fix-eslint-js-dependency-16724814828849558743
Fix ESLint module resolution error by adding @eslint/js
2026-03-02 20:10:13 +08:00
xixu-me b65777eb21 Merge pull request #198 from xixu-me/dependabot/github_actions/actions/attest-build-provenance-4
ci(deps): bump actions/attest-build-provenance from 3 to 4
2026-03-02 19:49:35 +08:00
xixu-me 8d4c55061a Merge pull request #201 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.18
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.12.16 to 0.12.18
2026-03-02 19:48:54 +08:00
xixu-me 7fb3243c09 Merge pull request #202 from xixu-me/dependabot/npm_and_yarn/wrangler-4.69.0
deps(deps-dev): bump wrangler from 4.68.0 to 4.69.0
2026-03-02 19:48:35 +08:00
xixu-me 1f32b76249 Merge pull request #203 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.7.1
deps(deps-dev): bump eslint-plugin-jsdoc from 62.7.0 to 62.7.1
2026-03-02 19:45:07 +08:00
xixu-me 3652c54cc4 Merge pull request #197 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-bb3626eb1a
deps(deps-dev): bump minimatch from 3.1.2 to 3.1.5 in the npm_and_yarn group across 1 directory
2026-03-01 13:57:16 +08:00
xixu-me 06c053213f Merge pull request #196 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-b2936519f3
deps(deps): bump rollup from 4.50.0 to 4.59.0 in the npm_and_yarn group across 1 directory
2026-03-01 13:54:51 +08:00
xixu-me ce79fce415 Merge pull request #191 from xixu-me/dependabot/npm_and_yarn/wrangler-4.67.0
deps(deps-dev): bump wrangler from 4.65.0 to 4.67.0
2026-02-24 16:25:05 +08:00
xixu-me 4b3bbd80e9 Merge pull request #192 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.14
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.12.12 to 0.12.14
2026-02-24 16:24:48 +08:00
xixu-me 64cdb9458a Merge pull request #194 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20260302.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20260214.0 to 4.20260302.0
2026-02-24 16:22:01 +08:00
xixu-me 84d9844e5c Merge pull request #195 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.7.0
deps(deps-dev): bump eslint-plugin-jsdoc from 62.5.5 to 62.7.0
2026-02-24 15:14:45 +08:00
xixu-me 7124b7f2fe Merge pull request #190 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.12
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.12.10 to 0.12.12
2026-02-16 17:36:33 +08:00
xixu-me 4be0a2b57f Merge pull request #189 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.5.5
deps(deps-dev): bump eslint-plugin-jsdoc from 62.5.4 to 62.5.5
2026-02-16 17:32:04 +08:00
xixu-me 263e924162 Merge pull request #186 from xixu-me/dependabot/npm_and_yarn/wrangler-4.65.0
deps(deps-dev): bump wrangler from 4.63.0 to 4.65.0
2026-02-16 17:31:15 +08:00
xixu-me 8f186cf14d Merge pull request #185 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-14dc0ebc5a
deps(deps): bump qs from 6.14.1 to 6.14.2 in the npm_and_yarn group across 1 directory
2026-02-14 22:36:42 +08:00
xixu-me 7a74ef8f97 Merge pull request #184 from xixu-me/revert-183-dependabot/npm_and_yarn/eslint-10.0.0
Revert "deps(deps-dev): bump eslint from 9.39.2 to 10.0.0"
2026-02-09 20:24:11 +08:00
xixu-me 5d888a4ceb Revert "deps(deps-dev): bump eslint from 9.39.2 to 10.0.0" 2026-02-09 20:23:50 +08:00
xixu-me 28ff1c9e44 Merge pull request #183 from xixu-me/dependabot/npm_and_yarn/eslint-10.0.0
deps(deps-dev): bump eslint from 9.39.2 to 10.0.0
2026-02-09 20:21:40 +08:00
xixu-me 6b39bc59e0 Merge pull request #181 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.5.4
deps(deps-dev): bump eslint-plugin-jsdoc from 62.5.0 to 62.5.4
2026-02-09 20:15:34 +08:00
xixu-me 784081136e Merge pull request #182 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.10
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.12.8 to 0.12.10
2026-02-09 20:15:09 +08:00
xixu-me f4ee48b728 Merge pull request #176 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.5.0
deps(deps-dev): bump eslint-plugin-jsdoc from 62.1.0 to 62.5.0
2026-02-02 18:26:38 +08:00
xixu-me c68579c012 Merge pull request #177 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.8
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.12.6 to 0.12.8
2026-02-02 18:26:14 +08:00
xixu-me e705367524 feat: enhance security validation and caching behavior for requests with sensitive headers 2026-02-01 13:50:11 +08:00
xixu-me 69b27ea12a feat: add step to ensure Cloudflare Pages project exists before deployment 2026-02-01 13:20:22 +08:00
xixu-me 4f322650aa fix: update API token reference in deployment workflow and README 2026-01-31 22:53:36 +08:00
xixu-me f7a5822140 ci: add permissions to CI workflow 2026-01-31 22:50:49 +08:00
xixu-me 3ebc1fc4ff fix: resolve ESLint JSDoc warnings
- Remove duplicate @param in docker.js
- Remove extra blank lines after JSDoc descriptions in huggingface.js
2026-01-31 22:40:27 +08:00
xixu-me 9daa7e9a75 fix: resolve TypeScript type errors in index.js and huggingface.js
- Change env param type from 'object' to 'Record<string, unknown>'
- Store Authorization header in variable before null check
2026-01-31 22:35:22 +08:00
xixu-me 0fc3935042 fix: increase test timeouts and fix lint error
- Add global testTimeout (60s) and hookTimeout (30s) in vitest.config.js
- Increase timeouts for network-dependent tests in security, integration,
  and container-registry test files
- Use HEAD requests where appropriate to reduce network overhead
- Fix lint error: change 'let scope' to 'const scope' in src/index.js
2026-01-31 22:22:59 +08:00
xixu-me 952c8a446c ci: add CI workflow and gate deployments on CI success
- Add ci.yml with lint, test, and typecheck jobs
- Update workers.yml to trigger on CI workflow completion
- Update sync.yml to trigger on CI workflow completion
- Update image.yml to trigger on CI workflow completion
- Fix pages-eo.yml secret name to match README (EDGEONE_PAGES_API_TOKEN)

Deployment workflows now only run after CI passes, preventing
broken code from being deployed to any platform.
2026-01-31 22:22:10 +08:00
xixu-me da52ce5bbb Merge pull request #173 from xixu-me/dependabot/npm_and_yarn/wrangler-4.60.0
deps(deps-dev): bump wrangler from 4.59.3 to 4.60.0
2026-01-26 18:55:16 +08:00
xixu-me 9e77d33860 Merge pull request #171 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.6
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.12.5 to 0.12.6
2026-01-26 18:54:55 +08:00
xixu-me 63ee3c0bdb Merge pull request #170 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20260124.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20260118.0 to 4.20260124.0
2026-01-26 18:52:29 +08:00
xixu-me 9b665b9a09 Merge pull request #169 from xixu-me/dependabot/npm_and_yarn/prettier-3.8.1
deps(deps-dev): bump prettier from 3.8.0 to 3.8.1
2026-01-26 18:52:08 +08:00
xixu-me 70f3860da9 Merge pull request #168 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-74ecd9d969
deps(deps-dev): bump wrangler from 4.58.0 to 4.59.3 in the npm_and_yarn group across 1 directory
2026-01-22 12:20:03 +08:00
xixu-me 0ba093f1ea Merge pull request #167 from xixu-me/revert-163-dependabot/npm_and_yarn/vitest-4.0.17
Revert "deps(deps-dev): bump vitest from 3.2.4 to 4.0.17"
2026-01-19 20:08:14 +08:00
xixu-me dd3839c126 Revert "deps(deps-dev): bump vitest from 3.2.4 to 4.0.17" 2026-01-19 20:07:55 +08:00
xixu-me cad2e8d163 Merge pull request #166 from xixu-me/revert-165-dependabot/npm_and_yarn/wrangler-4.59.2
Revert "deps(deps-dev): bump wrangler from 4.58.0 to 4.59.2"
2026-01-19 20:04:43 +08:00
xixu-me 6bed5a9ca3 Revert "deps(deps-dev): bump wrangler from 4.58.0 to 4.59.2" 2026-01-19 20:03:45 +08:00
xixu-me eec2c8a339 Merge pull request #165 from xixu-me/dependabot/npm_and_yarn/wrangler-4.59.2
deps(deps-dev): bump wrangler from 4.58.0 to 4.59.2
2026-01-19 20:02:05 +08:00
xixu-me ef116930cc Merge pull request #163 from xixu-me/dependabot/npm_and_yarn/vitest-4.0.17
deps(deps-dev): bump vitest from 3.2.4 to 4.0.17
2026-01-19 19:57:36 +08:00
xixu-me 8f5cfe8e5d Merge pull request #162 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.1.0
deps(deps-dev): bump eslint-plugin-jsdoc from 62.0.0 to 62.1.0
2026-01-19 19:57:13 +08:00
xixu-me d7b9e4e87a Merge pull request #164 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20260118.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20260111.0 to 4.20260118.0
2026-01-19 19:53:00 +08:00
xixu-me e44ee31bc4 Merge pull request #161 from xixu-me/dependabot/npm_and_yarn/prettier-3.8.0
deps(deps-dev): bump prettier from 3.7.4 to 3.8.0
2026-01-19 19:51:45 +08:00
xixu-me 06343416fb Merge pull request #158 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-1b92d517bd
deps(deps-dev): bump devalue from 5.3.2 to 5.6.2 in the npm_and_yarn group across 1 directory
2026-01-16 02:18:11 +08:00
xixu-me 08e7618bb2 Merge pull request #154 from xixu-me/dependabot/npm_and_yarn/eslint-plugin-jsdoc-62.0.0
deps(deps-dev): bump eslint-plugin-jsdoc from 61.5.0 to 62.0.0
2026-01-12 18:45:25 +08:00
xixu-me 4e1cba47b0 Merge pull request #153 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.12.1
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.11.1 to 0.12.1
2026-01-12 18:45:02 +08:00
xixu-me deec5be4aa Merge pull request #151 from xixu-me/hf-api-support-4915912814412665047
Support Hugging Face API operations
2026-01-06 22:54:41 +08:00
xixu-me da89e08f41 Update feature request options in template
Removed '新平台支持' option from feature request template.
2026-01-06 22:35:50 +08:00
xixu-me 32494f1347 Merge pull request #149 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20260103.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20251229.0 to 4.20260103.0
2026-01-05 17:38:15 +08:00
xixu-me ae4b7c43e2 Update Docker Compose commands in README files
Replaced deprecated 'docker-compose' and 'podman-compose' commands with the recommended 'docker compose' and 'podman compose' syntax in all README files. Also made minor whitespace adjustments in diagram sections for consistency.
2026-01-03 16:03:52 +08:00
xixu-me 29a49b00e8 Fix placeholder formatting in platform request template
Encloses the placeholder text in double quotes for the 用户基数 field in the platform_request.yml issue template to ensure correct YAML formatting.
2026-01-02 16:01:05 +08:00
xixu-me 1291cb65bc Update issue and PR templates for consistency
Standardized the use of 'bug' (lowercase) in issue and pull request templates, updated icon for URL converter in config, and added quotes to placeholders in platform request template for improved clarity and consistency.
2026-01-02 16:00:21 +08:00
xixu-me d583e3bf16 Revamp and expand GitHub issue templates
Major overhaul of issue templates: updated bug, feature, and performance templates for clarity and completeness; added new templates for documentation and platform requests; removed deprecated deployment and platform support templates; improved categorization, user guidance, and required fields. Updated config to point to new documentation and security links. Removed obsolete scripts/README.md.
2026-01-02 15:51:18 +08:00
xixu-me f6b0ab83d8 Revise and expand Xget project documentation
Rewrites the CLAUDE.md file for improved clarity, conciseness, and structure. Updates project overview, development commands, architecture, configuration, platform handling, testing, deployment, and security sections. Adds more detailed explanations, reorganizes content, and provides clearer instructions for contributors and maintainers.
2026-01-02 14:37:39 +08:00
xixu-me a6bed94fc8 Merge pull request #148 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-2b901f0e0d
deps(deps): bump qs from 6.14.0 to 6.14.1 in the npm_and_yarn group across 1 directory
2026-01-02 03:43:32 +08:00
xixu-me dd8b0f7b02 Merge pull request #146 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20251229.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20251221.0 to 4.20251229.0
2025-12-29 18:28:01 +08:00
xixu-me c56695a746 Fix Mermaid graph label quoting in README files
Updated the Mermaid diagrams in all README variants to quote the Wait (Backoff) node label, ensuring correct rendering of labels with parentheses.
2025-12-23 17:17:01 +08:00
xixu-me dd56c974c6 Add system architecture diagrams to README files
Introduced detailed system architecture and request processing flow diagrams using Mermaid in the English, Simplified Chinese, and Traditional Chinese README files. These additions provide a clearer overview of the platform's internal structure and request handling logic for developers and users.
2025-12-23 17:14:51 +08:00
xixu-me a05590a225 Merge pull request #143 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.11.1
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.10.15 to 0.11.1
2025-12-22 17:44:49 +08:00
xixu-me fba8eaebe3 Remove Gitee voting and Product Hunt badges from README
Eliminated the Gitee 2025 Open Source Software Awards voting prompt and Product Hunt badge from all README files (English, Simplified Chinese, Traditional Chinese) to streamline project documentation.
2025-12-16 15:34:00 +08:00
xixu-me 7d1f195f98 Merge pull request #139 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.10.15
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.10.14 to 0.10.15
2025-12-15 17:59:28 +08:00
xixu-me 1c7d96d38d Merge pull request #137 from xixu-me/dependabot/npm_and_yarn/eslint-9.39.2
deps(deps-dev): bump eslint from 9.39.1 to 9.39.2
2025-12-15 17:59:03 +08:00
xixu-me 457367af3b Merge pull request #138 from xixu-me/dependabot/npm_and_yarn/wrangler-4.54.0
deps(deps-dev): bump wrangler from 4.53.0 to 4.54.0
2025-12-15 17:57:00 +08:00
xixu-me 1fea3aacb9 Merge pull request #136 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20251213.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20251205.0 to 4.20251213.0
2025-12-15 17:56:16 +08:00
xixu-me f8b3350537 Update language labels and DartNode badge in READMEs
Standardized the Traditional Chinese label to '漢語(繁體)' across all README files. Moved the DartNode badge from the Chinese READMEs to the English README.
2025-12-13 19:44:55 +08:00
xixu-me ab04e21175 Update README language switcher and remove repository purpose
Standardized the language switcher formatting across English, Simplified Chinese, and Traditional Chinese README files. Removed the 'repository purpose' section from both Chinese README files for conciseness.
2025-12-13 19:32:55 +08:00
xixu-me 3cac87dbd8 Fix misplaced closing div in README files
Moved the closing </div> tag to after the language selection line in all README files to ensure correct HTML structure and consistent formatting.
2025-12-13 19:30:35 +08:00
xixu-me 38a06a76c4 Add Traditional Chinese README and update language links
Added a new Traditional Chinese (zh-Hant) README. Updated language switcher links in the English and Simplified Chinese READMEs to include all three language options.
2025-12-13 19:29:27 +08:00
xixu-me 8e2a0584b5 Translate README.md to English and update links
The README.md has been fully translated from Chinese to English, including section titles, descriptions, and platform-specific instructions. All internal anchor links and badge references have been updated to use English section names, and example URLs and explanations are now in English. The language switch link now points to the Simplified Chinese README, and terminology throughout the document has been standardized for an international audience.
2025-12-13 19:07:40 +08:00
xixu-me da1e830ed2 Update badges for container registries and AI providers
Changed the badge colors and logos for container registries and AI inference providers in both English and Chinese README files to use OpenContainers Initiative and OpenRouter logos, respectively, for improved clarity and consistency.
2025-12-12 14:42:23 +08:00
xixu-me 2e7716d66c Improve Docker redirect and auth header handling
Adds special handling for Docker registry redirects to prevent leaking Authorization headers to S3 or blob storage by using manual redirect mode and stripping sensitive headers before following redirects. Refactors scope handling for unauthorized responses and ensures retry logic for token fetches also respects Docker redirect requirements.
2025-12-12 13:29:07 +08:00
xixu-me 296b935cdf Fix client scope in unauthorized response for cr- platforms
Adjusts the client scope in unauthorized responses to include the platform prefix for platforms starting with 'cr-'. This ensures clients request tokens with a scope that Xget can properly route.
2025-12-12 13:20:47 +08:00
xixu-me dac733a2c5 Refactor Docker scope extraction and 401 response
Moved Docker registry scope extraction logic into a new getScopeFromUrl function in docker.js for reuse and clarity. Updated responseUnauthorized to accept an optional scope and improved its error response format to be more Docker/OCI-compliant. Refactored index.js to use the new scope extraction and 401 response logic.
2025-12-12 13:16:21 +08:00
xixu-me d529a16789 Improve JSDoc types and add eslint-plugin-jsdoc
Standardized JSDoc type annotations across the codebase, replacing 'Object' with 'object' and refining function signatures for better type safety. Added and configured eslint-plugin-jsdoc for enhanced documentation linting, and updated ESLint settings to include adapters and new JSDoc rules. Updated dependencies to include eslint-plugin-jsdoc and related packages.
2025-12-11 13:27:26 +08:00
xixu-me 0edc986711 Add GPL license header and clean up Docker 401 handling
Added GPL license header to Netlify edge-handler.js. Removed redundant comments and clarified logic for handling Docker 401 responses in src/index.js.
2025-12-11 12:58:11 +08:00
xixu-me fe5baef8b5 Add GPLv3 license headers to source files
Added GNU General Public License v3 headers to protocol and utility modules for Xget, clarifying copyright and licensing information. This ensures compliance and transparency regarding the project's open source status.
2025-12-11 12:34:10 +08:00
xixu-me 0590cd6796 Delete .github/workflows/ci.yml 2025-12-10 17:45:59 +08:00
xixu-me 3ab66eb439 Merge pull request #133 from xixu-me/alert-autofix-13
Potential fix for code scanning alert no. 13: Workflow does not contain permissions
2025-12-10 16:58:33 +08:00
xixu-meandCopilot Autofix powered by AI 754c16d618 Potential fix for code scanning alert no. 13: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-10 16:58:15 +08:00
xixu-me e35cb142af Increase CI test job timeout to 30 minutes
Extended the timeout for the test job in the CI workflow from 10 to 30 minutes to accommodate longer-running tests and prevent premature job termination.
2025-12-10 16:48:51 +08:00
xixu-me 3832d565e2 Refactor integration tests and add feature-specific test suites
Moves Git, Git LFS, and authentication header forwarding tests from integration.test.js into dedicated feature test files under test/features/. Updates range-cache, security, and container-registry tests for consistency and minor improvements. Refactors src/index.js for code style and readability, especially around cache logic and error handling.
2025-12-10 16:23:44 +08:00
xixu-me 2c2862cb78 Add multi-platform function adapters and CI workflow
Introduces adapters for Vercel, Netlify Edge, Deno Deploy, and Cloudflare Pages, each with platform-specific entry points and configuration files. Adds a GitHub Actions CI workflow for linting, type checking, and testing. Updates lint scripts to include adapters, improves type annotations in src/index.js, and fixes a type assertion in security tests.
2025-12-10 16:08:10 +08:00
xixu-me cb0bb2da2f Refactor request handling and improve Docker detection
Refactored the main request handler in src/index.js for improved readability and error handling. Enhanced Docker request detection in validation.js to include additional Content-Type checks. Updated tests to increase timeouts and expand expected status codes for container registry platforms.
2025-12-10 15:47:25 +08:00
xixu-me b81b3968d9 Refactor protocol header logic into modular helpers
Moved AI and Git protocol detection and header configuration logic from utils/validation.js and index.js into dedicated modules (src/protocols/ai.js and src/protocols/git.js). This improves code organization, modularity, and maintainability by separating protocol-specific concerns.
2025-12-10 15:25:57 +08:00
xixu-me 75d8594532 Refactor protocol and utility logic into separate modules
Moved Docker/OCI protocol handling, performance monitoring, security, and validation logic into dedicated modules under src/protocols and src/utils. Updated src/index.js to use these new modules, improving maintainability and separation of concerns. Added pre-computed sorted platform keys for efficient matching in platform config.
2025-12-10 15:03:27 +08:00
xixu-me 24a53398fb Add transformPath utility to handle platform prefixes
Introduces the transformPath function to remove platform-specific prefixes from paths. This utility helps standardize path handling by stripping prefixes like /gh/ or /cr/docker/ based on the platform key.
2025-12-10 14:36:29 +08:00
xixu-me 9ea2bd0cfc Refactor Docker authentication handling in handleRequest
Moved Docker authentication logic to occur before platform detection for /v2/auth paths, parsing the scope parameter to identify the registry platform and repository. Improved parsing of the WWW-Authenticate header and removed redundant Docker authentication code from the platform detection block.
2025-12-10 13:44:30 +08:00
xixu-me 251dbd2181 Transform scope parameter for container registry auth
Added logic to remove the cr/[registry]/ prefix from the scope parameter and handle official Docker Hub images by adding the library/ prefix. Updated tests to verify correct scope transformation for Docker Hub, GHCR, and official images.
2025-12-10 13:04:33 +08:00
xixu-me 3ed17c1d92 Merge pull request #130 from xixu-me/alert-autofix-11
Potential fix for code scanning alert no. 11: Incomplete regular expression for hostnames
2025-12-08 20:06:18 +08:00
xixu-meandCopilot Autofix powered by AI 508cea92fe Potential fix for code scanning alert no. 11: Incomplete regular expression for hostnames
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-08 20:05:05 +08:00
xixu-me 644ef7111b Update tsconfig for bundler resolution and type includes
Changed moduleResolution to 'bundler' and added Cloudflare Vitest pool workers types to the include array for better type support. Removed explicit types array and ensured configuration aligns with new tooling requirements.
2025-12-08 20:03:10 +08:00
xixu-me 3a8587aa04 Update tsconfig for module resolution and types
Changed moduleResolution from 'bundler' to 'node', added global types for Cloudflare Workers and Vitest, and simplified the include paths. This improves compatibility with Node.js tooling and test environments.
2025-12-08 20:01:57 +08:00
xixu-me 408bf242ad Revert "Add CI workflow and update deployment triggers"
This reverts commit 55e99c9eac.
2025-12-08 19:57:58 +08:00
xixu-me 81e810ec9a Add type declarations and improve test typings
Introduces src/types.d.ts and test/types.d.ts for Cloudflare Workers and test utilities. Enhances JSDoc comments and type annotations across test files for better type safety and clarity. Updates tsconfig.json to use bundler module resolution and include additional type sources. Minor test logic and assertion improvements for robustness.
2025-12-08 19:57:48 +08:00