@squide/msw 2.0.7 → 2.0.8

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,12 @@
1
1
  # @squide/msw
2
2
 
3
+ ## 2.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d)]:
8
+ - @squide/core@3.2.0
9
+
3
10
  ## 2.0.7
4
11
 
5
12
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import { isMswStarted, addMswStateChangedListener, removeMswStateChangedListener } from './chunk-4FYK3XXP.js';
2
- import { useLogger } from '@squide/core';
2
+ import { useLogOnceLogger } from '@squide/core';
3
3
  import { useSyncExternalStore, useEffect } from 'react';
4
4
 
5
5
  function subscribe(callback) {
@@ -8,10 +8,10 @@ function subscribe(callback) {
8
8
  }
9
9
  function useIsMswStarted(enabled) {
10
10
  const isStarted = useSyncExternalStore(subscribe, isMswStarted);
11
- const logger = useLogger();
11
+ const logger = useLogOnceLogger();
12
12
  useEffect(() => {
13
13
  if (isStarted) {
14
- logger.debug("[squide] %cMSW is ready%c.", "color: white; background-color: green;", "");
14
+ logger.debugOnce("msw-is-started", "[squide] %cMSW is ready%c.", "color: white; background-color: green;", "");
15
15
  }
16
16
  }, [isStarted, logger]);
17
17
  return isStarted || !enabled;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { MswPlugin, getMswPlugin } from './chunk-BH5GURQ4.js';
2
2
  export { RequestHandlerRegistry } from './chunk-UJ4YM7IF.js';
3
- export { useIsMswStarted } from './chunk-ETD3TDL4.js';
3
+ export { useIsMswStarted } from './chunk-67NM4MII.js';
4
4
  export { MswState, __resetMswStatus, addMswStateChangedListener, isMswStarted, removeMswStateChangedListener, setMswAsStarted } from './chunk-4FYK3XXP.js';
@@ -1,2 +1,2 @@
1
- export { useIsMswStarted } from './chunk-ETD3TDL4.js';
1
+ export { useIsMswStarted } from './chunk-67NM4MII.js';
2
2
  import './chunk-4FYK3XXP.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@squide/msw",
3
3
  "author": "Workleap",
4
- "version": "2.0.7",
4
+ "version": "2.0.8",
5
5
  "description": "Add support for MSW to @squide federated application shell.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -49,7 +49,7 @@
49
49
  "typescript": "5.2.2"
50
50
  },
51
51
  "dependencies": {
52
- "@squide/core": "3.1.1"
52
+ "@squide/core": "3.2.0"
53
53
  },
54
54
  "sideEffects": false,
55
55
  "engines": {