Commit Graph
100 Commits
Author SHA1 Message Date
xixu-me 3c3c300d55 ci: add permissions to CI workflow 2026-01-31 22:50:49 +08:00
xixu-me e2e571aef4 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 532f690073 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 c700b6acee 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 98fa5e9d30 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 0e1a86ebcb 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 29889110c4 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 b026ad3f21 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 39e5b5cbac 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 10c405e53e 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 9a92171e5e 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 c555b63b36 Revert "deps(deps-dev): bump vitest from 3.2.4 to 4.0.17" 2026-01-19 20:07:55 +08:00
xixu-me 0ed065c112 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 97810e4c62 Revert "deps(deps-dev): bump wrangler from 4.58.0 to 4.59.2" 2026-01-19 20:03:45 +08:00
xixu-me ecdf4aa779 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 ddf5d9f533 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 191c02e33c 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 1526d24918 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 ef728e929f 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 64b0741a6d 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 adc8ade824 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 9e9c07a853 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 708d0ecc83 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 891446ad71 Update feature request options in template
Removed '新平台支持' option from feature request template.
2026-01-06 22:35:50 +08:00
xixu-me 74066bad9a 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 7722739d45 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 79da1e63d5 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 a3ef5b6e04 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 923e19c64c 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 c03964d702 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 70070132f7 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 3c229ac611 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 66715cf222 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 af8af4c682 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 3cd8475b07 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 bdcd7974dc 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 15bc402368 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 a7f8522c9a 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 fb310f01d5 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 e6cb4254bc 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 6041fc8a28 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 49d1a6b095 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 690ef1cd2b 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 ee79e2adf7 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 165c57b8e7 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 c727b2fc03 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 29fe048984 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 9fc2804332 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 e8d7a0ef6b 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 07f5f35972 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 bfec1d2d9e 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 5cbcd0c3d4 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 8c489ff529 Delete .github/workflows/ci.yml 2025-12-10 17:45:59 +08:00
xixu-me 1f03e6b2a6 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 a46db6243a 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 477e9a28e1 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 ce93ea9861 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 44b54580ad 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 214e596d00 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 1c20e7af4f 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 70ff5b248d 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 89c8da936d 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 a6a0e97ada 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 80e3c26967 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 1515515d91 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 ead7afed1a 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 e639554587 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 9b5db30455 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 a621d4f21b Revert "Add CI workflow and update deployment triggers"
This reverts commit 55e99c9eac.
2025-12-08 19:57:58 +08:00
xixu-me 4993444f51 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
xixu-me d2ee1bcd37 Add eslint-config-prettier and update ESLint config
Integrated eslint-config-prettier to disable formatting rules that conflict with Prettier. Updated ESLint configuration and added the dependency to package.json for improved code formatting consistency.
2025-12-08 19:34:56 +08:00
xixu-me 7036cbd39e Refactor cacheKey request formatting
Reformats the construction of the cacheKey Request object for improved readability and consistency in indentation.
2025-12-08 19:23:07 +08:00
xixu-me d88f1911a6 Improve parsing, regex, and test consistency
Refines regex patterns for URL rewriting and authentication parsing, ensures parseInt uses radix 10 throughout, and updates test mocks and helpers for consistency. Also adds more global variables to ESLint config, improves error handling, and removes unused code in tests.
2025-12-08 19:19:10 +08:00
xixu-me 55e99c9eac Add CI workflow and update deployment triggers
Introduces a new CI workflow for linting, type checking, and testing. Updates sync and workers deployment workflows to trigger on successful completion of the CI workflow instead of direct pushes, improving reliability and sequencing of deployments.
2025-12-08 19:11:44 +08:00
xixu-me 3dbd9c3cbf Merge pull request #129 from xixu-me/revert-128-dependabot/npm_and_yarn/vitest-4.0.15
Revert "deps(deps-dev): bump vitest from 3.2.4 to 4.0.15"
2025-12-08 19:02:57 +08:00
xixu-me 1360fae6d9 Revert "deps(deps-dev): bump vitest from 3.2.4 to 4.0.15" 2025-12-08 19:02:46 +08:00
xixu-me 2e8a5f2078 Merge pull request #128 from xixu-me/dependabot/npm_and_yarn/vitest-4.0.15
deps(deps-dev): bump vitest from 3.2.4 to 4.0.15
2025-12-08 18:56:06 +08:00
xixu-me 3683fb555f Merge pull request #126 from xixu-me/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.10.14
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.10.10 to 0.10.14
2025-12-08 18:52:17 +08:00
xixu-me f331d09663 Merge pull request #127 from xixu-me/dependabot/npm_and_yarn/prettier-3.7.4
deps(deps-dev): bump prettier from 3.6.2 to 3.7.4
2025-12-08 18:51:45 +08:00
xixu-me 812945dcb7 Merge pull request #125 from xixu-me/dependabot/npm_and_yarn/express-5.2.1
deps(deps): bump express from 4.21.2 to 5.2.1
2025-12-08 18:49:41 +08:00
xixu-me 9dc0bdd774 Merge pull request #124 from xixu-me/dependabot/npm_and_yarn/cloudflare/workers-types-4.20251205.0
deps(deps-dev): bump @cloudflare/workers-types from 4.20251121.0 to 4.20251205.0
2025-12-08 18:48:25 +08:00
xixu-me 61c0181c26 Add Gitee 2025 award voting notice to README
Added a prominent message in both English and Chinese README files to encourage users to vote for Xget in the Gitee 2025 Open Source Software Awards.
2025-12-08 16:07:29 +08:00
xixu-me a4da6607c7 Improve Content-Length detection for HEAD requests
Enhances the logic for obtaining Content-Length when a HEAD request does not return it by first attempting a Range GET for the first byte, extracting the total size from Content-Range if available, and falling back to buffering the response body for small files. This approach avoids unnecessary full downloads and improves efficiency, especially for large files.
2025-11-27 18:36:26 +08:00
xixu-me f694a42eac Fix spacing in Deno Deploy documentation link
Removed an extra space before '执行部署' in the Deno Deploy documentation reference for improved formatting in the README.
2025-11-27 18:16:39 +08:00
xixu-me 207401fd89 Reorder and update badges in README files
Moved 'Ask Zread', 'Ask DeepWiki', 'Chromium', and 'Firefox' badges to the top of the badge section in both README.en.md and README.md. This improves badge visibility and maintains consistency across documentation.
2025-11-27 18:11:46 +08:00
xixu-me 9cdd05410b Add Deno Deploy badge and deployment instructions
Added a Deno Deploy badge to the README files and provided step-by-step instructions for deploying the project to Deno Deploy, including switching the default branch and connecting the repository. This update improves documentation for users who want to deploy using Deno Deploy.
2025-11-27 18:07:35 +08:00
xixu-me f768add341 Remove Deno Deploy GitHub Actions workflow
Deleted the .github/workflows/functions-dn.yml file, removing the workflow for deploying to Deno Deploy. This may be due to a change in deployment strategy or deprecation of this workflow.
2025-11-27 17:44:41 +08:00
xixu-me f6c580728e Update workflow triggers and permissions in CI configs
Workflows now trigger on both successful workflow runs and manual dispatch events. Increased timeout and moved permissions block for functions-dn workflow to align with job configuration.
2025-11-27 17:41:18 +08:00
xixu-me f7582e4586 Update Deno Deploy workflow trigger and concurrency
Change the workflow trigger from push on 'functions' branch to workflow_run on 'main' after 'Sync to Pages and Functions' completes. Add concurrency group to prevent overlapping runs.
2025-11-27 17:21:30 +08:00
xixu-me a1d0affaac Add GitHub Actions workflow for Deno Deploy
Introduces a workflow to deploy the 'functions' branch to Deno Deploy using denoland actions. The workflow checks out the branch, sets up Deno, verifies the installation, and deploys the project.
2025-11-27 17:20:09 +08:00
xixu-me c33fcfec0f Add Deno Deploy handler to workflow
Introduces a step in the GitHub Actions workflow to create a Deno Deploy handler (deno.js) for deployments. The handler adapts the main request handler for Deno's environment, extracting environment variables and providing minimal context support.
2025-11-27 17:05:33 +08:00
xixu-me f60661db6f Refactor test helpers and add auth header forwarding tests
Modularizes test helpers into separate files for assertions, generators, and mocks, and updates imports for platform tests. Adds new tests to verify Authorization header forwarding for authenticated requests. Cleans up and simplifies test setup, and updates fixtures for clarity and maintainability.
2025-11-27 16:27:42 +08:00
xixu-me 076b64ff9e Update deployment instructions for Vercel and EdgeOne
Clarified and expanded the required GitHub secrets for Vercel deployments, including Team ID and Project ID, and updated token naming for EdgeOne in both English and Chinese README files. Improved wording for Netlify Project ID instructions.
2025-11-25 18:52:26 +08:00
xixu-me bbc90556a4 Add Vercel org and project IDs to workflow env
Sets VERCEL_ORG_ID and VERCEL_PROJECT_ID environment variables in the functions-vc GitHub Actions workflow using repository secrets. This enables the workflow to access Vercel organization and project context during execution.
2025-11-25 18:29:12 +08:00
xixu-me 7c49d905a1 Add Netlify deployment instructions to README
Added Netlify deployment badge and detailed deployment steps to both English and Chinese README files. Also clarified that Workers code is converted to Functions-compatible format for both Vercel and Netlify workflows.
2025-11-25 18:19:58 +08:00
xixu-me 44dd815042 Improve environment detection in sync workflow
Enhanced the handler to better distinguish between Netlify, Vercel, and other environments. Environment variable normalization now accounts for different runtime contexts, and warning logs for unsupported features are always shown, not just in non-production.
2025-11-25 18:07:20 +08:00
xixu-me 0e7aad4755 Add Netlify deploy workflow and unify edge handler
Introduces a new GitHub Actions workflow for deploying to Netlify, updates the Vercel workflow name, and refactors the edge function handler to support both Netlify and Vercel platforms with runtime detection. Adds Netlify-specific configuration and redirect files to enable shared handler logic, reducing code duplication and simplifying multi-platform deployments.
2025-11-25 17:55:32 +08:00
xixu-me 18ec41125f Fix spacing in Vercel Access Token instructions
Removed an unnecessary space in the instructions for creating a Vercel Access Token in the README for improved formatting.
2025-11-25 16:18:25 +08:00
xixu-me 870014ba03 Add Vercel deployment instructions and badge
Added Vercel deployment badge and detailed deployment steps to both English and Chinese README files. Updated the GitHub Actions workflow commit messages to generalize function conversion steps and removed detailed change lists. Minor wording improvements in the Chinese README for consistency.
2025-11-25 16:15:18 +08:00
xixu-me 82475ae45e Update workflow triggers to new workflow name
Changed workflow_run triggers in deployment workflows to reference the updated workflow name 'Sync to Pages and Functions' instead of the previous names. This ensures deployments are triggered correctly after the new workflow completes.
2025-11-25 14:53:08 +08:00