Skip to content

fix(indexeddb): create store when initial version > 1#49

Merged
azu merged 1 commit intoazu:masterfrom
webgoto:patch-1
Jan 17, 2026
Merged

fix(indexeddb): create store when initial version > 1#49
azu merged 1 commit intoazu:masterfrom
webgoto:patch-1

Conversation

@webgoto
Copy link
Contributor

@webgoto webgoto commented Jan 17, 2026

Fixes #46

Issueで報告した初期バージョンに1より大きい値を指定した場合でも
テーブル(store)が生成されるように oldVersion === 0 の判定を追加しました。
よろしくお願いいたします。

Fixes azu#46

Issueで報告した通り、初期バージョンに1より大きい値を指定した場合でも
テーブル(store)が生成されるように `oldVersion === 0` の判定を追加しました。
よろしくお願いいたします。
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8fce5f6:

Sandbox Source
kvs-example-basic Configuration

@azu azu added the Type: Bug Bug or Bug fixes label Jan 17, 2026
azu pushed a commit that referenced this pull request Jan 17, 2026
Add test to verify that IndexedDB store is properly created when
initializing a new database with a version greater than 1.
This test covers the bug fix for issue #46 / PR #49.
@azu
Copy link
Owner

azu commented Jan 17, 2026

webgoto#1
テスト追加できますか?

@azu azu merged commit 03909e9 into azu:master Jan 17, 2026
5 of 7 checks passed
Copy link
Owner

@azu azu left a comment

Choose a reason for hiding this comment

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

LGTM

一旦マージしちゃいます

azu added a commit that referenced this pull request Jan 17, 2026
…#51)

Add test to verify that IndexedDB store is properly created when
initializing a new database with a version greater than 1.
This test covers the bug fix for issue #46 / PR #49.

Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Jan 17, 2026
@webgoto
Copy link
Contributor Author

webgoto commented Jan 18, 2026

ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Bug or Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

table(store) is not generated in indexeddb.

2 participants