Commit Graph
50 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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
dependabot[bot] 6b5b021592 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 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
dependabot[bot] 62224ae5f8 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 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
dependabot[bot] 54ce67b2eb 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 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
dependabot[bot] da932a6b1e 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 1996758e29 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 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 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 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
xixu-me 60e11e34c1 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 07923fdb10 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 3011014355 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 73b2c9777d 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 1edc187e15 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 fedcea2b37 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 e11d6f6929 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 3ef855f7dd 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 5263010043 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 a31ff1f0c2 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 d906756141 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 5017e7d011 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 1ccfad4fa9 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 89fd7e2049 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 fd6907a4cc 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 6873515ffd 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 e28f469214 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 5357607dee 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 ce22782652 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 49b976acf3 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 eb7b449508 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 3f530d6eee Update README.md 2025-07-27 12:17:57 +08:00
xixu-me a7520197ae Update README.zh.md 2025-07-27 12:16:49 +08:00
xixu-me 339979720a Update CONTRIBUTING.md 2025-07-27 12:11:27 +08:00
xixu-me 0973597d5b Update README.md 2025-07-27 12:10:52 +08:00
xixu-me 32cfab7982 Update README.zh.md 2025-07-27 12:10:25 +08:00
xixu-me a2bdfa046b Update README.zh.md 2025-07-27 02:42:34 +08:00
xixu-me bf199095cc Update README.md 2025-07-27 02:41:20 +08:00
xixu-me eac06f3c01 Update DeepL documentation link in README
Replaces the outdated reference to 'Supported Languages' with 'Languages supported' in the DeepL documentation link for clarity and accuracy.
2025-07-27 02:21:54 +08:00
xixu-me 2f4c7d98d1 Add language switch links to README files
Added cross-links between English and Chinese README files for easier language switching. Updated CODE_OF_CONDUCT.md to use angle brackets for email and URLs for improved formatting.
2025-07-27 02:20:30 +08:00
xixu-me 8afa94767e Initial repository setup and core files added
Add configuration, documentation, code of conduct, contributing guide, license, and README files. Set up .gitignore, coverage config, GitHub issue templates, pull request template, and initial source code, scripts, and tests for DeepLX optimized for Cloudflare Workers.
2025-07-27 02:09:25 +08:00