Releases: DeepLcom/deepl-node
Releases · DeepLcom/deepl-node
v1.23.0
Added
- Added
customInstructionsparameter totranslateText()to customize translation behavior with up to 10 instructions (max 300 characters each). Only supported for target languages:de,en,es,fr,it,ja,ko,zhand their variants. Note: using thecustomInstructionsparameter will usequality_optimizedmodel type as the default. Requests combiningcustomInstructionsand thelatency_optimizedmodel type will be rejected.
v1.22.0
Added
- Added support for the
GET /v3/style_rulesendpoint in the client library, the implementation can be found in theDeepLClientclass. Please refer to the README for usage instructions - Added
styleIdoption totranslateText()which allows text and document translation with style rules.
v1.21.0
Added
- Added
extraRequestParametersoption to text and document translation methods to pass arbitrary parameters in the request body. This can be used to access beta features or override built-in parameters (such astarget_lang,source_lang, etc.).
v1.20.0
Added
- Official support for Node.js versions 20, 22 and 24
Fixed
- Fixed document minification/deminification to preserve translated content. Previously, when document minification was enabled, the deminify process would use the original minified file instead of the translated version, causing translations to be lost.
- Fixed handling of documents without media files during translation. The library now correctly processes documents that don't contain embedded media.
v1.19.0
Added
- Add new supported language codes to the translation and glossary language types.
v1.17.3
Changed
- Upgrade axios lib due to GHSA-jr5f-v2jv-69x6
v1.17.2
Added
- Added option to override translate path
v1.17.1
Added
- Update list of supported target languages
Changed
- Adjust environment variable handling to avoid side effects in the published library
v1.17.0
Added
- Added document minification as a feature before document translation, to
allow translation of large docx or pptx files. For more info check the README. - Added .env.example file with
dotenvlibrary for environment variables management - Improve unit tests
Changed
- Upgrade cross-spawn library (see GHSA-3xgq-45jj-v275)
v1.16.0
Added
- Added support for the Write API in the client library, the implementation
can be found in theDeepLClientclass. Please refer to the README for usage
instructions.
Changed
- The main functionality of the library is now also exposed via the
DeepLClient
class. Please change your code to use this over theTranslatorclass whenever
convenient.