@dnd-kit/state 0.1.21 → 0.2.0-beta-20251025202520

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.js CHANGED
@@ -207,7 +207,7 @@ function enumerable(enumerable2 = true) {
207
207
  // src/effects.ts
208
208
  var import_signals_core3 = require("@preact/signals-core");
209
209
  function effects(...entries) {
210
- const effects2 = entries.map(import_signals_core3.effect);
210
+ const effects2 = entries.map((fn) => (0, import_signals_core3.effect)(fn));
211
211
  return () => effects2.forEach((cleanup) => cleanup());
212
212
  }
213
213
 
package/dist/index.mjs CHANGED
@@ -182,7 +182,7 @@ function enumerable(enumerable2 = true) {
182
182
  // src/effects.ts
183
183
  import { effect } from "@preact/signals-core";
184
184
  function effects(...entries) {
185
- const effects2 = entries.map(effect);
185
+ const effects2 = entries.map((fn) => effect(fn));
186
186
  return () => effects2.forEach((cleanup) => cleanup());
187
187
  }
188
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnd-kit/state",
3
- "version": "0.1.21",
3
+ "version": "0.2.0-beta-20251025202520",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",