sia-reactor 0.0.21 → 0.0.22
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 +115 -89
- package/dist/{TimeTravelOverlay-CJv-S_Km.d.cts → TimeTravelOverlay-DiXUgbUU.d.cts} +9 -8
- package/dist/{TimeTravelOverlay-DxqJL0Zk.d.ts → TimeTravelOverlay-eWjAy0yr.d.ts} +9 -8
- package/dist/adapters/react.cjs +66 -84
- package/dist/adapters/react.d.cts +23 -22
- package/dist/adapters/react.d.ts +23 -22
- package/dist/adapters/react.js +3 -3
- package/dist/adapters/vanilla.cjs +66 -84
- package/dist/adapters/vanilla.d.cts +4 -4
- package/dist/adapters/vanilla.d.ts +4 -4
- package/dist/adapters/vanilla.js +3 -3
- package/dist/{chunk-2WBPGSRL.js → chunk-3SKLWTEA.js} +52 -70
- package/dist/{chunk-DP74DVRT.js → chunk-BTA6MIQ6.js} +40 -8
- package/dist/{chunk-TFLYCXK4.js → chunk-CS3FOV6J.js} +14 -13
- package/dist/{index-Oie9hhE8.d.cts → index-BgbbNXTW.d.cts} +306 -207
- package/dist/{index-Oie9hhE8.d.ts → index-BgbbNXTW.d.ts} +306 -207
- package/dist/index.cjs +54 -75
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -4
- package/dist/{plugins.cjs → modules.cjs} +437 -166
- package/dist/modules.d.cts +53 -0
- package/dist/modules.d.ts +53 -0
- package/dist/modules.js +627 -0
- package/dist/super.d.ts +610 -281
- package/dist/super.global.js +445 -174
- package/dist/timeTravel-CraHdbXZ.d.cts +352 -0
- package/dist/timeTravel-YUxRHRgh.d.ts +352 -0
- package/dist/utils.cjs +41 -7
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -1
- package/package.json +6 -6
- package/dist/plugins.d.cts +0 -112
- package/dist/plugins.d.ts +0 -112
- package/dist/plugins.js +0 -370
- package/dist/timeTravel-B1vedDQc.d.ts +0 -76
- package/dist/timeTravel-WpgWmKu-.d.cts +0 -76
package/dist/index.cjs
CHANGED
|
@@ -22,7 +22,6 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
CTX: () => CTX,
|
|
24
24
|
EVT_OPTS: () => EVT_OPTS,
|
|
25
|
-
EVT_WARN: () => EVT_WARN,
|
|
26
25
|
INDIFFABLE: () => INDIFFABLE,
|
|
27
26
|
INERTIA: () => INERTIA,
|
|
28
27
|
NIL: () => NIL,
|
|
@@ -57,7 +56,9 @@ module.exports = __toCommonJS(index_exports);
|
|
|
57
56
|
var CTX = {
|
|
58
57
|
/** Flag indicating whether the application is running in development mode. */
|
|
59
58
|
isDevEnv: "undefined" !== typeof process ? process.env.NODE_ENV !== "production" : true,
|
|
60
|
-
/**
|
|
59
|
+
/** Flag indicating whether a cascade is currently ongoing so reactors can allow all writes. */
|
|
60
|
+
isCascading: false,
|
|
61
|
+
/** Active `Autotracker` instance, override for automatic dependency collection on `Reactor` traps. */
|
|
61
62
|
autotracker: null
|
|
62
63
|
};
|
|
63
64
|
var RAW = /* @__PURE__ */ Symbol.for("S.I.A_RAW");
|
|
@@ -69,7 +70,6 @@ var VERSION = /* @__PURE__ */ Symbol.for("S.I.A_VERSION");
|
|
|
69
70
|
var SSVERSION = /* @__PURE__ */ Symbol.for("S.I.A_SNAPSHOT_VERSION");
|
|
70
71
|
var RTR_BATCH = "undefined" !== typeof window ? ("undefined" !== typeof queueMicrotask ? queueMicrotask : setTimeout).bind(window) : "undefined" !== typeof process && process.nextTick ? process.nextTick : setTimeout;
|
|
71
72
|
var RTR_LOG = console.log.bind(console, "[S.I.A Reactor]");
|
|
72
|
-
var EVT_WARN = console.warn.bind(console, "[S.I.A Event]");
|
|
73
73
|
var EVT_OPTS = { LISTENER: ["capture", "depth", "once", "signal", "immediate"], MEDIATOR: ["lazy", "signal", "immediate"] };
|
|
74
74
|
var NIL = Object.freeze({});
|
|
75
75
|
var NOOP = () => {
|
|
@@ -168,10 +168,6 @@ function inAny(source, key, separator = ".", keyFunc) {
|
|
|
168
168
|
function parseEvtOpts(options, opts, boolOpt = opts[0], result = {}) {
|
|
169
169
|
return Object.assign(result, "boolean" === typeof options ? { [boolOpt]: options } : options), result;
|
|
170
170
|
}
|
|
171
|
-
function mergeObjs(o1 = {}, o2 = {}) {
|
|
172
|
-
const merged = { ...o1 || {}, ...o2 || {} };
|
|
173
|
-
return Object.keys(merged).forEach((k) => isObj(o1?.[k]) && isObj(o2?.[k]) && (merged[k] = mergeObjs(o1[k], o2[k]))), merged;
|
|
174
|
-
}
|
|
175
171
|
function getTrailRecords(obj, path, reverse = false) {
|
|
176
172
|
const parts = path.split("."), chain = [["*", obj, obj]];
|
|
177
173
|
for (let acc = "", currObj = obj, i = 0, len = parts.length; i < len; i++) chain.push([acc += (i ? "." : "") + parts[i], currObj, currObj = currObj?.[parts[i]]]);
|
|
@@ -214,35 +210,34 @@ var ReactorEvent = class _ReactorEvent {
|
|
|
214
210
|
staticType;
|
|
215
211
|
/** Original event target context. */
|
|
216
212
|
target;
|
|
217
|
-
/** Root reactive object for this event wave. */
|
|
213
|
+
/** Root reactive object for this event instance wave. */
|
|
218
214
|
root;
|
|
219
|
-
/** Original target path for this event wave. */
|
|
215
|
+
/** Original target path for this event instance wave. */
|
|
220
216
|
path;
|
|
221
217
|
/** Current value at the event target path. */
|
|
222
218
|
value;
|
|
223
219
|
/** Previous value at the event target path. */
|
|
224
220
|
oldValue;
|
|
225
|
-
/** Whether resolve/reject intent semantics are allowed for this event. */
|
|
221
|
+
/** Whether resolve/reject intent semantics are allowed for this event instance. */
|
|
226
222
|
rejectable;
|
|
227
|
-
/** Whether this event wave can bubble back up to ancestors or just capture down. */
|
|
223
|
+
/** Whether this event instance wave can bubble back up to ancestors or just capture down. */
|
|
228
224
|
bubbles;
|
|
229
225
|
/**
|
|
230
|
-
* `DOMHighResTimeStamp` for this event payload for native event parity and accuracy.
|
|
226
|
+
* `DOMHighResTimeStamp` for this event instance payload for native event parity and accuracy.
|
|
231
227
|
* Enable `eventTimeStamps` option, then use this over custom timestamps in listeners for accuracy.
|
|
232
228
|
* */
|
|
233
229
|
timestamp;
|
|
234
|
-
|
|
230
|
+
/** The `Reactor` instance that dispatched this event instance. */
|
|
231
|
+
reactor;
|
|
235
232
|
_resolved = "";
|
|
236
233
|
_rejected = "";
|
|
237
234
|
_propagationStopped = false;
|
|
238
235
|
_immediatePropagationStopped = false;
|
|
239
236
|
/**
|
|
240
237
|
* @param payload Source payload for this event instance.
|
|
241
|
-
* @param
|
|
242
|
-
* @param canWarn Whether warning output is enabled.
|
|
243
|
-
* @param canStamp Whether timestamping is enabled.
|
|
238
|
+
* @param reactor The `Reactor` instance creating this event instance.
|
|
244
239
|
*/
|
|
245
|
-
constructor(payload,
|
|
240
|
+
constructor(payload, reactor) {
|
|
246
241
|
this.staticType = this.type = payload.type;
|
|
247
242
|
this.target = payload.target;
|
|
248
243
|
this.currentTarget = payload.currentTarget;
|
|
@@ -251,9 +246,9 @@ var ReactorEvent = class _ReactorEvent {
|
|
|
251
246
|
this.value = payload.target.value;
|
|
252
247
|
this.oldValue = payload.target.oldValue;
|
|
253
248
|
this.rejectable = payload.rejectable;
|
|
254
|
-
this.bubbles =
|
|
255
|
-
if (
|
|
256
|
-
|
|
249
|
+
this.bubbles = !!reactor.config.eventBubbling;
|
|
250
|
+
if (reactor.config.eventTimeStamps) this.timestamp = performance.now();
|
|
251
|
+
this.reactor = reactor;
|
|
257
252
|
}
|
|
258
253
|
/** Whether propagation has been stopped. */
|
|
259
254
|
get propagationStopped() {
|
|
@@ -283,9 +278,9 @@ var ReactorEvent = class _ReactorEvent {
|
|
|
283
278
|
* @example e.resolve("API Load successful"); // message
|
|
284
279
|
*/
|
|
285
280
|
resolve(message) {
|
|
286
|
-
if (!this.rejectable) return this.
|
|
287
|
-
if (this.eventPhase !== _ReactorEvent.CAPTURING_PHASE) this.
|
|
288
|
-
if (this.rejectable) this._resolved = message || `Could ${this.staticType} intended value at "${this.path}"
|
|
281
|
+
if (!this.rejectable) return this.reactor.log(`[ReactorEvent] Ignored \`resolve()\` call on a non-rejectable ${this.staticType} at "${this.path}"`);
|
|
282
|
+
if (this.eventPhase !== _ReactorEvent.CAPTURING_PHASE) this.reactor.log(`[ReactorEvent] Resolving an intent on ${this.staticType} at "${this.path}" outside of the capture phase is unadvised.`);
|
|
283
|
+
if (this.rejectable) this.reactor.log(`[ReactorEvent] ${this._resolved = message || `Could ${this.staticType} intended value at "${this.path}"`}`);
|
|
289
284
|
}
|
|
290
285
|
/** Rejection reason for rejectable events. */
|
|
291
286
|
get rejected() {
|
|
@@ -298,9 +293,9 @@ var ReactorEvent = class _ReactorEvent {
|
|
|
298
293
|
* @example e.resolve("User is not logged in"); // reason
|
|
299
294
|
*/
|
|
300
295
|
reject(reason) {
|
|
301
|
-
if (!this.rejectable) return this.
|
|
302
|
-
if (this.eventPhase !== _ReactorEvent.CAPTURING_PHASE) this.
|
|
303
|
-
if (this.rejectable) this._rejected = reason || `Couldn't ${this.staticType} intended value at "${this.path}"
|
|
296
|
+
if (!this.rejectable) return this.reactor.log(`[ReactorEvent] Ignored \`reject()\` call on a non-rejectable ${this.staticType} at "${this.path}"`);
|
|
297
|
+
if (this.eventPhase !== _ReactorEvent.CAPTURING_PHASE) this.reactor.log(`[ReactorEvent] Rejecting an intent on ${this.staticType} at "${this.path}" outside of the capture phase is unadvised.`);
|
|
298
|
+
if (this.rejectable) this.reactor.log(`[ReactorEvent] ${this._rejected = reason || `Couldn't ${this.staticType} intended value at "${this.path}"`}`);
|
|
304
299
|
}
|
|
305
300
|
/**
|
|
306
301
|
* Returns event path values from target to root.
|
|
@@ -309,24 +304,22 @@ var ReactorEvent = class _ReactorEvent {
|
|
|
309
304
|
composedPath() {
|
|
310
305
|
return getTrailRecords(this.root, this.path, true).map((r) => r[2]);
|
|
311
306
|
}
|
|
312
|
-
get canWarn() {
|
|
313
|
-
return this._warn !== NOOP;
|
|
314
|
-
}
|
|
315
307
|
};
|
|
316
308
|
|
|
317
309
|
// src/ts/core/reactor.ts
|
|
318
310
|
var Reactor = class {
|
|
311
|
+
/** Logger function for this reactor instance, override if desired, `this.canLog = false` resets. */
|
|
319
312
|
log = NOOP;
|
|
313
|
+
/** The core state object for this reactor instance. */
|
|
320
314
|
core;
|
|
321
315
|
// `?:`s | pay the ~800 byte price upfront for what u might never use
|
|
322
|
-
|
|
316
|
+
/** The modules being used by this reactor. */
|
|
317
|
+
modules;
|
|
318
|
+
/** Configuration options for this reactor instance. */
|
|
323
319
|
config;
|
|
320
|
+
/** Whether this reactor instance is currently batching updates, a window view into the engine timing */
|
|
324
321
|
isBatching = false;
|
|
325
322
|
// Async Batching
|
|
326
|
-
isCascading = false;
|
|
327
|
-
// Setter Cascading
|
|
328
|
-
isLogging = false;
|
|
329
|
-
// keeping track so API getter doesn't slow down internal iterations in any way
|
|
330
323
|
queue;
|
|
331
324
|
// Tasks to run after flush
|
|
332
325
|
batch;
|
|
@@ -393,7 +386,7 @@ var Reactor = class {
|
|
|
393
386
|
safeValue = value?.[RAW] || value;
|
|
394
387
|
unchanged = this.config.equalityFunction(safeValue, safeOldValue);
|
|
395
388
|
}
|
|
396
|
-
if (!indiffable && unchanged && !
|
|
389
|
+
if (!indiffable && unchanged && !CTX.isCascading) return this.log(`\u{1F504} [Reactor \`set\` Trap] Unchanged for "${keyStr}" on "${paths}"`), true;
|
|
397
390
|
if (this.config.set) terminated = (value = this.config.set(object, key2, value, oldValue, receiver, paths)) === TERMINATOR;
|
|
398
391
|
if (this.setters) {
|
|
399
392
|
const wildcords = this.setters.get("*");
|
|
@@ -547,7 +540,7 @@ var Reactor = class {
|
|
|
547
540
|
if (this.queue?.size) for (const task of this.queue) task(), this.queue.delete(task);
|
|
548
541
|
}
|
|
549
542
|
wave(path, payload) {
|
|
550
|
-
const e = new ReactorEvent(payload, this
|
|
543
|
+
const e = new ReactorEvent(payload, this), chain = getTrailRecords(this.core, path);
|
|
551
544
|
e.eventPhase = ReactorEvent.CAPTURING_PHASE;
|
|
552
545
|
for (let i = 0; i <= chain.length - 2; i++) {
|
|
553
546
|
if (e.propagationStopped) break;
|
|
@@ -621,8 +614,8 @@ var Reactor = class {
|
|
|
621
614
|
return depth;
|
|
622
615
|
}
|
|
623
616
|
getContext(path) {
|
|
624
|
-
const
|
|
625
|
-
return { path, value, key: path.slice(
|
|
617
|
+
const last = path.lastIndexOf("."), value = getAny(this.core, path), object = last === -1 ? this.core : getAny(this.core, path.slice(0, last));
|
|
618
|
+
return { path, value, key: path.slice(last + 1) || "", hadKey: true, object };
|
|
626
619
|
}
|
|
627
620
|
bindSignal(cord, sig) {
|
|
628
621
|
if (sig) sig.aborted ? cord.clup() : sig.addEventListener("abort", cord.clup, { once: true });
|
|
@@ -638,7 +631,11 @@ var Reactor = class {
|
|
|
638
631
|
const clone = !raw ? this.config.preserveContext ? Object.create(Object.getPrototypeOf(obj)) : Array.isArray(obj) ? [] : {} : obj;
|
|
639
632
|
seen.set(obj, clone);
|
|
640
633
|
const keys = this.config.preserveContext ? Reflect.ownKeys(obj) : Object.keys(obj);
|
|
641
|
-
for (let i = 0, len = keys.length; i < len; i++)
|
|
634
|
+
for (let i = 0, len = keys.length; i < len; i++)
|
|
635
|
+
try {
|
|
636
|
+
clone[keys[i]] = this.cloned(obj[keys[i]], raw, seen);
|
|
637
|
+
} catch {
|
|
638
|
+
}
|
|
642
639
|
if (!raw && this.config.smartCloning) this.snapCache.set(obj, clone), obj[SSVERSION] = version;
|
|
643
640
|
return clone;
|
|
644
641
|
}
|
|
@@ -726,7 +723,7 @@ var Reactor = class {
|
|
|
726
723
|
* rtr.delete("cache.temp", () => TERMINATOR);
|
|
727
724
|
*/
|
|
728
725
|
delete(path, callback, options) {
|
|
729
|
-
return this.syncAdd("delete", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && deleteAny(this.core, path
|
|
726
|
+
return this.syncAdd("delete", path, callback, options, (imm) => (imm !== "auto" || inAny(this.core, path)) && deleteAny(this.core, path));
|
|
730
727
|
}
|
|
731
728
|
/** Registers a delete mediator for a path that only triggers once. */
|
|
732
729
|
donce(path, callback, options) {
|
|
@@ -743,7 +740,7 @@ var Reactor = class {
|
|
|
743
740
|
}
|
|
744
741
|
/**
|
|
745
742
|
* Registers a watcher for a path.
|
|
746
|
-
* Watch callbacks run synchronously with the operation.
|
|
743
|
+
* Watch callbacks run synchronously with the operation, use leaf paths for reliability as it sees exact sets; no bubbling here.
|
|
747
744
|
* @param path Path or wildcard path.
|
|
748
745
|
* @param callback Watch callback.
|
|
749
746
|
* @param options Sync options.
|
|
@@ -792,7 +789,7 @@ var Reactor = class {
|
|
|
792
789
|
cord = { cb: callback, capture, depth, once, clup: () => this.off(path, callback, options), lDepth: depth !== void 0 ? this.getDepth(path) : depth };
|
|
793
790
|
if (immediate && (immediate !== "auto" || inAny(this.core, path))) {
|
|
794
791
|
const target = this.getContext(path);
|
|
795
|
-
callback(new ReactorEvent({ type: "init", target, currentTarget: target, root: this.core, rejectable: false }, this
|
|
792
|
+
callback(new ReactorEvent({ type: "init", target, currentTarget: target, root: this.core, rejectable: false }, this));
|
|
796
793
|
}
|
|
797
794
|
(cords ?? (this.listeners.set(path, cords = []), cords)).push(cord);
|
|
798
795
|
return this.bindSignal(cord, signal);
|
|
@@ -823,56 +820,39 @@ var Reactor = class {
|
|
|
823
820
|
return this.cloned(arguments.length < 2 ? this.core : branch, raw);
|
|
824
821
|
}
|
|
825
822
|
/**
|
|
826
|
-
*
|
|
827
|
-
* @param
|
|
828
|
-
* @param
|
|
829
|
-
* @
|
|
830
|
-
* rtr.on("user", (event) => rtr.cascade(event));
|
|
831
|
-
* @example
|
|
832
|
-
* rtr.watch("user", (_value, payload) => rtr.cascade(payload));
|
|
833
|
-
*/
|
|
834
|
-
cascade({ type, currentTarget: { path, value: news, oldValue: olds } }, objectSafe = true) {
|
|
835
|
-
if (type !== "set" && type !== "delete" || !canHandle(news, this.config) || (objectSafe ? !canHandle(olds, this.config) : false)) return;
|
|
836
|
-
const obj = objectSafe ? mergeObjs(olds, news) : news, keys = Object.keys(obj);
|
|
837
|
-
this.isCascading = true;
|
|
838
|
-
for (let i = 0, len = keys.length; i < len; i++) setAny(this.core, path === "*" ? keys[i] : path + "." + keys[i], obj[keys[i]]);
|
|
839
|
-
this.isCascading = false;
|
|
840
|
-
}
|
|
841
|
-
/**
|
|
842
|
-
* Installs a plugin instance.
|
|
843
|
-
* @param plugin Plugin instance.
|
|
844
|
-
* @returns Current reactor for fluent chaining.
|
|
823
|
+
* Installs a module instance.
|
|
824
|
+
* @param target Module instance.
|
|
825
|
+
* @param id Optional identification tag for this instance in the module.
|
|
826
|
+
* @returns Current `Reactor` instance for fluent chaining.
|
|
845
827
|
*/
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
this.plugins?.get(name)?.destroy();
|
|
849
|
-
return (this.plugins ??= /* @__PURE__ */ new Map()).set(name, (plugin.setup(this), plugin)), this;
|
|
828
|
+
use(target, id) {
|
|
829
|
+
return (this.modules ??= /* @__PURE__ */ new Set()).add(target.setup(this, id)), this;
|
|
850
830
|
}
|
|
851
|
-
/** Resets
|
|
831
|
+
/** Resets this reactor instance to its initial state. */
|
|
852
832
|
reset() {
|
|
853
833
|
this.getters?.clear(), this.setters?.clear(), this.deleters?.clear(), this.watchers?.clear(), this.listeners?.clear();
|
|
854
834
|
this.batch?.clear(), this.queue?.clear(), this.isBatching = false;
|
|
855
835
|
}
|
|
856
836
|
destroy() {
|
|
857
|
-
if (this.
|
|
837
|
+
if (this.modules) for (const mdle of this.modules) mdle.destroy();
|
|
858
838
|
this.reset(), nuke(this);
|
|
859
839
|
}
|
|
860
840
|
get canLog() {
|
|
861
|
-
return this.
|
|
841
|
+
return this.log !== NOOP;
|
|
862
842
|
}
|
|
863
843
|
set canLog(value) {
|
|
864
|
-
this.log =
|
|
844
|
+
this.log = value ? RTR_LOG : NOOP;
|
|
865
845
|
}
|
|
866
|
-
get
|
|
867
|
-
return this.config.
|
|
846
|
+
get canLineageTrace() {
|
|
847
|
+
return this.config.lineageTracing && this.config.referenceTracking;
|
|
868
848
|
}
|
|
869
849
|
get canSmartClone() {
|
|
870
|
-
return this.config.
|
|
850
|
+
return this.config.smartCloning && this.config.referenceTracking;
|
|
871
851
|
}
|
|
872
852
|
};
|
|
873
853
|
|
|
874
854
|
// src/ts/core/mixins.ts
|
|
875
|
-
var methods = ["tick", "stall", "nostall", "get", "gonce", "noget", "set", "sonce", "noset", "delete", "donce", "nodelete", "watch", "wonce", "nowatch", "on", "once", "off", "snapshot", "
|
|
855
|
+
var methods = ["tick", "stall", "nostall", "get", "gonce", "noget", "set", "sonce", "noset", "delete", "donce", "nodelete", "watch", "wonce", "nowatch", "on", "once", "off", "snapshot", "use", "reset", "destroy"];
|
|
876
856
|
function reactive(target, build, preferences = NIL) {
|
|
877
857
|
if ("__Reactor__" in target) return target;
|
|
878
858
|
const descriptors = {}, rtr = getReactor(target, true, build), locks = { enumerable: false, configurable: true, writable: false }, hasAffix = !!(preferences.prefix || preferences.suffix);
|
|
@@ -880,7 +860,7 @@ function reactive(target, build, preferences = NIL) {
|
|
|
880
860
|
let key = methods[i];
|
|
881
861
|
if (hasAffix) (preferences.whitelist?.includes(key) ?? true) && (key = `${preferences.prefix || ""}${key}${preferences.suffix || ""}`);
|
|
882
862
|
else if (preferences.whitelist?.includes(key)) continue;
|
|
883
|
-
descriptors[key] = { value: rtr[
|
|
863
|
+
descriptors[key] = { value: rtr[methods[i]].bind(rtr), ...locks };
|
|
884
864
|
}
|
|
885
865
|
descriptors["__Reactor__"] = { value: rtr, ...locks };
|
|
886
866
|
return Object.defineProperties(rtr.core, descriptors), rtr.core;
|
|
@@ -928,7 +908,6 @@ function getSnapshotVersion(target) {
|
|
|
928
908
|
0 && (module.exports = {
|
|
929
909
|
CTX,
|
|
930
910
|
EVT_OPTS,
|
|
931
|
-
EVT_WARN,
|
|
932
911
|
INDIFFABLE,
|
|
933
912
|
INERTIA,
|
|
934
913
|
NIL,
|
package/dist/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CTX,
|
|
1
|
+
export { u as AddDepth, v as AllDepth, C as CTX, x as ChildPaths, D as DeepKeys, y as DeepMerge, z as DeepPartial, F as DeepRequired, G as Deleter, H as DeleterRecord, J as DepthConfig, K as DirectPayload, L as EVT_OPTS, E as EffectOptions, M as Getter, N as GetterRecord, O as INDIFFABLE, Q as INERTIA, I as Inert, S as Intent, T as Listener, U as ListenerOptions, V as ListenerOptionsTuple, X as ListenerRecord, Y as Live, Z as MaxDepth, _ as NIL, $ as NOOP, a0 as NextDepth, a1 as NoTraverse, a2 as PathBranch, a3 as PathBranchValue, a4 as PathDepth, a5 as PathKey, a6 as PathLeaf, t as PathValue, P as Paths, a7 as Payload, a8 as PrevDepth, a9 as Primitive, aa as RAW, ab as REJECTABLE, a as REvent, ac as RTR_BATCH, ad as RTR_LOG, d as Reactive, ae as ReactivePreferences, R as Reactor, r as ReactorBuild, af as ReactorEvent, ag as SSVERSION, ah as Setter, ai as SetterRecord, aj as Stable, ak as State, al as StrictPathKey, am as SubtractDepth, an as SyncOptions, ao as SyncOptionsTuple, ap as TERMINATOR, aq as Target, ar as Unflatten, as as UnionToIntersection, at as UpdatePayload, au as VERSION, av as Volatile, aw as Watcher, ax as WatcherRecord, W as WildPaths, ay as getRaw, az as getSnapshotVersion, aA as getVersion, aB as inert, aC as intent, aD as isInert, aE as isIntent, aF as isVolatile, aG as live, aH as methods, aI as reactive, aJ as stable, aK as state, aL as volatile } from './index-BgbbNXTW.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CTX,
|
|
1
|
+
export { u as AddDepth, v as AllDepth, C as CTX, x as ChildPaths, D as DeepKeys, y as DeepMerge, z as DeepPartial, F as DeepRequired, G as Deleter, H as DeleterRecord, J as DepthConfig, K as DirectPayload, L as EVT_OPTS, E as EffectOptions, M as Getter, N as GetterRecord, O as INDIFFABLE, Q as INERTIA, I as Inert, S as Intent, T as Listener, U as ListenerOptions, V as ListenerOptionsTuple, X as ListenerRecord, Y as Live, Z as MaxDepth, _ as NIL, $ as NOOP, a0 as NextDepth, a1 as NoTraverse, a2 as PathBranch, a3 as PathBranchValue, a4 as PathDepth, a5 as PathKey, a6 as PathLeaf, t as PathValue, P as Paths, a7 as Payload, a8 as PrevDepth, a9 as Primitive, aa as RAW, ab as REJECTABLE, a as REvent, ac as RTR_BATCH, ad as RTR_LOG, d as Reactive, ae as ReactivePreferences, R as Reactor, r as ReactorBuild, af as ReactorEvent, ag as SSVERSION, ah as Setter, ai as SetterRecord, aj as Stable, ak as State, al as StrictPathKey, am as SubtractDepth, an as SyncOptions, ao as SyncOptionsTuple, ap as TERMINATOR, aq as Target, ar as Unflatten, as as UnionToIntersection, at as UpdatePayload, au as VERSION, av as Volatile, aw as Watcher, ax as WatcherRecord, W as WildPaths, ay as getRaw, az as getSnapshotVersion, aA as getVersion, aB as inert, aC as intent, aD as isInert, aE as isIntent, aF as isVolatile, aG as live, aH as methods, aI as reactive, aJ as stable, aK as state, aL as volatile } from './index-BgbbNXTW.js';
|
package/dist/index.js
CHANGED
|
@@ -15,11 +15,10 @@ import {
|
|
|
15
15
|
stable,
|
|
16
16
|
state,
|
|
17
17
|
volatile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3SKLWTEA.js";
|
|
19
19
|
import {
|
|
20
20
|
CTX,
|
|
21
21
|
EVT_OPTS,
|
|
22
|
-
EVT_WARN,
|
|
23
22
|
INDIFFABLE,
|
|
24
23
|
INERTIA,
|
|
25
24
|
NIL,
|
|
@@ -31,11 +30,10 @@ import {
|
|
|
31
30
|
SSVERSION,
|
|
32
31
|
TERMINATOR,
|
|
33
32
|
VERSION
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BTA6MIQ6.js";
|
|
35
34
|
export {
|
|
36
35
|
CTX,
|
|
37
36
|
EVT_OPTS,
|
|
38
|
-
EVT_WARN,
|
|
39
37
|
INDIFFABLE,
|
|
40
38
|
INERTIA,
|
|
41
39
|
NIL,
|