@squide/firefly 5.0.0 → 6.0.0
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 +14 -0
- package/dist/{chunk-6R4K3V6F.js → chunk-JRNDLQBI.js} +4 -4
- package/dist/fireflyRuntime.d.ts +3 -2
- package/dist/fireflyRuntime.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -23
- package/dist/defineConfig.d.ts +0 -24
- package/dist/defineConfig.js +0 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @squide/firefly
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f), [`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f)]:
|
|
12
|
+
- @squide/core@3.3.0
|
|
13
|
+
- @squide/react-router@4.0.4
|
|
14
|
+
- @squide/msw@2.0.10
|
|
15
|
+
- @squide/webpack-module-federation@3.0.5
|
|
16
|
+
|
|
3
17
|
## 5.0.0
|
|
4
18
|
|
|
5
19
|
### 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
|
-
...
|
|
11
|
+
...plugins ?? [],
|
|
13
12
|
mswPlugin
|
|
14
|
-
]
|
|
13
|
+
],
|
|
14
|
+
...options
|
|
15
15
|
});
|
|
16
16
|
this.#mswPlugin = mswPlugin;
|
|
17
17
|
}
|
package/dist/fireflyRuntime.d.ts
CHANGED
|
@@ -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?:
|
|
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 };
|
package/dist/fireflyRuntime.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FireflyRuntime } from './chunk-
|
|
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-
|
|
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": "
|
|
4
|
+
"version": "6.0.0",
|
|
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,9 +48,6 @@
|
|
|
58
48
|
},
|
|
59
49
|
"react-router-dom": {
|
|
60
50
|
"optional": true
|
|
61
|
-
},
|
|
62
|
-
"webpack": {
|
|
63
|
-
"optional": true
|
|
64
51
|
}
|
|
65
52
|
},
|
|
66
53
|
"devDependencies": {
|
|
@@ -76,7 +63,6 @@
|
|
|
76
63
|
"@workleap/swc-configs": "2.1.2",
|
|
77
64
|
"@workleap/tsup-configs": "3.0.1",
|
|
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
68
|
"msw": "2.0.9",
|
|
@@ -86,15 +72,13 @@
|
|
|
86
72
|
"react-router-dom": "6.20.0",
|
|
87
73
|
"ts-jest": "29.1.1",
|
|
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.2.2"
|
|
92
76
|
},
|
|
93
77
|
"dependencies": {
|
|
94
|
-
"@squide/core": "3.
|
|
95
|
-
"@squide/msw": "2.0.
|
|
96
|
-
"@squide/react-router": "4.0.
|
|
97
|
-
"@squide/webpack-module-federation": "3.0.
|
|
78
|
+
"@squide/core": "3.3.0",
|
|
79
|
+
"@squide/msw": "2.0.10",
|
|
80
|
+
"@squide/react-router": "4.0.4",
|
|
81
|
+
"@squide/webpack-module-federation": "3.0.5"
|
|
98
82
|
},
|
|
99
83
|
"sideEffects": false,
|
|
100
84
|
"engines": {
|
package/dist/defineConfig.d.ts
DELETED
|
@@ -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 };
|
package/dist/defineConfig.js
DELETED
|
@@ -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 };
|