Skip to content

Releases: Haberkamp/typed-storage

@typed-storage/[email protected]

18 Apr 18:34
0109de3

Choose a tag to compare

Minor Changes

  • 72b60c3: add light-weight wrapper around localStorage

    The defineStorage function now returns a storage property that allows you to call
    the localStorage API directly. You can use that when you want to access the localStorage
    outside of the React context.

    const { storage } = defineStorage({
      foo: z.string(),
    })
    
    storage.set("foo", "bar")

@typed-storage/[email protected]

18 Apr 17:16
5124d9d

Choose a tag to compare

Minor Changes

  • 0357767: Add @typed-storage/core package

@typed-storage/[email protected]

17 Apr 20:38
d4d92c2

Choose a tag to compare

Patch Changes

  • 16913bd: Include typescript definitions

@typed-storage/[email protected]

15 Apr 16:16
86bdac8

Choose a tag to compare

Minor Changes

  • aae9471: Add option to define fallback

Patch Changes

  • de4e2fb: Allow removing the value from localStorage

@typed-storage/[email protected]

13 Apr 20:44
fbb0a41

Choose a tag to compare

Minor Changes

  • db6c4ec: Allow storing numbers in localStorage

Patch Changes

  • db6c4ec: De-serialize value from localStorage when mounting the component
  • f9fdc39: Add README.md file

@typed-storage/[email protected]

13 Apr 17:14
dc4f657

Choose a tag to compare

Minor Changes