@memberjunction/react-runtime 5.40.2 → 5.42.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.
@@ -1,31 +1,31 @@
1
1
 
2
- > @memberjunction/react-runtime@5.40.2 build
2
+ > @memberjunction/react-runtime@5.42.0 build
3
3
  > npm run build:node && npm run build:umd
4
4
 
5
5
 
6
- > @memberjunction/react-runtime@5.40.2 build:node
6
+ > @memberjunction/react-runtime@5.42.0 build:node
7
7
  > tsc && tsc-alias -f
8
8
 
9
9
 
10
- > @memberjunction/react-runtime@5.40.2 build:umd
10
+ > @memberjunction/react-runtime@5.42.0 build:umd
11
11
  > webpack --config webpack.umd.config.cjs
12
12
 
13
13
  [BABEL] Note: The code generator has deoptimised the styling of /home/runner/work/MJ/MJ/packages/MJCoreEntities/dist/generated/entity_subclasses.js as it exceeds the max of 500KB.
14
- asset runtime.umd.js 7.67 MiB [compared for emit] [big] (name: main)
15
- asset 324.runtime.umd.js 207 KiB [compared for emit]
14
+ asset runtime.umd.js 7.99 MiB [compared for emit] [big] (name: main)
15
+ asset 324.runtime.umd.js 213 KiB [compared for emit]
16
16
  asset 490.runtime.umd.js 182 KiB [compared for emit] (id hint: vendors)
17
- orphan modules 7.67 MiB [orphan] 536 modules
17
+ orphan modules 7.99 MiB [orphan] 541 modules
18
18
  runtime modules 6.94 KiB 10 modules
19
- cacheable modules 7.83 MiB
19
+ cacheable modules 8.15 MiB
20
20
  modules by path ../../../node_modules/ 781 KiB
21
21
  modules by path ../../../node_modules/rxjs/dist/esm5/internal/ 30.4 KiB 15 modules
22
22
  modules by path ../../../node_modules/debug/src/*.js 12.7 KiB 2 modules
23
23
  + 7 modules
24
- modules by path ../../MJCoreEntities/dist/ 4.65 MiB
25
- ../../MJCoreEntities/dist/index.js + 54 modules 4.63 MiB [built] [code generated]
24
+ modules by path ../../MJCoreEntities/dist/ 4.89 MiB
25
+ ../../MJCoreEntities/dist/index.js + 54 modules 4.87 MiB [built] [code generated]
26
26
  ../../MJCoreEntities/dist/engines/UserViewEngine.js 19.6 KiB [built] [code generated]
27
- ./dist/index.js + 27 modules 426 KiB [built] [code generated]
28
- ../../MJCore/dist/index.js + 81 modules 1.58 MiB [built] [code generated]
29
- ../../MJGlobal/dist/index.js + 17 modules 245 KiB [built] [code generated]
30
- ../../GraphQLDataProvider/dist/index.mjs 185 KiB [built] [code generated]
31
- webpack 5.105.0 compiled successfully in 61559 ms
27
+ ./dist/index.js + 28 modules 432 KiB [built] [code generated]
28
+ ../../MJCore/dist/index.js + 83 modules 1.64 MiB [built] [code generated]
29
+ ../../MJGlobal/dist/index.js + 18 modules 258 KiB [built] [code generated]
30
+ ../../GraphQLDataProvider/dist/index.mjs 190 KiB [built] [code generated]
31
+ webpack 5.105.0 compiled successfully in 63924 ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # @memberjunction/react-runtime
2
2
 
3
+ ## 5.42.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 438ce4a: Fix `cache-manager` build failure under Node typings — the cleanup timer used `window.setInterval`/`window.clearInterval` (DOM-typed, returns `number`) while `cleanupTimer` is declared as `ReturnType<typeof setInterval>` (Node's `Timeout`), causing `TS2322: Type 'number' is not assignable to type 'Timeout'`. Switched to the bare global `setInterval`/`clearInterval`, whose return type matches the declaration and works in both browser and Node runtimes.
8
+ - Updated dependencies [9b9b484]
9
+ - Updated dependencies [5fde509]
10
+ - Updated dependencies [4ec1732]
11
+ - Updated dependencies [2f225e4]
12
+ - Updated dependencies [6d970cd]
13
+ - Updated dependencies [0fa3cbc]
14
+ - Updated dependencies [da5a3dd]
15
+ - @memberjunction/core@5.42.0
16
+ - @memberjunction/graphql-dataprovider@5.42.0
17
+ - @memberjunction/core-entities@5.42.0
18
+ - @memberjunction/global@5.42.0
19
+ - @memberjunction/interactive-component-types@5.42.0
20
+
21
+ ## 5.41.0
22
+
23
+ ### Patch Changes
24
+
25
+ - 133dfa7: Interactive components: persist `savedUserSettings` per-user, cross-device
26
+
27
+ The existing interactive-component settings contract (`savedUserSettings` in /
28
+ `onSaveUserSettings` out) is now durably persisted **per-user, cross-device** via
29
+ `UserInfoEngine`, automatically scoped per component — with no change to the component
30
+ contract. The Angular host (`MJReactComponent`) seeds `savedUserSettings` from the
31
+ store on load and saves (debounced) on every `onSaveUserSettings` call, under the key
32
+ `InteractiveComponents_UserState_Root/<scope>` where scope defaults to
33
+ `<namespace>/<name>` (override via the new
34
+ `UserStateScope` input). Set the new `PersistUserSettings` input to `false` to opt out
35
+ and own persistence via the `userSettingsChanged` output instead.
36
+
37
+ Saves **merge, never replace**: the host overlays each `onSaveUserSettings` payload
38
+ onto the saved settings, so a component that passes only the changed keys (or spreads
39
+ a stale prop) cannot wipe other preferences. Removing a key requires explicit intent —
40
+ set its value to `null`.
41
+ - `@memberjunction/react-runtime`: new framework-agnostic `user-state` helpers
42
+ (`resolveUserStateScope`, `userStateStorageKey`, `parseStoredUserSettings`,
43
+ `mergeUserSettings`, `applyUserSettingsUpdate`) plus unit tests.
44
+ - `@memberjunction/react-test-harness`: `ComponentExecutionOptions.savedUserSettings`
45
+ seeds the prop and `onSaveUserSettings` now merges into a real in-memory snapshot
46
+ with the same null-removes-key semantics as the production host.
47
+
48
+ Fully additive — existing components that already use the blob gain durable
49
+ persistence for free.
50
+
51
+ - Updated dependencies [8fd6f59]
52
+ - Updated dependencies [2e48d1a]
53
+ - Updated dependencies [34d17e2]
54
+ - Updated dependencies [cd6c5f0]
55
+ - Updated dependencies [8c8b658]
56
+ - Updated dependencies [659ee5b]
57
+ - Updated dependencies [cc604aa]
58
+ - Updated dependencies [15b743b]
59
+ - Updated dependencies [a5f5472]
60
+ - Updated dependencies [ddaa30e]
61
+ - @memberjunction/core@5.41.0
62
+ - @memberjunction/core-entities@5.41.0
63
+ - @memberjunction/graphql-dataprovider@5.41.0
64
+ - @memberjunction/interactive-component-types@5.41.0
65
+ - @memberjunction/global@5.41.0
66
+
3
67
  ## 5.40.2
4
68
 
5
69
  ### Patch Changes