All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.14.0 - 2024-11-15
/translate
endpoint: addedmodel_type
request parameter andmodel_type_used
response parameter.
1.13.0 - 2024-09-13
- Add supported glossary languages: Danish (
'da'
), Norwegian (bokmål) ('nb'
), and Swedish ('sv'
). - Add billed characters to translate-text function: (
show_billed_characters
request parameter, andbilled_characters
response parameter).
1.12.0 - 2024-04-08
- Verify keepalive is used by clients by rejecting session reuse on new sockets, except in case where no-response mode is active
- Add
mock-server-session-allow-missing-user-agent
session header to override missing User-Agent check. - Add supported glossary languages: Portuguese (
'PT'
), Russian ('RU'
), and Chinese ('ZH'
). - Add
output_format
parameter for document upload, to specify the desired file format of the output file - Add new language Arabic (
'AR'
).
- Run
npm audit fix
to update dependencies.
1.11.0 - 2023-07-06
- Add formality for Japanese (
'JA'
). - Add JSON-requests support to certain endpoints, matching DeepL API.
1.10.0 - 2023-01-26
- Add new languages Korean (
'KO'
) and Norwegian (bokmål) ('NB'
). - Add limited support for XLIFF files. As this mock server only translates text files, XLIFF files will return a 503 error (the same as for other file types).
1.9.1 - 2022-12-07
formality=default
is allowed for all target languages.
1.9.0 - 2022-11-03
- Add to supported glossary language pairs:
- English <-> Dutch
1.8.1 - 2022-11-03
- Mock server incorrectly supported JSON requests that are not supported by
DeepL API. Support for JSON requests is removed.
- #3 thanks to DevViktorKovacs.
1.8.0 - 2022-09-26
- Add
formality
options:prefer_less
andprefer_more
- Glossary language codes are case-insensitive.
1.7.0 - 2022-09-09
- Add to supported glossary language pairs:
- German <-> French
- English <-> Italian
- English <-> Japanese
- English <-> Polish
- Add new language Ukrainian (
'UK'
).
- Fix bug with missing
target_lang
orsource_lang
in glossary create.
1.6.0 - 2022-07-07
- Add support for glossary creation using CSV format.
- Update contributing guidelines, we can now accept Pull Requests.
- Update
package-lock.json
: removedicer
0.3.0 from indirect dependencies.
1.5.0 - 2022-05-18
- Add new languages Indonesian (
'ID'
) and Turkish ('TR''
).
1.4.0 - 2022-04-13
- Add
error_message
field to document status if an error occurs during document translation fails, and check if detected source language matches target language. The deprecatedmessage
field is also added to match the live API.
- Update name for the target language
zh
to "Chinese (simplified)".
1.3.2 - 2022-03-01
- Add support for
tag_handling=html
. formality
parameter is checked againsttarget_lang
.
- Update
package-lock.json
: upgradefollow-redirects
to 1.14.9 to silence security warnings. Note: security vulnerability CVE-2022-0536 affects cross-domain proxying and has no impact here because the proxy server is restricted to target only the mock server itself.
- Raise request body size limits to 50 MiB.
- Fix error response message when attempting to download a document before it has been translated.
1.3.1 - 2022-01-21
- Add contribution guidelines -- currently we are unable to accept Pull Requests.
- npm start command now uses environment variables if defined for DEEPL_MOCK_SERVER_PORT and DEEPL_MOCK_PROXY_SERVER_PORT.
- Update
package-lock.json
: upgradefollow-redirects
to 1.14.7 to silence security warnings. Note: security vulnerability CVE-2022-0155 affects cross-domain proxying and has no impact here because the proxy server is restricted to target only the mock server itself.
- Remove "localhost" from listen() calls.
1.3.0 - 2021-11-15
- Add glossary support for document translation.
- Add missing argument validation for: formality, split_sentences, preserve_formatting and outline_detection.
- Add an optional proxy server that proxies requests to the mock server, listening on port 3001 by default.
- Add
expect-proxy
session variable to reject requests not via proxy, as determined by presence of theForwarded
header.
- Require a non-empty
User-Agent
header for all endpoints.
1.2.0 - 2021-10-06
- Add support for
/v2/glossary-languages-pair
endpoint.
- Document status seconds_remaining field is an integer.
- Glossary info source and target languages are lowercase.
1.1.0 - 2021-09-13
- Add support for glossary API functions.
- Accept both query and body parameters for all HTTP methods.
- Refactor internal date usage to use Date objects.
1.0.1 - 2021-08-12
- Add explicit copyright notice to all source files.
1.0.0 - 2021-08-12
- Add support for Authorization header with
DeepL-Auth-Key
prefix.
- Fix bug in error responses introduced in eslint refactoring.
0.2.0 - 2021-08-03
- Use
eslint
andairbnb
style for code checking.
- Fix issue when no array parameters are specified.
0.1.0 - 2021-07-30
Initial version.