Skip to content

Latest commit

 

History

History
198 lines (155 loc) · 7 KB

CHANGELOG.md

File metadata and controls

198 lines (155 loc) · 7 KB

Changelog

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.12.0 - 2024-04-08

Added

  • 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').

Security

  • Run npm audit fix to update dependencies.

1.11.0 - 2023-07-06

Added

  • Add formality for Japanese ('JA').
  • Add JSON-requests support to certain endpoints, matching DeepL API.

1.10.0 - 2023-01-26

Added

  • 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

Fixed

  • formality=default is allowed for all target languages.

1.9.0 - 2022-11-03

Added

  • Add to supported glossary language pairs:
    • English <-> Dutch

1.8.1 - 2022-11-03

Fixed

  • Mock server incorrectly supported JSON requests that are not supported by DeepL API. Support for JSON requests is removed.

1.8.0 - 2022-09-26

Added

  • Add formality options: prefer_less and prefer_more

Fixed

  • Glossary language codes are case-insensitive.

1.7.0 - 2022-09-09

Added

  • Add to supported glossary language pairs:
    • German <-> French
    • English <-> Italian
    • English <-> Japanese
    • English <-> Polish
  • Add new language Ukrainian ('UK').

Fixed

  • Fix bug with missing target_lang or source_lang in glossary create.

1.6.0 - 2022-07-07

Added

  • Add support for glossary creation using CSV format.

Changed

  • Update contributing guidelines, we can now accept Pull Requests.
  • Update package-lock.json: remove dicer 0.3.0 from indirect dependencies.

Fixed

  • Fix an incorrect docker command in the readme.

1.5.0 - 2022-05-18

Added

  • Add new languages Indonesian ('ID') and Turkish ('TR'').

1.4.0 - 2022-04-13

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 deprecated message field is also added to match the live API.

Changed

  • Update name for the target language zh to "Chinese (simplified)".

1.3.2 - 2022-03-01

Added

  • Add support for tag_handling=html.
  • formality parameter is checked against target_lang.

Changed

  • Update package-lock.json: upgrade follow-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.

1.3.1 - 2022-01-21

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: upgrade follow-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.

1.3.0 - 2021-11-15

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 the Forwarded header.

Changed

  • Require a non-empty User-Agent header for all endpoints.

1.2.0 - 2021-10-06

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.

1.1.0 - 2021-09-13

Added

  • Add support for glossary API functions.

Fixed

  • Accept both query and body parameters for all HTTP methods.
  • Refactor internal date usage to use Date objects.

1.0.1 - 2021-08-12

Added

  • Add explicit copyright notice to all source files.

1.0.0 - 2021-08-12

Added

  • Add support for Authorization header with DeepL-Auth-Key prefix.

Fixed

  • Fix bug in error responses introduced in eslint refactoring.

0.2.0 - 2021-08-03

Added

  • Use eslint and airbnb style for code checking.

Fixed

  • Fix issue when no array parameters are specified.

0.1.0 - 2021-07-30

Initial version.