# @squide/i18next

## 4.0.1

### Patch Changes

- [#789](https://github.com/workleap/wl-squide/pull/789) [`af471d7`](https://github.com/workleap/wl-squide/commit/af471d7eefbaafaa81bec4c0b364456229c2d82d) Thanks [@claude](https://github.com/apps/claude)! - Updated dependencies to their latest versions.
- Updated dependencies [[`af471d7`](https://github.com/workleap/wl-squide/commit/af471d7eefbaafaa81bec4c0b364456229c2d82d)]:
  - @squide/core@7.6.4

## 4.0.0

### Major Changes

- [#762](https://github.com/workleap/wl-squide/pull/762) [`e5e03be`](https://github.com/workleap/wl-squide/commit/e5e03bebd4829c559128c539d7db6448f5bdc47e) Thanks [@patricklafrance](https://github.com/patricklafrance)! - `@squide/i18next` now requires `i18next` `^27.0.1`, `react-i18next` `^18.0.1` and `i18next-browser-languagedetector` `^8.3.0` as peer dependencies. The `@squide/i18next` API is unchanged, but `i18next` and `react-i18next` ship breaking changes of their own. The most likely to affect an application:
  
  - `i18next` 27: `fallbackLng` now defaults to `false` (was `["dev"]`) and `returnEmptyString` now defaults to `false`. See the [i18next migration guide](https://www.i18next.com/misc/migration-guide#v26.x.x-to-v27.0.0).
  - `react-i18next` 18: requires React 18 or later. The `react` init options stay on the instance they are set on and are no longer shared with other instances, so set them on every module's instance. `<Trans>` always decodes HTML entities, so the `shouldUnescape` prop is ignored and should be removed. See the [react-i18next migration guide](https://react.i18next.com/latest/migrating-v17-to-v18).

### Patch Changes

- [#762](https://github.com/workleap/wl-squide/pull/762) [`e5e03be`](https://github.com/workleap/wl-squide/commit/e5e03bebd4829c559128c539d7db6448f5bdc47e) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`e5e03be`](https://github.com/workleap/wl-squide/commit/e5e03bebd4829c559128c539d7db6448f5bdc47e)]:
  - @squide/core@7.6.3

## 3.0.1

### Patch Changes

- [#725](https://github.com/workleap/wl-squide/pull/725) [`910ba4e`](https://github.com/workleap/wl-squide/commit/910ba4eae6a0375c29e5a8b89a8c74ba74fe0eee) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
  
  - `@squide/firefly`, `@squide/msw`, `@squide/firefly-storybook` and `@squide/firefly-module-federation` now require `msw` `^3.0.3` as a peer dependency. With MSW 3, the `worker.start()` option `onUnhandledRequest` is renamed to `onUnhandledFrame`. Since `msw-storybook-addon` 2.x only supports MSW 2, `@squide/firefly-storybook` now requires `msw-storybook-addon` `^3.0.3`:
  
  ```ts
  await worker.start({
      onUnhandledFrame: "bypass"
  });
  ```
  
  - `@squide/firefly-rsbuild-configs` now uses `@workleap/rsbuild-configs` 5.x. When customizing HTTPS with `https: (defaults) => ({ ... })`, the `selfsignedOptions.days` option has been removed; use `selfsignedOptions.notAfterDate` instead. Self-signed certificates are now cached in `node_modules/.cache/basic-ssl`, so a new certificate is generated (and must be trusted again) on first run after upgrading.
- Updated dependencies [[`910ba4e`](https://github.com/workleap/wl-squide/commit/910ba4eae6a0375c29e5a8b89a8c74ba74fe0eee)]:
  - @squide/core@7.6.1

## 3.0.0

### Major Changes

- [#713](https://github.com/workleap/wl-squide/pull/713) [`469672b`](https://github.com/workleap/wl-squide/commit/469672b9cbaa0b7d8892ae30f4642986b70f6ca7) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Resources can now be lazy-loaded per language, and the plugin reports when it is ready to the bootstrapping flow.
  
  **New**
  
  - `registerInstance(key, instance, options?)` accepts a `loadResources` function (`(language) => Promise<ResourceLanguage>`, a namespace to bundle map). When provided, the plugin loads the resources of the current language right away, and the resources of any language the instance doesn't hold before switching to it. The instance must be initialized with `resources: {}` (or `initAsync: false`) so that i18next initializes synchronously, otherwise the components rendering it could suspend while the resources load; `registerInstance` throws when it isn't. A hybrid instance holding the static resources of one language and lazy-loading the others is supported. Exported types: `LoadResourcesFunction`, `RegisterInstanceOptions`, `i18nextInstanceRegistryEntry`. The language loaded at registration is the one detected at bootstrapping, not the user preferred language, which is only known once the session is loaded: when they differ, both languages are downloaded. Persist the preferred language and detect it through the `localStorage` detection source to avoid the second download, as described in the setup guide.
  - The plugin implements the optional `Plugin` members (`isReady()`, `registerReadyListener()`, `removeReadyListener()`). It is ready once the modules are registered, every registered instance has settled the load of the current language and no `changeLanguage` call is still loading resources, which keeps `useIsBootstrapping` `true` until the initial resources are loaded and until a switch to the session's preferred language requested from the bootstrapping route completes. A failed load counts as settled, so the application still renders.
  - Every failed load is logged, dispatched on the event bus as `I18nextResourcesLoadFailedEvent` (`"squide-i18next-resources-load-failed"`, payload `{ key, language, error }`) and, when triggered by `changeLanguage`, rejected as an `I18nextResourcesLoadError` exposing `key`, `language` and `cause`. Use `isI18nextResourcesLoadError(error)` to identify it. A failed load isn't cached, a later call invokes the loader again.
  - `i18nextInstanceRegistry.getEntries()` returns the registered entries with their load state.
  
  **Breaking**
  
  - `changeLanguage(language)` now returns a `Promise<void>`. It resolves once the resources of the language are loaded into every lazy instance and the switch is done. With static resources, the switch still happens synchronously and the call doesn't need to be awaited.
  - A failed resources load rejects the promise with an `I18nextResourcesLoadError` and leaves the language unchanged. An unsupported language still throws synchronously.
  - `useChangeLanguage()` returns `(language) => Promise<void>`. A React effect written as a concise arrow function now returns the promise to React, which is not allowed: use a block body, `useEffect(() => { changeLanguage(language); }, [language]);`.
  - `registerInstance` throws when a lazy instance is registered once the modules are registered: a lazy instance must be registered from a module's register function, never from a deferred registration function. A static instance can still be registered at any time.
  
  **Migration**
  
  - With static resources, nothing changes except effects written as concise arrow functions, which must use a block body. With lazy resources, the effect switching to the session's preferred language from the bootstrapping route keeps working as is: `useIsBootstrapping` holds the render while the preferred language downloads. Elsewhere, await the promise when the switch must be complete before continuing.
  - Requires `@squide/core` 7.6.0 or later and `@squide/firefly` 19.3.0 or later for `useIsBootstrapping` to wait for the resources.

### Patch Changes

- Updated dependencies [[`469672b`](https://github.com/workleap/wl-squide/commit/469672b9cbaa0b7d8892ae30f4642986b70f6ca7)]:
  - @squide/core@7.6.0

## 2.6.2

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
  - @squide/core@7.5.1

## 2.6.1

### Patch Changes

- [#639](https://github.com/workleap/wl-squide/pull/639) [`9ad83bb`](https://github.com/workleap/wl-squide/commit/9ad83bb34e71d64e76b7f2a390f4da3ef2ebcf87) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.

- Updated dependencies [[`9ad83bb`](https://github.com/workleap/wl-squide/commit/9ad83bb34e71d64e76b7f2a390f4da3ef2ebcf87)]:
  - @squide/core@7.1.1

## 2.6.0

### Minor Changes

- [#626](https://github.com/workleap/wl-squide/pull/626) [`ab25461`](https://github.com/workleap/wl-squide/commit/ab2546107a7ae5131722905bc20e821da581d560) Thanks [@patricklafrance](https://github.com/patricklafrance)! - The `useCurrentLanguage` hook is now reactive: components re-render when the language is changed with `useChangeLanguage` or the plugin's `changeLanguage` method. Previously the hook was a one-time read, so consumers that don't render through `useTranslation` (e.g. React Aria's `I18nProvider`, `document.documentElement.lang`) went stale after a runtime language switch.

  The `i18nextPlugin` class also exposes new `registerLanguageChangedListener` and `removeLanguageChangedListener` methods.

## 2.5.22

### Patch Changes

- [#605](https://github.com/workleap/wl-squide/pull/605) [`096bbbf`](https://github.com/workleap/wl-squide/commit/096bbbfb2235c4e60349caa82efe740209989106) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies

## 2.5.21

### Patch Changes

- [#603](https://github.com/workleap/wl-squide/pull/603) [`1fb3adb`](https://github.com/workleap/wl-squide/commit/1fb3adb99bd9573b6029852887f440deb88ca6f2) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped dependencies.

- Updated dependencies [[`1fb3adb`](https://github.com/workleap/wl-squide/commit/1fb3adb99bd9573b6029852887f440deb88ca6f2)]:
  - @squide/core@7.0.1

## 2.5.20

### Patch Changes

- Updated dependencies [[`f26a67f`](https://github.com/workleap/wl-squide/commit/f26a67f80984c50aaf9b3b550a8e1f25edcbb43e)]:
  - @squide/core@7.0.0

## 2.5.19

### Patch Changes

- [#575](https://github.com/workleap/wl-squide/pull/575) [`9c91bd4`](https://github.com/workleap/wl-squide/commit/9c91bd47c5357a2b15b1fb0e984f81687a3b8b53) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bump dependencies

- Updated dependencies [[`9c91bd4`](https://github.com/workleap/wl-squide/commit/9c91bd47c5357a2b15b1fb0e984f81687a3b8b53)]:
  - @squide/core@6.1.15

## 2.5.18

### Patch Changes

- [#551](https://github.com/workleap/wl-squide/pull/551) [`0a1bbdd`](https://github.com/workleap/wl-squide/commit/0a1bbddc758dc805e980b224f2f7c73fbd69f84b) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated workspace dependency specifiers to use ranged workspace versions in package.json files.

## 2.5.17

### Patch Changes

- [#493](https://github.com/workleap/wl-squide/pull/493) [`3689db0`](https://github.com/workleap/wl-squide/commit/3689db04642a919455d9f4703270c2d338c0c156) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped dependencies.

- Updated dependencies [[`3689db0`](https://github.com/workleap/wl-squide/commit/3689db04642a919455d9f4703270c2d338c0c156)]:
  - @squide/core@6.1.14

## 2.5.16

### Patch Changes

- [#491](https://github.com/workleap/wl-squide/pull/491) [`9d150ae`](https://github.com/workleap/wl-squide/commit/9d150aea6530e54912333da3b3985fefac7c2487) Thanks [@claude](https://github.com/apps/claude)! - Updated dependencies to their latest versions.

## 2.5.15

### Patch Changes

- [#430](https://github.com/workleap/wl-squide/pull/430) [`cc3178b`](https://github.com/workleap/wl-squide/commit/cc3178b85212aba6570c42fb1bc7d552cc1fe998) Thanks [@github-actions](https://github.com/apps/github-actions)! - Updated dependencies to their latest versions.

- Updated dependencies [[`cc3178b`](https://github.com/workleap/wl-squide/commit/cc3178b85212aba6570c42fb1bc7d552cc1fe998)]:
  - @squide/core@6.1.13

## 2.5.14

### Patch Changes

- Updated dependencies [[`4001ae7`](https://github.com/workleap/wl-squide/commit/4001ae75f7aea8ee124ce831f69a1f55a342cef5)]:
  - @squide/core@6.1.12

## 2.5.13

### Patch Changes

- [#373](https://github.com/workleap/wl-squide/pull/373) [`f9138cc`](https://github.com/workleap/wl-squide/commit/f9138cc4bd0a1d175ad4bd7e695d1edd7fbe4c1c) Thanks [@alexasselin008](https://github.com/alexasselin008)! - Bumped dependencies

- Updated dependencies [[`f9138cc`](https://github.com/workleap/wl-squide/commit/f9138cc4bd0a1d175ad4bd7e695d1edd7fbe4c1c)]:
  - @squide/core@6.1.11

## 2.5.12

### Patch Changes

- [#369](https://github.com/workleap/wl-squide/pull/369) [`a7fc49e`](https://github.com/workleap/wl-squide/commit/a7fc49ed2b111189cc310100482c1fcf37cfad58) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped dependencies.

- Updated dependencies [[`a7fc49e`](https://github.com/workleap/wl-squide/commit/a7fc49ed2b111189cc310100482c1fcf37cfad58)]:
  - @squide/core@6.1.10

## 2.5.11

### Patch Changes

- Updated dependencies [[`992dd28`](https://github.com/workleap/wl-squide/commit/992dd28ce8aa03559c556f24df4ebc9c3129c943)]:
  - @squide/core@6.1.9

## 2.5.10

### Patch Changes

- [#361](https://github.com/workleap/wl-squide/pull/361) [`0479f4b`](https://github.com/workleap/wl-squide/commit/0479f4bb0bf17282dbd19dba92b3ac097cf01614) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped dependency versions.

- Updated dependencies [[`0479f4b`](https://github.com/workleap/wl-squide/commit/0479f4bb0bf17282dbd19dba92b3ac097cf01614)]:
  - @squide/core@6.1.8

## 2.5.9

### Patch Changes

- [#352](https://github.com/workleap/wl-squide/pull/352) [`7bd7af5`](https://github.com/workleap/wl-squide/commit/7bd7af5a757912309704b9e93bf8ecf1388e6787) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bump dependency versions.

- Updated dependencies [[`7bd7af5`](https://github.com/workleap/wl-squide/commit/7bd7af5a757912309704b9e93bf8ecf1388e6787)]:
  - @squide/core@6.1.7

## 2.5.8

### Patch Changes

- [#347](https://github.com/workleap/wl-squide/pull/347) [`6354489`](https://github.com/workleap/wl-squide/commit/6354489117e9826291da71f977daae55a5c5484a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped package versions.

- Updated dependencies [[`6354489`](https://github.com/workleap/wl-squide/commit/6354489117e9826291da71f977daae55a5c5484a)]:
  - @squide/core@6.1.6

## 2.5.7

### Patch Changes

- Updated dependencies [[`3be4070`](https://github.com/workleap/wl-squide/commit/3be4070d2d647804903b5cc01113e20d5d71cb11)]:
  - @squide/core@6.1.5

## 2.5.6

### Patch Changes

- [#339](https://github.com/workleap/wl-squide/pull/339) [`de6b333`](https://github.com/workleap/wl-squide/commit/de6b3335f538252bac9545d82c8f1218612eb923) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumped packages version.

- Updated dependencies [[`de6b333`](https://github.com/workleap/wl-squide/commit/de6b3335f538252bac9545d82c8f1218612eb923)]:
  - @squide/core@6.1.4

## 2.5.5

### Patch Changes

- [#332](https://github.com/workleap/wl-squide/pull/332) [`eb933a7`](https://github.com/workleap/wl-squide/commit/eb933a72514ff3e01f5d3dafa17556e1a07471f6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Bumpbed dependencies

- Updated dependencies [[`eb933a7`](https://github.com/workleap/wl-squide/commit/eb933a72514ff3e01f5d3dafa17556e1a07471f6)]:
  - @squide/core@6.1.3

## 2.5.4

### Patch Changes

- [#330](https://github.com/workleap/wl-squide/pull/330) [`09ffa31`](https://github.com/workleap/wl-squide/commit/09ffa3167a82182e7f7793615402ce8b6702f77b) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Bump versions to test OIDC publishing

- Updated dependencies [[`09ffa31`](https://github.com/workleap/wl-squide/commit/09ffa3167a82182e7f7793615402ce8b6702f77b)]:
  - @squide/core@6.1.2

## 2.5.3

### Patch Changes

- [#318](https://github.com/workleap/wl-squide/pull/318) [`6bf9a65`](https://github.com/workleap/wl-squide/commit/6bf9a65f222a6201655cf1ee525e94211aabe0b7) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependency versions.

- Updated dependencies [[`6bf9a65`](https://github.com/workleap/wl-squide/commit/6bf9a65f222a6201655cf1ee525e94211aabe0b7)]:
  - @squide/core@6.1.1

## 2.5.2

### Patch Changes

- Updated dependencies [[`bea660b`](https://github.com/workleap/wl-squide/commit/bea660bf827dd123a52f6062a7be8865dc99055b)]:
  - @squide/core@6.1.0

## 2.5.1

### Patch Changes

- Updated dependencies [[`cc52e8b`](https://github.com/workleap/wl-squide/commit/cc52e8bfbe9d3d215f51d12755743f17c0c69772)]:
  - @squide/core@6.0.0

## 2.5.0

### Minor Changes

- [#302](https://github.com/workleap/wl-squide/pull/302) [`e55c60b`](https://github.com/workleap/wl-squide/commit/e55c60b8e5a3c258a5a7d667ce990f73021f8e5d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Improved the logging API.

### Patch Changes

- Updated dependencies [[`e55c60b`](https://github.com/workleap/wl-squide/commit/e55c60b8e5a3c258a5a7d667ce990f73021f8e5d)]:
  - @squide/core@5.7.0

## 2.4.0

### Minor Changes

- [#300](https://github.com/workleap/wl-squide/pull/300) [`8d3eae2`](https://github.com/workleap/wl-squide/commit/8d3eae2ee4dc0331f83047e3ef313c6abb15dc3f) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Improved the logging API.

### Patch Changes

- Updated dependencies [[`8d3eae2`](https://github.com/workleap/wl-squide/commit/8d3eae2ee4dc0331f83047e3ef313c6abb15dc3f)]:
  - @squide/core@5.6.0

## 2.3.0

### Minor Changes

- [#296](https://github.com/workleap/wl-squide/pull/296) [`a143988`](https://github.com/workleap/wl-squide/commit/a1439886931f773ff8e71fa8dd8b429108525717) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.

### Patch Changes

- Updated dependencies [[`a143988`](https://github.com/workleap/wl-squide/commit/a1439886931f773ff8e71fa8dd8b429108525717)]:
  - @squide/core@5.5.0

## 2.2.9

### Patch Changes

- [#289](https://github.com/workleap/wl-squide/pull/289) [`ee6f7d5`](https://github.com/workleap/wl-squide/commit/ee6f7d52ff6afa8ac757770c89b39978c40a70bc) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fixed Honeycomb telemetry traces when data fetching fails and bumped dependencies versions.

- Updated dependencies [[`ee6f7d5`](https://github.com/workleap/wl-squide/commit/ee6f7d52ff6afa8ac757770c89b39978c40a70bc)]:
  - @squide/core@5.4.9

## 2.2.8

### Patch Changes

- [#271](https://github.com/workleap/wl-squide/pull/271) [`fdc2dc5`](https://github.com/workleap/wl-squide/commit/fdc2dc5acb7ebec0d3b22f1a29ff1801930f1f57) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.

- Updated dependencies [[`fdc2dc5`](https://github.com/workleap/wl-squide/commit/fdc2dc5acb7ebec0d3b22f1a29ff1801930f1f57)]:
  - @squide/core@5.4.8

## 2.2.7

### Patch Changes

- [#269](https://github.com/workleap/wl-squide/pull/269) [`d3a3fa0`](https://github.com/workleap/wl-squide/commit/d3a3fa05fe75db24a128263e8a2df57233769298) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.

- Updated dependencies [[`d3a3fa0`](https://github.com/workleap/wl-squide/commit/d3a3fa05fe75db24a128263e8a2df57233769298)]:
  - @squide/core@5.4.7

## 2.2.6

### Patch Changes

- [#256](https://github.com/workleap/wl-squide/pull/256) [`6c4ee56`](https://github.com/workleap/wl-squide/commit/6c4ee5624141a51d6eefd99dd053e81eb5b08e5c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Update dependencies versioning to the new Workleap's internal guidelines.

- Updated dependencies [[`6c4ee56`](https://github.com/workleap/wl-squide/commit/6c4ee5624141a51d6eefd99dd053e81eb5b08e5c)]:
  - @squide/core@5.4.6

## 2.2.5

### Patch Changes

- Updated dependencies [[`9429e98`](https://github.com/workleap/wl-squide/commit/9429e98382f054ed560297aa8a1e54caba40db4f)]:
  - @squide/core@5.4.5

## 2.2.4

### Patch Changes

- Updated dependencies [[`ddcb106`](https://github.com/workleap/wl-squide/commit/ddcb106a6b3522e09d1ab92c417725185ffc64e6)]:
  - @squide/core@5.4.4

## 2.2.3

### Patch Changes

- [#244](https://github.com/workleap/wl-squide/pull/244) [`5d13eb0`](https://github.com/workleap/wl-squide/commit/5d13eb038a724b499b820d7e1dc864c87954510b) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.

- Updated dependencies [[`5d13eb0`](https://github.com/workleap/wl-squide/commit/5d13eb038a724b499b820d7e1dc864c87954510b)]:
  - @squide/core@5.4.3

## 2.2.2

### Patch Changes

- [#231](https://github.com/workleap/wl-squide/pull/231) [`3c6bce0`](https://github.com/workleap/wl-squide/commit/3c6bce0cd559d0b8517d644661b6fb2b818ab2f6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Packages now includes source code and sourcemap.

- Updated dependencies [[`3c6bce0`](https://github.com/workleap/wl-squide/commit/3c6bce0cd559d0b8517d644661b6fb2b818ab2f6)]:
  - @squide/core@5.4.2

## 2.2.1

### Patch Changes

- [#221](https://github.com/workleap/wl-squide/pull/221) [`8411080`](https://github.com/workleap/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix deferred registrations.

- Updated dependencies [[`8411080`](https://github.com/workleap/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925)]:
  - @squide/core@5.4.1

## 2.2.0

### Minor Changes

- [#219](https://github.com/workleap/wl-squide/pull/219) [`25cb482`](https://github.com/workleap/wl-squide/commit/25cb482779ee280f3f7109de4607b92dcfeef7f3) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Now dispatching events to enable instrumentation packages for observability platforms.

### Patch Changes

- Updated dependencies [[`25cb482`](https://github.com/workleap/wl-squide/commit/25cb482779ee280f3f7109de4607b92dcfeef7f3)]:
  - @squide/core@5.4.0

## 2.1.1

### Patch Changes

- Updated dependencies [[`8ee26fd`](https://github.com/workleap/wl-squide/commit/8ee26fd6ab7126bacf3dec900629fbd045dfd180)]:
  - @squide/core@5.3.0

## 2.1.0

### Minor Changes

- [#204](https://github.com/workleap/wl-squide/pull/204) [`d3f7b9c`](https://github.com/workleap/wl-squide/commit/d3f7b9c6aa80249cd898916f6315ea27c4526812) Thanks [@patricklafrance](https://github.com/patricklafrance)! - The `registerNavigationItem` function now accepts a `sectionId` option to nest the item under a specific navigation section:

  ```ts
  runtime.registerNavigationItem(
    {
      $id: "link",
      $label: "Link",
      to: "/link",
    },
    {
      sectionId: "some-section",
    }
  );
  ```

### Patch Changes

- Updated dependencies [[`d3f7b9c`](https://github.com/workleap/wl-squide/commit/d3f7b9c6aa80249cd898916f6315ea27c4526812)]:
  - @squide/core@5.2.0

## 2.0.2

### Patch Changes

- Updated dependencies [[`98e4839`](https://github.com/workleap/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
  - @squide/core@5.1.0

## 2.0.1

### Patch Changes

- [#191](https://github.com/workleap/wl-squide/pull/191) [`2b62c53`](https://github.com/workleap/wl-squide/commit/2b62c539b0f3123cb47475566181e0b446ea6b40) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated packages description.

- Updated dependencies [[`2b62c53`](https://github.com/workleap/wl-squide/commit/2b62c539b0f3123cb47475566181e0b446ea6b40)]:
  - @squide/core@5.0.1

## 2.0.0

### Major Changes

- [#182](https://github.com/workleap/wl-squide/pull/182) [`58cf066`](https://github.com/workleap/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - ## Firefly v9

  This major version of @squide/firefly introduces TanStack Query as the official library for fetching the global data of a Squide's application and features a complete rewrite of the AppRouter component, which now uses a state machine to manage the application's bootstrapping flow.

  Prior to v9, Squide applications couldn't use TanStack Query to fetch global data, making it challenging for Workleap's applications to keep their global data in sync with the server state. With v9, applications can now leverage custom wrappers of the useQueries hook to fetch and keep their global data up-to-date with the server state. Additionally, the new deferred registrations update feature allows applications to even keep their conditional navigation items in sync with the server state.

  Finally, with v9, Squide's philosophy has evolved. We used to describe Squide as a shell for federated applications. Now, we refer to Squide as a shell for modular applications. After playing with Squide's local module feature for a while, we discovered that Squide offers significant value even for non-federated applications, which triggered this shift in philosophy.

  > For a full breakdown of the changres and a migration procedure, read the following [documentation](https://workleap.github.io/wl-squide/guides/migrate-to-firefly-v9/).

  ## Breaking changes

  - The `useAreModulesRegistered` hook has been removed, use the `useIsBootstrapping` hook instead.
  - The `useAreModulesReady` hook has been removed, use the `useIsBootstrapping` hook instead.
  - The `useIsMswStarted` hook has been removed, use the `useIsBootstrapping` hook instead.
  - The `completeModuleRegistrations` function as been removed use the `useDeferredRegistrations` hook instead.
  - The `completeLocalModulesRegistrations` function has been removed use the `useDeferredRegistrations` hook instead.
  - The `completeRemoteModuleRegistrations` function has been removed use the `useDeferredRegistrations` hook instead.
  - The `useSession` hook has been removed, define your own React context instead.
  - The `useIsAuthenticated` hook has been removed, define your own React context instead.
  - The `sessionAccessor` option has been removed from the `FireflyRuntime` options, define your own React context instead.
  - Removed supports for deferred routes.
  - Plugin's constructor now requires a runtime instance argument.
  - Plugins now registers with a factory function.
  - Full rewrite of the `AppRouter` component.

  ## Renamed

  - The `setMswAsStarted` function has been renamed to `setMswIsReady`.

  ## Others

  - The `@squide/firefly` package now takes a peerDependency on `@tanstack/react-query`.
  - The `@squide/firefly` package doesn't takes a peerDependency on `react-error-boundary` anymore.

  ## New hooks and functions

  - A new `useIsBoostrapping` hook is now available.
  - A new `useDeferredRegistrations` hook is now available.
  - A new `usePublicDataQueries` hook is now available.
  - A new `useProtectedDataQueries` hook is now available.
  - A new `isGlobalDataQueriesError` function is now available.

  ## Improvements

  - Deferred registration functions now always receive a `data` argument.
  - Deferred registration functions now receives a new `operation` argument.
  - Navigation items now include a `$canRender` option, enabling modules to control whether a navigation item should be rendered.
  - New `$key` option for navigation items.

  For more details about the changes and a migration procedure, read the following [documentation](https://workleap.github.io/wl-squide/guides/migrate-to-firefly-v9/).

### Patch Changes

- Updated dependencies [[`58cf066`](https://github.com/workleap/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]:
  - @squide/core@5.0.0

## 1.1.5

### Patch Changes

- Updated dependencies [[`89ace29`](https://github.com/workleap/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283)]:
  - @squide/core@4.0.0

## 1.1.4

### Patch Changes

- [#154](https://github.com/workleap/wl-squide/pull/154) [`e440515`](https://github.com/workleap/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Two i18next instances cannot be registered anymore with the same key.

- Updated dependencies [[`e440515`](https://github.com/workleap/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176)]:
  - @squide/core@3.4.0

## 1.1.3

### Patch Changes

- [#152](https://github.com/workleap/wl-squide/pull/152) [`d27fe71`](https://github.com/workleap/wl-squide/commit/d27fe717f899e395c3f01af86aac3e015159d719) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependency versions.

- Updated dependencies [[`d27fe71`](https://github.com/workleap/wl-squide/commit/d27fe717f899e395c3f01af86aac3e015159d719)]:
  - @squide/core@3.3.2

## 1.1.2

### Patch Changes

- Updated dependencies [[`d091846`](https://github.com/workleap/wl-squide/commit/d091846502bed6b783b69ab8eff7ae36d8e25449)]:
  - @squide/core@3.3.1

## 1.1.1

### Patch Changes

- Updated dependencies [[`39d0bbe4`](https://github.com/workleap/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f)]:
  - @squide/core@3.3.0

## 1.1.0

### Minor Changes

- [#140](https://github.com/workleap/wl-squide/pull/140) [`6eaf4ac3`](https://github.com/workleap/wl-squide/commit/6eaf4ac3f6ac88b62045ce280562a5887589026b) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Now throwing an Error when an instance is registered with an existing key

## 1.0.4

### Patch Changes

- [`2f077119`](https://github.com/workleap/wl-squide/commit/2f0771194fd2034602955b8d3f72e1cc43e20e64) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Added a check to the `changeLanguage` function to prevent updating the language when the language argument value is the current language.

## 1.0.3

### Patch Changes

- Updated dependencies [[`1cda1be`](https://github.com/workleap/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e)]:
  - @squide/core@3.2.1

## 1.0.2

### Patch Changes

- Updated dependencies [[`7caa44b`](https://github.com/workleap/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d)]:
  - @squide/core@3.2.0

## 1.0.1

### Patch Changes

- Updated dependencies [[`4c3b6f1`](https://github.com/workleap/wl-squide/commit/4c3b6f1929364844dda6c1190fc45c3b037e8df9)]:
  - @squide/core@3.1.1

## 1.0.0

### Major Changes

- [#115](https://github.com/workleap/wl-squide/pull/115) [`568255a`](https://github.com/workleap/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This a new package to support [i18next](https://www.i18next.com/) for a federated application.

  It includes:

  - `i18nextPlugin`
  - `useChangeLanguage`
  - `useCurrentLanguage`
  - `useI18nextInstance`
  - `I18nextNavigationLabel`

### Patch Changes

- Updated dependencies [[`568255a`](https://github.com/workleap/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4)]:
  - @squide/core@3.1.0
