
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
tempo-store
Advanced tools
tempo-store
contains utilities to wrap a value into a Store
instance and track its lifecycle.
A Property
instance wraps a single generic value of type T
. It exposes a field observable
where you can add your own listeners. These will be triggered any time Property.set
is invoked but only if the value differs from its previous state. To control such behavior it is possible to pass a function equal
. The default implementation performs a structural equality test.
A Store
instance wraps a property and adds a reducer
function to the mix. With the reducer
it is possible to influence the value of store by invoking process(action: Action)
. Whenver that method is called, reducer(currentState: State, action: Action): State
is invoked and the value of store is accordinlgy updated. It is possible to monitor state changes and action triggers by adding listeners to the observable
field. Note that these listeners should have the shape (state: State, action: Action, changed: boolean) => void
.
More info on the tempo
architecture can be found here.
FAQs
Super simple state management library
The npm package tempo-store receives a total of 1 weekly downloads. As such, tempo-store popularity was classified as not popular.
We found that tempo-store demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.