Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@solid-primitives/set
Advanced tools
The Javascript built-in Set
& WeakSet
data structures as a reactive signals.
ReactiveSet
- A reactive version of a Javascript built-in Set
class.ReactiveWeakSet
- A reactive version of a Javascript built-in WeakSet
class.npm install @solid-primitives/set
# or
yarn add @solid-primitives/set
# or
pnpm add @solid-primitives/set
ReactiveSet
A reactive version of a Javascript built-in Set
class.
import { ReactiveSet } from "@solid-primitives/set";
const set = new ReactiveSet([1, 1, 2, 3]);
// listen for changes reactively
createEffect(() => {
[...set]; // => [1,2,3] (reactive on any change)
set.has(2); // => true (reactive on change to the result)
});
// apply like with normal Set
set.add(4);
set.delete(2);
set.clear();
ReactiveWeakSet
A reactive version of a Javascript built-in WeakSet
class.
import { ReactiveWeakSet } from "@solid-primitives/set";
const set = new ReactiveWeakSet([1, 1, 2, 3]);
// listen for changes reactively
createEffect(() => {
set.has(2); // => true (reactive on change to the result)
});
// apply changes like with normal Set
set.add(4);
set.delete(2);
See CHANGELOG.md
FAQs
The Set & WeakSet data structures as a reactive signals.
We found that @solid-primitives/set demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.