Skip to content

Commit

Permalink
ci(changesets): version packages (#94)
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] authored Oct 19, 2023
1 parent d66a196 commit f56e86e
Show file tree
Hide file tree
Showing 14 changed files with 180 additions and 150 deletions.
6 changes: 0 additions & 6 deletions .changeset/healthy-cobras-sell.md

This file was deleted.

30 changes: 0 additions & 30 deletions .changeset/kind-papayas-walk.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/loud-ways-laugh.md

This file was deleted.

90 changes: 0 additions & 90 deletions .changeset/stale-birds-attend.md

This file was deleted.

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

## 2.0.0

### Major Changes

- [#93](https://github.com/gsoft-inc/wl-squide/pull/93) [`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180) Thanks [@patricklafrance](https://github.com/patricklafrance)! - ### Addition

- Added support for plugins to Squide runtime.
- Added a `parentName` option to `registerRoute`.

### Updated

- The `layoutPath` option of `registerRoute` has been renamed to `parentPath`.
- `registerNavigationItems` has been renamed to `registerNavigationItem` and now only accepts a single item by call.
- A navigation item `label`, `additionalProps` and `priority` fields has been renamed to `$label`, `$additionalProps` and `$priority`. This is part of an effort to ensure no future release of [React Router](https://reactrouter.com/en/main) introduced new properties with names that are conflicting with Squide.
- Local modules `register` function can now be `async`. This is useful if you want for example to conditionally to a dynamic `import` to load a dependency such as [msw](https://www.npmjs.com/package/msw).

### Removed

- Removed the Service features at it was confusing and not that helpful. We recommend using React context instead to share services with the modules.

## 1.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": "1.1.1",
"version": "2.0.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.5

### Patch Changes

- Updated dependencies [[`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180)]:
- @squide/core@2.0.0

## 1.0.4

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

## 2.0.0

### Major Changes

- [#93](https://github.com/gsoft-inc/wl-squide/pull/93) [`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This is a new package to help with [Mock Service Worker](https://mswjs.io/) in a federated application.

It helps to register their request handlers:

**In module:**

```ts
const mswPlugin = getMswPlugin(runtime);
mswPlugin.registerRequestHandlers(requestHandlers);
```

**In the host app:**

```ts
import("../mocks/browser.ts").then(({ startMsw }) => {
startMsw(mswPlugin.requestHandlers);

setMswAsStarted();
});
```

And offer an utility to wait for MSW to be started before rendering the app:

```ts
const isMswStarted = useIsMswStarted(process.env.USE_MSW);
```

### Patch Changes

- Updated dependencies [[`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180)]:
- @squide/core@2.0.0
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": "1.0.0",
"version": "2.0.0",
"description": "Add support for MSW to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
99 changes: 99 additions & 0 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,104 @@
# @squide/react-router

## 2.0.0

### Major Changes

- [#93](https://github.com/gsoft-inc/wl-squide/pull/93) [`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180) Thanks [@patricklafrance](https://github.com/patricklafrance)! - ### Addition

- Added the `$visibility` field to the `Route` type. This new field indicates that the route doesn't depend on the initial global data (authenticated data) and can be rendered before that data is loaded. The accepted values are `public` and `protected`. By default, every route is `protected`.
- Added the `$name` field to the `Route` type. This new field allow a nested route to be named so other routes can be configured to be nested under this route with the `parentName` option.
- Added a `ManagedRoutes` placeholder, allowing the application to indicates where managed routes should be rendered. A managed route is a route that is neither hoisted or nested with a `parentPath` or `parentName` option.
- Added the `useRouteMatch` and `useIsRouteMatchProtected` hooks.

### Updated

- `registerRoutes` has been renamed to `registerRoute` and now only accepts a single route by call.
- Moved the `hoist` option from the route definition to an option of `registerRoute`.

Before:

```tsx
registerRoute({
hoist: true,
path: "/foo",
element: <div>Foo</div>,
});
```

After:

```tsx
registerRoute(
{
path: "/foo",
element: <div>Foo</div>,
},
{
hoist: true,
}
);
```

- Route indexes are now created for nested routes registered in a single block. Given the following registration block:

```tsx
runtime.registerRoutes([
{
path: "/root",
element: <div>Hello</div>,
children: [
{
path: "/root/another-level",
element: <div>You!</div>,
children: [
{
path: "/root/another-level/deeply-nested-route",
element: <div>Hello from nested!</div>,
},
],
},
],
},
]);
```

Before the changes, only an index for the `"/root"` route would have been created. This means that consumers could add nested routes under `"/root"` route with the `parentPath` option but couldn't nest routes under the `"/root/another-level"` and `"/root/another-level/deeply-nested-route"` with the `parentPath` option because there was no indexes for these routes.

Now the following is possible:

```tsx
runtime.registerRoutes(
[
{
path: "/foo",
element: <div>Hello</div>,
},
],
{ parentPath: "/root/another-level" }
);

runtime.registerRoutes(
[
{
path: "/foo",
element: <div>Hello</div>,
},
],
{ parentPath: "/root/another-level/deeply-nested-route" }
);
```

### Removed

- The `RootRoute` has been removed, there's now only a single `Route` type.
- The `useHoistedRoutes` has been removed. Hoisting is now supported by default with the `hoist` option of the `registerRoute` function and the `ManagedRoutes` placeholder.

### Patch Changes

- Updated dependencies [[`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180)]:
- @squide/core@2.0.0

## 1.1.1

### 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": "1.1.1",
"version": "2.0.0",
"description": "Add support for React Router to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
12 changes: 12 additions & 0 deletions packages/webpack-module-federation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @squide/webpack-module-federation

## 2.0.0

### Major Changes

- [#93](https://github.com/gsoft-inc/wl-squide/pull/93) [`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - The devserver error overlay is now disabled by default for the remote modules to prevent them from stacking on top of the host application error overlay.
- Remote modules `register` functions can now be `async`.

### Patch Changes

- Updated dependencies [[`d66a196`](https://github.com/gsoft-inc/wl-squide/commit/d66a196db9346803e1c996ef64089eda9aeff180)]:
- @squide/core@2.0.0

## 1.0.5

### 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": "1.0.5",
"version": "2.0.0",
"description": "Add support for Module Federation to @squide federated application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit f56e86e

Please sign in to comment.