@dynamic-labs/message-transport 4.0.0-alpha.18 → 4.0.0-alpha.19
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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/store/store.cjs +1 -1
- package/src/store/store.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.19](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2024-10-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* ensure the client js will emit a change event after the value update ([#7284](https://github.com/dynamic-labs/dynamic-auth/issues/7284)) ([930d2e9](https://github.com/dynamic-labs/dynamic-auth/commit/930d2e9fdc75fd4a38da8ef6efc9d3e29152285b))
|
|
8
|
+
|
|
2
9
|
## [4.0.0-alpha.18](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2024-10-29)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/message-transport",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.19",
|
|
4
4
|
"description": "Defines the interface to communicate with dynamic's webview",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.559",
|
|
22
22
|
"@vue/reactivity": "^3.4.21",
|
|
23
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
23
|
+
"@dynamic-labs/types": "4.0.0-alpha.19",
|
|
24
24
|
"eventemitter3": "5.0.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.19",
|
|
28
|
+
"@dynamic-labs/logger": "4.0.0-alpha.19",
|
|
29
|
+
"@dynamic-labs/utils": "4.0.0-alpha.19"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/store/store.cjs
CHANGED
|
@@ -38,6 +38,7 @@ const createStore = ({ initialState, key, messageTransport, }) => {
|
|
|
38
38
|
const messageName = `${key}__${variable}Changed`;
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
40
|
requestChannel$1.handle(messageName, (newValue) => {
|
|
41
|
+
state[variable] = newValue;
|
|
41
42
|
const eventName = `${variable}Changed`;
|
|
42
43
|
// We emit with the same event name for simplicity, but keep in mind
|
|
43
44
|
// the eventEmitter events are different from the messageTransport message we are handling.
|
|
@@ -47,7 +48,6 @@ const createStore = ({ initialState, key, messageTransport, }) => {
|
|
|
47
48
|
// but all this is encapsulated in this function and it works like a charm for whoever calls it.
|
|
48
49
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
50
|
eventEmitter.emit(eventName, newValue);
|
|
50
|
-
state[variable] = newValue;
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
return {
|
package/src/store/store.js
CHANGED
|
@@ -30,6 +30,7 @@ const createStore = ({ initialState, key, messageTransport, }) => {
|
|
|
30
30
|
const messageName = `${key}__${variable}Changed`;
|
|
31
31
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
32
|
requestChannel.handle(messageName, (newValue) => {
|
|
33
|
+
state[variable] = newValue;
|
|
33
34
|
const eventName = `${variable}Changed`;
|
|
34
35
|
// We emit with the same event name for simplicity, but keep in mind
|
|
35
36
|
// the eventEmitter events are different from the messageTransport message we are handling.
|
|
@@ -39,7 +40,6 @@ const createStore = ({ initialState, key, messageTransport, }) => {
|
|
|
39
40
|
// but all this is encapsulated in this function and it works like a charm for whoever calls it.
|
|
40
41
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
42
|
eventEmitter.emit(eventName, newValue);
|
|
42
|
-
state[variable] = newValue;
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
return {
|