devrsi0n / chirpy

💬 A privacy-friendly and customizable Disqus (comment system) alternate. 注重隐私保护和定制化的评论系统。
https://chirpy.dev
GNU Affero General Public License v3.0
563 stars 32 forks source link

chore(deps): update dependency fake-indexeddb to v4 #458

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fake-indexeddb 3.1.8 -> 4.0.0 age adoption passing confidence

Release Notes

dumbmatter/fakeIndexedDB ### [`v4.0.0`](https://togithub.com/dumbmatter/fakeIndexedDB/blob/HEAD/CHANGELOG.md#​400-2022-07-02) [Compare Source](https://togithub.com/dumbmatter/fakeIndexedDB/compare/v3.1.8...v4.0.0) TLDR: Most users can upgrade without doing any extra work, but you might need to change `require("fake-indexeddb")` to `require("fake-indexeddb").default`. All other ways of importing fake-indexeddb (such as with `import`, or requiring sub-modules like `require("fake-indexeddb/auto")` or `require("fake-indexeddb/lib/FDBKeyRange")`) should continue working like normal. Details: - [#​23](https://togithub.com/dumbmatter/fakeIndexedDB/issues/23) - TypeScript support! As of version 4, fake-indexeddb includes TypeScript types. As you can see in types.d.ts, it's just using TypeScript's built-in IndexedDB types, rather than generating types from the fake-indexeddb code base. The reason I did this is for compatibility with your application code that may already be using TypeScript's IndexedDB types, so if I used something different for fake-indexeddb, it could lead to spurious type errors. In theory this could lead to other errors if there are differences between Typescript's IndexedDB types and fake-indexeddb's API, but currently I'm not aware of any difference. - Added support for ES modules in addition to CommonJS modules. That means you can `import` or `require` and it should just work. - **Breaking change:** The easiest way to use this module is still to import/require `"fake-indexeddb/auto"`. If instead you want to import an individual variable rather than populate the global scope with all of them, previously you would do `const indexedDB = require("fake-indexeddb");` for the main `indexedDB` variable and `const IDBKeyRange = require("fake-indexeddb/lib/FDBKeyRange");` for any of the other IndexedDB variables. In this release, I made everything a named export of the main package, so you can do: ```js import { indexedDB, IDBKeyRange } from "fake-indexeddb"; ``` or ```js const { indexedDB, IDBKeyRange } = require("fake-indexeddb"); ``` For backwards compatibility, the `require("fake-indexeddb/lib/FDBKeyRange")` syntax still is supported, but the new exports of the main module are a breaking change. `indexedDB` is still the default export, but in CommonJS you can't have both default and named exports, so the default export is really just an property named `"default"`. This may requrie changing requires of the root module like `require("fake-indexeddb")` to `require("fake-indexeddb").default`. Or switch to ES modules and `import` it :) - **Breaking change:** Dropped support for versions of Node.js older than Node 12. - **Breaking change:** For environments with a built-in `structuredClone` function (such as Node.js 17+), that is used rather than the `realistic-structured-clone` NPM module. There are some differences between the two implementations of the structured cloning algorithm, but probably nothing noticable, and probably all is in the direction of better spec compliance such as [this](https://togithub.com/dumbmatter/realistic-structured-clone/issues/8) or [this](https://togithub.com/dumbmatter/realistic-structured-clone/issues/10#issuecomment-966629946). There is also a minor performance increase with the built-in function - the test suite of fake-indexeddb runs about 5% faster.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

changeset-bot[bot] commented 2 years ago

⚠️ No Changeset found

Latest commit: a9a2b57c95d350e827afd708d7a84b43b9ad362b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
chirpy ✅ Ready (Inspect) Visit Preview Aug 5, 2022 at 5:45AM (UTC)
relativeci[bot] commented 2 years ago

Job #895: Bundle Size — 2.06MB (0%).

303999bcb905af91194ee41cd6b0a60e678ebd8b vs e550fb20bbf3e375b7575f43fd0551a7b3ded5b7

Changed metrics (1/10)
| Metric | Current | Baseline | |---|--:|--:| | [Cache Invalidation](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/895-G4JiwQkHx5sBmYkNdqQn/assets?ba=%7B%22filters%22%3A%7B%22changed%22%3Atrue%7D%7D "View all changed assets") | `0%` | `28.38%` |
Changed assets by type (0/7)
> No changes

View Job #895 report on app.relative-ci.com

github-actions[bot] commented 2 years ago

Coverage report for ./apps/main

St.:grey_question:
Category Percentage Covered / Total
🔴 Statements 41.02% 2283/5566
🔴 Branches 26.42% 563/2131
🔴 Functions 33.94% 411/1211
🔴 Lines 40.11% 2044/5096

Test suite run success

55 tests passing in 37 suites.

Report generated by 🧪jest coverage report action from a9a2b57c95d350e827afd708d7a84b43b9ad362b

cypress[bot] commented 2 years ago



Test summary

7 0 0 0


Run details

Project chirpy
Status Passed
Commit a9a2b57c95
Started Aug 5, 2022 5:46 AM
Ended Aug 5, 2022 5:48 AM
Duration 01:55 💡
OS Linux Ubuntu - 20.04
Browser Electron 100

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard