Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changeset: New Version #196

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 0 additions & 75 deletions .changeset/brave-eagles-learn.md

This file was deleted.

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

## 5.1.0

### Minor Changes

- [#195](https://github.com/gsoft-inc/wl-squide/pull/195) [`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Replaced the `ManagedRoutes` placeholder by the `PublicRoutes` and `ProtectedRoutes` placeholder.

Before:

```tsx
import {
ManagedRoutes,
type ModuleRegisterFunction,
type FireflyRuntime,
} from "@squide/firefly";
import { RootLayout } from "./RootLayout.tsx";

export const registerHost: ModuleRegisterFunction<FireflyRuntime> = (
runtime
) => {
runtime.registerRoute(
{
element: <RootLayout />,
children: [ManagedRoutes],
},
{
hoist: true,
}
);
};
```

Now:

```tsx
import {
PublicRoutes,
ProtectedRoutes,
type ModuleRegisterFunction,
type FireflyRuntime,
} from "@squide/firefly";
import { RootLayout } from "./RootLayout.tsx";

export const registerHost: ModuleRegisterFunction<FireflyRuntime> = (
runtime
) => {
runtime.registerRoute(
{
element: <RootLayout />,
children: [PublicRoutes, ProtectedRoutes],
},
{
hoist: true,
}
);
};
```

Or:

```tsx
import {
PublicRoutes,
ProtectedRoutes,
type ModuleRegisterFunction,
type FireflyRuntime,
} from "@squide/firefly";
import { RootLayout } from "./RootLayout.tsx";

export const registerHost: ModuleRegisterFunction<FireflyRuntime> = (
runtime
) => {
runtime.registerRoute(
{
element: <RootLayout />,
children: [
PublicRoutes,
{
element: <AuthenticationBoundary />,
children: [
{
element: <AuthenticatedLayout />,
children: [ProtectedRoutes],
},
],
},
],
},
{
hoist: true,
}
);
};
```

This release also includes a new `runtime.registerPublicRoute()` function.

## 5.0.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": "5.0.1",
"version": "5.1.0",
"description": "The core package of @squide 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

## 2.0.2

### Patch Changes

- Updated dependencies [[`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
- @squide/[email protected]

## 2.0.1

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

## 9.1.0

### Minor Changes

- [#195](https://github.com/gsoft-inc/wl-squide/pull/195) [`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Replaced the `ManagedRoutes` placeholder by the `PublicRoutes` and `ProtectedRoutes` placeholder.

Before:

```tsx
import {
ManagedRoutes,
type ModuleRegisterFunction,
type FireflyRuntime,
} from "@squide/firefly";
import { RootLayout } from "./RootLayout.tsx";

export const registerHost: ModuleRegisterFunction<FireflyRuntime> = (
runtime
) => {
runtime.registerRoute(
{
element: <RootLayout />,
children: [ManagedRoutes],
},
{
hoist: true,
}
);
};
```

Now:

```tsx
import {
PublicRoutes,
ProtectedRoutes,
type ModuleRegisterFunction,
type FireflyRuntime,
} from "@squide/firefly";
import { RootLayout } from "./RootLayout.tsx";

export const registerHost: ModuleRegisterFunction<FireflyRuntime> = (
runtime
) => {
runtime.registerRoute(
{
element: <RootLayout />,
children: [PublicRoutes, ProtectedRoutes],
},
{
hoist: true,
}
);
};
```

Or:

```tsx
import {
PublicRoutes,
ProtectedRoutes,
type ModuleRegisterFunction,
type FireflyRuntime,
} from "@squide/firefly";
import { RootLayout } from "./RootLayout.tsx";

export const registerHost: ModuleRegisterFunction<FireflyRuntime> = (
runtime
) => {
runtime.registerRoute(
{
element: <RootLayout />,
children: [
PublicRoutes,
{
element: <AuthenticationBoundary />,
children: [
{
element: <AuthenticatedLayout />,
children: [ProtectedRoutes],
},
],
},
],
},
{
hoist: true,
}
);
};
```

This release also includes a new `runtime.registerPublicRoute()` function.

### Patch Changes

- Updated dependencies [[`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
- @squide/[email protected]
- @squide/[email protected]
- @squide/[email protected]
- @squide/[email protected]

## 9.0.1

### 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": "9.0.1",
"version": "9.1.0",
"description": "Helpers to facilitate the creation of an application with the 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

## 2.0.2

### Patch Changes

- Updated dependencies [[`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
- @squide/[email protected]

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

## 6.0.2

### Patch Changes

- Updated dependencies [[`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
- @squide/[email protected]

## 6.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/module-federation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/module-federation",
"author": "Workleap",
"version": "6.0.1",
"version": "6.0.2",
"description": "Add support for Module Federation to @squide 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

## 3.0.2

### Patch Changes

- Updated dependencies [[`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
- @squide/[email protected]

## 3.0.1

### 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": "3.0.1",
"version": "3.0.2",
"description": "Add support for MSW to @squide application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
Loading