octane 0.2.1 → 0.2.2

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.
@@ -10320,9 +10320,7 @@ function finishCaptureDispatch(event) {
10320
10320
  maybeFlushDiscrete(type);
10321
10321
  }
10322
10322
  };
10323
- const target = event.target;
10324
- const checkableChange = type === "change" && target?.localName === "input" && (target.type === "checkbox" || target.type === "radio");
10325
- if (checkableChange) setTimeout(fallback, 0);
10323
+ if (event.isTrusted) setTimeout(fallback, 0);
10326
10324
  else queueMicrotask(fallback);
10327
10325
  }
10328
10326
  function dispatchDelegated(event) {
@@ -21,7 +21,7 @@ __export(version_exports, {
21
21
  version: () => version
22
22
  });
23
23
  module.exports = __toCommonJS(version_exports);
24
- const version = "0.2.1";
24
+ const version = "0.2.2";
25
25
  // Annotate the CommonJS export names for ESM import in node:
26
26
  0 && (module.exports = {
27
27
  version
package/dist/runtime.js CHANGED
@@ -10154,9 +10154,7 @@ function finishCaptureDispatch(event) {
10154
10154
  maybeFlushDiscrete(type);
10155
10155
  }
10156
10156
  };
10157
- const target = event.target;
10158
- const checkableChange = type === "change" && target?.localName === "input" && (target.type === "checkbox" || target.type === "radio");
10159
- if (checkableChange) setTimeout(fallback, 0);
10157
+ if (event.isTrusted) setTimeout(fallback, 0);
10160
10158
  else queueMicrotask(fallback);
10161
10159
  }
10162
10160
  function dispatchDelegated(event) {
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = "0.2.1";
1
+ const version = "0.2.2";
2
2
  export {
3
3
  version
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "octane",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": [