Update fake-indexeddb 4.0.2 → 5.0.2 (major)#4877
Conversation
|
see #4796 (comment) |
821d5dd to
33a29ca
Compare
|
@depfu rebase |
33a29ca to
5a83218
Compare
|
@julienw hey, I've updated the PR to import the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4877 +/- ##
==========================================
- Coverage 88.48% 88.47% -0.02%
==========================================
Files 304 304
Lines 27392 27249 -143
Branches 7400 7350 -50
==========================================
- Hits 24239 24108 -131
+ Misses 2931 2925 -6
+ Partials 222 216 -6 ☔ View full report in Codecov by Sentry. |
julienw
left a comment
There was a problem hiding this comment.
This looks good to me, thanks.
I wonder if we can use this opportunity to use autoMockIndexedDB everywhere we need it. I'm fine doing it in a separate PR though. What do you think?
| // fake-indexeddb no longer includes a structuredClone polyfill, so we need to | ||
| // import it explicitly. | ||
| import 'core-js/stable/structured-clone'; | ||
| import { indexedDB, IDBKeyRange } from 'fake-indexeddb'; |
There was a problem hiding this comment.
Should we use autoMockIndexedDB here and in the tests below instead of defining the polyfill manually?
|
Oops I forgot this PR 😅
That was my first instinct as well while looking at this PR back then. But turns out it's not possible to use
|
Since fake-indexeddb version 5, it doesn't include the structuredClone polyfill. That's why we need to import that where needed.
434ef51 to
b0f490f
Compare
|
(Rebased and fixed the merge conflict) |
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ fake-indexeddb (4.0.2 → 5.0.2) · Repo · Changelog
Release Notes
5.0.2
5.0.1
5.0.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 16 commits:
5.0.2ChangelogCompute FDBIndex.count and FDBObjectStore.count directly rather than using a cursor, should improve performanceFix issue number5.0.1ChangelogUpdate README for jsdom compatibility with fake-indexeddb 5Follow spec better when converting ArrayBuffer views to keys5.0.0ChangelogFix CISwitch from yarn to npmFix lintUpdate Node versions in CIUpgrade dependencies and switch from tslint to eslintDrop structuredClone polyfill and support for Node 16Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase.All Depfu comment commands
┆Issue is synchronized with this Jira Task