Socket
Socket
Sign inDemoInstall

constate

Package Overview
Dependencies
3
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

3.3.2

Diff

Changelog

Source

3.3.2 (2022-04-18)

Bug Fixes

  • Allow React 18 as a peer dependency (6611f1c)
diegohaz
published 3.3.1 •

Changelog

Source

3.3.1 (2022-04-18)

Bug Fixes

  • Fix React.FC types for React 18 (#155) (77de7c7)
diegohaz
published 3.3.0 •

Changelog

Source

3.3.0 (2021-06-24)

Features

  • Add debug message for no provider case (#138) (dcdf1fb)
diegohaz
published 3.2.0 •

Changelog

Source

3.2.0 (2021-03-01)

Features

  • Show displayName for each context in React Developer Tools (#128) (6c1d5e0)
diegohaz
published 3.1.0 •

Changelog

Source

3.1.0 (2020-10-22)

Features

diegohaz
published 3.0.1 •

Changelog

Source

3.0.1 (2020-09-08)

Bug Fixes

  • Use empty object instead of string for NO_PROVIDER value (28dd2f8)
diegohaz
published 3.0.0 •

Changelog

Source

3.0.0 (2020-09-08)

⚠ BREAKING CHANGES

  • Types now depend on TypeScript v4.0.

  • The deprecated function/object API has been removed.

    Before:

    import createUseContext from "constate";
    const useCounterContext = createUseContext(useCounter);
    <useCounterContext.Provider>
      ...
    </useCounterContext.Provider>
    

    After:

    import constate from "constate";
    const [CounterProvider, useCounterContext] = constate(useCounter);
    <CounterProvider>
      ...
    </CounterProvider>
    

Features

diegohaz
published 2.0.0 •

Changelog

Source

2.0.0 (2020-02-15)

⚠ BREAKING CHANGES

  • Support for the createMemoDeps parameter has been dropped.

    Before:

    const useCounterContext = createUseContext(useCounter, value => [value.count]);
    

    After:

    const useCounterContext = createUseContext(() => {
      const value = useCounter();
      return useMemo(() => value, [value.count]);
    });
    

Features

diegohaz
published 1.3.2 •

Changelog

Source

1.3.2 (2019-10-20)

Bug Fixes

  • Remove unnecessary code from production (a0d22bf)
diegohaz
published 1.3.1 •

Changelog

Source

1.3.1 (2019-10-20)

Bug Fixes

  • Fix invalid attempt to destructure non-iterable instance (67001c4)
234Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc