
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
Fact.js is a code orchestration library that makes it easier to write maintainable Javascript. It is a straightforward port of the Factfold Clojure library.
From the Factfold README:
Factfold processes data by applying models to facts† in chronological order. Models associate property names with functions to compute their values. Grouping model properties into orders makes their logical dependencies clear to human readers, and provides a natural concurrency barrier. Each property's value is computed from a snapshot of the current state and a new datum. † Feel free to substitute "applying models to facts" with "calculating views of documents", "dispatching messages to actors/objects/processes", "executing instructions on a thread", "handling events in a queue", "updating relations with records", etc.
In the reference implementation, the state object (like most Clojure data structures) employs structural sharing, allowing cheap immutable copies while code performs "mutations" and the runtime stores only the differences. This implementation does not make any such affordances, though of course if you like immutability there are libraries like mori (which implements ClojureScript's persistent data structures) and Immutable.js.
Fact.js exports a single function, evaluate. This function takes the model, the current model state, and the new datum as input.
const helloModel = [
{greeting: (s, f) => (f.subject ? `Hello, ${f.subject}!` : s.greeting)},
];
JSON.stringify(evaluate(helloModel, {}, {subject: 'world'})) == '{"greeting":"Hello, world!"}'
Licensed under the Eclipse Public License version 1.0.
Copyright Duncan Smith 2017
FAQs
Flexible and correctness-prone process composition, now in Javascript
We found that factjs 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.