Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
react-use-sub
Advanced tools
WIP: Subscription based lightweight React store
How it looks:
// >>> in your store.js
import { createStore } from 'react-use-sub';
const initialState = { foo: 'bar' };
export const [useSub, Store] = createStore(initialState);
// >>> in any component
import { useSub } from '/path/to/store.js';
export const App = () => {
// subscribe here your custom store mapper
const { fooLength } = useSub(({ foo }) => ({ fooLength: foo.length }));
return <div>Foo has length: {fooLength}</div>;
}
// >>> in any other (or same) place
import { Store } from '/path/to/store.js';
// signature equally to the Setter function of useState
Store.set({ foo: 'something' });
// this updates the stored data
expect(Store.get()).toEqual({ foo: 'something' });
// and updates all components that would be passed
// different values from the subscribed store mapper
My Goals:
Treat-offs:
FAQs
Subscription based lightweight React store
The npm package react-use-sub receives a total of 705 weekly downloads. As such, react-use-sub popularity was classified as not popular.
We found that react-use-sub 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.