Releases: DeepLcom/deepl-mock
Releases · DeepLcom/deepl-mock
v1.6.0
v1.5.0
Added
- Add new languages Indonesian (
'ID'
) and Turkish ('TR'
).
v1.4.0
Added
- 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.
Changed
- Update name for the target language
zh
to "Chinese (simplified)".
v1.3.2
Added
- Add support for
tag_handling=html
. formality
parameter is checked againsttarget_lang
.
Changed
- 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.
Fixed
- Raise request body size limits to 50 MiB.
- Fix error response message when attempting to download a document before it has been translated.
v1.3.1
Added
- Add contribution guidelines -- currently we are unable to accept Pull Requests.
Changed
- 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.
Fixed
- Remove "localhost" from listen() calls.
v1.3.0
Added
- 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.
Changed
- Require a non-empty
User-Agent
header for all endpoints.
v1.2.0
Added
- Add support for /v2/glossary-languages-pair endpoint.
Fixed
- Document status seconds_remaining field is an integer.
- Glossary info source and target languages are lowercase.