sia-reactor 0.0.43 → 0.0.44

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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as APIKey, a as AddDepth, C as CTX, b as ChildPaths, D as DeepKeys, c as DeepMerge, d as DeepPartial, e as DeepReadonly, f as DeepRequired, g as Deleter, h as DeleterRecord, i as DepthConfig, j as DirectPayload, E as EVT_OPTS, k as EffectOptions, G as Getter, l as GetterRecord, I as INDIFFABLE, m as INERTIA, n as Inert, o as Intent, L as Listener, p as ListenerOptions, q as ListenerOptionsTuple, r as ListenerRecord, s as Live, M as MaxDepth, N as NIL, t as NOOP, u as NextDepth, v as NoTraverse, P as PathBranch, w as PathBranchValue, x as PathDepth, y as PathKey, z as PathLeaf, B as PathValue, F as Paths, H as Payload, J as PrevDepth, K as Primitive, O as Pure, R as RAW, Q as REJECTABLE, S as REvent, T as RTR_BATCH, U as RTR_LOG, V as Reactive, W as ReactivePreferences, X as Reactor, Y as ReactorBuild, Z as ReactorEvent, _ as SSVERSION, $ as Setter, a0 as SetterRecord, a1 as Stable, a2 as State, a3 as StrictPathKey, a4 as SubtractDepth, a5 as SyncOptions, a6 as SyncOptionsTuple, a7 as TERMINATOR, a8 as Target, a9 as Unflatten, aa as UnionToIntersection, ab as UpdatePayload, ac as VERSION, ad as Volatile, ae as Watcher, af as WatcherRecord, ag as WildPaths, ah as getRaw, ai as getReactor, aj as getSnapshotVersion, ak as getVersion, al as inert, am as intent, an as isInert, ao as isIntent, ap as isVolatile, aq as live, ar as methods, as as reactive, at as stable, au as state, av as volatile } from './obj-CM05g1eW.cjs';
2
2
  import { u as utils } from './utils-09Fwruxy.cjs';
3
- import { m as modules } from './modules-D_FsJF6U.cjs';
3
+ import { m as modules } from './modules-DdCv43H3.cjs';
4
4
  import { v as vanilla } from './vanilla-Bs-5iI0s.cjs';
5
5
  import './index-FMuvzRw_.cjs';
6
6
  import './TimeTravelConsole-Ck3GwvXR.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as APIKey, a as AddDepth, C as CTX, b as ChildPaths, D as DeepKeys, c as DeepMerge, d as DeepPartial, e as DeepReadonly, f as DeepRequired, g as Deleter, h as DeleterRecord, i as DepthConfig, j as DirectPayload, E as EVT_OPTS, k as EffectOptions, G as Getter, l as GetterRecord, I as INDIFFABLE, m as INERTIA, n as Inert, o as Intent, L as Listener, p as ListenerOptions, q as ListenerOptionsTuple, r as ListenerRecord, s as Live, M as MaxDepth, N as NIL, t as NOOP, u as NextDepth, v as NoTraverse, P as PathBranch, w as PathBranchValue, x as PathDepth, y as PathKey, z as PathLeaf, B as PathValue, F as Paths, H as Payload, J as PrevDepth, K as Primitive, O as Pure, R as RAW, Q as REJECTABLE, S as REvent, T as RTR_BATCH, U as RTR_LOG, V as Reactive, W as ReactivePreferences, X as Reactor, Y as ReactorBuild, Z as ReactorEvent, _ as SSVERSION, $ as Setter, a0 as SetterRecord, a1 as Stable, a2 as State, a3 as StrictPathKey, a4 as SubtractDepth, a5 as SyncOptions, a6 as SyncOptionsTuple, a7 as TERMINATOR, a8 as Target, a9 as Unflatten, aa as UnionToIntersection, ab as UpdatePayload, ac as VERSION, ad as Volatile, ae as Watcher, af as WatcherRecord, ag as WildPaths, ah as getRaw, ai as getReactor, aj as getSnapshotVersion, ak as getVersion, al as inert, am as intent, an as isInert, ao as isIntent, ap as isVolatile, aq as live, ar as methods, as as reactive, at as stable, au as state, av as volatile } from './obj-CM05g1eW.js';
2
2
  import { u as utils } from './utils-EAjy2rsz.js';
3
- import { m as modules } from './modules-BqFEelFK.js';
3
+ import { m as modules } from './modules-D7XeXgBN.js';
4
4
  import { v as vanilla } from './vanilla-KGPkYjU_.js';
5
5
  import './index-K1TE7RnF.js';
6
6
  import './TimeTravelConsole-BwHB0LsE.js';
@@ -305,8 +305,9 @@ declare const TIME_TRAVEL_MODULE_BUILD: Partial<TimeTravelConfig<any>>;
305
305
  * Executes `fn` with `silent: true` merged into all current `Reactor` payloads.
306
306
  * Use this to perform mutations you don't want recorded by `TimeTravelModule`.
307
307
  * @param fn Function to execute with `silent` meta.
308
+ * @param bool Override for ease of use in dynamic usecases, defaults to `true`
308
309
  */
309
- declare function silence<T>(fn: () => T): T;
310
+ declare function silence<T>(fn: () => T, bool?: boolean): T;
310
311
  declare module "@defs/reactor" {
311
312
  interface ReactorMeta {
312
313
  /** Flag indicating whether the mutation was silenced and should not be recorded by the `TimeTravelModule`. */
@@ -305,8 +305,9 @@ declare const TIME_TRAVEL_MODULE_BUILD: Partial<TimeTravelConfig<any>>;
305
305
  * Executes `fn` with `silent: true` merged into all current `Reactor` payloads.
306
306
  * Use this to perform mutations you don't want recorded by `TimeTravelModule`.
307
307
  * @param fn Function to execute with `silent` meta.
308
+ * @param bool Override for ease of use in dynamic usecases, defaults to `true`
308
309
  */
309
- declare function silence<T>(fn: () => T): T;
310
+ declare function silence<T>(fn: () => T, bool?: boolean): T;
310
311
  declare module "@defs/reactor" {
311
312
  interface ReactorMeta {
312
313
  /** Flag indicating whether the mutation was silenced and should not be recorded by the `TimeTravelModule`. */
package/dist/modules.cjs CHANGED
@@ -1898,8 +1898,8 @@ var TimeTravelModule = class extends BaseReactorModule {
1898
1898
  };
1899
1899
 
1900
1900
  // src/ts/modules/timeTravel/silence.ts
1901
- function silence(fn) {
1902
- return withMeta({ silent: true }, fn);
1901
+ function silence(fn, bool = true) {
1902
+ return withMeta({ silent: bool }, fn);
1903
1903
  }
1904
1904
 
1905
1905
  // src/ts/modules/timeTravel/heuristics/text/index.ts
@@ -1,3 +1,3 @@
1
1
  export { ay as BaseReactorModule, aA as ModulePaths, aB as ReactorModuleConstructor, az as ReactorModuleId, aC as Transaction, aD as endTx, aE as startTx, aF as transaction, aG as txId } from './obj-CM05g1eW.cjs';
2
- export { C as COOKIE_ADAPTER_BUILD, a as CookieAdapter, b as CookieAdapterConfig, c as CookieOptions, I as INDEXED_DB_ADAPTER_BUILD, d as IndexedDBAdapter, e as IndexedDBAdapterConfig, L as LocalStorageAdapter, M as MemoryAdapter, f as MemoryAdapterConfig, P as PERSIST_MODULE_BUILD, g as PersistConfig, h as PersistModule, S as SessionStorageAdapter, T as TIME_TRAVEL_MODULE_BUILD, i as TextBundlerOptions, j as composeHeuristics, k as createTextBundler, l as createTxPathMerger, s as setValueWithCursor, n as silence } from './modules-D_FsJF6U.cjs';
2
+ export { C as COOKIE_ADAPTER_BUILD, a as CookieAdapter, b as CookieAdapterConfig, c as CookieOptions, I as INDEXED_DB_ADAPTER_BUILD, d as IndexedDBAdapter, e as IndexedDBAdapterConfig, L as LocalStorageAdapter, M as MemoryAdapter, f as MemoryAdapterConfig, P as PERSIST_MODULE_BUILD, g as PersistConfig, h as PersistModule, S as SessionStorageAdapter, T as TIME_TRAVEL_MODULE_BUILD, i as TextBundlerOptions, j as composeHeuristics, k as createTextBundler, l as createTxPathMerger, s as setValueWithCursor, n as silence } from './modules-DdCv43H3.cjs';
3
3
  export { A as AsyncStorageAdapter, d as AsyncStorageAdapterConstructor, B as BaseStorageAdapter, H as HistoryEntry, e as HistoryNode, f as HistoryTransaction, b as JSONReplacer, J as JSONReviver, a as StorageAdapter, S as StorageAdapterConfig, c as StorageAdapterConstructor, T as TimeTravelConfig, g as TimeTravelModule, h as TimeTravelState } from './index-FMuvzRw_.cjs';
package/dist/modules.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { ay as BaseReactorModule, aA as ModulePaths, aB as ReactorModuleConstructor, az as ReactorModuleId, aC as Transaction, aD as endTx, aE as startTx, aF as transaction, aG as txId } from './obj-CM05g1eW.js';
2
- export { C as COOKIE_ADAPTER_BUILD, a as CookieAdapter, b as CookieAdapterConfig, c as CookieOptions, I as INDEXED_DB_ADAPTER_BUILD, d as IndexedDBAdapter, e as IndexedDBAdapterConfig, L as LocalStorageAdapter, M as MemoryAdapter, f as MemoryAdapterConfig, P as PERSIST_MODULE_BUILD, g as PersistConfig, h as PersistModule, S as SessionStorageAdapter, T as TIME_TRAVEL_MODULE_BUILD, i as TextBundlerOptions, j as composeHeuristics, k as createTextBundler, l as createTxPathMerger, s as setValueWithCursor, n as silence } from './modules-BqFEelFK.js';
2
+ export { C as COOKIE_ADAPTER_BUILD, a as CookieAdapter, b as CookieAdapterConfig, c as CookieOptions, I as INDEXED_DB_ADAPTER_BUILD, d as IndexedDBAdapter, e as IndexedDBAdapterConfig, L as LocalStorageAdapter, M as MemoryAdapter, f as MemoryAdapterConfig, P as PERSIST_MODULE_BUILD, g as PersistConfig, h as PersistModule, S as SessionStorageAdapter, T as TIME_TRAVEL_MODULE_BUILD, i as TextBundlerOptions, j as composeHeuristics, k as createTextBundler, l as createTxPathMerger, s as setValueWithCursor, n as silence } from './modules-D7XeXgBN.js';
3
3
  export { A as AsyncStorageAdapter, d as AsyncStorageAdapterConstructor, B as BaseStorageAdapter, H as HistoryEntry, e as HistoryNode, f as HistoryTransaction, b as JSONReplacer, J as JSONReviver, a as StorageAdapter, S as StorageAdapterConfig, c as StorageAdapterConstructor, T as TimeTravelConfig, g as TimeTravelModule, h as TimeTravelState } from './index-K1TE7RnF.js';
package/dist/modules.js CHANGED
@@ -731,8 +731,8 @@ var TimeTravelModule = class extends BaseReactorModule {
731
731
  };
732
732
 
733
733
  // src/ts/modules/timeTravel/silence.ts
734
- function silence(fn) {
735
- return withMeta({ silent: true }, fn);
734
+ function silence(fn, bool = true) {
735
+ return withMeta({ silent: bool }, fn);
736
736
  }
737
737
 
738
738
  // src/ts/modules/timeTravel/heuristics/text/index.ts
@@ -2191,8 +2191,8 @@ var sia = (() => {
2191
2191
  };
2192
2192
 
2193
2193
  // src/ts/modules/timeTravel/silence.ts
2194
- function silence(fn) {
2195
- return withMeta({ silent: true }, fn);
2194
+ function silence(fn, bool = true) {
2195
+ return withMeta({ silent: bool }, fn);
2196
2196
  }
2197
2197
 
2198
2198
  // src/ts/modules/timeTravel/heuristics/text/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sia-reactor",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "The Programmable Data DOM. A high-performance State & Intent Architecture (S.I.A.) engine that gives your data transactional mutation routing and multi-phase state observation.",
5
5
  "author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
6
6
  "license": "MIT",