Releases: DeepLcom/deepl-node
v1.11.0
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
notcreateGlossaryFromCsv
v1.10.2
Fixed
- Fixed erroneous version bump
v1.10.1
Fixed
- Limit example typescript version to 5.0 due to Node 12 incompatibility
v1.10.0
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.
v1.9.0
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
v1.8.0
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.
v1.7.5
v1.7.4
Fixed
- Omit undefined
supportsFormality
field for source languages.
v1.7.3
Changed
- CI: suppress
npm audit
warnings for dev dependencies, due to CVE ineslint-plugin-import > tsconfig-paths > json5
.
Fixed
- Support
axios
v1.2.1, that resolves the issue in v1.2.0.
v1.7.2
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.