@oxog/state 1.3.2 → 1.4.0

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.
@@ -280,13 +280,14 @@ var Kernel = class {
280
280
  } catch (error) {
281
281
  throw new StoreError(
282
282
  "PLUGIN_INSTALL_FAILED" /* PLUGIN_INSTALL_FAILED */,
283
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- message format kept from 1.x (the error's string form)
283
284
  `Failed to install plugin '${plugin.name}': ${error}`,
284
285
  { cause: error }
285
286
  );
286
287
  }
287
288
  this.plugins.set(plugin.name, instance);
288
289
  if (!this.initializing && plugin.onInit) {
289
- this.runOnInit(plugin, store);
290
+ void this.runOnInit(plugin, store);
290
291
  }
291
292
  }
292
293
  /**
@@ -1488,7 +1489,7 @@ function createFederation(stores, options = {}) {
1488
1489
  },
1489
1490
  transaction(fn) {
1490
1491
  if (isInTransaction) {
1491
- fn(stores);
1492
+ void fn(stores);
1492
1493
  return;
1493
1494
  }
1494
1495
  isInTransaction = true;
@@ -1947,7 +1948,7 @@ function history(options = {}) {
1947
1948
  internalState = null;
1948
1949
  const previousPresent = historyState.present;
1949
1950
  const newPresent = state;
1950
- let hasChanged = true;
1951
+ let hasChanged;
1951
1952
  if (keys && keys.length > 0) {
1952
1953
  hasChanged = keys.some((key) => {
1953
1954
  return previousPresent[key] !== newPresent[key];
@@ -3158,5 +3159,5 @@ function compose(...middlewares) {
3158
3159
  }
3159
3160
 
3160
3161
  export { StoreError, StoreErrorCode, assertState, batch, combineComputed, combineEffects, combineSlices, combineValidators, compose, computed, createAsyncValidator, createDebouncedEffect, createEffect, createFederatedComputed, createFederatedSelector, createFederation, createFieldValidator, createLogger, createMockStorage, createNamespacedSlice, createSimpleEffect, createSimpleMiddleware, createSlice, createStorage, createStore, createSubscriber, createTestStore, createValidator, createWithMiddleware, deepClone, deepEqual, deepMerge, delay, devtools, effects, extendStore, flushMicrotasks, hasHistory, history, identity, immer, isFunction, logger, memoizeSelector, middlewareCompat, mockAction, omit, persist, pick, produce, resetSlices, selector, sessionStorage, shallowEqual, snapshot, spyOnStore, stateDiff, subscribeOnce, subscribeToMany, subscribeWithOptions, sync, toMiddlewareApi, triggerSync, validate, waitForFederated };
3161
- //# sourceMappingURL=chunk-2ZNKQLNO.js.map
3162
- //# sourceMappingURL=chunk-2ZNKQLNO.js.map
3162
+ //# sourceMappingURL=chunk-2QNZBQ4V.js.map
3163
+ //# sourceMappingURL=chunk-2QNZBQ4V.js.map