Commit Graph
375 Commits
Author SHA1 Message Date
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
xixu-me 11025573ed Update badge links and images in README.md 2025-11-19 00:26:02 +08:00
xixu-me ed675ea5e8 Update README with EdgeOne Pages and clarify deployments
Added EdgeOne Pages deployment instructions and badge. Expanded and clarified deployment steps for Cloudflare Workers and Cloudflare Pages, including notes on branch automation and secret configuration. Improved self-hosted deployment notes for clarity and consistency.
2025-11-18 22:33:15 +08:00
xixu-me d3c8c147ae Update docs and code references from Worker to Workers
Standardized terminology by changing 'Cloudflare Worker' to 'Cloudflare Workers' across documentation, workflow comments, and code. Expanded deployment instructions in README to include Cloudflare Pages and EdgeOne Pages, clarified secrets setup, and improved deployment notes for self-hosting.
2025-11-18 22:08:42 +08:00
xixu-me 80e4b8a267 Fix typos: replace 'Pagess' with 'Pages' in workflows
Corrects multiple instances of 'Pagess' to 'Pages' in the sync.yml workflow, including job names, comments, documentation, and deployment commands. Also removes redundant env block from pages-eo.yml. This improves clarity and ensures correct terminology for Cloudflare Pages.
2025-11-18 21:23:05 +08:00
xixu-me 6c39eae815 Update deployment workflows to trigger on workflow_run
Changed Cloudflare Pages and EdgeOne Pages workflows to trigger on successful completion of the 'Sync to Pages' workflow for the main branch, instead of on push to pages branch. Also updated permissions and job names for clarity and consistency.
2025-11-18 20:57:01 +08:00
xixu-me 94e18b6884 Remove install and build steps from workflow
Eliminated the 'Install dependencies' and 'Build project' steps from the pages-eo GitHub Actions workflow, leaving only the deployment step. This streamlines the workflow and may indicate that build artifacts are now pre-generated or handled elsewhere.
2025-11-18 20:47:49 +08:00
xixu-me 667e2599f5 Add workflows for Cloudflare and EdgeOne Pages deployment
Introduces separate GitHub Actions workflows for deploying to Cloudflare Pages and EdgeOne Pages. Also renames and updates the existing deploy workflow to workers.yml, reduces its timeout, and clarifies step names for Cloudflare Workers deployment.
2025-11-18 20:41:09 +08:00
xixu-me 1c4e9116aa Refactor workflow for Pagess deployment and cleanup
Renames all references from 'Page' or 'Pages' to 'Pagess' in the sync workflow, updates directory and script names, and consolidates the deployment process. Removes the EdgeOne conversion job and related configuration, simplifying the workflow to focus solely on Pagess deployment.
2025-11-18 19:59:35 +08:00
xixu-me 0204501aba Redirect invalid and incomplete paths to homepage
Update request handling to redirect root, invalid platform prefixes, and platform prefixes without resource paths to the homepage. Adjust tests to expect 302 redirects instead of 404 or 400 responses for these cases.
2025-11-18 18:30:15 +08:00
xixu-me 7d757f99a6 Add Product Hunt badge to README
Included a Product Hunt badge in the README to highlight the project's presence on Product Hunt and improve visibility.
2025-11-18 17:50:46 +08:00
xixu-me 0af31b20af Add Product Hunt badge to README
Included a Product Hunt badge with a link and image to promote Xget on Product Hunt. This enhances project visibility and provides users with a quick way to access the Product Hunt page.
2025-11-18 17:50:07 +08:00
xixu-me 8391175a46 Merge branch 'main' of https://github.com/xixu-me/Xget 2025-11-18 13:20:21 +08:00
xixu-me 763d3bf7a0 Add EdgeOne Pages conversion workflow
Introduces a new GitHub Actions job to automate converting the Worker codebase for EdgeOne Pages deployment. The workflow copies runtime files, creates a catch-all Pages Function handler, updates exports, generates edgeone.json configuration, modifies package.json scripts, and force-pushes to a dedicated 'pages' branch.
2025-11-18 12:10:44 +08:00
xixu-me 5739ae027a Merge pull request #107 from xixu-me/dependabot/github_actions/actions/attest-build-provenance-3
ci(deps): bump actions/attest-build-provenance from 2 to 3
2025-11-18 11:01:40 +08:00
xixu-me eb75686488 Add concurrency to workflows and refine sync job
Renamed 'depoly.yml' to 'deploy.yml' and added concurrency groups to deploy, image, and sync workflows for better job management. Updated the sync workflow to copy only runtime-required files, removing documentation, tests, and development configs from the deployment process.
2025-11-17 19:52:40 +08:00
xixu-me a1c87d9cba Merge pull request #102 from xixu-me/dependabot/npm_and_yarn/wrangler-4.47.0
deps(deps-dev): bump wrangler from 4.35.0 to 4.47.0
2025-11-17 19:32:51 +08:00
dependabot[bot] ad0aa07083 ci(deps): bump actions/attest-build-provenance from 2 to 3
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 2 to 3.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](https://github.com/actions/attest-build-provenance/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 11:31:44 +00:00
dependabot[bot] 8554732379 deps(deps-dev): bump wrangler from 4.35.0 to 4.47.0
Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 4.35.0 to 4.47.0.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@4.47.0/packages/wrangler)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 11:29:34 +00:00
xixu-me 84a9094463 Merge pull request #101 from xixu-me/dependabot/docker/node-25-slim
deps(deps): bump node from 22-slim to 25-slim
2025-11-17 19:29:08 +08:00
dependabot[bot] e031a45fe7 deps(deps): bump node from 22-slim to 25-slim
Bumps node from 22-slim to 25-slim.

---
updated-dependencies:
- dependency-name: node
  dependency-version: 25-slim
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 11:24:43 +00:00
xixu-me 73f6e58be8 Update workflows and dependabot config
Added npm and Docker support to dependabot.yml. Updated deploy and image workflows to use latest actions/checkout and set timeouts. Renamed and improved sync workflow to exclude docs and tests, and updated file copy logic.
2025-11-17 19:18:57 +08:00
xixu-me 130cb34bde Refactor Pages deployment workflows
Remove legacy EdgeOne Pages deployment and sync workflows, and add a new unified sync-worker-to-page.yml workflow for converting and syncing Worker code to a Pages-compatible branch. This streamlines the deployment process and updates the automation to use a more standard Cloudflare Pages Functions handler and configuration.
2025-11-17 18:54:28 +08:00