Skip to content

Commit

Permalink
ci(changesets): version packages (#183)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Aug 23, 2024
1 parent 58cf066 commit 32dcd10
Show file tree
Hide file tree
Showing 22 changed files with 556 additions and 77 deletions.
63 changes: 0 additions & 63 deletions .changeset/plenty-suits-roll.md

This file was deleted.

56 changes: 56 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
61 changes: 61 additions & 0 deletions packages/fakes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/fakes/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
61 changes: 61 additions & 0 deletions packages/firefly-webpack-configs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/firefly-webpack-configs/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading

0 comments on commit 32dcd10

Please sign in to comment.