Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 12:09
· 6 commits to main since this release

See Upgrading to 2.0.0 for a guide to the breaking changes since 1.21.0.

Added

  • Added a trailing options array with
    MultilingualGlossaryOptions::EXTRA_BODY_PARAMETERS to
    createMultilingualGlossary(), createMultilingualGlossaryFromCsv(),
    updateMultilingualGlossary() and replaceMultilingualGlossaryDictionary().
  • Added a trailing options array to createStyleRule()
    (CreateStyleRuleOptions), updateStyleRuleName()
    (UpdateStyleRuleNameOptions), updateStyleRuleConfiguredRules()
    (UpdateStyleRuleConfiguredRulesOptions, as further keys of the configured
    rules), createStyleRuleCustomInstruction()
    (CreateStyleRuleCustomInstructionOptions) and
    updateStyleRuleCustomInstruction()
    (UpdateStyleRuleCustomInstructionOptions), each with EXTRA_BODY_PARAMETERS.
  • getStyleRuleCustomInstruction(), updateStyleRuleCustomInstruction() and
    deleteStyleRuleCustomInstruction() accept a CustomInstruction as well as
    its ID.
  • Added CreateTranslationMemoryImportOptions, ImportTranslationMemoryOptions
    and WaitOptions. createTranslationMemoryImport() accepts a
    CreateTranslationMemoryImportOptions array (CONTENT_TYPE, DISPLAY_NAME,
    EXTRA_BODY_PARAMETERS) as its third argument; the positional form remains.
    importTranslationMemoryFromFilepath() accepts an
    ImportTranslationMemoryOptions array (CONTENT_TYPE, DISPLAY_NAME,
    TIMEOUT, EXTRA_BODY_PARAMETERS) as its second; a string there is still the
    display name. CONTENT_TYPE is used for both the import job and the upload.
    waitUntilTranslationMemoryJobDone() and exportTranslationMemoryToFilepath()
    accept [WaitOptions::TIMEOUT => seconds] in place of the timeout.
  • The MultilingualGlossaryDictionaryEntries constructor accepts
    GlossaryEntries as well as an array.

Changed

  • Breaking: updateMultilingualGlossary($glossary, $name, $dictionaries) takes
    ($glossary, array $options = []). Replace
    updateMultilingualGlossary($g, $name, $dicts) with
    updateMultilingualGlossary($g, [MultilingualGlossaryOptions::NAME => $name, MultilingualGlossaryOptions::DICTIONARIES => $dicts]).
  • Breaking: deleteMultilingualGlossaryDictionary() takes
    ($glossary, $sourceLang, $targetLang), or
    ($glossary, MultilingualGlossaryDictionaryInfo $dictionary). Replace
    deleteMultilingualGlossaryDictionary($g, null, 'en', 'de') with
    deleteMultilingualGlossaryDictionary($g, 'en', 'de').
  • Breaking: MultilingualGlossaryDictionaryEntries::$entries is a GlossaryEntries
    instead of an array. Replace $dictionary->entries with
    $dictionary->entries->getEntries().
  • Breaking: RephraseTextOptions no longer extends TranslateTextOptions; it only
    defines WRITING_STYLE, TONE and EXTRA_BODY_PARAMETERS, the options
    rephraseText() reads. Use TranslateTextOptions for the translate option
    constants.
  • Breaking: Usage::anyLimitReached() is replaced by Usage::anyCharacterLimitReached():
    true if the account's character limit (character) or this API key's
    character limit (apiKeyCharacter) is reached. The speech minutes are not
    checked. Replace $usage->anyLimitReached() with
    $usage->anyCharacterLimitReached().
  • Breaking: The formality and split_sentences values are sent as given instead of
    lower-cased; the API rejects upper-case values. Pass them in lower case, for
    example with the Formality and SentenceSplittingMode constants.
  • Breaking: Subclasses of DeepLClient that override createMultilingualGlossary(),
    createMultilingualGlossaryFromCsv(), updateMultilingualGlossary(),
    replaceMultilingualGlossaryDictionary(),
    deleteMultilingualGlossaryDictionary(), the style rule methods above,
    getStyleRuleCustomInstruction(), deleteStyleRuleCustomInstruction(), or
    createTranslationMemoryImport(), importTranslationMemoryFromFilepath(),
    waitUntilTranslationMemoryJobDone() and
    exportTranslationMemoryToFilepath() must update their signatures.
  • Breaking: PHP 8.0 or later is required; support for PHP 7.3 and 7.4 is dropped.
    Users on PHP 7 must upgrade PHP before updating, or stay on the 1.x
    releases.
  • composer.json requires psr/http-client-implementation and
    psr/http-factory-implementation ^1.0 instead of *. Both PSR interfaces
    only have a 1.x major, so every implementation that 1.21.0 accepted still
    satisfies it.
  • Breaking: An HTTP 404 response on the v2 and v3 glossary endpoints throws
    NotFoundException with the message Not found, ... instead of
    GlossaryNotFoundException with Glossary not found, .... So does
    getMultilingualGlossaryDictionaryEntries() when the glossary has no
    dictionary for the language pair. Code that catches NotFoundException or
    DeepLException is unaffected.
  • Breaking: The split_sentences values 'on', 'default' and 'off' are no longer
    translated to '1' and '0'; they are sent as given, and the API rejects
    'on' and 'default'. Use SentenceSplittingMode::ALL ('1') or
    SentenceSplittingMode::OFF ('0').
  • Breaking: DeepLClient::buildRephraseBodyParams() is private. It was an internal
    request builder; call rephraseText().
  • GlossaryUtils is marked @internal and is not part of the public API. Use
    GlossaryEntries::fromTsv(), GlossaryEntries::fromEntries() and
    GlossaryEntries::convertToTsv().
  • Breaking: The protected DeepLClient::checkStatusCode() no longer has the third
    parameter $usingGlossary. A third argument is ignored. Overrides no longer
    receive $usingGlossary; the SDK calls it with two arguments.
    Remove the third parameter from overrides.
  • Breaking: ClientUtils::checkStatusCode() no longer has the third parameter
    $usingGlossary.
  • Breaking: StyleRuleInfo::$configuredRules is the configured_rules array as the
    API returns it (category => rule => value, snake_case keys) instead of a
    ConfiguredRules object; categories the SDK did not know are no longer
    dropped. Replace $info->configuredRules->datesAndTimes with
    $info->configuredRules['dates_and_times'], and likewise for the other
    categories. The StyleRuleInfo constructor takes this array.
  • Breaking: translateDocument(), translateDocumentUpload() and
    importTranslationMemoryFromFilepath() throw \InvalidArgumentException
    when no file exists at the input file path, before any request is sent.
    Previously translateDocument() threw DocumentTranslationException,
    importTranslationMemoryFromFilepath() threw DeepLException, and
    translateDocumentUpload() did not check and failed in the transport. Catch
    \InvalidArgumentException for a missing input file.
  • Breaking: TranslationMemoryJob::done() and TranslationMemoryJobResult::done() return
    true only for the status completed, as DocumentStatus::done() does;
    failed and expired jobs return [secure]. Code that used done() to detect
    any finished job must check done() || !ok().
  • Breaking: every function that creates a resource is retried only when the
    request was not processed, as createDeveloperKey() already was: after HTTP
    429, or a failure while connecting, before any byte of the request was written
    (a DNS failure of the host or proxy, a refused connection, a reset by the
    proxy before it answered, a timeout while connecting, in the TLS handshake or
    in the proxy tunnel). A 5xx response, a read timeout or a reset connection is
    no longer retried, so the resource is not created twice. This applies to
    translateDocumentUpload() (the upload of translateDocument()),
    createGlossary(), createGlossaryFromCsv(), createMultilingualGlossary(),
    createMultilingualGlossaryFromCsv(), createSpokenTerms(),
    createStyleRule(), createStyleRuleCustomInstruction(),
    createStyleProfile(), createTranslationMemoryImport() and
    createTranslationMemoryExport(). With a custom HTTP client only HTTP 429 is
    retried for them. Catch the exception and check whether the resource exists
    before creating it again.
  • Breaking: a response body cut off mid-read (cURL errors 18 and 92, for
    example a short body or an HTTP/2 stream reset) is retried like a reset
    connection, except by the functions that create a resource. If no attempt
    succeeds, the ConnectionException has shouldRetry set to true instead
    of [secure]. A download to a file rewrites the file from the start on each
    attempt.
    Check shouldRetry before retrying such a failure yourself.
  • Breaking: when a function that creates a resource fails, the exception's
    shouldRetry is true only if the request was not processed (HTTP 429, or a
    failure while connecting, before the request was written) or the response body
    was cut off mid-read. After a 5xx status, a timeout after the request was
    written, an empty reply, a reset connection or a broken pipe it is [secure]
    instead of true, as repeating the request may create a duplicate. This
    applies to the functions listed above and to createDeveloperKey(), and to
    the DocumentTranslationException of a failed translateDocument() upload.
    Check whether the resource exists before creating it again when shouldRetry is [secure].
  • Breaking: a failure on the way to a proxy is retried like one on a direct
    connection, and an error answer from the proxy is not. A proxy whose name
    cannot be resolved (CURLE_COULDNT_RESOLVE_PROXY) is now retried; 1.21.0 did
    not retry it. A non-2xx answer to CONNECT, 407 included, is no longer
    retried, and its ConnectionException has shouldRetry [secure].
    createDeveloperKey() is now also retried after a timeout in the TLS
    handshake or the proxy tunnel, and after a proxy that reset or closed the
    connection before answering, because the request was not sent. Before, it
    threw the ConnectionException at once, without retrying (for a timeout,
    depending on the libcurl version). A reset or other socket failure
    during the TLS handshake (CURLE_SSL_CONNECT_ERROR with an OS error) is now
    retried like other connection failures; a TLS error (alert, wrong version,
    certificate) is still not retried.
    Fix the proxy setting instead of retrying an error answer from the proxy.
  • Breaking: every argument check throws PHP's \InvalidArgumentException
    instead of DeepLException, before any request is sent: an empty auth or
    admin key, an invalid server_url or negative max_retries option, an empty
    language code, text, name, label, prompt or resource ID, glossary together
    with glossary_ids, more than 5 glossary IDs, an invalid
    translation_memory_threshold, an invalid glossary or spoken terms term,
    empty glossary entries, a contentLength that is not positive, an invalid
    admin date, an EXTRA_BODY_PARAMETERS value of a document translation that
    cannot be JSON-encoded, and an unknown option key. InvalidArgumentException is not a
    DeepLException: to keep handling these errors, also catch
    \InvalidArgumentException. API, I/O and wait failures, and an export job
    without a download URL passed to downloadTranslationMemoryExport(), still
    throw DeepLException;
    translateDocument() still wraps the argument errors of its upload in a
    DocumentTranslationException.
  • Breaking: translateText(), rephraseText() and correctText() throw an
    \InvalidArgumentException for an empty text, alone or in the array, before
    any request is sent. translateText() and rephraseText() sent it, and
    correctText() only rejected a single empty string.
    Remove empty texts before the call.
  • Breaking: The multilingual glossary functions that take a glossary
    (getMultilingualGlossary(), updateMultilingualGlossary(),
    updateMultilingualGlossaryName(), the dictionary update, replace, entries
    and delete functions, and deleteMultilingualGlossary()) and the spoken
    terms functions that take a spoken terms collection (getSpokenTerms(),
    updateSpokenTerms(), deleteSpokenTerms(), getSpokenTermsEntries(),
    replaceSpokenTermsList(), deleteSpokenTermsList()) throw an
    \InvalidArgumentException for an empty ID, or an object with an empty ID,
    before any request is sent. MultilingualGlossaryInfo::getGlossaryId() and
    SpokenTerms::getSpokenTermsId() throw it too.
    Catch \InvalidArgumentException for these.
  • Breaking: updateMultilingualGlossaryName() throws an \InvalidArgumentException for
    an empty name, createMultilingualGlossary() for an empty dictionary list,
    and deleteMultilingualGlossaryDictionary() for an empty source or target
    language, also from a MultilingualGlossaryDictionaryInfo, before any
    request is sent.
    Catch \InvalidArgumentException for these.
  • Breaking: translateDocument() throws a DocumentTranslationException with
    a null handle before uploading if the output file's directory does not
    exist or is not writable. Before, the document was uploaded and translated
    and the download failed, with the handle set.
    Create the output directory before the call.
  • Breaking: translateDocumentUpload() throws a DeepLException before any
    request is sent if the input path is a directory or the file cannot be read.
    Before, the built-in cURL transport sent the request and failed with a
    ConnectionException.
    Catch DeepLException for an unreadable input file.
  • Breaking: translateText(), translateDocumentUpload(),
    translateDocumentWaitUntilDone(), rephraseText(), correctText(),
    getLanguagesForResource() (options array form) and
    listTranslationMemorySegments() throw an \InvalidArgumentException for an
    option key that is not a constant of their options class
    (TranslateTextOptions, TranslateDocumentOptions, RephraseTextOptions,
    CorrectTextOptions, GetLanguagesForResourceOptions,
    TranslationMemorySegmentsOptions), before any request is sent; unknown
    keys were ignored. translateDocument() wraps it in a
    DocumentTranslationException. Pass extra request fields with
    EXTRA_BODY_PARAMETERS.
  • Breaking: the DeepLClient and DeepLAdminClient constructors throw an
    \InvalidArgumentException for a proxy option that cURL cannot use: a
    value that is not a string, an empty string, a value with whitespace, a
    scheme other than http, https, socks4, socks4a, socks5 and
    socks5h, or a URL without a host. Before, an empty string meant no proxy,
    a non-string value raised a TypeError, and other such values were passed
    to cURL so that every request failed with a ConnectionException. A
    host:port without a scheme is still accepted and used as http.
    Remove an empty proxy option or pass a valid proxy URL.
  • Breaking: added TranslationMemoryJobException, a DeepLException with an
    optional jobId and job. importTranslationMemoryFromFilepath() and
    exportTranslationMemoryToFilepath() wrap every failure in it, except a
    missing input file, which still throws \InvalidArgumentException
    unwrapped. Wrapped failures include invalid options, an empty or unreadable
    input file, an existing or unwritable output path, a failed job creation,
    upload or download, and a job that fails, expires or times out. jobId is
    set as soon as the job was created; job is the last TranslationMemoryJob
    status the helper fetched, null before the first status check; both are
    null for a failure before the job was created. httpStatusCode and
    shouldRetry are copied from a DeepLException cause, which getPrevious()
    returns. Code that catches DeepLException still catches it; code that
    catches a subclass such as NotFoundException or \InvalidArgumentException
    from these two functions must catch TranslationMemoryJobException and check getPrevious().
  • rephraseText() and correctText() throw an InvalidContentException
    (a DeepLException) if an improvement in the response lacks
    detected_source_language or target_language, instead of a plain
    DeepLException.
  • Breaking: the DeepLClient and DeepLAdminClient constructors throw an
    \InvalidArgumentException (Unknown client option: <key>) for an option
    key that is not a TranslatorOptions constant, instead of logging a warning
    and ignoring it.
    Remove option keys that are not TranslatorOptions constants.
  • Breaking: DeepLAdminClient::setDeveloperKeyUsageLimits() throws an
    \InvalidArgumentException (Unknown developer key usage limit: <key>)
    before the request for a key of the limits array other than the
    DeveloperKeyUsageLimitsOptions constants, 'key_id' included, instead of
    sending it as given (or dropping 'key_id'). Send other fields with
    DeveloperKeyOptions::EXTRA_BODY_PARAMETERS.
  • Breaking: translateDocumentWaitUntilDone() accepts only
    TranslateDocumentOptions::TIMEOUT and throws an \InvalidArgumentException
    (Unknown translate document wait option: <key>) for any other key, such as
    FORMALITY, instead of accepting and ignoring every
    TranslateDocumentOptions key.
    Pass only TIMEOUT.
  • Breaking: translateDocumentWaitUntilDone() treats a negative timeout as
    expired: it requests the status once and throws the timeout DeepLException
    if the translation is not done, instead of throwing a DeepLException
    (timeout must be a non-negative number of seconds) before any request. Through translateDocument()
    this is a DocumentTranslationException with the handle set.
    Pass a timeout of 0 or more.
  • Breaking: the second parameter of waitUntilTranslationMemoryJobDone() and
    the third parameter of exportTranslationMemoryToFilepath() are named
    $options instead of $timeout. They still take the timeout in seconds or
    [WaitOptions::TIMEOUT => seconds]. Replace the PHP 8 named argument
    timeout: 300 with options: 300, or pass it positionally.
  • Breaking: the second parameter of importTranslationMemoryFromFilepath() and
    the third parameter of createTranslationMemoryImport() are named
    $options instead of $displayName and $contentType; replace the named
    arguments displayName: and contentType: with options:, or pass the
    value positionally.
  • Breaking: importTranslationMemoryFromFilepath() no longer has the third
    parameter $timeout. Replace
    importTranslationMemoryFromFilepath($file, 'Legal TM', 300) with
    importTranslationMemoryFromFilepath($file, [ImportTranslationMemoryOptions::DISPLAY_NAME => 'Legal TM', ImportTranslationMemoryOptions::TIMEOUT => 300]).
    A third argument throws a TranslationMemoryJobException whose previous
    exception is an \InvalidArgumentException, before any request.
  • Breaking: the style rule functions that take a StyleRuleInfo, the
    translation memory functions that take a TranslationMemoryInfo or
    TranslationMemoryJob, throw an \InvalidArgumentException for an object,
    or null, without an ID, before any request is sent. They threw a
    \TypeError before. The GLOSSARY, GLOSSARY_IDS, STYLE_RULE,
    STYLE_PROFILE and TRANSLATION_MEMORY options of the translate and
    document functions throw it for an empty ID or an object without an ID
    instead of sending it. getGlossaryId(), getSpokenTermsId() and
    getStyleProfileId() no longer raise a PHP warning for null.
    exportTranslationMemoryToFilepath() throws a
    TranslationMemoryJobException whose previous exception is the
    \InvalidArgumentException. Catch \InvalidArgumentException instead of
    \TypeError.
  • Breaking: an empty language code throws an \InvalidArgumentException before
    any request is sent, instead of being sent to the API: the sourceLang and
    targetLang of MultilingualGlossaryDictionaryEntries (when it is created
    and when it is sent), createMultilingualGlossaryFromCsv(),
    updateMultilingualGlossaryDictionaryFromCsv(),
    replaceMultilingualGlossaryDictionaryFromCsv() and
    getMultilingualGlossaryDictionaryEntries(); the lang of
    SpokenTermsEntries, getSpokenTermsEntries() and deleteSpokenTermsList();
    the source_language of the custom instructions passed to
    createStyleRule(), and the $sourceLanguage of
    createStyleRuleCustomInstruction() and updateStyleRuleCustomInstruction()
    (null still means not set). A spoken terms response without lang throws an
    InvalidContentException. Catch \InvalidArgumentException where you handled
    the API's error for an empty language code.
  • Breaking: translateText(), rephraseText() and correctText() send a text
    that is not a string as given; only an empty string is rejected.
    translation_memory_threshold is only checked to be between 0 and 100, so
    '80' is sent. A glossary_ids entry, style_rule, style_profile or
    translation_memory that is neither an ID nor its object throws the empty-ID
    \InvalidArgumentException. translateDocumentWaitUntilDone() and
    translateDocument() no longer reject a timeout that is not a number before
    the request; PHP raises its own error when it is used.
    Pass texts as strings and option IDs as strings or their objects.
  • Breaking: getLanguagesForResource() no longer checks that the INCLUDE
    option is an array before the request; pass an array of include values. The
    style profile ID lists convert an entry that is not an ID or one of the
    expected objects to a string instead of throwing (PHP raises an Error if it
    cannot be converted). getUsageAnalytics() and getCustomTagUsageAnalytics()
    raise PHP's TypeError for a date that is neither a DateTimeInterface nor a
    string.
    Pass INCLUDE as an array.
  • Breaking: every optional $options parameter of DeepLClient and
    DeepLAdminClient, the constructors' included, and the $contentType of
    uploadTranslationMemoryFile() accept null, meaning not given, instead of
    raising a TypeError. Subclasses that override these methods must declare
    ?array $options = null (?string $contentType = null). A null timeout
    or proxy client option with http_client no longer logs the 'is ignored'
    warning.
  • Breaking: TranslatorOptions::isValid() no longer returns [secure] or logs a
    warning for an unknown option key, because the constructors throw for it
    first, and HttpClientWrapper no longer has a destructor.
  • The Composer package no longer contains renovate.json5.

Removed

  • Breaking: Removed Usage::$document and Usage::$teamDocument, and their lines in
    the string form of Usage; the API no longer returns them. document_*
    and team_document_* fields in a response are ignored.
    Remove code that reads them.
  • Breaking: Removed DeepLClient::getMultilingualGlossaryEntries(). Call
    getMultilingualGlossaryDictionaryEntries() with the same arguments; it
    returns the MultilingualGlossaryDictionaryEntries instead of a one-element
    array.
  • Breaking: Removed TranslateTextOptions::STYLE_ID and
    TranslateTextOptions::TRANSLATION_MEMORY_ID (style_id,
    translation_memory_id). Use STYLE_RULE and TRANSLATION_MEMORY, which
    take the same values.
  • Breaking: Removed TranslateDocumentOptions::STYLE_ID and
    TranslateDocumentOptions::TRANSLATION_MEMORY_ID. Use STYLE_RULE and
    TRANSLATION_MEMORY.
  • Breaking: Removed the document translation step methods uploadDocument(),
    getDocumentStatus(), downloadDocument() and
    waitUntilDocumentTranslationComplete(). Use translateDocumentUpload(),
    translateDocumentGetStatus(), translateDocumentDownload() and
    translateDocumentWaitUntilDone(). translateDocument() no longer calls
    subclass overrides of the removed methods; override the new ones instead.
  • Breaking: Removed document minification: the enable_document_minification option
    (TranslateDocumentOptions::ENABLE_DOCUMENT_MINIFICATION) and the classes
    DocumentMinifier, DocumentMinificationException and
    DocumentDeminificationException. The DeepL API accepts larger documents;
    drop the option and upload the document unchanged.
  • Breaking: Removed GlossaryNotFoundException. Catch NotFoundException.
  • Breaking: Removed TranslationMemoryJobResult::STATUS_DOWNLOADED. 'downloaded' is
    not a job status the API reports; waitUntilTranslationMemoryJobDone() no
    longer counts it as finished and keeps polling, like any unknown status. Use
    TranslationMemoryJobStatus::COMPLETED.
  • Breaking: Removed the Translator class. Its methods, the VERSION constant and
    the constructor moved into DeepLClient, which no longer extends it.
    Replace new Translator(...) with new DeepLClient(...) (same arguments),
    and Translator type hints, instanceof checks, Translator::VERSION and
    Translator::isFreeAccountAuthKey() with DeepLClient. Subclasses of
    Translator extend DeepLClient instead. TranslatorOptions remains.
  • Breaking: Removed the ConfiguredRules class. StyleRuleInfo::$configuredRules is
    a plain array; see Changed.
  • Breaking: Removed Translator::isAuthKeyFreeAccount(). Use isFreeAccountAuthKey(),
    which also trims whitespace around the key.
  • Breaking: Removed the constants LanguageResource::RESOURCE_* and
    LanguageSupport::INCLUDE_BETA / INCLUDE_EXTERNAL. Use the
    LanguageResourceName and LanguageInclude constants of the same names
    without the prefix, for example LanguageResourceName::TRANSLATE_TEXT.
  • Breaking: Removed the language code constants of LanguageCode, for example
    LanguageCode::GERMAN. Pass the language code string, for example 'de',
    and use getLanguagesForResource(), getSourceLanguages() or
    getTargetLanguages() to list the supported languages.
    LanguageCode::standardizeLanguageCode() and removeRegionalVariant()
    remain.

Fixed

  • Every function that sends a JSON request body, such as translateText(),
    throws an \InvalidArgumentException (Failed to JSON-encode the request body: ...) before any request when a value cannot be JSON-encoded (invalid
    UTF-8, INF/NAN), instead of sending an empty body that the API rejects.
  • The DeepLClient and DeepLAdminClient constructors throw an
    \InvalidArgumentException for a server_url option that is not an absolute
    http or https URL with a host, such as api.deepl.com without a scheme,
    instead of failing on the first request.
  • translateDocumentUpload() and translateDocument() remove the field for a
    null value in extra_body_parameters, including a field of the same name
    the library sets, instead of sending it as an empty string.
  • updateMultilingualGlossaryDictionaryFromCsv() and
    replaceMultilingualGlossaryDictionaryFromCsv() throw an
    \InvalidArgumentException (csvContent must be a non-empty string) before
    any request for empty or whitespace-only CSV content, instead of sending it.
  • translateText(), rephraseText() and correctText() send an array of texts
    whose keys are not 0..n-1 (e.g. an array_filter() result) as a JSON list
    instead of a JSON object.
  • The splitting_tags, non_splitting_tags, ignore_tags and
    custom_instructions options of translateText() and the custom
    instructions of createStyleRule() are sent as JSON lists when the array
    keys are not 0..n-1.
  • createTranslationMemoryExport() (and exportTranslationMemoryToFilepath())
    send the export request with an empty body and no Content-Type over the
    built-in cURL transport, instead of an empty chunked body with
    Content-Type: application/x-www-form-urlencoded and Expect: 100-continue.