@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.
@@ -282,13 +282,14 @@ var Kernel = class {
282
282
  } catch (error) {
283
283
  throw new StoreError(
284
284
  "PLUGIN_INSTALL_FAILED" /* PLUGIN_INSTALL_FAILED */,
285
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- message format kept from 1.x (the error's string form)
285
286
  `Failed to install plugin '${plugin.name}': ${error}`,
286
287
  { cause: error }
287
288
  );
288
289
  }
289
290
  this.plugins.set(plugin.name, instance);
290
291
  if (!this.initializing && plugin.onInit) {
291
- this.runOnInit(plugin, store);
292
+ void this.runOnInit(plugin, store);
292
293
  }
293
294
  }
294
295
  /**
@@ -1490,7 +1491,7 @@ function createFederation(stores, options = {}) {
1490
1491
  },
1491
1492
  transaction(fn) {
1492
1493
  if (isInTransaction) {
1493
- fn(stores);
1494
+ void fn(stores);
1494
1495
  return;
1495
1496
  }
1496
1497
  isInTransaction = true;
@@ -1949,7 +1950,7 @@ function history(options = {}) {
1949
1950
  internalState = null;
1950
1951
  const previousPresent = historyState.present;
1951
1952
  const newPresent = state;
1952
- let hasChanged = true;
1953
+ let hasChanged;
1953
1954
  if (keys && keys.length > 0) {
1954
1955
  hasChanged = keys.some((key) => {
1955
1956
  return previousPresent[key] !== newPresent[key];
@@ -3224,5 +3225,5 @@ exports.toMiddlewareApi = toMiddlewareApi;
3224
3225
  exports.triggerSync = triggerSync;
3225
3226
  exports.validate = validate;
3226
3227
  exports.waitForFederated = waitForFederated;
3227
- //# sourceMappingURL=chunk-OS24HBPW.cjs.map
3228
- //# sourceMappingURL=chunk-OS24HBPW.cjs.map
3228
+ //# sourceMappingURL=chunk-V6ASKKTH.cjs.map
3229
+ //# sourceMappingURL=chunk-V6ASKKTH.cjs.map