@solid-primitives/utils
Advanced tools
Comparing version 0.0.260 to 0.1.0
{ | ||
"name": "@solid-primitives/utils", | ||
"version": "0.0.260", | ||
"version": "0.1.0", | ||
"description": "A bunch of reactive utility types and functions, for building primitives with Solid.js", | ||
@@ -21,2 +21,29 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js" | ||
}, | ||
"./fp": { | ||
"types": "./dist/fp.d.ts", | ||
"require": "./dist/fp.cjs", | ||
"import": "./dist/fp.js" | ||
}, | ||
"./setter": { | ||
"types": "./dist/setter.d.ts", | ||
"require": "./dist/setter.cjs", | ||
"import": "./dist/setter.js" | ||
} | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"fp": [ | ||
"./dist/fp.d.ts" | ||
], | ||
"setter": [ | ||
"./dist/setter.d.ts" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
@@ -23,0 +50,0 @@ "build": "tsup", |
@@ -5,2 +5,26 @@ # @solid-primitives/utils | ||
## Installation | ||
```bash | ||
npm install @solid-primitives/utils | ||
# or | ||
yarn add @solid-primitives/utils | ||
``` | ||
## Package Entries | ||
- [`*` - `@solid-primitives/utils`](https://github.com/davedbase/solid-primitives/blob/main/packages/utils/src/index.ts) - General utilities. | ||
- [`/fp` - `@solid-primitives/utils/fp`](https://github.com/davedbase/solid-primitives/blob/main/packages/utils/src/fp.ts) - Helpers for making changes to immutable data. | ||
- [`/setter` - `@solid-primitives/utils/setter`](https://github.com/davedbase/solid-primitives/blob/main/packages/utils/src/setter.ts) - Modified helpers from the `/fp`, but optimized for usage with signal setters. | ||
Import accordingly. | ||
```ts | ||
import { access, promiseTimeout } from "@solid-primitives/utils"; | ||
// between these two some function names will overlap. | ||
import { pick, omit, filter } from "@solid-primitives/utils/fp"; | ||
import { push, filter, drop } from "@solid-primitives/utils/setter"; | ||
``` | ||
## Changelog | ||
@@ -23,2 +47,6 @@ | ||
0.1.0 | ||
Add `/fp` and `/setter` export entries. Add `destore` and `raceTimeout` util. More jsdoc. | ||
</details> |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
51
4248
3
0
2