@flexsurfer/reflex 0.1.14 → 0.1.15

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.cjs CHANGED
@@ -769,7 +769,7 @@ function eventHandlerInterceptor(handler) {
769
769
  const event = context.coeffects.event;
770
770
  const params = event.slice(1);
771
771
  let effects = [];
772
- const [newDb, patches] = (0, import_immer2.produceWithPatches)(
772
+ const [newDb, patches, reversePatches] = (0, import_immer2.produceWithPatches)(
773
773
  getAppDb(),
774
774
  (draftDb) => {
775
775
  const coeffectsWithDb = { ...context.coeffects, draftDb };
@@ -785,7 +785,7 @@ function eventHandlerInterceptor(handler) {
785
785
  }
786
786
  context.newDb = newDb;
787
787
  context.patches = patches;
788
- mergeTrace({ tags: { "patches": patches, "effects": effects } });
788
+ mergeTrace({ tags: { "patches": patches, "reversePatches": reversePatches, "effects": effects } });
789
789
  if (!Array.isArray(effects)) {
790
790
  consoleLog("warn", `[reflex] effects expects a vector, but was given ${typeof effects}`);
791
791
  } else {
package/dist/index.mjs CHANGED
@@ -697,7 +697,7 @@ function eventHandlerInterceptor(handler) {
697
697
  const event = context.coeffects.event;
698
698
  const params = event.slice(1);
699
699
  let effects = [];
700
- const [newDb, patches] = produceWithPatches(
700
+ const [newDb, patches, reversePatches] = produceWithPatches(
701
701
  getAppDb(),
702
702
  (draftDb) => {
703
703
  const coeffectsWithDb = { ...context.coeffects, draftDb };
@@ -713,7 +713,7 @@ function eventHandlerInterceptor(handler) {
713
713
  }
714
714
  context.newDb = newDb;
715
715
  context.patches = patches;
716
- mergeTrace({ tags: { "patches": patches, "effects": effects } });
716
+ mergeTrace({ tags: { "patches": patches, "reversePatches": reversePatches, "effects": effects } });
717
717
  if (!Array.isArray(effects)) {
718
718
  consoleLog("warn", `[reflex] effects expects a vector, but was given ${typeof effects}`);
719
719
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexsurfer/reflex",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",