Releases: DeepLcom/deepl-node
v1.15.0
Added
- Added
modelType
option totranslateText()
to use models with higher
translation quality (available for some language pairs), or better latency.
Options are'quality_optimized'
,'latency_optimized'
, and'prefer_quality_optimized'
- Added the
modelTypeUsed
field totranslateText()
response, that
indicates the translation model used when themodelType
option is
specified.
v1.14.0
Added
- Added
billedCharacters
field to text translation response.
v1.13.1
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
- Increase
axios
locked-version due to security
vulnerability in axios <1.7.3
v1.13.0
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
- Increase
follow-redirects
locked-version due to security
vulnerability in follow-redirects <1.15.5
v1.11.1
Fixed
- Dependencies: Update
follow-redirects
due to security vulnerability
Security
- Increase
axios
requirement to^1.6.4
to avoid vulnerability in follow-redirects <1.15.4
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