Files
AFFiNE/package.json
renovate 4154f2f160 chore: bump up electron version to v31 (#7190)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [electron](https://togithub.com/electron/electron) | [`^30.0.0` -> `^31.0.0`](https://renovatebot.com/diffs/npm/electron/30.0.8/31.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/electron/31.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/electron/31.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/electron/30.0.8/31.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/electron/30.0.8/31.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>electron/electron (electron)</summary>

### [`v31.0.0`](https://togithub.com/electron/electron/releases/tag/v31.0.0): electron v31.0.0

[Compare Source](https://togithub.com/electron/electron/compare/v30.1.0...v31.0.0)

### Release Notes for v31.0.0

#### Stack Upgrades

-   Chromium`126.0.6478.36`
    -   [New in 126](https://developer.chrome.com/blog/new-in-chrome-126/)
    -   [New in 125](https://developer.chrome.com/blog/new-in-chrome-125/)
-   Node `20.14.0`
    -   [Node 20.14.0 blog post](https://nodejs.org/en/blog/release/v20.14.0/)
-   V8 `12.6`

#### Breaking Changes

-   Made window.flashFrame(bool) flash continuously on macOS. [#&#8203;41391](https://togithub.com/electron/electron/pull/41391)
-   Updated Chromium to 126.0.6445.0. (Removed: `WebSQL` support) [#&#8203;41868](https://togithub.com/electron/electron/pull/41868)
-   Updated Chromium to 125.0.6412.0. (Behavior Changed: `nativeImage.toDataURL` will preserve PNG colorspace) [#&#8203;41610](https://togithub.com/electron/electron/pull/41610)

#### Features

##### Additions

-   Added a new instance property `navigationHistory` on webContents API with `navigationHistory.getEntryAtIndex` method, enabling applications to retrieve the URL and title of any navigation entry within the browsing history. [#&#8203;41577](https://togithub.com/electron/electron/pull/41577) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41661), [30](https://togithub.com/electron/electron/pull/41662))</span>
-   Added options parameter to `Session.clearData` API. [#&#8203;41355](https://togithub.com/electron/electron/pull/41355)
-   Added proxy configuring support for requests made with net module from utility process. [#&#8203;41335](https://togithub.com/electron/electron/pull/41335) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41744), [29](https://togithub.com/electron/electron/pull/41416), [30](https://togithub.com/electron/electron/pull/41417))</span>
-   Added support for Bluetooth ports being requested by service class ID in `navigator.serial`. [#&#8203;41638](https://togithub.com/electron/electron/pull/41638) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41735), [30](https://togithub.com/electron/electron/pull/41734))</span>
-   Added support for `NODE_EXTRA_CA_CERTS`. [#&#8203;41689](https://togithub.com/electron/electron/pull/41689)
-   Extended `webContents.setWindowOpenHandler` to support manual creation of BrowserWindow. [#&#8203;41432](https://togithub.com/electron/electron/pull/41432)
-   Implemented support for the File System API. [#&#8203;41419](https://togithub.com/electron/electron/pull/41419) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41827))</span>
-   `clearData` method added to `Session`. [#&#8203;40983](https://togithub.com/electron/electron/pull/40983)
-   Extended `WebContentsView` to accept pre-existing `webContents` object. [#&#8203;42319](https://togithub.com/electron/electron/pull/42319)

##### Improvements

-   Extended `WebContentsView` to accept pre-existing `webContents` object. [#&#8203;42319](https://togithub.com/electron/electron/pull/42319)
-   Improved error messages when `ses.cookies.set` fails. [#&#8203;42400](https://togithub.com/electron/electron/pull/42400) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/42399), [30](https://togithub.com/electron/electron/pull/42398))</span>
-   Re-adds functionality to check whether or not an app was launched as a login service on macOS. [#&#8203;42422](https://togithub.com/electron/electron/pull/42422)

##### Removed/Deprecated

-   The `inputFieldType` property in the `context-menu` params has been removed. [#&#8203;41239](https://togithub.com/electron/electron/pull/41239) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41440))</span>

#### Fixes

-   Added missing support for the `recursive` option in `fs.{readdir|readdirSync}` as well as `fs.promises.{readdir|readdirSync}`. [#&#8203;41582](https://togithub.com/electron/electron/pull/41582)
-   Added support for `withFileTypes` when calling `fs.{readdir|readdirSync}` with the `recursive` in Asar archives. [#&#8203;41627](https://togithub.com/electron/electron/pull/41627)
-   Fixed ASAN build on macOS. [#&#8203;41587](https://togithub.com/electron/electron/pull/41587)
-   Fixed a bug where a window with maximization disabled and WCO enabled would still show its maximization button. [#&#8203;41793](https://togithub.com/electron/electron/pull/41793)
-   Fixed an issue where child views in a BrowserWindow could sometimes be. [#&#8203;41256](https://togithub.com/electron/electron/pull/41256)
-   Fixed issue where windows made visible with `showInactive` were blank. [#&#8203;42227](https://togithub.com/electron/electron/pull/42227)
-   Fixed potentially incorrect exit code in UtilityProcess. [#&#8203;42397](https://togithub.com/electron/electron/pull/42397)
-   `originalFs.promises.cp` now works. [#&#8203;42134](https://togithub.com/electron/electron/pull/42134)

##### Also in earlier versions...

-   BrowserWindow.show() now correctly restores focus to inactive apps on macOS. [#&#8203;42305](https://togithub.com/electron/electron/pull/42305) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42306))</span>
-   Electron doesn't paint on offscreen-render mode after gpu process crashed. [#&#8203;41924](https://togithub.com/electron/electron/pull/41924) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41923), [30](https://togithub.com/electron/electron/pull/41925))</span>
-   Ensured ScreenCaptureKit is used exclusively on macOS 14.4 and higher to avoid permission prompts. [#&#8203;41397](https://togithub.com/electron/electron/pull/41397) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41403), [30](https://togithub.com/electron/electron/pull/41404))</span>
-   Fixed `chrome://process-internals` failing to load. [#&#8203;41476](https://togithub.com/electron/electron/pull/41476) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41541), [29](https://togithub.com/electron/electron/pull/41542), [30](https://togithub.com/electron/electron/pull/41540))</span>
-   Fixed `shell.showItemInFolder` not opening Windows Explorer if the passed path contains forward slashes. [#&#8203;41642](https://togithub.com/electron/electron/pull/41642) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41670), [29](https://togithub.com/electron/electron/pull/41672), [30](https://togithub.com/electron/electron/pull/41671))</span>
-   Fixed a crash in `addChildView` if a view is added as its own child. [#&#8203;42108](https://togithub.com/electron/electron/pull/42108) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42107))</span>
-   Fixed a crash when the same `WebContentsView` is added via `addChildView` multiple times. [#&#8203;42116](https://togithub.com/electron/electron/pull/42116) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42115))</span>
-   Fixed a potential crash in `chrome.scripting` on extension unload. [#&#8203;41686](https://togithub.com/electron/electron/pull/41686) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41701), [30](https://togithub.com/electron/electron/pull/41702))</span>
-   Fixed an error when calling `setAutoResize` on a `BrowserView`. [#&#8203;42138](https://togithub.com/electron/electron/pull/42138) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42137))</span>
-   Fixed an inconsistent crash on maximizing window and relayout in Ubuntu. [#&#8203;42146](https://togithub.com/electron/electron/pull/42146) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42145))</span>
-   Fixed an issue on Windows where silent printing resulted in comically tiny renderer output. [#&#8203;41811](https://togithub.com/electron/electron/pull/41811) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41837), [29](https://togithub.com/electron/electron/pull/41836), [30](https://togithub.com/electron/electron/pull/41838))</span>
-   Fixed an issue where `BrowserView` `webContents` were getting destroyed even when `preventDefault` was being set on the owning `BrowserWindow`'s `close` event. [#&#8203;42372](https://togithub.com/electron/electron/pull/42372) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42371))</span>
-   Fixed an issue where `app.getLoginItemSettings` didn't correctly throw errors. [#&#8203;41647](https://togithub.com/electron/electron/pull/41647) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41667))</span>
-   Fixed an issue where `app.setLoginItemSettings` incorrectly checked against `loginItemService`. [#&#8203;42404](https://togithub.com/electron/electron/pull/42404) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42403))</span>
-   Fixed an issue where `document.requestFullscreen` didn't work when calling it from a `webContents` inside `WebContentsView`. [#&#8203;41995](https://togithub.com/electron/electron/pull/41995) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41996))</span>
-   Fixed an issue where `recentDOcuments` wasn't populating properly on macOS. [#&#8203;41993](https://togithub.com/electron/electron/pull/41993) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41994), [30](https://togithub.com/electron/electron/pull/41992))</span>
-   Fixed an issue where `setTitleBarOverlay` didn't work as expected when called on `BaseWindow`. [#&#8203;42150](https://togithub.com/electron/electron/pull/42150) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/42152), [30](https://togithub.com/electron/electron/pull/42151))</span>
-   Fixed an issue where `user-did-{resign|become}-active` were not emitted properly on macOS. [#&#8203;41506](https://togithub.com/electron/electron/pull/41506) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41526), [29](https://togithub.com/electron/electron/pull/41527), [30](https://togithub.com/electron/electron/pull/41528))</span>
-   Fixed an issue where `webContents.navigationHistory` was not an enumerable property. [#&#8203;42182](https://togithub.com/electron/electron/pull/42182) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42181))</span>
-   Fixed an issue where `webContents.print(options)` failed if `options` was not passed or `undefined` is passed. [#&#8203;41467](https://togithub.com/electron/electron/pull/41467) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41502), [29](https://togithub.com/electron/electron/pull/41501), [30](https://togithub.com/electron/electron/pull/41480))</span>
-   Fixed an issue where badge text set using the Badging API no longer appeared correctly on Windows. [#&#8203;41618](https://togithub.com/electron/electron/pull/41618) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41628), [30](https://togithub.com/electron/electron/pull/41629))</span>
-   Fixed an issue where calling `window.center()` on Windows and Linux incorrectly centered the window. [#&#8203;42101](https://togithub.com/electron/electron/pull/42101) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42100))</span>
-   Fixed an issue where dialogs did not work if they were parented to a BaseWindow and not a BrowserWindow. [#&#8203;42326](https://togithub.com/electron/electron/pull/42326) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42327))</span>
-   Fixed an issue where emojis weren't properly handled on Windows. [#&#8203;41673](https://togithub.com/electron/electron/pull/41673) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41680), [30](https://togithub.com/electron/electron/pull/41681))</span>
-   Fixed an issue where showing or focusing a panel window would activate the app on Mac. [#&#8203;41750](https://togithub.com/electron/electron/pull/41750) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41844))</span>
-   Fixed an issue where some calls to WebUSB methods could crash. [#&#8203;42365](https://togithub.com/electron/electron/pull/42365) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/42363))</span>
-   Fixed an issue where the `serial-port-added` event improperly respected filters set by `serial.requestPort()`. [#&#8203;41621](https://togithub.com/electron/electron/pull/41621) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41637), [29](https://togithub.com/electron/electron/pull/41636), [30](https://togithub.com/electron/electron/pull/41635))</span>
-   Fixed an issue where the window could be incorrectly centered in some circumstances when calling `BrowserWindow.center()`. [#&#8203;42197](https://togithub.com/electron/electron/pull/42197) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42196))</span>
-   Fixed crash after upgrade on Linux. [#&#8203;42062](https://togithub.com/electron/electron/pull/42062) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/42065), [30](https://togithub.com/electron/electron/pull/42064))</span>
-   Fixed crash in Notification::Close() under libnotify 0.8.x with portal environment. [#&#8203;41691](https://togithub.com/electron/electron/pull/41691) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41709), [29](https://togithub.com/electron/electron/pull/41707), [30](https://togithub.com/electron/electron/pull/41708))</span>
-   Fixed crash on window maximize on X11. [#&#8203;42184](https://togithub.com/electron/electron/pull/42184) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42185))</span>
-   Fixed data corruption when protocol.handle() processed incoming data asynchronously. [#&#8203;41932](https://togithub.com/electron/electron/pull/41932) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41933))</span>
-   Fixed missing `<__assertion_handler>` header when compiling with libc++. [#&#8203;41830](https://togithub.com/electron/electron/pull/41830) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/41845), [30](https://togithub.com/electron/electron/pull/41846))</span>
-   Fixed nativeImage.createThumbnailFromPath and shell.openExternal not resolving when called in the renderer process. [#&#8203;41908](https://togithub.com/electron/electron/pull/41908) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41909))</span>
-   Fixed the type of `WebviewTag.webpreferences` back to `string`. [#&#8203;42279](https://togithub.com/electron/electron/pull/42279) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42280))</span>
-   Fixed usage of `Storage.{get|set|clear}Cookies` via the Chrome DevTools Protocol. [#&#8203;41718](https://togithub.com/electron/electron/pull/41718) <span style="font-size:small;">(Also in [28](https://togithub.com/electron/electron/pull/41738), [29](https://togithub.com/electron/electron/pull/41739), [30](https://togithub.com/electron/electron/pull/41740))</span>
-   Improved appearance of caption buttons on Windows 11 when using Windows Control Overlay. [#&#8203;41561](https://togithub.com/electron/electron/pull/41561) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/41586))</span>
-   `BrowserWindow.focus()` now correctly restore focus to inactive apps on macOS. [#&#8203;42186](https://togithub.com/electron/electron/pull/42186) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42187))</span>
-   Fixed an issue where `BrowserView` `webContents` were getting destroyed even when `preventDefault` was being set on the owning `BrowserWindow`'s `close` event. [#&#8203;42372](https://togithub.com/electron/electron/pull/42372) <span style="font-size:small;">(Also in [30](https://togithub.com/electron/electron/pull/42371))</span>
-   Fixed an issue where `contentWindow.document.fonts.ready` would never resolve in some circumstances. [#&#8203;42385](https://togithub.com/electron/electron/pull/42385)
-   Fixed support for multiple folder/file selection in //shell_dialogs portal implementation. [#&#8203;42424](https://togithub.com/electron/electron/pull/42424)

#### Other Changes

-   Backported fix for [`3366250`](https://togithub.com/electron/electron/commit/336625018). [#&#8203;42316](https://togithub.com/electron/electron/pull/42316)
-   Backported fix for [`3392667`](https://togithub.com/electron/electron/commit/339266700). [#&#8203;42095](https://togithub.com/electron/electron/pull/42095)
-   Backported fix for [`3394581`](https://togithub.com/electron/electron/commit/339458194). [#&#8203;42121](https://togithub.com/electron/electron/pull/42121)
-   Backported fix for [`3402211`](https://togithub.com/electron/electron/commit/340221135). [#&#8203;42173](https://togithub.com/electron/electron/pull/42173)
-   Backported fix for [`3416635`](https://togithub.com/electron/electron/commit/341663589). [#&#8203;42254](https://togithub.com/electron/electron/pull/42254)
-   Fixed partially broken state of `chrome://accessibility`. [#&#8203;41948](https://togithub.com/electron/electron/pull/41948)

#### Documentation

-   Documentation change
    -   [#&#8203;41723](https://togithub.com/electron/electron/pull/41723)
    -   [#&#8203;41882](https://togithub.com/electron/electron/pull/41882)
    -   [#&#8203;42309](https://togithub.com/electron/electron/pull/42309)

#### Notices

##### End of Support for 28.x.y

Electron 28.x.y has reached end-of-support as per the project's [support policy](https://www.electronjs.org/docs/latest/tutorial/electron-timelines#version-support-policy). Developers and applications are encouraged to upgrade to a newer version of Electron.

### [`v30.1.0`](https://togithub.com/electron/electron/releases/tag/v30.1.0): electron v30.1.0

[Compare Source](https://togithub.com/electron/electron/compare/v30.0.9...v30.1.0)

### Release Notes for v30.1.0

#### Fixes

-   BrowserWindow.show() now correctly restores focus to inactive apps on macOS. [#&#8203;42306](https://togithub.com/electron/electron/pull/42306) <span style="font-size:small;">(Also in [31](https://togithub.com/electron/electron/pull/42305))</span>
-   Fixed BrowserWindow vibrancy on macOS. [#&#8203;42263](https://togithub.com/electron/electron/pull/42263)
-   Fixed an issue where `BrowserView` `webContents` were getting destroyed even when `preventDefault` was being set on the owning `BrowserWindow`'s `close` event. [#&#8203;42371](https://togithub.com/electron/electron/pull/42371)
-   Fixed an issue where dialogs did not work if they were parented to a BaseWindow and not a BrowserWindow. [#&#8203;42327](https://togithub.com/electron/electron/pull/42327) <span style="font-size:small;">(Also in [31](https://togithub.com/electron/electron/pull/42326))</span>
-   Fixed an issue where some calls to WebUSB methods could crash. [#&#8203;42364](https://togithub.com/electron/electron/pull/42364) <span style="font-size:small;">(Also in [29](https://togithub.com/electron/electron/pull/42363), [31](https://togithub.com/electron/electron/pull/42365))</span>

#### Other Changes

-   Updated Chromium to 124.0.6367.243. [#&#8203;42328](https://togithub.com/electron/electron/pull/42328)
-   Updated Node.js to v20.14.0. [#&#8203;42294](https://togithub.com/electron/electron/pull/42294)

### [`v30.0.9`](https://togithub.com/electron/electron/releases/tag/v30.0.9): electron v30.0.9

[Compare Source](https://togithub.com/electron/electron/compare/v30.0.8...v30.0.9)

### Release Notes for v30.0.9

#### Fixes

-   Fixed the type of `WebviewTag.webpreferences` back to `string`. [#&#8203;42280](https://togithub.com/electron/electron/pull/42280) <span style="font-size:small;">(Also in [31](https://togithub.com/electron/electron/pull/42279))</span>

#### Other Changes

-   Updated Chromium to 124.0.6367.233. [#&#8203;42269](https://togithub.com/electron/electron/pull/42269)

</details>

---

### 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-06-11 06:04:59 +00:00

175 lines
7.6 KiB
JSON

{
"name": "@affine/monorepo",
"version": "0.14.0",
"private": true,
"author": "toeverything",
"license": "MIT",
"workspaces": [
".",
"packages/*/*",
"tools/*",
"docs/reference",
"tools/@types/*",
"tests/*",
"tests/affine-legacy/*"
],
"engines": {
"node": "<21.0.0"
},
"scripts": {
"dev": "yarn workspace @affine/cli dev",
"dev:electron": "yarn workspace @affine/electron dev",
"build": "yarn nx build @affine/web",
"build:electron": "yarn nx build @affine/electron",
"build:server-native": "yarn nx run-many -t build -p @affine/server-native",
"start:web-static": "yarn workspace @affine/web static-server",
"serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081",
"lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint . --ext .js,mjs,.ts,.tsx --cache",
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
"lint:ox": "oxlint -c oxlint.json --deny-warnings --import-plugin -D correctness -D perf",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
"test": "vitest --run",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc -b tsconfig.json",
"postinstall": "node ./scripts/check-version.mjs && yarn i18n-codegen gen && yarn husky install",
"prepare": "husky"
},
"lint-staged": {
"*": "prettier --write --ignore-unknown --cache",
"*.{ts,tsx,mjs,js,jsx}": [
"prettier --ignore-unknown --write",
"cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --cache --fix"
],
"*.toml": [
"taplo format"
],
"*.rs": [
"cargo fmt --"
]
},
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/cli": "workspace:*",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@faker-js/faker": "^8.4.1",
"@istanbuljs/schema": "^0.1.3",
"@magic-works/i18n-codegen": "^0.6.0",
"@nx/vite": "19.1.0",
"@playwright/test": "^1.44.0",
"@taplo/cli": "^0.7.0",
"@testing-library/react": "^16.0.0",
"@toeverything/infra": "workspace:*",
"@types/affine__env": "workspace:*",
"@types/eslint": "^8.56.7",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@vanilla-extract/vite-plugin": "^4.0.7",
"@vanilla-extract/webpack-plugin": "^2.3.7",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-istanbul": "1.6.0",
"@vitest/ui": "1.6.0",
"cross-env": "^7.0.3",
"electron": "^31.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import-x": "^0.5.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-rxjs": "^5.0.3",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-sonarjs": "^0.25.1",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"eslint-plugin-vue": "^9.24.1",
"fake-indexeddb": "6.0.0",
"happy-dom": "^14.7.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"msw": "^2.3.0",
"nanoid": "^5.0.7",
"nx": "^19.0.0",
"nyc": "^15.1.0",
"oxlint": "0.3.5",
"prettier": "^3.2.5",
"semver": "^7.6.0",
"serve": "^14.2.1",
"string-width": "^7.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite-plugin-istanbul": "^6.0.0",
"vite-plugin-static-copy": "^1.0.2",
"vitest": "1.6.0",
"vitest-fetch-mock": "^0.2.2",
"vitest-mock-extended": "^1.3.1"
},
"packageManager": "yarn@4.2.2",
"resolutions": {
"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@latest",
"array-includes": "npm:@nolyfill/array-includes@latest",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
"array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@latest",
"arraybuffer.prototype.slice": "npm:@nolyfill/arraybuffer.prototype.slice@latest",
"asynciterator.prototype": "npm:@nolyfill/asynciterator.prototype@latest",
"available-typed-arrays": "npm:@nolyfill/available-typed-arrays@latest",
"deep-equal": "npm:@nolyfill/deep-equal@latest",
"define-properties": "npm:@nolyfill/define-properties@latest",
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@latest",
"es-set-tostringtag": "npm:@nolyfill/es-set-tostringtag@latest",
"function-bind": "npm:@nolyfill/function-bind@latest",
"function.prototype.name": "npm:@nolyfill/function.prototype.name@latest",
"get-symbol-description": "npm:@nolyfill/get-symbol-description@latest",
"globalthis": "npm:@nolyfill/globalthis@latest",
"gopd": "npm:@nolyfill/gopd@latest",
"has": "npm:@nolyfill/has@latest",
"has-property-descriptors": "npm:@nolyfill/has-property-descriptors@latest",
"has-proto": "npm:@nolyfill/has-proto@latest",
"has-symbols": "npm:@nolyfill/has-symbols@latest",
"has-tostringtag": "npm:@nolyfill/has-tostringtag@latest",
"is-arguments": "npm:@nolyfill/is-arguments@latest",
"is-array-buffer": "npm:@nolyfill/is-array-buffer@latest",
"is-date-object": "npm:@nolyfill/is-date-object@latest",
"is-generator-function": "npm:@nolyfill/is-generator-function@latest",
"is-regex": "npm:@nolyfill/is-regex@latest",
"is-shared-array-buffer": "npm:@nolyfill/is-shared-array-buffer@latest",
"is-string": "npm:@nolyfill/is-string@latest",
"is-symbol": "npm:@nolyfill/is-symbol@latest",
"is-weakref": "npm:@nolyfill/is-weakref@latest",
"iterator.prototype": "npm:@nolyfill/iterator.prototype@latest",
"object-is": "npm:@nolyfill/object-is@latest",
"object-keys": "npm:@nolyfill/object-keys@latest",
"object.assign": "npm:@nolyfill/object.assign@latest",
"object.entries": "npm:@nolyfill/object.entries@latest",
"object.fromentries": "npm:@nolyfill/object.fromentries@latest",
"object.hasown": "npm:@nolyfill/object.hasown@latest",
"object.values": "npm:@nolyfill/object.values@latest",
"reflect.getprototypeof": "npm:@nolyfill/reflect.getprototypeof@latest",
"regexp.prototype.flags": "npm:@nolyfill/regexp.prototype.flags@latest",
"safe-array-concat": "npm:@nolyfill/safe-array-concat@latest",
"safe-regex-test": "npm:@nolyfill/safe-regex-test@latest",
"side-channel": "npm:@nolyfill/side-channel@latest",
"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@latest",
"string.prototype.trim": "npm:@nolyfill/string.prototype.trim@latest",
"string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@latest",
"string.prototype.trimstart": "npm:@nolyfill/string.prototype.trimstart@latest",
"typed-array-buffer": "npm:@nolyfill/typed-array-buffer@latest",
"typed-array-byte-length": "npm:@nolyfill/typed-array-byte-length@latest",
"typed-array-byte-offset": "npm:@nolyfill/typed-array-byte-offset@latest",
"typed-array-length": "npm:@nolyfill/typed-array-length@latest",
"unbox-primitive": "npm:@nolyfill/unbox-primitive@latest",
"which-boxed-primitive": "npm:@nolyfill/which-boxed-primitive@latest",
"which-typed-array": "npm:@nolyfill/which-typed-array@latest",
"@reforged/maker-appimage/@electron-forge/maker-base": "7.4.0",
"macos-alias": "npm:@napi-rs/macos-alias@0.0.4",
"fs-xattr": "npm:@napi-rs/xattr@latest",
"@radix-ui/react-dialog": "npm:@radix-ui/react-dialog@latest"
}
}