@squide/firefly 2.0.0 → 3.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,26 @@
1
1
  # @squide/firefly
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#118](https://github.com/gsoft-inc/wl-squide/pull/118) [`4864d30`](https://github.com/gsoft-inc/wl-squide/commit/4864d30764021a91d5827abb5b3ae7a4b4302c31) Thanks [@tjosepo](https://github.com/tjosepo)! - Omit "router" from routerProviderProps
8
+
9
+ ## 3.0.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#115](https://github.com/gsoft-inc/wl-squide/pull/115) [`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - A new `features` option is now available with the `defineConfig` functions to add the `@squide/i18next` package to the shared dependencies.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4), [`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4), [`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4)]:
18
+ - @squide/msw@2.0.5
19
+ - @squide/core@3.1.0
20
+ - @squide/webpack-configs@1.1.0
21
+ - @squide/react-router@3.0.1
22
+ - @squide/webpack-module-federation@3.0.1
23
+
3
24
  ## 2.0.0
4
25
 
5
26
  ### Minor Changes
@@ -22,8 +22,8 @@ interface AppRouterProps {
22
22
  onLoadProtectedData?: OnLoadProtectedDataFunction;
23
23
  onCompleteRegistrations?: OnCompleteRegistrationsFunction;
24
24
  waitForMsw: boolean;
25
- routerProvidersProps?: RouterProviderProps;
25
+ routerProvidersProps?: Omit<RouterProviderProps, "router">;
26
26
  }
27
27
  declare function AppRouter(props: AppRouterProps): react_jsx_runtime.JSX.Element;
28
28
 
29
- export { AppRouter, AppRouterProps, BootstrappingRoute, OnCompleteRegistrationsFunction, OnLoadProtectedDataFunction, OnLoadPublicDataFunction };
29
+ export { AppRouter, type AppRouterProps, BootstrappingRoute, type OnCompleteRegistrationsFunction, type OnLoadProtectedDataFunction, type OnLoadPublicDataFunction };
@@ -1,11 +1,24 @@
1
- import { DefineDevHostConfigOptions, DefineBuildHostConfigOptions, DefineDevRemoteModuleConfigOptions, DefineBuildRemoteModuleConfigOptions } from '@squide/webpack-configs';
2
- export { DefineBuildHostConfigOptions, DefineBuildRemoteModuleConfigOptions, DefineDevHostConfigOptions, DefineDevRemoteModuleConfigOptions, DefineHostModuleFederationPluginOptions, DefineRemoteModuleFederationPluginOptions, Features, ModuleFederationPluginOptions, Router, defineRemoteModuleFederationPluginOptions } from '@squide/webpack-configs';
1
+ import { Features, DefineDevHostConfigOptions, DefineBuildHostConfigOptions, DefineDevRemoteModuleConfigOptions, DefineBuildRemoteModuleConfigOptions } from '@squide/webpack-configs';
2
+ export { DefineHostModuleFederationPluginOptions, DefineRemoteModuleFederationPluginOptions, ModuleFederationPluginOptions, Router, defineRemoteModuleFederationPluginOptions } from '@squide/webpack-configs';
3
3
  import { SwcConfig } from '@workleap/swc-configs';
4
4
  import webpack from 'webpack';
5
5
 
6
- declare function defineDevHostConfig(swcConfig: SwcConfig, applicationName: string, port: number, options?: Omit<DefineDevHostConfigOptions, "features">): webpack.Configuration;
7
- declare function defineBuildHostConfig(swcConfig: SwcConfig, applicationName: string, options?: Omit<DefineBuildHostConfigOptions, "features">): webpack.Configuration;
8
- declare function defineDevRemoteModuleConfig(swcConfig: SwcConfig, applicationName: string, port: number, options?: Omit<DefineDevRemoteModuleConfigOptions, "features">): webpack.Configuration;
9
- declare function defineBuildRemoteModuleConfig(swcConfig: SwcConfig, applicationName: string, options?: Omit<DefineBuildRemoteModuleConfigOptions, "features">): webpack.Configuration;
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, ...otherOptions }?: FireflyDefineDevHostConfigOptions): webpack.Configuration;
11
+ interface FireflyDefineBuildHostConfigOptions extends DefineBuildHostConfigOptions {
12
+ features?: FireflyFeatures;
13
+ }
14
+ declare function defineBuildHostConfig(swcConfig: SwcConfig, applicationName: string, { features, ...otherOptions }?: FireflyDefineBuildHostConfigOptions): webpack.Configuration;
15
+ interface FireflyDefineDevRemoteModuleConfigOptions extends DefineDevRemoteModuleConfigOptions {
16
+ features?: FireflyFeatures;
17
+ }
18
+ declare function defineDevRemoteModuleConfig(swcConfig: SwcConfig, applicationName: string, port: number, { features, ...otherOptions }?: FireflyDefineDevRemoteModuleConfigOptions): webpack.Configuration;
19
+ interface FireflyDefineBuildRemoteModuleConfigOptions extends DefineBuildRemoteModuleConfigOptions {
20
+ features?: FireflyFeatures;
21
+ }
22
+ declare function defineBuildRemoteModuleConfig(swcConfig: SwcConfig, applicationName: string, { features, ...otherOptions }?: FireflyDefineBuildRemoteModuleConfigOptions): webpack.Configuration;
10
23
 
11
- export { defineBuildHostConfig, defineBuildRemoteModuleConfig, defineDevHostConfig, defineDevRemoteModuleConfig };
24
+ export { type FireflyDefineBuildHostConfigOptions, type FireflyDefineBuildRemoteModuleConfigOptions, type FireflyDefineDevHostConfigOptions, type FireflyDefineDevRemoteModuleConfigOptions, type FireflyFeatures, defineBuildHostConfig, defineBuildRemoteModuleConfig, defineDevHostConfig, defineDevRemoteModuleConfig };
@@ -2,39 +2,43 @@ import { defineDevHostConfig as defineDevHostConfig$1, defineBuildHostConfig as
2
2
  export { defineRemoteModuleFederationPluginOptions } from '@squide/webpack-configs';
3
3
 
4
4
  // src/defineConfig.ts
5
- function defineDevHostConfig(swcConfig, applicationName, port, options = {}) {
5
+ function defineDevHostConfig(swcConfig, applicationName, port, { features, ...otherOptions } = {}) {
6
6
  return defineDevHostConfig$1(swcConfig, applicationName, port, {
7
- ...options,
7
+ ...otherOptions,
8
8
  features: {
9
9
  router: "react-router",
10
- msw: true
10
+ msw: true,
11
+ ...features ?? {}
11
12
  }
12
13
  });
13
14
  }
14
- function defineBuildHostConfig(swcConfig, applicationName, options = {}) {
15
+ function defineBuildHostConfig(swcConfig, applicationName, { features, ...otherOptions } = {}) {
15
16
  return defineBuildHostConfig$1(swcConfig, applicationName, {
16
- ...options,
17
+ ...otherOptions,
17
18
  features: {
18
19
  router: "react-router",
19
- msw: true
20
+ msw: true,
21
+ ...features ?? {}
20
22
  }
21
23
  });
22
24
  }
23
- function defineDevRemoteModuleConfig(swcConfig, applicationName, port, options = {}) {
25
+ function defineDevRemoteModuleConfig(swcConfig, applicationName, port, { features, ...otherOptions } = {}) {
24
26
  return defineDevRemoteModuleConfig$1(swcConfig, applicationName, port, {
25
- ...options,
27
+ ...otherOptions,
26
28
  features: {
27
29
  router: "react-router",
28
- msw: true
30
+ msw: true,
31
+ ...features ?? {}
29
32
  }
30
33
  });
31
34
  }
32
- function defineBuildRemoteModuleConfig(swcConfig, applicationName, options = {}) {
35
+ function defineBuildRemoteModuleConfig(swcConfig, applicationName, { features, ...otherOptions } = {}) {
33
36
  return defineBuildRemoteModuleConfig$1(swcConfig, applicationName, {
34
- ...options,
37
+ ...otherOptions,
35
38
  features: {
36
39
  router: "react-router",
37
- msw: true
40
+ msw: true,
41
+ ...features ?? {}
38
42
  }
39
43
  });
40
44
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@squide/firefly",
3
3
  "author": "Workleap",
4
- "version": "2.0.0",
4
+ "version": "3.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": {
@@ -47,19 +47,31 @@
47
47
  "msw": {
48
48
  "optional": true
49
49
  },
50
+ "react": {
51
+ "optional": true
52
+ },
53
+ "react-dom": {
54
+ "optional": true
55
+ },
56
+ "react-error-boundary": {
57
+ "optional": true
58
+ },
59
+ "react-router-dom": {
60
+ "optional": true
61
+ },
50
62
  "webpack": {
51
63
  "optional": true
52
64
  }
53
65
  },
54
66
  "devDependencies": {
55
- "@swc/core": "1.3.96",
67
+ "@swc/core": "1.3.99",
56
68
  "@swc/helpers": "0.5.3",
57
69
  "@swc/jest": "0.2.29",
58
70
  "@testing-library/jest-dom": "6.1.4",
59
- "@testing-library/react": "14.0.0",
60
- "@types/jest": "29.5.7",
61
- "@types/react": "18.2.36",
62
- "@types/react-dom": "18.2.14",
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",
63
75
  "@workleap/eslint-plugin": "3.0.0",
64
76
  "@workleap/swc-configs": "2.1.2",
65
77
  "@workleap/tsup-configs": "3.0.1",
@@ -67,22 +79,22 @@
67
79
  "@workleap/webpack-configs": "1.2.1",
68
80
  "jest": "29.7.0",
69
81
  "jest-environment-jsdom": "29.7.0",
70
- "msw": "2.0.3",
82
+ "msw": "2.0.9",
71
83
  "react": "18.2.0",
72
84
  "react-dom": "18.2.0",
73
85
  "react-error-boundary": "4.0.11",
74
- "react-router-dom": "6.18.0",
86
+ "react-router-dom": "6.20.0",
75
87
  "ts-jest": "29.1.1",
76
- "tsup": "7.2.0",
88
+ "tsup": "8.0.1",
77
89
  "typescript": "5.2.2",
78
90
  "webpack": "5.89.0",
79
- "@squide/webpack-configs": "1.0.0"
91
+ "@squide/webpack-configs": "1.1.0"
80
92
  },
81
93
  "dependencies": {
82
- "@squide/core": "3.0.0",
83
- "@squide/msw": "2.0.4",
84
- "@squide/react-router": "3.0.0",
85
- "@squide/webpack-module-federation": "3.0.0"
94
+ "@squide/core": "3.1.0",
95
+ "@squide/react-router": "3.0.1",
96
+ "@squide/webpack-module-federation": "3.0.1",
97
+ "@squide/msw": "2.0.5"
86
98
  },
87
99
  "sideEffects": false,
88
100
  "engines": {