@squide/firefly 9.3.0 → 9.3.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,17 @@
1
1
  # @squide/firefly
2
2
 
3
+ ## 9.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#221](https://github.com/gsoft-inc/wl-squide/pull/221) [`8411080`](https://github.com/gsoft-inc/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix deferred registrations.
8
+
9
+ - Updated dependencies [[`8411080`](https://github.com/gsoft-inc/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925)]:
10
+ - @squide/module-federation@6.2.1
11
+ - @squide/react-router@6.4.1
12
+ - @squide/core@5.4.1
13
+ - @squide/msw@3.2.1
14
+
3
15
  ## 9.3.0
4
16
 
5
17
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- export { FireflyRuntime } from './chunk-CFNKNPS3.js';
1
+ export { FireflyRuntime } from './chunk-LC233OPR.js';
2
2
  import './chunk-JFMSLZ74.js';
3
3
  import './chunk-TURKCH7J.js';
4
4
  import './chunk-H2ILEMPE.js';
package/dist/boostrap.js CHANGED
@@ -1 +1 @@
1
- export { ApplicationBootstrappingStartedEvent, __resetBootstrapGuard, bootstrap } from './chunk-IGJHKH2A.js';
1
+ export { ApplicationBootstrappingStartedEvent, __resetBootstrapGuard, bootstrap } from './chunk-ROE2YHN5.js';
@@ -1,5 +1,5 @@
1
1
  import { getAreModulesRegistered } from './chunk-JFMSLZ74.js';
2
- import { MswPlugin } from '@squide/msw';
2
+ import { MswPlugin, MswPluginName } from '@squide/msw';
3
3
  import { ReactRouterRuntime } from '@squide/react-router';
4
4
 
5
5
  var FireflyRuntime = class extends ReactRouterRuntime {
@@ -23,7 +23,7 @@ var FireflyRuntime = class extends ReactRouterRuntime {
23
23
  }
24
24
  }
25
25
  registerRequestHandlers(handlers) {
26
- const mswPlugin = this.getPlugin(MswPlugin.name);
26
+ const mswPlugin = this.getPlugin(MswPluginName);
27
27
  if (!mswPlugin) {
28
28
  throw new Error(`[squide] Cannot register the provided MSW request handlers because the runtime hasn't been initialized with MSW. Did you instanciate the FireflyRuntime with the "useMsw" option?`);
29
29
  }
@@ -34,7 +34,7 @@ var FireflyRuntime = class extends ReactRouterRuntime {
34
34
  }
35
35
  // Must define a return type otherwise we get an "error TS2742: The inferred type of 'requestHandlers' cannot be named" error.
36
36
  get requestHandlers() {
37
- const mswPlugin = this.getPlugin(MswPlugin.name);
37
+ const mswPlugin = this.getPlugin(MswPluginName);
38
38
  if (!mswPlugin) {
39
39
  throw new Error(`[squide] Cannot retrieve MSW request handlers because the runtime hasn't been initialized with MSW. Did you instanciate the FireflyRuntime with the "useMsw" option?`);
40
40
  }
@@ -7,8 +7,8 @@ var ApplicationBootstrappingStartedEvent = "squide-app-bootstrapping-started";
7
7
  var isBootstrapped = false;
8
8
  async function bootstrap(runtime, options = {}) {
9
9
  const {
10
- localModules,
11
- remotes,
10
+ localModules = [],
11
+ remotes = [],
12
12
  context,
13
13
  startMsw
14
14
  } = options;
@@ -18,12 +18,8 @@ async function bootstrap(runtime, options = {}) {
18
18
  runtime.eventBus.dispatch(ApplicationBootstrappingStartedEvent);
19
19
  let localModuleErrors = [];
20
20
  let remoteModuleErrors = [];
21
- if (localModules) {
22
- localModuleErrors = await registerLocalModules(localModules, runtime, { context });
23
- }
24
- if (remotes) {
25
- remoteModuleErrors = await registerRemoteModules(remotes, runtime, { context });
26
- }
21
+ localModuleErrors = await registerLocalModules(localModules, runtime, { context });
22
+ remoteModuleErrors = await registerRemoteModules(remotes, runtime, { context });
27
23
  if (runtime.isMswEnabled) {
28
24
  if (!isFunction(startMsw)) {
29
25
  throw new Error('[squide] When MSW is enabled, the "startMsw" function must be provided.');
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ export { useCanRegisterDeferredRegistrations } from './chunk-4RUCDAUT.js';
10
10
  export { useCanUpdateDeferredRegistrations } from './chunk-WVRMJZV6.js';
11
11
  export { AppRouter } from './chunk-L44KFU57.js';
12
12
  export { useStrictRegistrationMode } from './chunk-WOPD33CM.js';
13
- export { FireflyRuntime } from './chunk-CFNKNPS3.js';
13
+ export { FireflyRuntime } from './chunk-LC233OPR.js';
14
14
  export { ApplicationBoostrappedEvent, DeferredRegistrationsUpdatedEvent, ModulesReadyEvent, ModulesRegisteredEvent, MswReadyEvent, ProtectedDataReadyEvent, ProtectedDataUpdatedEvent, PublicDataReadyEvent, PublicDataUpdatedEvent, __clearAppReducerDispatchProxy, __setAppReducerDispatchProxyFactory, getAreModulesReady, getAreModulesRegistered, useAppRouterReducer, useBootstrappingCompletedDispatcher, useModuleRegistrationStatusDispatcher, useMswStatusDispatcher } from './chunk-JFMSLZ74.js';
15
15
  import './chunk-TURKCH7J.js';
16
16
  export { isApplicationBootstrapping, useIsBootstrapping } from './chunk-H2ILEMPE.js';
@@ -18,7 +18,7 @@ export { GlobalDataQueriesError, isGlobalDataQueriesError } from './chunk-HE5HKF
18
18
  import './chunk-PMVN3U47.js';
19
19
  export { useIsActiveRouteProtected } from './chunk-PP3MRMJJ.js';
20
20
  export { AppRouterDispatcherContext, AppRouterStateContext, useAppRouterDispatcher, useAppRouterState } from './chunk-G32YX2KR.js';
21
- export { ApplicationBootstrappingStartedEvent, __resetBootstrapGuard, bootstrap } from './chunk-IGJHKH2A.js';
21
+ export { ApplicationBootstrappingStartedEvent, __resetBootstrapGuard, bootstrap } from './chunk-ROE2YHN5.js';
22
22
  export * from '@squide/core';
23
23
  export * from '@squide/module-federation';
24
24
  export * from '@squide/msw';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@squide/firefly",
3
3
  "author": "Workleap",
4
- "version": "9.3.0",
4
+ "version": "9.3.1",
5
5
  "description": "Helpers to facilitate the creation of an application with the Squide firefly technology stack.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -34,33 +34,33 @@
34
34
  "react-router-dom": "*"
35
35
  },
36
36
  "devDependencies": {
37
- "@swc/core": "1.7.26",
38
- "@swc/jest": "0.2.36",
39
- "@testing-library/jest-dom": "6.5.0",
37
+ "@swc/core": "1.8.0",
38
+ "@swc/jest": "0.2.37",
39
+ "@testing-library/jest-dom": "6.6.3",
40
40
  "@testing-library/react": "16.0.1",
41
- "@types/jest": "29.5.13",
42
- "@types/react": "18.3.11",
43
- "@types/react-dom": "18.3.0",
44
- "@workleap/eslint-plugin": "3.2.2",
41
+ "@types/jest": "29.5.14",
42
+ "@types/react": "18.3.12",
43
+ "@types/react-dom": "18.3.1",
44
+ "@workleap/eslint-plugin": "3.2.3",
45
45
  "@workleap/swc-configs": "2.2.3",
46
46
  "@workleap/tsup-configs": "3.0.6",
47
47
  "@workleap/typescript-configs": "3.0.2",
48
48
  "eslint": "8.57.0",
49
49
  "jest": "29.7.0",
50
50
  "jest-environment-jsdom": "29.7.0",
51
- "msw": "2.4.9",
51
+ "msw": "2.5.2",
52
52
  "react": "18.3.1",
53
53
  "react-dom": "18.3.1",
54
- "react-router-dom": "6.26.2",
54
+ "react-router-dom": "6.27.0",
55
55
  "ts-jest": "29.2.5",
56
- "tsup": "8.3.0",
56
+ "tsup": "8.3.5",
57
57
  "typescript": "5.5.4"
58
58
  },
59
59
  "dependencies": {
60
- "@squide/core": "5.4.0",
61
- "@squide/module-federation": "6.2.0",
62
- "@squide/msw": "3.2.0",
63
- "@squide/react-router": "6.4.0"
60
+ "@squide/core": "5.4.1",
61
+ "@squide/module-federation": "6.2.1",
62
+ "@squide/msw": "3.2.1",
63
+ "@squide/react-router": "6.4.1"
64
64
  },
65
65
  "sideEffects": false,
66
66
  "engines": {