@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.
- package/.turbo/turbo-build.log +14 -14
- package/CHANGELOG.md +64 -0
- package/dist/324.runtime.umd.js +228 -148
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.umd.js +7879 -3926
- package/dist/utilities/cache-manager.d.ts +2 -1
- package/dist/utilities/cache-manager.d.ts.map +1 -1
- package/dist/utilities/cache-manager.js +22 -3
- package/dist/utilities/cache-manager.js.map +1 -1
- package/dist/utilities/user-state.d.ts +7 -0
- package/dist/utilities/user-state.d.ts.map +1 -0
- package/dist/utilities/user-state.js +48 -0
- package/dist/utilities/user-state.js.map +1 -0
- package/package.json +6 -6
- package/src/__tests__/cache-manager.test.ts +64 -0
- package/src/__tests__/user-state.test.ts +155 -0
- package/src/index.ts +9 -0
- package/src/utilities/cache-manager.ts +28 -6
- package/src/utilities/user-state.ts +129 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
|
|
2
|
-
> @memberjunction/react-runtime@5.
|
|
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.
|
|
6
|
+
> @memberjunction/react-runtime@5.42.0 build:node
|
|
7
7
|
> tsc && tsc-alias -f
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @memberjunction/react-runtime@5.
|
|
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 [1m[33mruntime.umd.js[39m[22m [1m[33m7.
|
|
15
|
-
asset [1m[32m324.runtime.umd.js[39m[22m
|
|
14
|
+
asset [1m[33mruntime.umd.js[39m[22m [1m[33m7.99 MiB[39m[22m [1m[33m[compared for emit][39m[22m [1m[33m[big][39m[22m (name: main)
|
|
15
|
+
asset [1m[32m324.runtime.umd.js[39m[22m 213 KiB [1m[33m[compared for emit][39m[22m
|
|
16
16
|
asset [1m[32m490.runtime.umd.js[39m[22m 182 KiB [1m[33m[compared for emit][39m[22m (id hint: vendors)
|
|
17
|
-
orphan modules 7.
|
|
17
|
+
orphan modules 7.99 MiB [1m[33m[orphan][39m[22m 541 modules
|
|
18
18
|
runtime modules 6.94 KiB 10 modules
|
|
19
|
-
cacheable modules
|
|
19
|
+
cacheable modules 8.15 MiB
|
|
20
20
|
modules by path [1m../../../node_modules/[39m[22m 781 KiB
|
|
21
21
|
modules by path [1m../../../node_modules/rxjs/dist/esm5/internal/[39m[22m 30.4 KiB 15 modules
|
|
22
22
|
modules by path [1m../../../node_modules/debug/src/*.js[39m[22m 12.7 KiB 2 modules
|
|
23
23
|
+ 7 modules
|
|
24
|
-
modules by path [1m../../MJCoreEntities/dist/[39m[22m 4.
|
|
25
|
-
[1m../../MJCoreEntities/dist/index.js + 54 modules[39m[22m 4.
|
|
24
|
+
modules by path [1m../../MJCoreEntities/dist/[39m[22m 4.89 MiB
|
|
25
|
+
[1m../../MJCoreEntities/dist/index.js + 54 modules[39m[22m 4.87 MiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
26
|
[1m../../MJCoreEntities/dist/engines/UserViewEngine.js[39m[22m 19.6 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
27
|
-
[1m./dist/index.js +
|
|
28
|
-
[1m../../MJCore/dist/index.js +
|
|
29
|
-
[1m../../MJGlobal/dist/index.js +
|
|
30
|
-
[1m../../GraphQLDataProvider/dist/index.mjs[39m[22m
|
|
31
|
-
webpack 5.105.0 compiled [1m[32msuccessfully[39m[22m in
|
|
27
|
+
[1m./dist/index.js + 28 modules[39m[22m 432 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
28
|
+
[1m../../MJCore/dist/index.js + 83 modules[39m[22m 1.64 MiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
29
|
+
[1m../../MJGlobal/dist/index.js + 18 modules[39m[22m 258 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
30
|
+
[1m../../GraphQLDataProvider/dist/index.mjs[39m[22m 190 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
31
|
+
webpack 5.105.0 compiled [1m[32msuccessfully[39m[22m 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
|