Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/utils

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/utils - npm Package Compare versions

Comparing version 0.0.260 to 0.1.0

29

package.json
{
"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>
dist/index.cjs
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc