@squide/firefly 5.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @squide/firefly
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#148](https://github.com/gsoft-inc/wl-squide/pull/148) [`a448347`](https://github.com/gsoft-inc/wl-squide/commit/a4483478bb8b7ef1f24513244e8c2410bdb86bc1) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal changes.
8
+
9
+ - Updated dependencies [[`a448347`](https://github.com/gsoft-inc/wl-squide/commit/a4483478bb8b7ef1f24513244e8c2410bdb86bc1)]:
10
+ - @squide/react-router@4.1.0
11
+
12
+ ## 6.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [#144](https://github.com/gsoft-inc/wl-squide/pull/144) [`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Moved the webpack define functions to the new `@squide/firefly-configs` package.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f), [`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f)]:
21
+ - @squide/core@3.3.0
22
+ - @squide/react-router@4.0.4
23
+ - @squide/msw@2.0.10
24
+ - @squide/webpack-module-federation@3.0.5
25
+
3
26
  ## 5.0.0
4
27
 
5
28
  ### Patch Changes
@@ -4,14 +4,14 @@ import { ReactRouterRuntime } from '@squide/react-router';
4
4
  // src/fireflyRuntime.tsx
5
5
  var FireflyRuntime = class extends ReactRouterRuntime {
6
6
  #mswPlugin;
7
- constructor(options = {}) {
7
+ constructor({ plugins, ...options } = {}) {
8
8
  const mswPlugin = new MswPlugin();
9
9
  super({
10
- ...options,
11
10
  plugins: [
12
- ...options.plugins ?? [],
11
+ ...plugins ?? [],
13
12
  mswPlugin
14
- ]
13
+ ],
14
+ ...options
15
15
  });
16
16
  this.#mswPlugin = mswPlugin;
17
17
  }
@@ -2,11 +2,12 @@ import { RuntimeOptions } from '@squide/core';
2
2
  import { ReactRouterRuntime } from '@squide/react-router';
3
3
  import { RequestHandler } from 'msw';
4
4
 
5
+ type FireflyRuntimeOptions = RuntimeOptions;
5
6
  declare class FireflyRuntime extends ReactRouterRuntime {
6
7
  #private;
7
- constructor(options?: RuntimeOptions);
8
+ constructor({ plugins, ...options }?: FireflyRuntimeOptions);
8
9
  registerRequestHandlers(handlers: RequestHandler[]): void;
9
10
  get requestHandlers(): RequestHandler[];
10
11
  }
11
12
 
12
- export { FireflyRuntime };
13
+ export { FireflyRuntime, type FireflyRuntimeOptions };
@@ -1 +1 @@
1
- export { FireflyRuntime } from './chunk-6R4K3V6F.js';
1
+ export { FireflyRuntime } from './chunk-JRNDLQBI.js';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from '@squide/msw';
3
3
  export * from '@squide/react-router';
4
4
  export * from '@squide/webpack-module-federation';
5
5
  export { AppRouter, AppRouterProps, BootstrappingRoute, OnCompleteRegistrationsFunction, OnLoadProtectedDataFunction, OnLoadPublicDataFunction, RenderRouterProviderFunction } from './AppRouter.js';
6
- export { FireflyRuntime } from './fireflyRuntime.js';
6
+ export { FireflyRuntime, FireflyRuntimeOptions } from './fireflyRuntime.js';
7
7
  import 'react';
8
8
  import 'react/jsx-runtime';
9
9
  import 'react-router-dom';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AppRouter, BootstrappingRoute } from './chunk-7LQUNM5I.js';
2
- export { FireflyRuntime } from './chunk-6R4K3V6F.js';
2
+ export { FireflyRuntime } from './chunk-JRNDLQBI.js';
3
3
  export * from '@squide/core';
4
4
  export * from '@squide/msw';
5
5
  export * from '@squide/react-router';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@squide/firefly",
3
3
  "author": "Workleap",
4
- "version": "5.0.0",
4
+ "version": "6.0.1",
5
5
  "description": "Helpers to facilitate the creation of a shell package with Squide firefly technology stack.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -19,11 +19,6 @@
19
19
  "import": "./dist/index.js",
20
20
  "types": "./dist/index.d.ts",
21
21
  "default": "./dist/index.js"
22
- },
23
- "./defineConfig.js": {
24
- "import": "./dist/defineConfig.js",
25
- "types": "./dist/defineConfig.d.ts",
26
- "default": "./dist/defineConfig.js"
27
22
  }
28
23
  },
29
24
  "files": [
@@ -32,18 +27,13 @@
32
27
  "README.md"
33
28
  ],
34
29
  "peerDependencies": {
35
- "@squide/webpack-configs": "*",
36
30
  "msw": "*",
37
31
  "react": "*",
38
32
  "react-dom": "*",
39
33
  "react-error-boundary": "*",
40
- "react-router-dom": "*",
41
- "webpack": ">=5.0.0"
34
+ "react-router-dom": "*"
42
35
  },
43
36
  "peerDependenciesMeta": {
44
- "@squide/webpack-configs": {
45
- "optional": true
46
- },
47
37
  "msw": {
48
38
  "optional": true
49
39
  },
@@ -58,43 +48,37 @@
58
48
  },
59
49
  "react-router-dom": {
60
50
  "optional": true
61
- },
62
- "webpack": {
63
- "optional": true
64
51
  }
65
52
  },
66
53
  "devDependencies": {
67
- "@swc/core": "1.3.99",
68
- "@swc/helpers": "0.5.3",
69
- "@swc/jest": "0.2.29",
70
- "@testing-library/jest-dom": "6.1.4",
71
- "@testing-library/react": "14.1.2",
72
- "@types/jest": "29.5.10",
73
- "@types/react": "18.2.39",
74
- "@types/react-dom": "18.2.17",
75
- "@workleap/eslint-plugin": "3.0.0",
76
- "@workleap/swc-configs": "2.1.2",
77
- "@workleap/tsup-configs": "3.0.1",
54
+ "@swc/core": "1.4.0",
55
+ "@swc/helpers": "0.5.6",
56
+ "@swc/jest": "0.2.36",
57
+ "@testing-library/jest-dom": "6.4.2",
58
+ "@testing-library/react": "14.2.1",
59
+ "@types/jest": "29.5.12",
60
+ "@types/react": "18.2.55",
61
+ "@types/react-dom": "18.2.19",
62
+ "@workleap/eslint-plugin": "3.0.1",
63
+ "@workleap/swc-configs": "2.2.1",
64
+ "@workleap/tsup-configs": "3.0.2",
78
65
  "@workleap/typescript-configs": "3.0.2",
79
- "@workleap/webpack-configs": "1.2.1",
80
66
  "jest": "29.7.0",
81
67
  "jest-environment-jsdom": "29.7.0",
82
- "msw": "2.0.9",
68
+ "msw": "2.1.7",
83
69
  "react": "18.2.0",
84
70
  "react-dom": "18.2.0",
85
- "react-error-boundary": "4.0.11",
86
- "react-router-dom": "6.20.0",
87
- "ts-jest": "29.1.1",
71
+ "react-error-boundary": "4.0.12",
72
+ "react-router-dom": "6.22.0",
73
+ "ts-jest": "29.1.2",
88
74
  "tsup": "8.0.1",
89
- "typescript": "5.2.2",
90
- "webpack": "5.89.0",
91
- "@squide/webpack-configs": "1.2.0"
75
+ "typescript": "5.3.3"
92
76
  },
93
77
  "dependencies": {
94
- "@squide/core": "3.2.1",
95
- "@squide/msw": "2.0.9",
96
- "@squide/react-router": "4.0.3",
97
- "@squide/webpack-module-federation": "3.0.4"
78
+ "@squide/core": "3.3.0",
79
+ "@squide/msw": "2.0.10",
80
+ "@squide/react-router": "4.1.0",
81
+ "@squide/webpack-module-federation": "3.0.5"
98
82
  },
99
83
  "sideEffects": false,
100
84
  "engines": {
@@ -1,24 +0,0 @@
1
- import { Features, DefineDevHostConfigOptions, DefineBuildHostConfigOptions, DefineDevRemoteModuleConfigOptions, DefineBuildRemoteModuleConfigOptions } from '@squide/webpack-configs';
2
- export { DefineHostModuleFederationPluginOptions, DefineRemoteModuleFederationPluginOptions, ModuleFederationPluginOptions, Router, defineRemoteModuleFederationPluginOptions } from '@squide/webpack-configs';
3
- import { SwcConfig } from '@workleap/swc-configs';
4
- import webpack from 'webpack';
5
-
6
- type FireflyFeatures = Omit<Features, "router" | "msw">;
7
- interface FireflyDefineDevHostConfigOptions extends DefineDevHostConfigOptions {
8
- features?: FireflyFeatures;
9
- }
10
- declare function defineDevHostConfig(swcConfig: SwcConfig, applicationName: string, port: number, { features, ...options }?: FireflyDefineDevHostConfigOptions): webpack.Configuration;
11
- interface FireflyDefineBuildHostConfigOptions extends DefineBuildHostConfigOptions {
12
- features?: FireflyFeatures;
13
- }
14
- declare function defineBuildHostConfig(swcConfig: SwcConfig, applicationName: string, { features, ...options }?: FireflyDefineBuildHostConfigOptions): webpack.Configuration;
15
- interface FireflyDefineDevRemoteModuleConfigOptions extends DefineDevRemoteModuleConfigOptions {
16
- features?: FireflyFeatures;
17
- }
18
- declare function defineDevRemoteModuleConfig(swcConfig: SwcConfig, applicationName: string, port: number, { features, ...options }?: FireflyDefineDevRemoteModuleConfigOptions): webpack.Configuration;
19
- interface FireflyDefineBuildRemoteModuleConfigOptions extends DefineBuildRemoteModuleConfigOptions {
20
- features?: FireflyFeatures;
21
- }
22
- declare function defineBuildRemoteModuleConfig(swcConfig: SwcConfig, applicationName: string, { features, ...options }?: FireflyDefineBuildRemoteModuleConfigOptions): webpack.Configuration;
23
-
24
- export { type FireflyDefineBuildHostConfigOptions, type FireflyDefineBuildRemoteModuleConfigOptions, type FireflyDefineDevHostConfigOptions, type FireflyDefineDevRemoteModuleConfigOptions, type FireflyFeatures, defineBuildHostConfig, defineBuildRemoteModuleConfig, defineDevHostConfig, defineDevRemoteModuleConfig };
@@ -1,46 +0,0 @@
1
- import { defineDevHostConfig as defineDevHostConfig$1, defineBuildHostConfig as defineBuildHostConfig$1, defineDevRemoteModuleConfig as defineDevRemoteModuleConfig$1, defineBuildRemoteModuleConfig as defineBuildRemoteModuleConfig$1 } from '@squide/webpack-configs';
2
- export { defineRemoteModuleFederationPluginOptions } from '@squide/webpack-configs';
3
-
4
- // src/defineConfig.ts
5
- function defineDevHostConfig(swcConfig, applicationName, port, { features, ...options } = {}) {
6
- return defineDevHostConfig$1(swcConfig, applicationName, port, {
7
- ...options,
8
- features: {
9
- router: "react-router",
10
- msw: true,
11
- ...features ?? {}
12
- }
13
- });
14
- }
15
- function defineBuildHostConfig(swcConfig, applicationName, { features, ...options } = {}) {
16
- return defineBuildHostConfig$1(swcConfig, applicationName, {
17
- ...options,
18
- features: {
19
- router: "react-router",
20
- msw: true,
21
- ...features ?? {}
22
- }
23
- });
24
- }
25
- function defineDevRemoteModuleConfig(swcConfig, applicationName, port, { features, ...options } = {}) {
26
- return defineDevRemoteModuleConfig$1(swcConfig, applicationName, port, {
27
- ...options,
28
- features: {
29
- router: "react-router",
30
- msw: true,
31
- ...features ?? {}
32
- }
33
- });
34
- }
35
- function defineBuildRemoteModuleConfig(swcConfig, applicationName, { features, ...options } = {}) {
36
- return defineBuildRemoteModuleConfig$1(swcConfig, applicationName, {
37
- ...options,
38
- features: {
39
- router: "react-router",
40
- msw: true,
41
- ...features ?? {}
42
- }
43
- });
44
- }
45
-
46
- export { defineBuildHostConfig, defineBuildRemoteModuleConfig, defineDevHostConfig, defineDevRemoteModuleConfig };