From 32dcd10ca3eb4a9b87f3338dfa0babe980eb18e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:13:32 -0400 Subject: [PATCH] ci(changesets): version packages (#183) Co-authored-by: github-actions[bot] --- .changeset/plenty-suits-roll.md | 63 ------------------ packages/core/CHANGELOG.md | 56 ++++++++++++++++ packages/core/package.json | 2 +- packages/fakes/CHANGELOG.md | 61 ++++++++++++++++++ packages/fakes/package.json | 2 +- packages/firefly-webpack-configs/CHANGELOG.md | 61 ++++++++++++++++++ packages/firefly-webpack-configs/package.json | 2 +- packages/firefly/CHANGELOG.md | 64 +++++++++++++++++++ packages/firefly/package.json | 2 +- packages/i18next/CHANGELOG.md | 61 ++++++++++++++++++ packages/i18next/package.json | 2 +- packages/module-federation/CHANGELOG.md | 61 ++++++++++++++++++ packages/module-federation/package.json | 2 +- packages/msw/CHANGELOG.md | 61 ++++++++++++++++++ packages/msw/package.json | 2 +- packages/react-router/CHANGELOG.md | 61 ++++++++++++++++++ packages/react-router/package.json | 2 +- packages/webpack-configs/CHANGELOG.md | 56 ++++++++++++++++ packages/webpack-configs/package.json | 2 +- .../getting-started/apps/host/package.json | 4 +- .../apps/local-module/package.json | 2 +- .../apps/remote-module/package.json | 4 +- 22 files changed, 556 insertions(+), 77 deletions(-) delete mode 100644 .changeset/plenty-suits-roll.md diff --git a/.changeset/plenty-suits-roll.md b/.changeset/plenty-suits-roll.md deleted file mode 100644 index 05a9f37a6..000000000 --- a/.changeset/plenty-suits-roll.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -"@squide/core": major -"@squide/fakes": major -"@squide/firefly": major -"@squide/firefly-webpack-configs": major -"@squide/i18next": major -"@squide/module-federation": major -"@squide/msw": major -"@squide/react-router": major -"@squide/webpack-configs": major ---- - -## 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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index eef5437aa..e14b14c74 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,61 @@ # @squide/core +## 5.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + ## 4.0.0 ### Major Changes diff --git a/packages/core/package.json b/packages/core/package.json index be607b780..68f99cf35 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@squide/core", "author": "Workleap", - "version": "4.0.0", + "version": "5.0.0", "description": "The core package of @squide federated application shell.", "license": "Apache-2.0", "repository": { diff --git a/packages/fakes/CHANGELOG.md b/packages/fakes/CHANGELOG.md index 9c331071a..b10b16d0e 100644 --- a/packages/fakes/CHANGELOG.md +++ b/packages/fakes/CHANGELOG.md @@ -1,5 +1,66 @@ # @squide/fakes +## 2.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/core@5.0.0 + ## 1.0.18 ### Patch Changes diff --git a/packages/fakes/package.json b/packages/fakes/package.json index f9c7b9e21..d6fd37df3 100644 --- a/packages/fakes/package.json +++ b/packages/fakes/package.json @@ -1,7 +1,7 @@ { "name": "@squide/fakes", "author": "Workleap", - "version": "1.0.18", + "version": "2.0.0", "description": "Fake implementations to facilitate the development of federated modules in isolation with @squide.", "license": "Apache-2.0", "repository": { diff --git a/packages/firefly-webpack-configs/CHANGELOG.md b/packages/firefly-webpack-configs/CHANGELOG.md index d98fd9c7c..570b79356 100644 --- a/packages/firefly-webpack-configs/CHANGELOG.md +++ b/packages/firefly-webpack-configs/CHANGELOG.md @@ -1,5 +1,66 @@ # @squide/firefly-webpack-configs +## 4.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/webpack-configs@4.0.0 + ## 3.0.0 ### Major Changes diff --git a/packages/firefly-webpack-configs/package.json b/packages/firefly-webpack-configs/package.json index db5c1cf9c..d4b03c152 100644 --- a/packages/firefly-webpack-configs/package.json +++ b/packages/firefly-webpack-configs/package.json @@ -1,7 +1,7 @@ { "name": "@squide/firefly-webpack-configs", "author": "Workleap", - "version": "3.0.0", + "version": "4.0.0", "description": "Webpack configuration helpers for the Squide firefly technology stack.", "license": "Apache-2.0", "repository": { diff --git a/packages/firefly/CHANGELOG.md b/packages/firefly/CHANGELOG.md index f8ffbe46d..cbc2d28e2 100644 --- a/packages/firefly/CHANGELOG.md +++ b/packages/firefly/CHANGELOG.md @@ -1,5 +1,69 @@ # @squide/firefly +## 9.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/core@5.0.0 + - @squide/module-federation@6.0.0 + - @squide/msw@3.0.0 + - @squide/react-router@6.0.0 + ## 8.0.0 ### Major Changes diff --git a/packages/firefly/package.json b/packages/firefly/package.json index e2ab34cd5..00de3dad2 100644 --- a/packages/firefly/package.json +++ b/packages/firefly/package.json @@ -1,7 +1,7 @@ { "name": "@squide/firefly", "author": "Workleap", - "version": "8.0.0", + "version": "9.0.0", "description": "Helpers to facilitate the creation of an application with the Squide firefly technology stack.", "license": "Apache-2.0", "repository": { diff --git a/packages/i18next/CHANGELOG.md b/packages/i18next/CHANGELOG.md index 06a7c6dd0..5ccf95055 100644 --- a/packages/i18next/CHANGELOG.md +++ b/packages/i18next/CHANGELOG.md @@ -1,5 +1,66 @@ # @squide/i18next +## 2.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/core@5.0.0 + ## 1.1.5 ### Patch Changes diff --git a/packages/i18next/package.json b/packages/i18next/package.json index c0e5fc8b7..9db749c15 100644 --- a/packages/i18next/package.json +++ b/packages/i18next/package.json @@ -1,7 +1,7 @@ { "name": "@squide/i18next", "author": "Workleap", - "version": "1.1.5", + "version": "2.0.0", "description": "Add support for i18next to @squide federated application shell.", "license": "Apache-2.0", "repository": { diff --git a/packages/module-federation/CHANGELOG.md b/packages/module-federation/CHANGELOG.md index cb82a2bb7..1d3111273 100644 --- a/packages/module-federation/CHANGELOG.md +++ b/packages/module-federation/CHANGELOG.md @@ -1,5 +1,66 @@ # @squide/module-federation +## 6.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/core@5.0.0 + ## 5.0.0 ### Major Changes diff --git a/packages/module-federation/package.json b/packages/module-federation/package.json index ead7b3e38..1ef13740d 100644 --- a/packages/module-federation/package.json +++ b/packages/module-federation/package.json @@ -1,7 +1,7 @@ { "name": "@squide/module-federation", "author": "Workleap", - "version": "5.0.0", + "version": "6.0.0", "description": "Add support for Module Federation to @squide federated application shell.", "license": "Apache-2.0", "repository": { diff --git a/packages/msw/CHANGELOG.md b/packages/msw/CHANGELOG.md index 832986b9c..fb655b6e6 100644 --- a/packages/msw/CHANGELOG.md +++ b/packages/msw/CHANGELOG.md @@ -1,5 +1,66 @@ # @squide/msw +## 3.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/core@5.0.0 + ## 2.0.14 ### Patch Changes diff --git a/packages/msw/package.json b/packages/msw/package.json index 40453000f..90f75e418 100644 --- a/packages/msw/package.json +++ b/packages/msw/package.json @@ -1,7 +1,7 @@ { "name": "@squide/msw", "author": "Workleap", - "version": "2.0.14", + "version": "3.0.0", "description": "Add support for MSW to @squide federated application shell.", "license": "Apache-2.0", "repository": { diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index f319dfd7b..f6bb67f5b 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,66 @@ # @squide/react-router +## 6.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + +### Patch Changes + +- Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]: + - @squide/core@5.0.0 + ## 5.0.0 ### Major Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 4381da0c3..a480b6248 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,7 +1,7 @@ { "name": "@squide/react-router", "author": "Workleap", - "version": "5.0.0", + "version": "6.0.0", "description": "Add support for React Router to @squide federated application shell.", "license": "Apache-2.0", "repository": { diff --git a/packages/webpack-configs/CHANGELOG.md b/packages/webpack-configs/CHANGELOG.md index 4f6ca8833..6e5dbbf0f 100644 --- a/packages/webpack-configs/CHANGELOG.md +++ b/packages/webpack-configs/CHANGELOG.md @@ -1,5 +1,61 @@ # @squide/webpack-configs +## 4.0.0 + +### Major Changes + +- [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/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://gsoft-inc.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://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/). + ## 3.0.0 ### Major Changes diff --git a/packages/webpack-configs/package.json b/packages/webpack-configs/package.json index 935c87367..f2d888069 100644 --- a/packages/webpack-configs/package.json +++ b/packages/webpack-configs/package.json @@ -1,7 +1,7 @@ { "name": "@squide/webpack-configs", "author": "Workleap", - "version": "3.0.0", + "version": "4.0.0", "description": "Utilities to configure webpack with a @squide federated application shell.", "license": "Apache-2.0", "repository": { diff --git a/templates/getting-started/apps/host/package.json b/templates/getting-started/apps/host/package.json index ecef4886d..a99ee9af8 100644 --- a/templates/getting-started/apps/host/package.json +++ b/templates/getting-started/apps/host/package.json @@ -10,7 +10,7 @@ "build": "webpack --config webpack.build.js" }, "devDependencies": { - "@squide/firefly-webpack-configs": "3.0.0", + "@squide/firefly-webpack-configs": "4.0.0", "@swc/core": "1.7.0", "@swc/helpers": "0.5.12", "@types/react": "18.3.3", @@ -29,7 +29,7 @@ }, "dependencies": { "@getting-started/local-module": "workspace:*", - "@squide/firefly": "8.0.0", + "@squide/firefly": "9.0.0", "react": "18.3.1", "react-dom": "18.3.1", "react-router-dom": "6.25.1" diff --git a/templates/getting-started/apps/local-module/package.json b/templates/getting-started/apps/local-module/package.json index 99bbc77f2..66092603a 100644 --- a/templates/getting-started/apps/local-module/package.json +++ b/templates/getting-started/apps/local-module/package.json @@ -26,7 +26,7 @@ "typescript": "5.5.3" }, "dependencies": { - "@squide/firefly": "8.0.0", + "@squide/firefly": "9.0.0", "react": "18.3.1", "react-dom": "18.3.1", "react-router-dom": "6.25.1" diff --git a/templates/getting-started/apps/remote-module/package.json b/templates/getting-started/apps/remote-module/package.json index c14265edf..80ee99259 100644 --- a/templates/getting-started/apps/remote-module/package.json +++ b/templates/getting-started/apps/remote-module/package.json @@ -10,7 +10,7 @@ "build": "webpack --config webpack.build.js" }, "devDependencies": { - "@squide/firefly-webpack-configs": "3.0.0", + "@squide/firefly-webpack-configs": "4.0.0", "@swc/core": "1.7.0", "@swc/helpers": "0.5.12", "@types/react": "18.3.3", @@ -28,7 +28,7 @@ "webpack-dev-server": "5.0.4" }, "dependencies": { - "@squide/firefly": "8.0.0", + "@squide/firefly": "9.0.0", "react": "18.3.1", "react-dom": "18.3.1", "react-router-dom": "6.25.1"