Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: add localforage support #668

Merged
merged 3 commits into from
Jul 30, 2024
Merged

storage: add localforage support #668

merged 3 commits into from
Jul 30, 2024

Conversation

atk
Copy link
Member

@atk atk commented Jul 27, 2024

  • remove outdated scripts

fixes #666

+ remove outdated scripts
Copy link

changeset-bot bot commented Jul 27, 2024

🦋 Changeset detected

Latest commit: 94d1bcc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solid-primitives/storage Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

@sparecycles sparecycles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this so quickly :). I have two contributions to the discussion:

packages/storage/README.md Outdated Show resolved Hide resolved
packages/storage/src/types.ts Outdated Show resolved Hide resolved
atk added 2 commits July 29, 2024 08:54
storage: type simplification
storage: add makeObjectStorage
@atk
Copy link
Member Author

atk commented Jul 29, 2024

Update: after a short discussion on discord, I decided not to delay the planned changes for this primitive any longer. I removed the dependency on localforage again and simpified the types for makePersisted (which only uses getItem, setItem and removeItem) so additional properties would no longer be an issue.

@atk atk merged commit b73c5cd into main Jul 30, 2024
3 checks passed
@atk atk deleted the storage-localforage-support branch July 30, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please add an example makePersisted using IndexedDB or localforage
2 participants