Skip to content

Releases: DeepL/deepl-node

v1.28.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 08:16

Security

  • Bumped axios to ^1.20.0 and adm-zip to ^0.6.1 to resolve
    high-severity npm audit advisories in production dependencies.

v1.28.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 12 Aug 02:37
v1.28.0
d092087

Added

  • Added support for using multiple glossaries in text and document translation
    via the glossaryIds option (up to 5 glossary IDs) in TranslateTextOptions
    and DocumentTranslateOptions.
  • Added support for style rules in document translation via the styleRule
    option in DocumentTranslateOptions.
  • Added support for translation memories in document translation via the
    translationMemory and translationMemoryThreshold options in
    DocumentTranslateOptions.
  • Added support for the translation memory management APIs:
    getTranslationMemory(), listTranslationMemorySegments(),
    deleteTranslationMemory(), createTranslationMemoryImport(),
    uploadTranslationMemoryFile(), createTranslationMemoryExport(),
    getTranslationMemoryJob(), isTranslationMemoryJobComplete(), and
    downloadTranslationMemoryExport(), along with the
    importTranslationMemoryFromFilepath() and
    exportTranslationMemoryToFilepath() convenience functions that create the
    job, transfer the TMX file, and wait for the job to finish. Because the API
    detects the file upload asynchronously, an import job keeps reporting
    awaiting_input for a while after the upload; the wait loop polls through
    that status and accepts an optional timeoutMs to bound the wait.
  • Added the TranslationMemorySegments, TranslationMemorySegment,
    TranslationMemoryTargetSegment, TranslationMemorySegmentsOptions,
    TranslationMemoryImport, TranslationMemoryExport, TranslationMemoryJob,
    TranslationMemoryJobResult, and TranslationMemoryJobStatus types.
  • Added optional creationTime and updatedTime fields to
    TranslationMemoryInfo.

Changed

  • Requests to the pre-signed storage URLs used for translation memory import and export now
    go through a separate HTTP client that is constructed without the DeepL Authorization
    header, instead of stripping it per request. Headers supplied via TranslatorOptions.headers
    are no longer sent to those URLs either — only the User-Agent and the per-request
    Content-Type. Proxy settings are unaffected.

Fixed

  • The debug log helper no longer crashes when axios error fields return a non-primitive from toString or Symbol.toPrimitive.

Security

  • Bumped axios to ^1.19.0, form-data to ^3.0.5, and adm-zip to
    ^0.6.0 to resolve high-severity npm audit advisories in production
    dependencies.

v1.26.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 09 Apr 20:22
v1.26.0

Added

  • Added support for translation memories in text translation via
    translationMemory and translationMemoryThreshold options in
    translateText().
  • Added listTranslationMemories() method to the DeepLClient class for
    listing available translation memories.

Changed

Fixed

  • Fix write tests that broke from language expansion

v1.25.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 26 Mar 20:25
v1.25.0
a4e95be

Added

  • Added new language constants from January 2026 API release of 81 new languages.
  • Added jsonBody option to SendRequestOptions, enabling JSON-encoded API calls.
  • Added support for style rules CRUD endpoints in the DeepLClient class: createStyleRule(), getStyleRule(), updateStyleRuleName(), updateStyleRuleConfiguredRules(), and deleteStyleRule().
  • Added support for style rule custom instruction CRUD endpoints in theDeepLClient class: createStyleRuleCustomInstruction(), getStyleRuleCustomInstruction(), updateStyleRuleCustomInstruction(), and deleteStyleRuleCustomInstruction().
    Please refer to the README for usage instructions.

v1.24.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 21 Jan 17:02
d8750ad

Added

  • Added tagHandlingVersion parameter to translateText() to specify which version of the tag handling algorithm to use. Options are v1 and v2.

v1.23.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 08 Dec 21:17
v1.23.0
7819c05

Added

  • Added customInstructions parameter to translateText() 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, zh and their variants. Note: using the customInstructions parameter will use quality_optimized model type as the default. Requests combining customInstructions and the latency_optimized model type will be rejected.

v1.22.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 12 Nov 21:18
v1.22.0
7819c05

Added

  • Added support for the GET /v3/style_rules endpoint in the client library, the implementation can be found in the DeepLClient class. Please refer to the README for usage instructions
  • Added styleId option to translateText() which allows text and document translation with style rules.

v1.21.0

Choose a tag to compare

@daniel-jones-dev daniel-jones-dev released this 03 Nov 15:06
863f2ee

Added

  • Added extraRequestParameters option 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 as target_lang, source_lang, etc.).

v1.20.0

Choose a tag to compare

@leoncheng57 leoncheng57 released this 08 Oct 15:05
3813215

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

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 26 Jun 18:08
v1.19.0
e355d15

Added

  • Add new supported language codes to the translation and glossary language types.