Commit Graph
100 Commits
Author SHA1 Message Date
xixu-me 2f4f8e99ea fix(google): route fallback through XDPL
CI / verify (push) Waiting to run
2026-08-19 17:16:19 +08:00
xixu-me 23b21479b8 fix(google): switch client on final retry 2026-08-19 17:03:11 +08:00
xixu-me dceed2e720 fix(google): send translations as form data 2026-08-19 17:00:22 +08:00
xixu-me dab276fe17 fix(google): retry fallback host once 2026-08-19 16:56:43 +08:00
xixu-me 4e854481e1 fix(google): fail over between compatible hosts 2026-08-19 16:54:57 +08:00
xixu-me d885923253 fix(google): use stable translation endpoint 2026-08-19 16:52:53 +08:00
xixu-me 9edbbef5ad fix(deepl): skip retries for upstream limits 2026-08-19 16:49:24 +08:00
xixu-me 479943d1dc fix(deepl): normalize upstream rate limits 2026-08-19 16:46:51 +08:00
xixu-me 9e28a9062c chore: reconcile rewritten main history 2026-08-19 16:42:30 +08:00
xixu-me 975e1dfc28 fix(translation): fall back when XDPL is rate limited 2026-08-19 16:42:04 +08:00
xixu-me 20c9ced3d3 fix(retry): avoid CPU busy wait 2026-08-19 16:23:36 +08:00
xixu-me 21d87b184c fix(retry): avoid CPU busy wait 2026-08-19 16:23:36 +08:00
xixu-me f0d5802b6f fix(deploy): restore production domain 2026-08-19 16:21:25 +08:00
xixu-me 122ccef059 fix(deploy): restore production domain 2026-08-19 16:21:25 +08:00
xixu-me 6b1d12f6a3 fix(actions): avoid status event fan-out 2026-08-18 11:29:40 +08:00
xixu-me cdfb4d7271 fix(actions): avoid status event fan-out 2026-08-18 11:29:40 +08:00
xixu-me ad153cdeb1 refactor(actions): remove duplicate Dependabot merge workflow 2026-08-18 11:26:25 +08:00
xixu-me 6d0b8bfcb6 refactor(actions): remove duplicate Dependabot merge workflow 2026-08-18 11:26:25 +08:00
xixu-me 367a11db9e fix(actions): retry Dependabot merge after checks 2026-08-18 11:25:19 +08:00
xixu-me 92c3493b12 fix(actions): retry Dependabot merge after checks 2026-08-18 11:25:19 +08:00
xixu-me e9c57b02ed fix(deps): resolve Dependabot alerts 2026-08-17 12:08:07 +08:00
xixu-me 7c4e87b64e fix(ci): evaluate all Dependabot pull requests 2026-08-14 18:15:00 +08:00
xixu-me a7af4101c8 fix(ci): evaluate all Dependabot pull requests 2026-08-14 18:15:00 +08:00
xixu-me c139aba209 ci: trigger Dependabot auto-merge from workflow runs 2026-07-03 23:31:21 +08:00
xixu-me 3d33a1251b ci: trigger Dependabot auto-merge from workflow runs 2026-07-03 23:31:21 +08:00
xixu-me 29dc1b21c9 ci: tolerate protected Dependabot workflow updates 2026-07-03 23:11:48 +08:00
xixu-me 74780bb08c ci: tolerate protected Dependabot workflow updates 2026-07-03 23:11:48 +08:00
xixu-me 7e704d6189 ci: add Dependabot auto merge workflow 2026-07-03 23:01:00 +08:00
xixu-me 292579d762 ci: add Dependabot auto merge workflow 2026-07-03 23:01:00 +08:00
xixu-me 61f1eeec41 fix(deps): override esbuild to 0.28.1 2026-06-14 20:58:10 +08:00
xixu-me 6217d07fdb fix(deps): override esbuild to 0.28.1 2026-06-14 20:58:10 +08:00
xixu-me 8d18965b2b chore: add context7.json with URL and public key 2026-04-19 18:41:42 +08:00
xixu-me 65328c6847 chore: add context7.json with URL and public key 2026-04-19 18:41:42 +08:00
xixu-me 13ea376dd3 docs(readme): remove redundant warning note 2026-04-11 22:28:47 +08:00
xixu-me a783e71724 docs(readme): remove redundant warning note 2026-04-11 22:28:47 +08:00
xixu-me a1e11d7e5b docs(readme): remove explicit anchors 2026-04-11 22:24:39 +08:00
xixu-me 7df53e0366 docs(readme): remove explicit anchors 2026-04-11 22:24:39 +08:00
xixu-me f6cade6732 docs(readme): remove table of contents 2026-04-11 21:58:30 +08:00
xixu-me 96dfbe4c57 docs(readme): remove table of contents 2026-04-11 21:58:30 +08:00
xixu-me 94c1f55e89 Merge pull request #39 from xixu-me/dependabot/npm_and_yarn/development-dependencies-e0cae55200
fix: restore lint and jest coverage
2026-03-30 22:21:47 +08:00
xixu-me 71c23cb32f Merge pull request #39 from xixu-me/dependabot/npm_and_yarn/development-dependencies-e0cae55200
fix: restore lint and jest coverage
2026-03-30 22:21:47 +08:00
xixu-me dda4fcd039 fix(test): restore lint and jest coverage 2026-03-30 22:16:00 +08:00
xixu-me e58b8273c2 fix(test): restore lint and jest coverage 2026-03-30 22:16:00 +08:00
xixu-me a3b75f44f6 fix(deps): keep typescript below 6 for ts-jest 2026-03-30 20:44:24 +08:00
xixu-me 712e75891a fix(deps): keep typescript below 6 for ts-jest 2026-03-30 20:44:24 +08:00
xixu-me 0663ad3db0 Merge pull request #30 from xixu-me/dependabot/npm_and_yarn/development-dependencies-ae8918cddc
deps: bump the development-dependencies group with 6 updates
2026-03-11 16:08:11 +08:00
xixu-me 45c4d0d953 Merge pull request #30 from xixu-me/dependabot/npm_and_yarn/development-dependencies-ae8918cddc
deps: bump the development-dependencies group with 6 updates
2026-03-11 16:08:11 +08:00
xixu-me 12d91dbce9 Merge pull request #29 from xixu-me/dependabot/npm_and_yarn/production-dependencies-d3731d7e25
deps: bump hono from 4.10.3 to 4.12.7 in the production-dependencies group
2026-03-11 16:08:08 +08:00
xixu-me 9a26e2a850 Merge pull request #29 from xixu-me/dependabot/npm_and_yarn/production-dependencies-d3731d7e25
deps: bump hono from 4.10.3 to 4.12.7 in the production-dependencies group
2026-03-11 16:08:08 +08:00
xixu-me e0bff6cdf4 Merge pull request #27 from xixu-me/dependabot/github_actions/actions/github-script-8
deps: bump actions/github-script from 7 to 8
2026-03-11 16:07:24 +08:00
xixu-me ff129dae48 Merge pull request #27 from xixu-me/dependabot/github_actions/actions/github-script-8
deps: bump actions/github-script from 7 to 8
2026-03-11 16:07:24 +08:00
xixu-me 974d8cfd28 Merge pull request #26 from xixu-me/dependabot/github_actions/actions/checkout-6
deps: bump actions/checkout from 4 to 6
2026-03-11 16:07:23 +08:00
xixu-me 06ba6201fd Merge pull request #26 from xixu-me/dependabot/github_actions/actions/checkout-6
deps: bump actions/checkout from 4 to 6
2026-03-11 16:07:23 +08:00
xixu-me 4470b38acd Merge pull request #28 from xixu-me/dependabot/github_actions/actions/setup-node-6
deps: bump actions/setup-node from 4 to 6
2026-03-11 16:07:22 +08:00
xixu-me 1d0e48d32f Merge pull request #28 from xixu-me/dependabot/github_actions/actions/setup-node-6
deps: bump actions/setup-node from 4 to 6
2026-03-11 16:07:22 +08:00
xixu-me 31ab434872 Auto-merge Dependabot dependency PRs
Update the Dependabot auto-merge workflow to select the repository's allowed merge method and simplify PR filtering.

Changes:
- Renamed the workflow step to "Auto-merge Dependabot dependency PRs".
- Removed version parsing and update-type checks; no longer requires parsing PR title for major/minor/patch.
- Fetch repository settings and choose merge method from `allow_merge_commit`, `allow_squash_merge`, or `allow_rebase_merge`; fail if none allowed.
- Broaden Dependabot detection to any author string containing "dependabot" and require the `dependencies` label before attempting auto-merge.
- Preserve `automerge:disabled` label to skip merges when present.
- Use the chosen `merge_method` (instead of hardcoded `squash`) and log which method was used.

Rationale: support repositories with different merge configurations and simplify auto-merge rules by relying on labels rather than title version parsing.
2026-03-11 16:05:53 +08:00
xixu-me 7f9f9e8024 Auto-merge Dependabot dependency PRs
Update the Dependabot auto-merge workflow to select the repository's allowed merge method and simplify PR filtering.

Changes:
- Renamed the workflow step to "Auto-merge Dependabot dependency PRs".
- Removed version parsing and update-type checks; no longer requires parsing PR title for major/minor/patch.
- Fetch repository settings and choose merge method from `allow_merge_commit`, `allow_squash_merge`, or `allow_rebase_merge`; fail if none allowed.
- Broaden Dependabot detection to any author string containing "dependabot" and require the `dependencies` label before attempting auto-merge.
- Preserve `automerge:disabled` label to skip merges when present.
- Use the chosen `merge_method` (instead of hardcoded `squash`) and log which method was used.

Rationale: support repositories with different merge configurations and simplify auto-merge rules by relying on labels rather than title version parsing.
2026-03-11 16:05:53 +08:00
xixu-me 944c31cd67 Fix Dependabot config and CI workflow 2026-03-11 15:48:50 +08:00
xixu-me d1c66862f7 Fix Dependabot config and CI workflow 2026-03-11 15:48:50 +08:00
xixu-me 9f5c4233f8 Add dependency update and automerge workflows 2026-03-11 14:49:38 +08:00
xixu-me 20f1abc2e8 Add dependency update and automerge workflows 2026-03-11 14:49:38 +08:00
xixu-me 3d5c4b8070 Revert "Await proxy endpoints and simplify delayRequest"
This reverts commit 0d7a026761.
2026-03-11 14:18:04 +08:00
xixu-me aa47344a9d Revert "Await proxy endpoints and simplify delayRequest"
This reverts commit 0d7a026761.
2026-03-11 14:18:04 +08:00
xixu-me f83ebd0e3f Await proxy endpoints and simplify delayRequest
Make getDynamicRateLimits async and await getProxyEndpoints to ensure proxy endpoints are resolved before calculating limits; update checkRateLimit to await the dynamic limits. Replace the custom microtask-based delay loop with a simple setTimeout-based Promise in delayRequest, normalizing and clamping the delay to milliseconds. These changes fix async behavior and simplify the request-delay implementation.
2026-03-11 14:10:49 +08:00
xixu-me 0d7a026761 Await proxy endpoints and simplify delayRequest
Make getDynamicRateLimits async and await getProxyEndpoints to ensure proxy endpoints are resolved before calculating limits; update checkRateLimit to await the dynamic limits. Replace the custom microtask-based delay loop with a simple setTimeout-based Promise in delayRequest, normalizing and clamping the delay to milliseconds. These changes fix async behavior and simplify the request-delay implementation.
2026-03-11 14:10:49 +08:00
xixu-me 32578e95ee Disable debug endpoint by default 2026-03-11 14:07:24 +08:00
xixu-me d520140a6a Disable debug endpoint by default 2026-03-11 14:07:24 +08:00
xixu-me e43fd30667 Merge pull request #15 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-4265e88a4c
Bump js-yaml from 3.14.1 to 3.14.2 in the npm_and_yarn group across 1 directory
2025-11-18 21:28:57 +08:00
xixu-me c7d015d7ba Merge pull request #15 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-4265e88a4c
Bump js-yaml from 3.14.1 to 3.14.2 in the npm_and_yarn group across 1 directory
2025-11-18 21:28:57 +08:00
xixu-me e5811b3ec4 Update README to note suspension of pre-deployed instance
Added a notice in both English and Chinese README files indicating that the pre-deployed instance is temporarily suspended due to excessive requests, and advised users to self-deploy.
2025-11-09 19:44:46 +08:00
xixu-me 2caa562d2a Update README to note suspension of pre-deployed instance
Added a notice in both English and Chinese README files indicating that the pre-deployed instance is temporarily suspended due to excessive requests, and advised users to self-deploy.
2025-11-09 19:44:46 +08:00
xixu-me ee9eac7e22 Enable custom headers in query requests
Uncommented the spread of config.customHeader in the request headers, allowing custom headers to be included in outgoing POST requests.
2025-11-07 16:44:07 +08:00
xixu-me 756ee0bf0a Enable custom headers in query requests
Uncommented the spread of config.customHeader in the request headers, allowing custom headers to be included in outgoing POST requests.
2025-11-07 16:44:07 +08:00
xixu-me f206285da0 Update request headers in query function
Removed charset from Content-Type, updated Accept-Encoding to include zstd, and commented out fingerprint and customHeader spreading. Also removed Cache-Control header for a more streamlined request.
2025-11-07 16:42:15 +08:00
xixu-me fc696f0a4a Update request headers in query function
Removed charset from Content-Type, updated Accept-Encoding to include zstd, and commented out fingerprint and customHeader spreading. Also removed Cache-Control header for a more streamlined request.
2025-11-07 16:42:15 +08:00
xixu-me 49c16dc644 Add detailed headers and error handling to query requests
Expanded request headers to better mimic browser requests and improve compatibility with DeepL. Added specific handling for HTTP 429 rate limit errors and enhanced general error reporting for non-200 responses.
2025-11-07 16:34:37 +08:00
xixu-me 4b6b2dc2ed Add detailed headers and error handling to query requests
Expanded request headers to better mimic browser requests and improve compatibility with DeepL. Added specific handling for HTTP 429 rate limit errors and enhanced general error reporting for non-200 responses.
2025-11-07 16:34:37 +08:00
xixu-me 89aa063664 Update browser fingerprint headers and observability config
Refined the generateBrowserFingerprint function to use more realistic and concise HTTP headers. Updated wrangler.jsonc to disable general observability but enable and configure detailed logging and tracing with persistence and full sampling.
2025-11-07 16:17:08 +08:00
xixu-me e1c60d67db Update browser fingerprint headers and observability config
Refined the generateBrowserFingerprint function to use more realistic and concise HTTP headers. Updated wrangler.jsonc to disable general observability but enable and configure detailed logging and tracing with persistence and full sampling.
2025-11-07 16:17:08 +08:00
xixu-me 63c833e00a Remove deployment status badge from README files
The deployment status badge was removed from both the English and Chinese README files, likely to reflect changes in service availability or to simplify the documentation.
2025-11-07 16:05:56 +08:00
xixu-me f938c7f457 Remove deployment status badge from README files
The deployment status badge was removed from both the English and Chinese README files, likely to reflect changes in service availability or to simplify the documentation.
2025-11-07 16:05:56 +08:00
xixu-me 3afd1b79ef Add CLAUDE.md and enhance proxy browser fingerprint headers
Introduces CLAUDE.md with detailed project, architecture, and contribution guidelines. Improves generateBrowserFingerprint in proxyManager.ts by adding comprehensive headers to better mimic real browsers and bypass DeepL bot detection. Minor cleanup in testHelpers.ts. package-lock.json updated for peer dependencies.
2025-11-07 16:02:04 +08:00
xixu-me 1e858212c1 Add CLAUDE.md and enhance proxy browser fingerprint headers
Introduces CLAUDE.md with detailed project, architecture, and contribution guidelines. Improves generateBrowserFingerprint in proxyManager.ts by adding comprehensive headers to better mimic real browsers and bypass DeepL bot detection. Minor cleanup in testHelpers.ts. package-lock.json updated for peer dependencies.
2025-11-07 16:02:04 +08:00
xixu-me b637e71c41 Merge pull request #14 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-96b303b581
Bump hono from 4.10.2 to 4.10.3 in the npm_and_yarn group across 1 directory
2025-10-25 12:28:28 +08:00
xixu-me fd48d1f3ac Merge pull request #14 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-96b303b581
Bump hono from 4.10.2 to 4.10.3 in the npm_and_yarn group across 1 directory
2025-10-25 12:28:28 +08:00
xixu-me 455f4899d0 Merge pull request #13 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-4a110fd761
Bump hono from 4.9.7 to 4.10.2 in the npm_and_yarn group across 1 directory
2025-10-24 10:18:49 +08:00
xixu-me 33472d4382 Merge pull request #13 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-4a110fd761
Bump hono from 4.9.7 to 4.10.2 in the npm_and_yarn group across 1 directory
2025-10-24 10:18:49 +08:00
xixu-me d5a54dd7d6 Merge pull request #7 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-e8c83315d2
Bump hono from 4.9.6 to 4.9.7 in the npm_and_yarn group across 1 directory
2025-09-13 11:05:46 +08:00
xixu-me 66ec36e8a0 Merge pull request #7 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-e8c83315d2
Bump hono from 4.9.6 to 4.9.7 in the npm_and_yarn group across 1 directory
2025-09-13 11:05:46 +08:00
xixu-me 15cbc67176 Merge pull request #6 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-062fc4dcdd
Bump hono from 4.8.5 to 4.9.6 in the npm_and_yarn group across 1 directory
2025-09-04 23:42:06 +08:00
xixu-me 51e58b9c7c Merge pull request #6 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-062fc4dcdd
Bump hono from 4.8.5 to 4.9.6 in the npm_and_yarn group across 1 directory
2025-09-04 23:42:06 +08:00
xixu-me 1996758e29 Fix formatting in FUNDING.yml 2025-08-24 17:40:35 +08:00
xixu-me 4c23cce5f8 Fix formatting in FUNDING.yml 2025-08-24 17:40:35 +08:00
xixu-me 77b1724034 Update architecture diagrams and example headings in README
Enhanced the architecture diagrams in both English and Chinese README files for clarity, adding more detailed components and improved flow. Updated example section headings for translation usage in JavaScript and Python to be more descriptive and consistent.
2025-08-09 18:52:46 +08:00
xixu-me e002ba156f Update architecture diagrams and example headings in README
Enhanced the architecture diagrams in both English and Chinese README files for clarity, adding more detailed components and improved flow. Updated example section headings for translation usage in JavaScript and Python to be more descriptive and consistent.
2025-08-09 18:52:46 +08:00
xixu-me 03306792f6 Update README to add Google Translate support
Expanded documentation in both English and Chinese to reflect new support for Google Translate alongside DeepL. Updated endpoint descriptions, feature lists, and architecture diagrams to show multi-provider support and clarified that the service is a free alternative to traditional translation APIs.
2025-08-09 18:47:09 +08:00
xixu-me da02349581 Update README to add Google Translate support
Expanded documentation in both English and Chinese to reflect new support for Google Translate alongside DeepL. Updated endpoint descriptions, feature lists, and architecture diagrams to show multi-provider support and clarified that the service is a free alternative to traditional translation APIs.
2025-08-09 18:47:09 +08:00
xixu-me b2fdd0e22d Remove Microsoft Translator integration and update docs
Eliminated Microsoft Translator support from the codebase, including its service implementation, API endpoint, and related tests. Updated both English and Chinese README files to reflect the removal and to clarify usage of DeepL and Google endpoints, providing improved examples and API documentation.
2025-08-09 18:41:49 +08:00
xixu-me 1076a5817f Remove Microsoft Translator integration and update docs
Eliminated Microsoft Translator support from the codebase, including its service implementation, API endpoint, and related tests. Updated both English and Chinese README files to reflect the removal and to clarify usage of DeepL and Google endpoints, providing improved examples and API documentation.
2025-08-09 18:41:49 +08:00
xixu-me 8ae7c122b6 Refactor Microsoft Translator integration and tests
Refactored the Microsoft Translator service to use a parameter object for translation requests, improved language code normalization, and enhanced error handling. Updated integration and unit tests to match the new API and moved Microsoft Translator unit tests to a new location under tests/lib/services. Removed the old test file and added more comprehensive test coverage for translation scenarios and error cases.
2025-08-09 18:18:36 +08:00