Commit Graph
397 Commits
Author SHA1 Message Date
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
dependabot[bot] ebcd8aab70 deps(deps-dev): bump vitest from 3.2.4 to 4.0.15
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 3.2.4 to 4.0.15.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.0.15/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.0.15
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 10:53:01 +00: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
dependabot[bot] 09b0cfc57c 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.10 to 0.10.14.
- [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.14/packages/vitest-pool-workers)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 10:50:43 +00:00
dependabot[bot] 88c92e324b deps(deps-dev): bump prettier from 3.6.2 to 3.7.4
Bumps [prettier](https://github.com/prettier/prettier) from 3.6.2 to 3.7.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.6.2...3.7.4)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.4
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 10:49:59 +00: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
dependabot[bot] c2f8ad2ccb deps(deps): bump express from 4.21.2 to 5.2.1
Bumps [express](https://github.com/expressjs/express) from 4.21.2 to 5.2.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.2...v5.2.1)

---
updated-dependencies:
- dependency-name: express
  dependency-version: 5.2.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 10:33:44 +00:00
dependabot[bot] 71f8b5f01f deps(deps-dev): bump @cloudflare/workers-types
Bumps [@cloudflare/workers-types](https://github.com/cloudflare/workerd) from 4.20251121.0 to 4.20251205.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.20251205.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 10:33:36 +00: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
xixu-me 06561b5b2b Add Vercel Functions workflow and sync automation
Introduces a new GitHub Actions workflow for deploying to Vercel Functions and extends the sync workflow to auto-convert and push the codebase to a 'functions' branch for Vercel deployment. Updates workflow YAML files for consistent quoting and naming, refines documentation in CLAUDE.md for platform support and development, and updates package-lock.json dependencies.
2025-11-25 14:49:42 +08:00
xixu-me 988de5b6e2 Merge pull request #114 from xiinc1/dependabot/npm_and_yarn/cloudflare/vitest-pool-workers-0.10.10
deps(deps-dev): bump @cloudflare/vitest-pool-workers from 0.8.71 to 0.10.10
2025-11-24 14:48:13 +08:00
xixu-me b987f99570 Merge pull request #115 from xiinc1/dependabot/npm_and_yarn/eslint-9.39.1
deps(deps-dev): bump eslint from 9.34.0 to 9.39.1
2025-11-24 14:47:07 +08:00
xixu-me 0f1a9d19a8 Merge pull request #116 from xiinc1/dependabot/github_actions/actions/setup-node-6
ci(deps): bump actions/setup-node from 4 to 6
2025-11-24 14:46:34 +08:00
xixu-me c14a8ffb80 Merge pull request #117 from xiinc1/dependabot/github_actions/actions/checkout-6
ci(deps): bump actions/checkout from 5 to 6
2025-11-24 14:45:58 +08:00
dependabot[bot] 6e00498476 ci(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 06:45:05 +00:00
dependabot[bot] 3a37c91626 ci(deps): bump actions/setup-node from 4 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 06:44:59 +00:00
dependabot[bot] ca1412ec45 deps(deps-dev): bump eslint from 9.34.0 to 9.39.1
Bumps [eslint](https://github.com/eslint/eslint) from 9.34.0 to 9.39.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.34.0...v9.39.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 06:40:22 +00:00
dependabot[bot] e759c19a87 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.8.71 to 0.10.10.
- [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.10/packages/vitest-pool-workers)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 06:40:16 +00:00
xixu-me 7f01ebe059 Add DigitalOcean deployment guide and update README
Removed the sponsors section from both English and Chinese README files and added a new section referencing a detailed deployment guide for running Xget on DigitalOcean. Introduced docs/deploy-on-digitalocean.md with comprehensive instructions for deploying and optimizing Xget using Droplets, App Platform, and Kubernetes on DigitalOcean.
2025-11-24 14:24:40 +08:00
xixu-me 1f3fc06c2b Update sponsor section and links in docs and config
Added a new sponsors section with DigitalOcean and DartNode badges to both English and Chinese README files. Updated image tags to remove inline styles for badges. Modified the issue template config to update the public instance link and description.
2025-11-21 21:01:23 +08:00
xixu-me 89551136d7 Update API usage examples and rename Anthropic to Claude
Revised Python and JavaScript code samples in both English and Chinese READMEs to use updated OpenAI, Claude (formerly Anthropic), and Gemini API interfaces. Renamed references from 'Anthropic' to 'Claude' throughout documentation and config comments for clarity. Also updated tsconfig.json formatting for consistency.
2025-11-20 19:32:13 +08:00
xixu-me c9de054b4d Remove Docker configuration instructions from README
Deleted the section detailing Docker registry mirror configuration for image acceleration from both English and Chinese README files. This streamlines the documentation and focuses on direct image pulling instructions.
2025-11-19 20:59:41 +08:00
xixu-me b7ec488ff2 Update EdgeOne Pages deploy project name
Changed the project name in the deploy step from 'xget' to 'xget6' in the pages-eo GitHub Actions workflow.
2025-11-19 20:41:10 +08:00
xixu-me 7e5cee71f3 Update EdgeOne Pages deploy project name
Changed the project name in the deploy step from 'xget-pages' to 'xget' in the GitHub Actions workflow for EdgeOne Pages deployment.
2025-11-19 20:37:25 +08:00
xixu-me e0a861b85b Change Hugging Face logo color to black 2025-11-19 11:20:17 +08:00
xixu-me 72904c5e84 Update Hugging Face badge logo color to black 2025-11-19 11:19:43 +08:00
xixu-me f26a122f22 Update badge links and images in README 2025-11-19 00:27:32 +08:00