gt-react-native@11.0.0
Major Changes
-
#1816
463a8dbThanks @bgub! - Add a config-awareresolveCanonicalLocalehelper and remove the publicgetGTClasshelper. -
#1439
e12fb17Thanks @ErnestM1234! - Prepare Odysseus major releases for core runtime packages. -
#1816
463a8dbThanks @bgub! - Remove the deprecateduseGTClasshook from public entry points. -
#1821
40db0c5Thanks @bgub! - RemoveuseVersionIdfrom public package entrypoints.The
getVersionIdhelper remains available from public function entrypoints andgt-i18n/internal. -
#1439
8a2f7eeThanks @ErnestM1234! - Simplify translation option types. Replace deprecated inline and dictionary option aliases withGTTranslationOptions, use interpolation variables for dictionaryt()options, and trim higher-level type exports to avoid exposing internal translation option fields.
Patch Changes
-
#1439
947fe0cThanks @ErnestM1234! - FixuseVersionId()throwing anduseLocaleDirection()requiring a locale argument in the client and server entrypoints.useVersionId()now returns the current version id (instead of throwing the react-core "not implemented" error), anduseLocaleDirection()once again accepts an optional locale that defaults to the current locale. The shared implementation now lives in@generaltranslation/react-core/hooks, sogt-reactandgt-react-nativeuse the same behavior; the RSC entrypoint keeps its stricter signatures. -
#1439
b3bb391Thanks @ErnestM1234! - Store cookie names in I18nConfig so custom cookie names work before the condition store is initialized.gt-i18n: Removed the unused React locale cookie name from the shared GT config type.@generaltranslation/react-core:ReactI18nConfignow acceptslocaleCookieName,regionCookieName, andenableI18nCookieName, exposes getters that fall back to the default names, and exports the default storage names from thepureentrypoint.gt-next: Imports default cookie names from the React Corepureentrypoint instead of the removed React Core cookie constants subpath.gt-react: The browser condition store now resolves cookie names fromI18nConfiginstead of hardcoding the defaults, so custom cookie names passed toinitializeGT()are honored for both reads and writes.gt-react-native: Native condition storage now resolves its store keys fromI18nConfig, matchinggt-reactbehavior.gt-tanstack-start:parseLocale()reads and writes the locale cookie using the configured cookie name instead of the default.
-
#1439
bd42777Thanks @ErnestM1234! - RenderGTProviderloading fallbacks inside the native GT context so app children can safely be used as the fallback while translations load. -
#1439
d48604eThanks @ErnestM1234! - Trigger an odysseus prerelease patch for all publishable packages. -
#1439
5752fe8Thanks @ErnestM1234! - Organize package entrypoint exports and replace re-export-only imports with direct export declarations. -
#1439
57047eaThanks @ErnestM1234! - Rename the React NativeGTProviderloading fallback prop tofallback. -
#1439
72c6a85Thanks @ErnestM1234! - Add portable selector hook return types for React Native declarations. -
#1439
97dc7f4Thanks @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'. Thegt-next/linkentrypoint keeps its default export to matchnext/link. -
#1439
9804aa4Thanks @ErnestM1234! - Remove three orphaned, never-imported files:gt-tanstack-start:condition-store/WritableConditionStore.ts(an orphaned local copy; the package uses gt-i18n's writable condition store).gt-react-native:utils/utils.ts(readAuthFromEnv, no consumers).gt-i18n:i18n-cache/translations-manager/utils/types/translations-manager.ts(unreferencedTranslationsManagerConfigtype).
-
Updated dependencies [
463a8db,37e0080,8870496,1212135,04f419d,b72c30b,72e9e16,42a440f,fd22c68,bea8233,8870496,5736d58,04b5064,947fe0c,5adeede,328795b,1f53e42,b3bb391,d48604e,88f3a2e,e12fb17,44bc998,5752fe8,b7d44dc,9561761,72c6a85,3d95277,97dc7f4,c1e0a0f,85a0c19,693288d,463a8db,e343775,40db0c5,8a2f7ee,c5364f9,2e85ebd,2c46baf,d5cf2d3,9e78cf0,4986567,795edc8,d863bcf,11ecf87,03bae6d,5d42608,9804aa4,338e5e8,8834c51,2ca78ec,195f009]:- gt-i18n@1.0.0
- @generaltranslation/react-core@11.0.0
- generaltranslation@9.0.0
- @generaltranslation/format@0.1.2
- @generaltranslation/supported-locales@2.1.2