Skip to content

Commit

Permalink
ci(changesets): version packages (#169)
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 May 1, 2024
1 parent 89ace29 commit c48448b
Show file tree
Hide file tree
Showing 19 changed files with 733 additions and 120 deletions.
111 changes: 0 additions & 111 deletions .changeset/funny-chairs-joke.md

This file was deleted.

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

## 4.0.0

### Major Changes

- [#168](https://github.com/gsoft-inc/wl-squide/pull/168) [`89ace29`](https://github.com/gsoft-inc/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This release Migrates Squide from Webpack Module Federation to [Module Federation 2.0](https://module-federation.io/guide/start/quick-start.html).

This release deprecates the following packages:

- `@squide/webpack-module-federation`, use `@squide/module-federation` instead.
- `@squide/firefly-configs`, use `@squide/firefly-webpack-configs` instead.

And introduce a few changes to existing API:

- The `FireflyRuntime` nows accept a `useMsw` option and expose a new `isMswEnabled` getter:

```ts
// bootstrap.tsx

import { FireflyRuntime } from "@squide/firefly";

const runtime = new FireflyRuntime({
useMsw: true,
});

// Use the runtime to determine if MSW handlers should be registered.
if (runtime.isMswEnabled) {
// ...
}
```

- The `registerRemoteModules` function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

Previously:

```ts
// bootstrap.tsx

import {
registerRemoteModules,
type RemoteDefinition,
} from "@squide/firefly";

const Remotes: RemoteDefinition = [
{
name: "remote1",
url: "http://localhost:8081",
},
];

await registerRemoteModules(Remotes, runtime);
```

```js
// webpack.dev.js

import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
import { swcConfig } from "./swc.dev.js";

export default defineDevHostConfig(swcConfig, "host", 8080, {
overlay: false,
});
```

Now:

```ts
// bootstrap.tsx

import {
registerRemoteModules,
type RemoteDefinition,
} from "@squide/firefly";

const Remotes: RemoteDefinition = [
{
name: "remote1",
},
];

await registerRemoteModules(Remotes, runtime);
```

```js
// webpack.dev.js

import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
import { swcConfig } from "./swc.dev.js";

/**
* @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
*/
export const Remotes = [
{
name: "remote1",
url: "http://localhost:8081",
},
];

export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
overlay: false,
});
```

To migrate:

1. Replace the `@squide/webpack-module-federation` dependency by `@squide/module-federation`.

2. Replace the `@squide/firefly-configs` dependency by `@squide/firefly-webpack-configs`.

3. Move the remotes URL from the `bootstrap.tsx` file to the `webpack.*.js` files.

4. Integrate the new `useMsw` and `isMswEnabled` props.

## 3.4.0

### Minor 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.4.0",
"version": "4.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.18

### Patch Changes

- Updated dependencies [[`89ace29`](https://github.com/gsoft-inc/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283)]:
- @squide/core@4.0.0

## 1.0.17

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

## 2.0.0

### Major Changes

- [#168](https://github.com/gsoft-inc/wl-squide/pull/168) [`89ace29`](https://github.com/gsoft-inc/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This release Migrates Squide from Webpack Module Federation to [Module Federation 2.0](https://module-federation.io/guide/start/quick-start.html).

This release deprecates the following packages:

- `@squide/webpack-module-federation`, use `@squide/module-federation` instead.
- `@squide/firefly-configs`, use `@squide/firefly-webpack-configs` instead.

And introduce a few changes to existing API:

- The `FireflyRuntime` nows accept a `useMsw` option and expose a new `isMswEnabled` getter:

```ts
// bootstrap.tsx

import { FireflyRuntime } from "@squide/firefly";

const runtime = new FireflyRuntime({
useMsw: true,
});

// Use the runtime to determine if MSW handlers should be registered.
if (runtime.isMswEnabled) {
// ...
}
```

- The `registerRemoteModules` function doesn't accept the remotes URL anymore. The remotes URL should be configured in the webpack configuration files.

Previously:

```ts
// bootstrap.tsx

import {
registerRemoteModules,
type RemoteDefinition,
} from "@squide/firefly";

const Remotes: RemoteDefinition = [
{
name: "remote1",
url: "http://localhost:8081",
},
];

await registerRemoteModules(Remotes, runtime);
```

```js
// webpack.dev.js

import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
import { swcConfig } from "./swc.dev.js";

export default defineDevHostConfig(swcConfig, "host", 8080, {
overlay: false,
});
```

Now:

```ts
// bootstrap.tsx

import {
registerRemoteModules,
type RemoteDefinition,
} from "@squide/firefly";

const Remotes: RemoteDefinition = [
{
name: "remote1",
},
];

await registerRemoteModules(Remotes, runtime);
```

```js
// webpack.dev.js

import { defineDevHostConfig } from "@squide/firefly-webpack-configs";
import { swcConfig } from "./swc.dev.js";

/**
* @typedef {import("@squide/firefly-webpack-configs").RemoteDefinition}[]
*/
export const Remotes = [
{
name: "remote1",
url: "http://localhost:8081",
},
];

export default defineDevHostConfig(swcConfig, "host", 8080, Remotes, {
overlay: false,
});
```

To migrate:

1. Replace the `@squide/webpack-module-federation` dependency by `@squide/module-federation`.

2. Replace the `@squide/firefly-configs` dependency by `@squide/firefly-webpack-configs`.

3. Move the remotes URL from the `bootstrap.tsx` file to the `webpack.*.js` files.

4. Integrate the new `useMsw` and `isMswEnabled` props.

### Patch Changes

- Updated dependencies [[`89ace29`](https://github.com/gsoft-inc/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283)]:
- @squide/webpack-configs@2.0.0
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": "1.0.6",
"version": "2.0.0",
"description": "Webpack configuration helpers for the Squide firefly technology stack.",
"license": "Apache-2.0",
"repository": {
Expand Down
Loading

0 comments on commit c48448b

Please sign in to comment.