@webkrafters/react-observable-context 4.0.0 → 4.1.0-alpha.1
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/README.md +286 -87
- package/dist/constants.d.ts +8 -1
- package/dist/constants.js +16 -2
- package/dist/main/hooks/use-state-manager/index.js +2 -2
- package/dist/main/hooks/use-store/index.d.ts +2 -1
- package/dist/main/hooks/use-store/index.js +5 -6
- package/dist/main/index.d.ts +10 -9
- package/dist/main/set-state/index.d.ts +4 -4
- package/dist/main/set-state/index.js +94 -67
- package/dist/main/set-state/tag-functions/index.d.ts +37 -0
- package/dist/main/set-state/tag-functions/index.js +348 -0
- package/dist/model/accessor-cache/index.d.ts +1 -1
- package/dist/model/accessor-cache/index.js +7 -8
- package/dist/model/atom/index.js +1 -3
- package/dist/model/storage/index.js +2 -3
- package/dist/types.d.ts +48 -4
- package/dist/utils/clonedeep-eligibility-check.d.ts +7 -0
- package/dist/utils/clonedeep-eligibility-check.js +52 -0
- package/dist/utils/index.d.ts +7 -1
- package/dist/utils/index.js +126 -4
- package/package.json +7 -3
package/dist/model/atom/index.js
CHANGED
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var _lodash = _interopRequireDefault(require("lodash.clonedeep"));
|
|
8
7
|
var _utils = require("../../utils");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
9
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -61,7 +59,7 @@ var Atom = function () {
|
|
|
61
59
|
}, {
|
|
62
60
|
key: "setValue",
|
|
63
61
|
value: function setValue(newValue) {
|
|
64
|
-
_classPrivateFieldSet(this, _value, (0, _utils.makeReadonly)((0,
|
|
62
|
+
_classPrivateFieldSet(this, _value, (0, _utils.makeReadonly)((0, _utils.clonedeep)(newValue)));
|
|
65
63
|
}
|
|
66
64
|
}]);
|
|
67
65
|
return Atom;
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _utils = require("../../utils");
|
|
8
8
|
var _globalThis$sessionSt;
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
9
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
@@ -33,7 +32,7 @@ var MemoryStorage = function () {
|
|
|
33
32
|
_createClass(MemoryStorage, [{
|
|
34
33
|
key: "clone",
|
|
35
34
|
value: function clone(data) {
|
|
36
|
-
return (0,
|
|
35
|
+
return (0, _utils.clonedeep)(data);
|
|
37
36
|
}
|
|
38
37
|
}, {
|
|
39
38
|
key: "getItem",
|
package/dist/types.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type IStore = {
|
|
|
15
15
|
setState: NonReactUsageReport;
|
|
16
16
|
subscribe: NonReactUsageReport;
|
|
17
17
|
};
|
|
18
|
-
export type Listener<T extends State> = (changes: PartialState<T
|
|
18
|
+
export type Listener<T extends State> = (changes: UpdatePayload<PartialState<T>>) => void;
|
|
19
19
|
export type NonReactUsageReport = () => never;
|
|
20
20
|
export type PartialState<T extends State> = { [K in keyof T]?: T[K]; };
|
|
21
21
|
export type Prehooks<T extends State> = {
|
|
@@ -25,12 +25,20 @@ export type Prehooks<T extends State> = {
|
|
|
25
25
|
}) => boolean;
|
|
26
26
|
setState?: (newChanges: PartialState<T>) => boolean;
|
|
27
27
|
};
|
|
28
|
+
export type PropertyInfo<T extends any[] | State> = {
|
|
29
|
+
_value: any;
|
|
30
|
+
exists: boolean;
|
|
31
|
+
index: number;
|
|
32
|
+
key: string | symbol | number;
|
|
33
|
+
source: T;
|
|
34
|
+
value: any;
|
|
35
|
+
};
|
|
28
36
|
export type State = {
|
|
29
37
|
[x: string]: any;
|
|
30
38
|
};
|
|
31
39
|
export type StoreInternal<T extends State> = {
|
|
32
40
|
resetState: (propertyPaths?: string[]) => void;
|
|
33
|
-
setState: (changes: PartialState<T
|
|
41
|
+
setState: (changes: UpdatePayload<PartialState<T>>) => void;
|
|
34
42
|
} & {
|
|
35
43
|
getState: (clientId: string, ...propertyPaths?: string[]) => {
|
|
36
44
|
[propertyPaths: string]: Readonly<any>;
|
|
@@ -41,6 +49,42 @@ export type StoreInternal<T extends State> = {
|
|
|
41
49
|
export type Store<T extends State> = {
|
|
42
50
|
data: Data;
|
|
43
51
|
resetState: (propertyPaths?: string[]) => void;
|
|
44
|
-
setState: (changes: PartialState<T
|
|
52
|
+
setState: (changes: UpdatePayload<PartialState<T>>) => void;
|
|
53
|
+
};
|
|
54
|
+
export type UpdateStats = {
|
|
55
|
+
hasChanges: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type UpdatePayload<T> = "@@CLEAR" | T | ClearCommand | DeleteCommand<T> | MoveCommand | PushCommand | ReplaceCommand | SetCommand<T> | SpliceCommand | { [K in keyof T]?: UpdatePayload<T[K]>; };
|
|
58
|
+
export type ClearCommand = {
|
|
59
|
+
"@@CLEAR": any;
|
|
60
|
+
};
|
|
61
|
+
export type DeleteCommand<T extends any[] | State> = {
|
|
62
|
+
"@@DELETE": (keyof T)[];
|
|
63
|
+
};
|
|
64
|
+
export type MoveCommand = {
|
|
65
|
+
"@@MOVE": [number, number, number?];
|
|
45
66
|
};
|
|
46
|
-
export type
|
|
67
|
+
export type PushCommand = {
|
|
68
|
+
"@@PUSH": any[];
|
|
69
|
+
};
|
|
70
|
+
export type ReplaceCommand = {
|
|
71
|
+
"@@REPLACE": BaseType;
|
|
72
|
+
};
|
|
73
|
+
export type SetCommand<V> = {
|
|
74
|
+
"@@SET": BaseType | ((currentValue: V) => any);
|
|
75
|
+
};
|
|
76
|
+
export type SpliceCommand = {
|
|
77
|
+
"@@SPLICE": [number, number, ...any[]];
|
|
78
|
+
};
|
|
79
|
+
export type CLEAR_TAG = typeof import("./constants").CLEAR_TAG;
|
|
80
|
+
export type DELETE_TAG = typeof import("./constants").DELETE_TAG;
|
|
81
|
+
export type FULL_STATE_SELECTOR = typeof import("./constants").FULL_STATE_SELECTOR;
|
|
82
|
+
export type MOVE_TAG = typeof import("./constants").MOVE_TAG;
|
|
83
|
+
export type PUSH_TAG = typeof import("./constants").PUSH_TAG;
|
|
84
|
+
export type REPLACE_TAG = typeof import("./constants").REPLACE_TAG;
|
|
85
|
+
export type SET_TAG = typeof import("./constants").SET_TAG;
|
|
86
|
+
export type SPLICE_TAG = typeof import("./constants").SPLICE_TAG;
|
|
87
|
+
export type Unsubscribe = VoidFunction;
|
|
88
|
+
export type BaseType = string | number | boolean | symbol | any[] | {
|
|
89
|
+
[x: string]: any;
|
|
90
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
exports["default"] = exports.CLONEABLE_TAGS = void 0;
|
|
6
|
+
var _default = verify;
|
|
7
|
+
exports["default"] = _default;
|
|
8
|
+
var CLONEABLE_TAGS = Object({
|
|
9
|
+
Arguments: null,
|
|
10
|
+
Array: null,
|
|
11
|
+
ArrayBuffer: null,
|
|
12
|
+
Boolean: null,
|
|
13
|
+
DataView: null,
|
|
14
|
+
Date: null,
|
|
15
|
+
Error: null,
|
|
16
|
+
Function: null,
|
|
17
|
+
Float32Array: null,
|
|
18
|
+
Float64Array: null,
|
|
19
|
+
GeneratorFunction: null,
|
|
20
|
+
Int8Array: null,
|
|
21
|
+
Int16Array: null,
|
|
22
|
+
Int32Array: null,
|
|
23
|
+
Map: null,
|
|
24
|
+
Number: null,
|
|
25
|
+
Object: null,
|
|
26
|
+
Promise: null,
|
|
27
|
+
RegExp: null,
|
|
28
|
+
Set: null,
|
|
29
|
+
String: null,
|
|
30
|
+
Symbol: null,
|
|
31
|
+
Uint8Array: null,
|
|
32
|
+
Uint8ClampedArray: null,
|
|
33
|
+
Uint16Array: null,
|
|
34
|
+
Uint32Array: null,
|
|
35
|
+
WeakMap: null
|
|
36
|
+
});
|
|
37
|
+
exports.CLONEABLE_TAGS = CLONEABLE_TAGS;
|
|
38
|
+
function verify(value) {
|
|
39
|
+
var typeName = value === null || value === void 0 ? void 0 : value.constructor.name;
|
|
40
|
+
var isEligible;
|
|
41
|
+
if (typeName !== undefined) {
|
|
42
|
+
isEligible = typeName in CLONEABLE_TAGS;
|
|
43
|
+
} else {
|
|
44
|
+
typeName = "".concat(value);
|
|
45
|
+
isEligible = true;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
isEligible: isEligible,
|
|
49
|
+
typeName: typeName,
|
|
50
|
+
value: value
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export function arrangePropertyPaths(propertyPaths: Array<string>): Array<string>;
|
|
2
|
+
export function isDataContainer(v: any): boolean;
|
|
2
3
|
export function makeReadonly<T>(v: T): Readonly<T>;
|
|
3
4
|
export function mapPathsToObject<T extends {
|
|
4
5
|
[x: string]: any;
|
|
5
|
-
}>(source: T, propertyPaths: Array<string>): { [K in keyof T]?: any; };
|
|
6
|
+
}>(source: T, propertyPaths: Array<string>): { [K in keyof T]?: any; };
|
|
7
|
+
export function clonedeep<T, R>(value: T): R;
|
|
8
|
+
export function getProperty(source: T, path: string | symbol | number | Array<string | symbol | number>, defaultValue: any): PropertyInfo<T>;
|
|
9
|
+
export type GetProperty<T extends any[] | import("../types").State = any[] | import("../types").State, R = any> = (source: T, path: string | symbol | number | Array<string | symbol | number>, defaultValue?: any) => R;
|
|
10
|
+
export type PropertyInfo<T extends any[] | import("../types").State> = import("../types").PropertyInfo<T>;
|
|
11
|
+
export type State = import("../types").State;
|
package/dist/utils/index.js
CHANGED
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
exports.arrangePropertyPaths = arrangePropertyPaths;
|
|
6
|
+
exports.getProperty = exports.clonedeep = void 0;
|
|
7
|
+
exports.isDataContainer = isDataContainer;
|
|
6
8
|
exports.makeReadonly = makeReadonly;
|
|
7
9
|
exports.mapPathsToObject = mapPathsToObject;
|
|
8
|
-
var _lodash = _interopRequireDefault(require("lodash.
|
|
9
|
-
var _lodash2 = _interopRequireDefault(require("lodash.
|
|
10
|
+
var _lodash = _interopRequireDefault(require("lodash.clonedeepwith"));
|
|
11
|
+
var _lodash2 = _interopRequireDefault(require("lodash.get"));
|
|
10
12
|
var _lodash3 = _interopRequireDefault(require("lodash.isplainobject"));
|
|
13
|
+
var _clonedeepEligibilityCheck = _interopRequireDefault(require("./clonedeep-eligibility-check"));
|
|
11
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
16
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
13
17
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
18
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
@@ -58,6 +62,122 @@ function arrangePropertyPaths(propertyPaths) {
|
|
|
58
62
|
return Object.keys(superPathTokensMap);
|
|
59
63
|
}
|
|
60
64
|
;
|
|
65
|
+
var clonedeep = function () {
|
|
66
|
+
var clone = function clone(value) {
|
|
67
|
+
var customizer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (v) {
|
|
68
|
+
if (v === null) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (_typeof(v) === 'object') {
|
|
72
|
+
if ('clone' in v && typeof v.clone === 'function') {
|
|
73
|
+
return v.clone();
|
|
74
|
+
}
|
|
75
|
+
if ('cloneNode' in v && typeof v.cloneNode === 'function') {
|
|
76
|
+
return v.cloneNode(true);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (!(0, _clonedeepEligibilityCheck["default"])(v).isEligible) {
|
|
80
|
+
return v;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
return (0, _lodash["default"])(value, customizer);
|
|
84
|
+
};
|
|
85
|
+
var clonedeep = function clonedeep(value) {
|
|
86
|
+
return clone(value);
|
|
87
|
+
};
|
|
88
|
+
return clonedeep;
|
|
89
|
+
}();
|
|
90
|
+
exports.clonedeep = clonedeep;
|
|
91
|
+
var getProperty = function () {
|
|
92
|
+
var reDelimiter = /[\[\]|\.]+/g;
|
|
93
|
+
var reEndBracketLastChar = /\]$/;
|
|
94
|
+
var reType = /.*\s(\w+)\]$/;
|
|
95
|
+
var fromSource = function fromSource(source, key, defaultValue) {
|
|
96
|
+
var exists = false;
|
|
97
|
+
var index = +key;
|
|
98
|
+
try {
|
|
99
|
+
if (Array.isArray(source)) {
|
|
100
|
+
if (Number.isInteger(index)) {
|
|
101
|
+
if (index < 0) {
|
|
102
|
+
index = source.length + index;
|
|
103
|
+
}
|
|
104
|
+
var _value2 = source[index];
|
|
105
|
+
return {
|
|
106
|
+
_value: _value2,
|
|
107
|
+
exists: index in source,
|
|
108
|
+
index: index,
|
|
109
|
+
key: key,
|
|
110
|
+
source: source,
|
|
111
|
+
value: _value2 !== null && _value2 !== void 0 ? _value2 : defaultValue
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
var _value = source[key];
|
|
116
|
+
exists = key in source;
|
|
117
|
+
return {
|
|
118
|
+
_value: _value,
|
|
119
|
+
exists: exists,
|
|
120
|
+
index: index,
|
|
121
|
+
key: key,
|
|
122
|
+
source: source,
|
|
123
|
+
value: _value !== null && _value !== void 0 ? _value : defaultValue
|
|
124
|
+
};
|
|
125
|
+
} catch (e) {
|
|
126
|
+
return {
|
|
127
|
+
_value: defaultValue,
|
|
128
|
+
exists: exists,
|
|
129
|
+
index: index,
|
|
130
|
+
key: key,
|
|
131
|
+
source: source,
|
|
132
|
+
value: defaultValue
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
var getImmediateParent = function getImmediateParent(source, parentPath) {
|
|
137
|
+
var pLen = parentPath.length;
|
|
138
|
+
if (!pLen) {
|
|
139
|
+
return source;
|
|
140
|
+
}
|
|
141
|
+
var segmentStart = 0;
|
|
142
|
+
for (var p = segmentStart; p < pLen; p++) {
|
|
143
|
+
var key = parentPath[p];
|
|
144
|
+
var kNum = +key;
|
|
145
|
+
if (Number.isInteger(kNum) && kNum < 0) {
|
|
146
|
+
source = (0, _lodash2["default"])(source, parentPath.slice(segmentStart, p));
|
|
147
|
+
segmentStart = p + 1;
|
|
148
|
+
source = fromSource(source, key).value;
|
|
149
|
+
if (segmentStart === pLen || typeof source === 'undefined') {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (segmentStart === 0) {
|
|
155
|
+
return (0, _lodash2["default"])(source, parentPath);
|
|
156
|
+
}
|
|
157
|
+
if (segmentStart === pLen || typeof source === 'undefined') {
|
|
158
|
+
return source;
|
|
159
|
+
}
|
|
160
|
+
return (0, _lodash2["default"])(source, parentPath.slice(segmentStart, pLen));
|
|
161
|
+
};
|
|
162
|
+
var getInfo = function getInfo(source, path, defaultValue) {
|
|
163
|
+
switch (Object.prototype.toString.call(path).replace(reType, '$1')) {
|
|
164
|
+
case 'String':
|
|
165
|
+
path = path.replace(reEndBracketLastChar, '').split(reDelimiter);
|
|
166
|
+
break;
|
|
167
|
+
case 'Array':
|
|
168
|
+
break;
|
|
169
|
+
default:
|
|
170
|
+
path = [path];
|
|
171
|
+
}
|
|
172
|
+
var key = path.pop();
|
|
173
|
+
return fromSource(getImmediateParent(source, path), key, defaultValue);
|
|
174
|
+
};
|
|
175
|
+
return getInfo;
|
|
176
|
+
}();
|
|
177
|
+
exports.getProperty = getProperty;
|
|
178
|
+
function isDataContainer(v) {
|
|
179
|
+
return (0, _lodash3["default"])(v) || Array.isArray(v);
|
|
180
|
+
}
|
|
61
181
|
function makeReadonly(v) {
|
|
62
182
|
var frozen = true;
|
|
63
183
|
if ((0, _lodash3["default"])(v)) {
|
|
@@ -97,10 +217,12 @@ function mapPathsToObject(source, propertyPaths) {
|
|
|
97
217
|
try {
|
|
98
218
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
99
219
|
var _path2 = _step3.value;
|
|
100
|
-
|
|
220
|
+
var _getProperty = getProperty(source, _path2),
|
|
221
|
+
exists = _getProperty.exists,
|
|
222
|
+
value = _getProperty.value;
|
|
223
|
+
if (!exists) {
|
|
101
224
|
continue;
|
|
102
225
|
}
|
|
103
|
-
var value = (0, _lodash["default"])(source, _path2);
|
|
104
226
|
for (var tokens = _path2.split('.'), tLen = tokens.length, t = 0; t < tLen; t++) {
|
|
105
227
|
var token = tokens[t];
|
|
106
228
|
if (t + 1 === tLen) {
|
package/package.json
CHANGED
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
"steveswork <stephen.isienyi@gmail.com> (https://github.com/steveswork)"
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"lodash.
|
|
10
|
+
"lodash.clonedeepwith": "^4.5.0",
|
|
11
11
|
"lodash.get": "^4.4.2",
|
|
12
|
-
"lodash.has": "^4.5.2",
|
|
13
12
|
"lodash.isboolean": "^3.0.3",
|
|
14
13
|
"lodash.isempty": "^4.4.0",
|
|
15
14
|
"lodash.isequal": "^4.5.0",
|
|
@@ -52,6 +51,8 @@
|
|
|
52
51
|
"index.js",
|
|
53
52
|
"dist/utils/index.js",
|
|
54
53
|
"dist/utils/index.d.ts",
|
|
54
|
+
"dist/utils/clonedeep-eligibility-check.js",
|
|
55
|
+
"dist/utils/clonedeep-eligibility-check.d.ts",
|
|
55
56
|
"dist/types.d.ts",
|
|
56
57
|
"dist/model/storage/index.js",
|
|
57
58
|
"dist/model/storage/index.d.ts",
|
|
@@ -61,6 +62,8 @@
|
|
|
61
62
|
"dist/model/accessor-cache/index.d.ts",
|
|
62
63
|
"dist/model/accessor/index.js",
|
|
63
64
|
"dist/model/accessor/index.d.ts",
|
|
65
|
+
"dist/main/set-state/tag-functions/index.js",
|
|
66
|
+
"dist/main/set-state/tag-functions/index.d.ts",
|
|
64
67
|
"dist/main/set-state/index.js",
|
|
65
68
|
"dist/main/set-state/index.d.ts",
|
|
66
69
|
"dist/main/index.js",
|
|
@@ -125,9 +128,10 @@
|
|
|
125
128
|
"build": "eslint --fix && rm -rf dist && babel src -d dist && npx -p typescript tsc",
|
|
126
129
|
"postbuild": "node ./post-builder",
|
|
127
130
|
"test": "eslint --fix && jest --coverage --updateSnapshot",
|
|
131
|
+
"test:clean": "jest --clearCache",
|
|
128
132
|
"test:core": "jest --updateSnapshot",
|
|
129
133
|
"test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
|
|
130
134
|
},
|
|
131
135
|
"types": "dist/main/index.d.ts",
|
|
132
|
-
"version": "4.0.
|
|
136
|
+
"version": "4.1.0-alpha.1"
|
|
133
137
|
}
|