deepl-node

Official Node.js library for the DeepL language translation API.

MIT License

Downloads
189.6K
Stars
363
Committers
6
deepl-node - Latest Release

Published by daniel-jones-dev about 1 month ago

Added

  • Added billedCharacters field to text translation response.
deepl-node - v1.13.1

Published by JanEbbing 3 months ago

Added

  • Added supported glossary languages: Danish ('da'), Norwegian (bokmål)
    ('nb'), and Swedish ('sv'). The corresponding glossary language code
    TypeScript types are extended.

    Note: older library versions also support the new glossary language pairs,
    this update only adds new types.

Security

deepl-node - v1.13.0

Published by JanEbbing 7 months ago

1.13.0

Added

  • Add possibility to add extra parameters to a translation request (both text and document).
    DeepL engineers use this to test features in the API before they are released. Library users
    who cannot update their DeepL library dependency could use these extra parameters to access
    features in the API that are released in the future.

Security

deepl-node - v1.11.1

Published by daniel-jones-dev 9 months ago

Fixed

  • Dependencies: Update follow-redirects due to security vulnerability

Security

deepl-node - v1.11.0

Published by daniel-jones-deepl 12 months ago

Added

  • Add optional context parameter for text translation, that specifies
    additional context to influence translations, that is not translated itself.

Changed

  • Added notice in Readme that starting in 2024 the library will drop support for
    Node versions that are officially end-of-life.
  • Keep-Alive is now used by HTTP(S) agent, to reduce latency for subsequent API requests.

Fixed

  • CI: silence npm audit warnings in non-production dependencies due to
    currently-unresolvable vulnerability in semver <7.5.2.

  • Increase axios dependency to >=1.2.2, due to bug in axios v1.2.1.

  • Added supported glossary languages: Italian (it), Dutch (nl), Polish (pl),
    Portuguese (pt), Russian (ru) and Chinese (zh). The corresponding glossary
    language code TypeScript types are extended.

    Note: older library versions also support the new glossary language pairs,
    this update only adds new types.

  • Fixed typo in readme: createGlossaryWithCsv not createGlossaryFromCsv

deepl-node - v1.10.2

Published by daniel-jones-deepl 12 months ago

Fixed

  • Fixed erroneous version bump
deepl-node - v1.10.1

Published by daniel-jones-deepl 12 months ago

Fixed

  • Limit example typescript version to 5.0 due to Node 12 incompatibility
deepl-node - v1.10.0

Published by daniel-jones-deepl 12 months ago

Fixed

  • Changed document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
  • Fix getUsage request to be a HTTP GET request, not POST.
deepl-node - v1.9.0

Published by JanEbbing over 1 year ago

Added

  • Added platform and node version information to the user-agent string that is sent with API calls, along with an opt-out.
  • Added method for applications that use this library to identify themselves in API requests they make.

Fixed

  • Fixed proxy example code in README
deepl-node - v1.8.0

Published by daniel-jones-deepl almost 2 years ago

Added

  • New languages available: Korean ('ko') and Norwegian (bokmål) ('nb'). Add
    language code constants and tests.

    Note: older library versions also support the new languages, this update only
    adds new code constants.

deepl-node - v1.7.5

Published by JanEbbing almost 2 years ago

Fixed

  • Also send options in API requests even if they are default values.
deepl-node - v1.7.4

Published by daniel-jones-deepl almost 2 years ago

Fixed

  • Omit undefined supportsFormality field for source languages.
deepl-node - v1.7.3

Published by daniel-jones-deepl almost 2 years ago

Changed

  • CI: suppress npm audit warnings for dev dependencies, due to CVE in eslint-plugin-import > tsconfig-paths > json5.

Fixed

  • Support axios v1.2.1, that resolves the issue in v1.2.0.
deepl-node - v1.7.2

Published by daniel-jones-deepl almost 2 years ago

Fixed

  • Limit axios to v1.1.3 or lower due to an issue in v1.2.0.
    • This is a temporary workaround until the issue is resolved.
deepl-node - v1.7.1

Published by daniel-jones-deepl about 2 years ago

Fixed

  • Prefer for .. of loops to for .. in loops, to handle cases where array
    prototype has been modified.
  • Node 18 is supported, this is now explicitly documented.
deepl-node - v1.7.0

Published by daniel-jones-deepl about 2 years ago

Added

  • Add formality options 'prefer_less' and 'prefer_more'.

Changed

  • Requests resulting in 503 Service Unavailable errors are now retried.
    Attempting to download a document before translation is completed will now
    wait and retry (up to 5 times by default), rather than rejecting.
deepl-node - v1.6.0

Published by daniel-jones-deepl about 2 years ago

Added

  • New language available: Ukrainian ('uk'). Add language code constant and
    tests.

    Note: older library versions also support new languages, this update only
    adds new code constant.

deepl-node - v1.5.0

Published by daniel-jones-deepl about 2 years ago

Added

  • Add proxy support.
deepl-node - v1.4.0

Published by daniel-jones-deepl about 2 years ago

Added

  • Add createGlossaryWithCsv() allowing glossaries downloaded from website to be easily uploaded to API.
deepl-node - v1.3.2

Published by daniel-jones-deepl about 2 years ago

Changed

  • Update contributing guidelines, we can now accept Pull Requests.

Fixed

  • Fix GitLab CI config.
  • Correct language code case in getSourceLanguages() and getTargetLanguages() result.
  • Use TypeScript conditional types on translateText() to fix TS compiler errors.