Skip to content

Commit

Permalink
ci(changesets): version packages (#132)
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 Jan 16, 2024
1 parent 7caa44b commit b9925c8
Show file tree
Hide file tree
Showing 19 changed files with 154 additions and 102 deletions.
5 changes: 0 additions & 5 deletions .changeset/afraid-mirrors-hunt.md

This file was deleted.

72 changes: 0 additions & 72 deletions .changeset/polite-geckos-occur.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/six-teachers-hunt.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @squide/core

## 3.2.0

### Minor Changes

- [#131](https://github.com/gsoft-inc/wl-squide/pull/131) [`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - Added a `usePlugin` hook.

## 3.1.1

### Patch 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": "3.1.1",
"version": "3.2.0",
"description": "The core package of @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/fakes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @squide/fakes

## 1.0.12

### Patch Changes

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

## 1.0.11

### 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.11",
"version": "1.0.12",
"description": "Fake implementations to facilitate the development of federated modules in isolation with @squide.",
"license": "Apache-2.0",
"repository": {
Expand Down
82 changes: 82 additions & 0 deletions packages/firefly/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,87 @@
# @squide/firefly

## 4.0.0

### Major Changes

- [#131](https://github.com/gsoft-inc/wl-squide/pull/131) [`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - The `AppRouter` component now requires to define a `RouterProvider` as a child. This change has been made to provide more flexibility on the consumer side about the definition of the React Router router.

Before:

```tsx
<AppRouter
fallbackElement={...}
errorElement={...}
waitForMsw={...}
/>
```

Now:

```tsx
<AppRouter
fallbackElement={...}
errorElement={...}
waitForMsw={...}
>
{(routes, providerProps) => (
<RouterProvider router={createBrowserRouter(routes)} {...providerProps} />
)}
</AppRouter>
```

- When in development and using React strict mode, the public and protected handler can be called twice. This issue highlighted that the `AppRouter` component doesn't equipe correctly the handlers to dispose of previous HTTP requests if they are called multiple times because of re-renders. Therefore, the handlers now receives an [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that should be forwared to the HTTP client initiating the fetch request.
- The fix also requires the consumer to provide new properties (`isPublicDataLoaded` and `isProtectedDataLoaded`) indicating whether or not the public and/or protected data has been loaded.

```tsx
async function fetchPublicData(setFeatureFlags: (featureFlags: FeatureFlags) => void, signal: AbortSignal) {
try {
const response = await fetch("/api/feature-flags", {
signal
});
if (response.ok) {
const data = await response.json();
setFeatureFlags(data);
}
} catch (error: unknown) {
if (!signal.aborted) {
throw error;
}
}
}
const [featureFlags, setFeatureFlags] = useState<FeatureFlags>();
const handleLoadPublicData = useCallback((signal: AbortSignal) => {
return fetchPublicData(setFeatureFlags, signal);
}, []);
<AppRouter
onLoadPublicData={handleLoadPublicData}
isPublicDataLoaded={!!featureFlags}
fallbackElement={...}
errorElement={...}
waitForMsw={...}
>
{(routes, providerProps) => (
<RouterProvider router={createBrowserRouter(routes)} {...providerProps} />
)}
</AppRouter>
```

- Fixed an issue where the deferred registrations could be completed before the protected data has been loaded.

### Patch Changes

- Updated dependencies [[`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d), [`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d)]:
- @squide/core@3.2.0
- @squide/react-router@4.0.0
- @squide/msw@2.0.8
- @squide/webpack-module-federation@3.0.3
- @squide/webpack-configs@1.1.2

## 3.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/firefly/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/firefly",
"author": "Workleap",
"version": "3.0.3",
"version": "4.0.0",
"description": "Helpers to facilitate the creation of a shell package with Squide firefly technology stack.",
"license": "Apache-2.0",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/i18next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @squide/i18next

## 1.0.2

### Patch Changes

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

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/i18next/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/i18next",
"author": "Workleap",
"version": "1.0.1",
"version": "1.0.2",
"description": "Add support for i18next to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/msw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @squide/msw

## 2.0.8

### Patch Changes

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

## 2.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/msw/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/msw",
"author": "Workleap",
"version": "2.0.7",
"version": "2.0.8",
"description": "Add support for MSW to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
23 changes: 23 additions & 0 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @squide/react-router

## 4.0.0

### Major Changes

- [#131](https://github.com/gsoft-inc/wl-squide/pull/131) [`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - To be consistent with the other API of Squide, the `useNavigationItems` hook now accept an object literal of options rather than an optional `menuId` argument.

Before:

```tsx
const items = useNavigationItems("my-custom-menu");
```

Now:

```tsx
const items = useNavigationItems({ menuId: "my-custom-menu" });
```

### Patch Changes

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

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/react-router",
"author": "Workleap",
"version": "3.0.2",
"version": "4.0.0",
"description": "Add support for React Router to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/webpack-configs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @squide/webpack-configs

## 1.1.2

### Patch Changes

- Updated dependencies []:
- @squide/webpack-module-federation@3.0.3

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-configs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/webpack-configs",
"author": "Workleap",
"version": "1.1.1",
"version": "1.1.2",
"description": "Utilities to configure webpack with a @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/webpack-module-federation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @squide/webpack-module-federation

## 3.0.3

### Patch Changes

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

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-module-federation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/webpack-module-federation",
"author": "Workleap",
"version": "3.0.2",
"version": "3.0.3",
"description": "Add support for Module Federation to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit b9925c8

Please sign in to comment.