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

feat: allow passing DBCreateOptions to IdbStorage constructor #850

Merged
merged 9 commits into from
Mar 19, 2024

Conversation

hpeebles
Copy link
Contributor

@hpeebles hpeebles commented Feb 19, 2024

Description

Each IdbStorage instance wraps an IdbKeyVal instance which itself can be configured via the DBCreateOptions.
Prior to this PR there are no configuration options when creating IdbStorage instances.
This PR makes it such that IdbStorage instances can optionally be configured by passing DBCreateOptions in the constructor which will feed through to the inner IdbKeyVal.

How Has This Been Tested?

It has only been tested via the automated tests.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

Copy link
Contributor

@krpeacock krpeacock left a comment

Choose a reason for hiding this comment

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

Suggestions:

packages/auth-client/src/storage.ts Outdated Show resolved Hide resolved
packages/auth-client/src/storage.ts Outdated Show resolved Hide resolved
hpeebles and others added 4 commits February 22, 2024 14:46
Co-authored-by: Kai Peacock <kylpeacock@gmail.com>
Co-authored-by: Kai Peacock <kylpeacock@gmail.com>
# Conflicts:
#	docs/generated/changelog.html
@hpeebles
Copy link
Contributor Author

Suggestions:

Nice! I'd never come across these before. I've merged in your suggestions.

@krpeacock krpeacock self-requested a review March 18, 2024 23:26
@krpeacock krpeacock enabled auto-merge (squash) March 19, 2024 17:09
@krpeacock krpeacock merged commit ccd0e4d into dfinity:main Mar 19, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants