Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-zero

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-zero - npm Package Versions

1
7

4.4.0

Diff

Changelog

Source

4.4.0

  • Add Preact bindings
matheusml
published 4.3.1 •

Changelog

Source

4.3.1

  • Fixes binding imports with TypeScript

This is now working for both TypeScript and JavaScript:

import { Provider } from "redux-zero/react";
matheusml
published 4.3.0 •

Changelog

Source

4.3.0

  • Add connect function for Svelte and usage example.
matheusml
published 4.2.1 •

Changelog

Source

4.2.1

  • Let mapToProps function optional

If you don't pass mapToProps function to connect HOC or Connect component, it will inject all state as props at the connected component.

const store = createStore({ message: "Hey" });

const App = connect()(({ message }) => <h1>{message}</h1>);
concretesolutions
published 4.2.0 •

Changelog

Source

4.2.0

  • Binding actions instead of coupling them to the store.

Right now, actions must import an instance of the store in order to invoke setState(), as discussed here. This version solved that problem. Now it's way easier to test the actions, because they are simply pure functions:

const createActions = store => ({
  increment: state => ({ count: state.count + 1 })
});

const App = connect(mapToProps, createActions)(({ count, increment }) => (
  <button onClick={increment}>{count}</button>
));
concretesolutions
published 4.1.1 •

Changelog

Source

4.1.1

  • Fixes drawback from the latest release by making connect HOC and Connect component provide the store as a prop
matheusml
published 4.1.0 •

Changelog

Source

4.1.0

  • Include Connect component that can be used with a render callback as an alternative to the connect HOC
import { Connect } from 'redux-zero/react'

// ...

render() {
  return (
    <Connect mapToProps={({ count }) => ({ count })}>
      {({ count }) => <span>{count}</span>}
    </Connect>
  )
}
matheusml
published 4.0.1 •

Changelog

Source

4.0.1

  • Fixed bug where unsubscribing a listener made listeners ahead be also removed.
matheusml
published 4.0.0 •

Changelog

Source

4.0.0

  • Separating Provider and connect from createStore. With this we'll be able to build for different frameworks:
import createStore from "redux-zero";
import { Provider, connect } from "redux-zero/react";
concretesolutions
published 3.0.0 •

Changelog

Source

3.0.0

  • Removing unsubscribe function from createStore. Now subscribe returns unsubscribe:
const store = createStore();

const unsubscribe = store.subscribe();

unsubscribe();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc