Skip to content

Releases: react18-tools/react18-global-store

Release v1.1.2-alpha.1

17 Jun 16:12
Compare
Choose a tag to compare

What's Changed

  • Rewrite by @mayank1513 in #27
  • style: format code with Prettier by @deepsource-autofix in #28

Full Changelog: 1.1.1...1.1.2-alpha.1

Release v1.1.2-alpha.0

17 Jun 14:24
Compare
Choose a tag to compare

What's Changed

  • Rewrite by @mayank1513 in #27
  • style: format code with Prettier by @deepsource-autofix in #28

Full Changelog: 1.1.1...1.1.2-alpha.0

Release v1.1.2

17 Jun 16:21
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.1.1...1.1.2

Release 1.1.1

14 Jun 03:45
a510746
Compare
Choose a tag to compare

Patch Changes

  • Refactor to reduce minzip size

What's Changed

Full Changelog: 1.1.0...1.1.1

Release 1.1.0

13 Jun 02:05
73f1961
Compare
Choose a tag to compare

Minor Changes

  • Support initializer function. Now you can initialize the RGStore by supplying a function in place of constant.

What's Changed

Full Changelog: 1.0.2...1.1.0

Release 1.0.2

02 May 20:09
e05f885
Compare
Choose a tag to compare

Patch Changes

  • Refactor to reduce minzip size

What's Changed

Full Changelog: 1.0.1...1.0.2

Release 1.0.1

01 May 11:46
7c0353d
Compare
Choose a tag to compare

Patch Changes

  • Fix SSR build

What's Changed

  • style: format code with Prettier by @deepsource-autofix in #22
  • Fix SSR build by @mayank1513 in #23

Full Changelog: 1.0.0...1.0.1

Release 1.0.0

30 Apr 14:37
7219caf
Compare
Choose a tag to compare

Completed Tasks

  1. Removed serverValue as it is irrelevant in this context.
  2. Refactored code for better minification.
  3. Added options to (and renamed) the persist plugin (or middleware).
  4. Updated documentation.
  5. Updated license to MPL-2.0.
  6. Addressed potential user concerns:
    • What if a user wants to use useRGSWithPlugin in multiple components? - Utilize doNotInit, the fourth argument of the hook.
    • What if a user wants to provide an initial value from within the component but define the hook using the create function? - Employ withPlugins higher-order function.

To-do [help needed]

  • fix doc comments for withPlugins

Major Changes

  • Removed serverValue field as it should always be same as value. For more details please check out documentation of useSyncExternalStore hook provided by react.

Minor Changes

  • Added persist plugin to create state that is persisted and synced between browser contexts.
  • Added useRGSWithPlugins hook to support extending the store functionality with plugins.

Patch Changes

  • Refactored to reduce bundle size and improve stability and reduce likelyhood of bugs.

What's Changed

Full Changelog: 0.2.0...1.0.0

Release 0.2.0

29 Apr 13:24
Compare
Choose a tag to compare

r18gs

0.2.0

Minor Changes

  • 81b9d3f: Make the library extensible with plugins

Patch Changes

  • Add Persist and Sync plugin

0.1.4

Patch Changes

  • Fix ESM builds

0.1.3

Patch Changes

  • Quick Fix the build setup and fix library issues.

0.1.2

Patch Changes

  • Improve minification

0.1.1

Patch Changes

  • Refactor without changing the exposed APIs. Some libraries using internal APIs may face temporary issues.

0.1.0

Minor Changes

  • Remove client side hooks. Now this store works well with server components as well. Though, server side use is tricky and not recommended yet.

0.0.5

Patch Changes

  • Fix Typescript error

0.0.4

Patch Changes

  • Fix getServerSnapshot errors on some projects.

0.0.3

Patch Changes

  • Fix exports; improve examples; Update README

0.0.2

Patch Changes

  • Export SetStateAction and SetterArgTypes for better documentation and ease of use for other TS projects.

0.0.1

Patch Changes

  • Fix publish setup

What's Changed

Full Changelog: v0.1.4...0.2.0

Release v0.1.4

29 Apr 05:28
Compare
Choose a tag to compare