@domql/state 2.3.129 → 2.3.130

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.
@@ -93,7 +93,7 @@ const rootUpdate = function(obj, options = {}) {
93
93
  if (!state)
94
94
  return;
95
95
  const rootState = state.__element.__ref.__root.state;
96
- return rootState.update(obj, options);
96
+ return rootState.update(obj, { isHoisted: false, options });
97
97
  };
98
98
  const add = function(value, options = {}) {
99
99
  const state = this;
@@ -30,8 +30,9 @@ const STATE_UPDATE_OPTIONS = {
30
30
  overwrite: true,
31
31
  preventHoistElementUpdate: false,
32
32
  updateByState: true,
33
- execStateFunction: false,
34
- stateFunctionOverwrite: "replace"
33
+ execStateFunction: true,
34
+ isHoisted: true,
35
+ stateFunctionOverwrite: true
35
36
  };
36
37
  const updateState = function(obj, options = STATE_UPDATE_OPTIONS) {
37
38
  const state = this;
package/methods.js CHANGED
@@ -72,7 +72,7 @@ export const rootUpdate = function (obj, options = {}) {
72
72
  const state = this
73
73
  if (!state) return
74
74
  const rootState = (state.__element.__ref.__root).state
75
- return rootState.update(obj, options)
75
+ return rootState.update(obj, { isHoisted: false, options })
76
76
  }
77
77
 
78
78
  export const add = function (value, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/state",
3
- "version": "2.3.129",
3
+ "version": "2.3.130",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
@@ -26,5 +26,5 @@
26
26
  "@domql/report": "latest",
27
27
  "@domql/utils": "latest"
28
28
  },
29
- "gitHead": "0e8a2af0c841d2a7f189fdf9968983d2a8566432"
29
+ "gitHead": "6160195e1279dda74af7a092e863e4bbf397e81e"
30
30
  }
package/updateState.js CHANGED
@@ -10,8 +10,9 @@ const STATE_UPDATE_OPTIONS = {
10
10
  overwrite: true,
11
11
  preventHoistElementUpdate: false,
12
12
  updateByState: true,
13
- execStateFunction: false,
14
- stateFunctionOverwrite: 'replace'
13
+ execStateFunction: true,
14
+ isHoisted: true,
15
+ stateFunctionOverwrite: true
15
16
  }
16
17
 
17
18
  export const updateState = function (obj, options = STATE_UPDATE_OPTIONS) {