
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@caldera-labs/state
Advanced tools
Redux(-like) state management for [Caldera Forms](https://github.com/calderawp/caldera-forms).
Redux(-like) state management for Caldera Forms.
Requires npm
npm i -D caldera-state
import {state} from '@caldera-labs/state';
const STORE_SLUG = state.CALDERA_FORMS_STORE_SLUG;
This module is used was added to Caldera Forms, first for block UI and privacy settings screen. Pull request
Requires git and npm
git clone git@github.com:calderawp/caldera-state.gitcd caldera-state && npm installThis package provides Redux(-like) state management for Caldera Forms configurations and other things that need their state managed in a React app, such as Gutenberg.
Also, an example app and test coverage for all of that.
import * as cfStateWebpack from '@caldera-labs/state'
This import exposes three keys: store,state, and util.
store - Pure functions for storing statestate - Interactions with Redux or wp.dataimport * as cfFormsState from '@caldera-labs/state';
export const STORE = {
reducer( state = DEFAULT_STATE, action ) {
return cfFormsState.store.reducers.formsReducer(DEFAULT_STATE,action);
},
actions: cfFormsState.store.actions,
selectors: cfFormsState.store.selectors,
};
util - Utility functionscfFormsState.util.findFormById(Array,'cf123456');
cfFormsState.util.formHasId(Object,'cf123456');
In the project directory, you can run:
npm startRuns the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
This shows the example app that uses this to show and update a list of forms.
npm testLaunches the test runner in the interactive watch mode.
npm run buildBuilds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Must be logged in as project maintainer via npm cli
Patch release:
yarn releaseMinor release:
yarn release:minorMajor release:
yarn release:majorFAQs
Redux(-like) state management for [Caldera Forms](https://github.com/calderawp/caldera-forms).
We found that @caldera-labs/state 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.