Skip to content

Commit d5115c8

Browse files
hive-botclaude
andcommitted
docs: deprecate the internal TranslateTextOptions.__path option
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 478cc18 commit d5115c8

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6868
the DeepL API translates them as `en-US` and `pt-PT`. `TargetLanguageCode` now
6969
includes `en` and `pt`.
7070

71+
### Deprecated
72+
- `TranslateTextOptions.__path` is deprecated. It is for internal use only
73+
and will be removed in the next major version.
74+
7175
### Fixed
7276
- `downloadTranslationMemoryExport()` no longer hangs on Node 16 and 17 when the output file
7377
already exists. It now rejects with `EEXIST` before downloading anything, on every Node

‎src/types.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ export interface TranslateTextOptions extends BaseRequestOptions {
227227
*/
228228
customInstructions?: string[];
229229

230-
/** (internal only) Override path to send translate request to. */
230+
/**
231+
* (internal only) Override path to send translate request to.
232+
* @deprecated For internal use only; will be removed in the next major version.
233+
*/
231234
__path?: string;
232235
}
233236

0 commit comments

Comments
 (0)