@solid-primitives/rootless
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -19,6 +19,9 @@ import { getOwner, createRoot, runWithOwner, onCleanup, sharedConfig, createSignal, batch } from 'solid-js'; | ||
function createDisposable(fn, ...owners) { | ||
return createSubRoot((dispose) => { | ||
fn(dispose); | ||
return dispose; | ||
}, ...owners); | ||
return createSubRoot( | ||
(dispose) => { | ||
fn(dispose); | ||
return dispose; | ||
}, | ||
...owners | ||
); | ||
} | ||
@@ -25,0 +28,0 @@ function createSingletonRoot(factory, detachedOwner = getOwner()) { |
{ | ||
"name": "@solid-primitives/rootless", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "A collection of helpers that aim to simplify using reactive primitives outside of reactive roots, and managing disposal of reactive roots.", | ||
@@ -39,3 +39,6 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
}, | ||
"require": "./dist/index.cjs" | ||
"require": { | ||
"types": "./dist/index.d.cts", | ||
"default": "./dist/index.cjs" | ||
} | ||
}, | ||
@@ -51,3 +54,3 @@ "typesVersions": {}, | ||
"dependencies": { | ||
"@solid-primitives/utils": "^6.2.1" | ||
"@solid-primitives/utils": "^6.2.2" | ||
}, | ||
@@ -58,7 +61,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"solid-js": "1.7.6" | ||
"solid-js": "^1.8.7" | ||
}, | ||
"scripts": { | ||
"dev": "jiti ../../scripts/dev.ts", | ||
"build": "jiti ../../scripts/build.ts", | ||
"dev": "tsx ../../scripts/dev.ts", | ||
"build": "tsx ../../scripts/build.ts", | ||
"vitest": "vitest -c ../../configs/vitest.config.ts", | ||
@@ -65,0 +68,0 @@ "test": "pnpm run vitest", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34913
8
503