Skip to content
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
69 changes: 0 additions & 69 deletions .changeset/msw-storybook-addon-v3.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/update-outdated-dependencies.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

## 7.5.1

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.

## 7.5.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": "7.5.0",
"version": "7.5.1",
"description": "The core package of @squide application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/env-vars/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @squide/env-vars

## 1.4.24

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/core@7.5.1

## 1.4.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/env-vars/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/env-vars",
"author": "Workleap",
"version": "1.4.23",
"version": "1.4.24",
"description": "Add support for environment variables to @squide application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/fakes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @squide/fakes

## 2.2.23

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/core@7.5.1

## 2.2.22

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

## 3.0.3

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/core@7.5.1
- @squide/firefly@19.2.1

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/firefly-module-federation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/firefly-module-federation",
"author": "Workleap",
"version": "3.0.2",
"version": "3.0.3",
"description": "Add support for Module Federation to Squide firefly.",
"license": "Apache-2.0",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/firefly-rsbuild-configs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @squide/firefly-rsbuild-configs

## 2.2.11

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.

## 2.2.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/firefly-rsbuild-configs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/firefly-rsbuild-configs",
"author": "Workleap",
"version": "2.2.10",
"version": "2.2.11",
"description": "Rsbuild configuration helpers for the Squide firefly technology stack.",
"license": "Apache-2.0",
"repository": {
Expand Down
79 changes: 79 additions & 0 deletions packages/firefly-storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,84 @@
# @squide/firefly-storybook

## 3.0.0

### Major Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - The documented Storybook integration moved to `msw-storybook-addon` v3. Applications must update their `.storybook/preview.tsx` when they upgrade the addon — see the migration below.

This ships as a major release deliberately, to put the migration in front of every consumer, rather than because the package's own code changed. `@squide/firefly-storybook` never imports the addon: the integration is `runtime.requestHandlers` fed through `parameters.msw`, and that contract is identical across both addon majors. `msw-storybook-addon` is therefore declared as an **optional peer** spanning the range actually supported, `^2.0.7 || ^3.0.0`. Applications already on v2 keep working and are not warned about an addon they installed correctly, and it is optional because the addon belongs to the Storybook application, which is not necessarily the package depending on `@squide/firefly-storybook`.

## Why

v3 removed the `initialize` export and moved `mswLoader` to the `msw-storybook-addon/csf3` subpath, where it became a factory. With v3 installed, a `preview.tsx` written against the v2 API throws while the preview module is being evaluated:

```
TypeError: (0, msw_storybook_addon.initialize) is not a function
```

Because a broken `preview.js` aborts the whole preview, this blanks **every** story in the Storybook — including trivial ones that use neither MSW nor Squide — which makes the cause hard to spot.

## Migration

Update `.storybook/preview.tsx`:

```diff
-import { initialize as initializeMsw, mswLoader } from "msw-storybook-addon";
+import { setupWorker } from "msw/browser";
+import { mswLoader } from "msw-storybook-addon/csf3";

-initializeMsw({
- onUnhandledRequest: "bypass"
-});
+async function startMswWorker() {
+ const worker = setupWorker();
+
+ await worker.start({
+ onUnhandledRequest: "bypass"
+ });
+
+ return worker;
+}

const preview: Preview = {
// ...
- loaders: [mswLoader]
+ loaders: [mswLoader(startMswWorker)]
};
```

If the application augments Storybook's `Parameters` interface, the `MswParameters` type has been replaced by `MswParameter`:

```diff
-import type { MswParameters } from "msw-storybook-addon";
+import type { MswParameter } from "msw-storybook-addon/csf3";

declare module "storybook-react-rsbuild" {
interface Parameters {
- msw?: MswParameters["msw"];
+ msw?: MswParameter;
}
}
```

The setup function is optional and only needed to preserve `onUnhandledRequest: "bypass"`. Without one, v3 creates and starts the worker itself, warning on unhandled requests while filtering common asset and Storybook-internal URLs. Handler reset semantics and both `parameters.msw` shapes (`[...]` and `{ handlers }`) are unchanged.

## Two traps to watch for

- **`mswLoader` is a factory and must be called.** Leaving the v2 shape `loaders: [mswLoader]` still type checks, but Storybook invokes it with the loader context and treats the returned function as loaded data, so handlers are never applied and mocking **silently** stops with no error.
- **The worker now starts lazily**, inside the first loader, i.e. after story modules are evaluated. v2 started it at preview-module evaluation. Requests issued from the top level of a story file, before the first story renders, are no longer intercepted.

Stay on the CSF 3.0 API shown above. v3's newer `addonMsw()` (CSF Next) does not read `parameters.msw` at all, so adopting it would silently disable mocking in every story that relies on the `msw` parameter — including the `runtime.requestHandlers` pattern this package documents.

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/env-vars@1.4.24
- @squide/firefly@19.2.1
- @squide/launch-darkly@1.0.17
- @squide/msw@4.1.2

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/firefly-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/firefly-storybook",
"author": "Workleap",
"version": "2.0.1",
"version": "3.0.0",
"description": "Squide firefly helpers for Storybook.",
"license": "Apache-2.0",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/firefly-webpack-configs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @squide/firefly-webpack-configs

## 5.2.13

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.

## 5.2.12

### Patch 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": "5.2.12",
"version": "5.2.13",
"description": "Webpack configuration helpers for the Squide firefly technology stack.",
"license": "Apache-2.0",
"repository": {
Expand Down
12 changes: 12 additions & 0 deletions packages/firefly/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @squide/firefly

## 19.2.1

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/core@7.5.1
- @squide/env-vars@1.4.24
- @squide/launch-darkly@1.0.17
- @squide/msw@4.1.2
- @squide/react-router@10.2.1

## 19.2.0

### Minor 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": "19.2.0",
"version": "19.2.1",
"description": "Squide bundle for the firefly technology stack.",
"license": "Apache-2.0",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/i18next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @squide/i18next

## 2.6.2

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/core@7.5.1

## 2.6.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.6.1",
"version": "2.6.2",
"description": "Add support for i18next to @squide application shell.",
"license": "Apache-2.0",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/launch-darkly/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @squide/launch-darkly

## 1.0.17

### Patch Changes

- [#706](https://github.com/workleap/wl-squide/pull/706) [`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to their latest versions.
- Updated dependencies [[`d37944e`](https://github.com/workleap/wl-squide/commit/d37944e0a82a459196ee08fb7bdea1bcf153d84c)]:
- @squide/core@7.5.1

## 1.0.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/launch-darkly/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@squide/launch-darkly",
"author": "Workleap",
"version": "1.0.16",
"version": "1.0.17",
"description": "Add support for LaunchDarkly feature flags to Squide applications.",
"license": "Apache-2.0",
"repository": {
Expand Down
Loading