Commit Graph
452 Commits
Author SHA1 Message Date
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
dependabot[bot] 9ead1fd491 deps(deps): bump qs in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [qs](https://github.com/ljharb/qs).


Updates `qs` from 6.14.0 to 6.14.1
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.14.0...v6.14.1)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-01 19:41:42 +00: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
dependabot[bot] 4c31f92d18 deps(deps-dev): bump @cloudflare/workers-types
Bumps [@cloudflare/workers-types](https://github.com/cloudflare/workerd) from 4.20251221.0 to 4.20251229.0.
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/commits)

---
updated-dependencies:
- dependency-name: "@cloudflare/workers-types"
  dependency-version: 4.20251229.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-29 09:32:54 +00: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
dependabot[bot] 615222e361 deps(deps-dev): bump @cloudflare/vitest-pool-workers
Bumps [@cloudflare/vitest-pool-workers](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/vitest-pool-workers) from 0.10.15 to 0.11.1.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/vitest-pool-workers/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/@cloudflare/vitest-pool-workers@0.11.1/packages/vitest-pool-workers)

---
updated-dependencies:
- dependency-name: "@cloudflare/vitest-pool-workers"
  dependency-version: 0.11.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-22 09:42:39 +00: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
dependabot[bot] 9ac7577c8d deps(deps-dev): bump @cloudflare/vitest-pool-workers
Bumps [@cloudflare/vitest-pool-workers](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/vitest-pool-workers) from 0.10.14 to 0.10.15.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/vitest-pool-workers/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/@cloudflare/vitest-pool-workers@0.10.15/packages/vitest-pool-workers)

---
updated-dependencies:
- dependency-name: "@cloudflare/vitest-pool-workers"
  dependency-version: 0.10.15
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:57:30 +00:00
dependabot[bot] dba506fda8 deps(deps-dev): bump eslint from 9.39.1 to 9.39.2
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.1 to 9.39.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.39.1...v9.39.2)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:57:24 +00: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
dependabot[bot] 5337204635 deps(deps-dev): bump wrangler from 4.53.0 to 4.54.0
Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 4.53.0 to 4.54.0.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@4.54.0/packages/wrangler)

---
updated-dependencies:
- dependency-name: wrangler
  dependency-version: 4.54.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:46:48 +00:00
dependabot[bot] 6ccdbe3c80 deps(deps-dev): bump @cloudflare/workers-types
Bumps [@cloudflare/workers-types](https://github.com/cloudflare/workerd) from 4.20251205.0 to 4.20251213.0.
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/commits)

---
updated-dependencies:
- dependency-name: "@cloudflare/workers-types"
  dependency-version: 4.20251213.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:46:26 +00: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