Skip to content

generaltranslation@9.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 02:32
· 126 commits to main since this release
858323a

Major Changes

Patch Changes

  • #1818 b72c30b Thanks @bgub! - Clean up the generaltranslation public API surface for the next major.

    Removes the unused generaltranslation/core subpath, stale endpoint types, duplicate ApiError accessors, and dead /internal exports. Moves API_VERSION to generaltranslation/internal, exports the derivation helpers from the public root, and points gt-i18n at that public entry.

  • #1439 72e9e16 Thanks @ErnestM1234! - Split the runtime surface of the GT class (locale management, formatting, runtime translation) into a GTRuntime base class exported from the new generaltranslation/runtime entry point. The SDK runtime (gt-i18n's I18nConfig, gt-next middleware) now constructs GTRuntime, so production browser bundles no longer ship the project/file management API client (enqueueFiles, uploads, downloads, etc.). The GT class extends GTRuntime and keeps its full API for the CLI and other tooling. Also import getLocaleProperties from @generaltranslation/format directly in react-core so client bundles don't reach the full core entry.

  • #1809 5adeede Thanks @ErnestM1234! - Trigger an odysseus prerelease patch for generaltranslation.

  • #1439 d48604e Thanks @ErnestM1234! - Trigger an odysseus prerelease patch for all publishable packages.

  • #1439 5752fe8 Thanks @ErnestM1234! - Organize package entrypoint exports and replace re-export-only imports with direct export declarations.

  • #1439 97dc7f4 Thanks @ErnestM1234! - Remove default exports from package entrypoints and internal source modules.

    Use named imports for affected public entrypoints, including import { plugin } from 'gt-react-native/plugin'. The gt-next/link entrypoint keeps its default export to match next/link.

  • #1439 693288d Thanks @ErnestM1234! - Remove internal source barrel exports and update imports to reference defining files directly.

  • #1439 2e85ebd Thanks @ErnestM1234! - Import the FormatJS TYPE runtime enum from the parser entrypoint so Vite dev does not request the CommonJS types.js subpath as a browser ESM module.

  • #1814 d5cf2d3 Thanks @ErnestM1234! - Vendor the FormatJS ICU AST printer so the ESM internal build no longer imports the CommonJS printer.js subpath, which Vite-based dev servers (e.g. TanStack Start) cannot load. Serialized output is byte-identical, so hashes are unchanged.

  • #1439 4986567 Thanks @ErnestM1234! - Remove the v8-era backwards-compatibility shim from generaltranslation.

    Deletes src/backwards-compatability/ (dataConversion, oldTypes, typeChecking, oldHashJsxChildren) and its 26 re-exports from generaltranslation/internal — the old↔new JSX/variable-format converters, legacy type guards, and the legacy hashers. These had no consumers anywhere in the libraries; the old format they bridged is no longer produced. Safe to drop in the next major. ~477 LOC removed from the /internal entry.

  • #1439 795edc8 Thanks @ErnestM1234! - Remove the unused hashTemplate export from generaltranslation/id. It had no consumers anywhere in the libraries. hashSource/hashString are unchanged.

  • Updated dependencies [d48604e, 88f3a2e, 5752fe8]:

    • @generaltranslation/format@0.1.2