@domql/state 2.5.65 → 2.5.69

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.
@@ -124,10 +124,7 @@ const toggle = function(key, options = {}) {
124
124
  };
125
125
  const remove = function(key, options = {}) {
126
126
  const state = this;
127
- if ((0, import_utils.isArray)(state))
128
- (0, import_utils.removeFromArray)(state, key);
129
- if ((0, import_utils.isObject)(state))
130
- (0, import_utils.removeFromObject)(state, key);
127
+ state[key] = null;
131
128
  return state.set(state.parse(), { replace: true, ...options });
132
129
  };
133
130
  const set = function(val, options = {}) {
package/methods.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { isArray, deepCloneWithExtend, isFunction, isObject, isString, removeFromArray, removeFromObject } from '@domql/utils'
3
+ import { isArray, deepCloneWithExtend, isFunction, isObject, isString } from '@domql/utils'
4
4
 
5
5
  import { IGNORE_STATE_PARAMS } from './ignore'
6
6
 
@@ -102,8 +102,9 @@ export const toggle = function (key, options = {}) {
102
102
 
103
103
  export const remove = function (key, options = {}) {
104
104
  const state = this
105
- if (isArray(state)) removeFromArray(state, key)
106
- if (isObject(state)) removeFromObject(state, key)
105
+ // if (isArray(state)) removeFromArray(state, key)
106
+ // if (isObject(state)) removeFromObject(state, key)
107
+ state[key] = null
107
108
  return state.set(state.parse(), { replace: true, ...options })
108
109
  }
109
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/state",
3
- "version": "2.5.65",
3
+ "version": "2.5.69",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
@@ -31,5 +31,5 @@
31
31
  "@domql/report": "latest",
32
32
  "@domql/utils": "latest"
33
33
  },
34
- "gitHead": "473e5569815c8e062b8e584549889557330c249a"
34
+ "gitHead": "ee205b9ab7b486d6844338ba9417ec643055ae7f"
35
35
  }