Commit Graph
54 Commits
Author SHA1 Message Date
xixu-me d520140a6a Disable debug endpoint by default 2026-03-11 14:07:24 +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
dependabot[bot] 5026f8e440 Bump js-yaml in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [js-yaml](https://github.com/nodeca/js-yaml).


Updates `js-yaml` from 3.14.1 to 3.14.2
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...3.14.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 3.14.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 10:57:09 +00: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 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 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 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 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 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 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 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
dependabot[bot] 4cbbc04c87 Bump hono in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [hono](https://github.com/honojs/hono).


Updates `hono` from 4.10.2 to 4.10.3
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.10.2...v4.10.3)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.10.3
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 19:42:47 +00: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
dependabot[bot] e56158698e Bump hono in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [hono](https://github.com/honojs/hono).


Updates `hono` from 4.9.7 to 4.10.2
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.9.7...v4.10.2)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.10.2
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-22 15:44:04 +00: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
dependabot[bot] 5398f66717 Bump hono in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [hono](https://github.com/honojs/hono).


Updates `hono` from 4.9.6 to 4.9.7
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.9.6...v4.9.7)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.9.7
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-12 21:53:52 +00: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
dependabot[bot] c2207ad394 Bump hono in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [hono](https://github.com/honojs/hono).


Updates `hono` from 4.8.5 to 4.9.6
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.8.5...v4.9.6)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.9.6
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 15:39:50 +00:00
xixu-me 4c23cce5f8 Fix formatting in FUNDING.yml 2025-08-24 17:40:35 +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 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 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 e30b019cd2 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
xixu-me 6927a22b13 Refactor Microsoft translation function arguments
Changed the call to translateWithMicrosoft to pass text, source_lang, and target_lang as separate arguments instead of a single params object. Updated the function implementation to match the new signature and inlined the request body construction.
2025-08-09 17:29:33 +08:00
xixu-me bc8cc07e13 Refactor Microsoft Translator service and add tests
Refactored the Microsoft Translator integration to improve error handling, token acquisition, and API request structure. Added comprehensive unit tests for translation and service availability, covering success, error, and edge cases.
2025-08-09 17:17:43 +08:00
xixu-me ee3ae8d52c Add Microsoft Translator integration and endpoint
Introduces a new Microsoft Translator service with a compatible API, adds the /microsoft POST endpoint, and updates the translation handler to support Microsoft as a provider. Also includes minor cleanup in testHelpers.
2025-08-09 16:18:03 +08:00
xixu-me 0b8d562117 Make config parameter optional in Google Translate service
Updated the translateWithGoogle function to accept an optional config parameter and handle missing clientIP values gracefully. This improves flexibility and prevents errors when config or its properties are undefined.
2025-08-09 14:11:04 +08:00
xixu-me c54500dc79 Add Google Translate provider and multi-provider support
Introduces a Google Translate integration with a new service module and endpoint (/google), refactors translation handling to support both DeepL and Google providers, and updates cache key generation to include the provider. Adds integration and unit tests for the new provider and updates API route definitions for clarity and extensibility.
2025-08-09 14:05:37 +08:00
xixu-me a2f73d7de5 Fix markdown link formatting in README
Removed unnecessary full-width parentheses in the PDFMathTranslate link to ensure consistent markdown formatting.
2025-07-29 18:26:19 +08:00
xixu-me b9b5d9ea6f Fix formatting in PDFMathTranslate section of README
Removed unnecessary full-width parentheses in the PDFMathTranslate section for consistency with the rest of the document.
2025-07-29 18:25:31 +08:00
xixu-me ae43151cc3 Add PDFMathTranslate to translation tools list
Added PDFMathTranslate (pdf2zh), an open-source PDF document translation tool, to both English and Chinese README files. Included relevant links to advanced options and service configuration documentation.
2025-07-29 18:24:42 +08:00
xixu-me 52e07fdcca Add Buy Me a Coffee sponsor to FUNDING.yml
Added Buy Me a Coffee username to the funding configuration to provide an additional sponsorship option.
2025-07-29 17:21:29 +08:00
xixu-me 40e23937c9 Refactor worker export configuration
Moved the worker export configuration to the end of the file and refactored the scheduled handler to be a synchronous function. This improves code organization and clarity.
2025-07-29 15:16:38 +08:00
xixu-me 6542951001 Update docs and remove obsolete test README
Improved instructions and added Zotero integration steps in both English and Chinese README files. Removed references to tests/README.md in setup scripts and deleted the obsolete tests/README.md file.
2025-07-29 12:28:46 +08:00
xixu-me 8776d917db Update docs and code comments to use 'app' terminology
Replaced occurrences of 'application' with 'app' in code comments and documentation for consistency and brevity. Updated both English and Chinese README files to add and clarify DeepLX App usage instructions, and adjusted section order for better clarity.
2025-07-28 22:05:14 +08:00
xixu-me e5f585c2c5 Update star history links to DeepLX in README files
Changed the star history chart links and image sources from xixu-me/Xget to xixu-me/DeepLX in both README.md and README.zh.md for accurate project reference.
2025-07-28 15:38:35 +08:00
xixu-me 2eb0f0d2ff Update star history chart to use Xget repository
Replaced the star history chart in both English and Chinese README files to reference the xixu-me/Xget repository instead of xixu-me/DeepLX. Also updated the chart to use a <picture> element for dark and light theme support.
2025-07-28 15:37:35 +08:00
xixu-me e51ae3c98f Update security contact email address
Changed the security contact email from contact@xi-xu.me to i@xi-xu.me in SECURITY.md for reporting vulnerabilities and urgent issues.
2025-07-28 14:37:58 +08:00
xixu-me 2f99a2d555 Update README wording for 'star' suggestion
Changed 'Star' to 'star' in both English and Chinese README files for consistency and improved readability.
2025-07-27 18:34:10 +08:00
xixu-me be3f7149a7 Remove unused preview_url from wrangler config
Deleted the 'preview_url' property from wrangler.jsonc as it is no longer needed.
2025-07-27 16:02:14 +08:00
xixu-me 0d51bc60f5 Add preview_url flag to wrangler config
Introduces the 'preview_url' property set to false in wrangler.jsonc to control preview URL behavior.
2025-07-27 15:58:15 +08:00
xixu-me 8d875df84d Remove HTML content preservation utilities
Deleted htmlUtils module and its related tests. Removed all references to HTML preservation functions from index.ts and query.ts, simplifying the query logic and eliminating HTML-specific handling.
2025-07-27 15:07:02 +08:00
xixu-me c624aa9df7 Improve placeholder handling in HTML utils
Changed placeholder format to a unique string less likely to be altered by translation services and added zero-padding for consistency. Updated restoration logic to handle case-insensitive matching of placeholders. Added tests to verify correct restoration when placeholders are converted to lowercase.
2025-07-27 14:55:50 +08:00
xixu-me 12ec7bef22 Highlight DeepLX as a free alternative to DeepL API
Added a new section in both English and Chinese README files to emphasize that DeepLX is completely free to use, with no API keys, subscription fees, or usage limits, unlike the paid DeepL API.
2025-07-27 14:31:43 +08:00
xixu-me 15746b66da Update README.md 2025-07-27 12:17:57 +08:00
xixu-me 7f16237beb Update README.zh.md 2025-07-27 12:16:49 +08:00
xixu-me a563911403 Update CONTRIBUTING.md 2025-07-27 12:11:27 +08:00
xixu-me a2817c3b68 Update README.md 2025-07-27 12:10:52 +08:00
xixu-me 491edc6bd3 Update README.zh.md 2025-07-27 12:10:25 +08:00
xixu-me 6059236173 Update README.zh.md 2025-07-27 02:42:34 +08:00