mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@vitejs/plugin-react-swc](https://redirect.github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme) ([source](https://redirect.github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react-swc)) | [`^3.7.2` → `^4.0.0`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react-swc/3.9.0/4.2.3) |  |  | --- ### Release Notes <details> <summary>vitejs/vite-plugin-react (@​vitejs/plugin-react-swc)</summary> ### [`v4.2.3`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#423-2026-02-02) [Compare Source](5e600a31ec...12914fa8c1) ### [`v4.2.2`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#422-2025-11-12) [Compare Source](https://redirect.github.com/vitejs/vite-plugin-react/compare/v4.2.1...5e600a31ec27fae54df58a46ef1fffa80238042e) ##### Update code to support newer `rolldown-vite` ([#​978](https://redirect.github.com/vitejs/vite-plugin-react/pull/978)) `rolldown-vite` will remove `optimizeDeps.rollupOptions` in favor of `optimizeDeps.rolldownOptions` soon. This plugin now uses `optimizeDeps.rolldownOptions` to support newer `rolldown-vite`. Please update `rolldown-vite` to the latest version if you are using an older version. ### [`v4.2.1`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#421-2025-11-05) [Compare Source](https://redirect.github.com/vitejs/vite-plugin-react/compare/v4.2.0...v4.2.1) ##### Fix `@vitejs/plugin-react-swc/preamble` on build ([#​962](https://redirect.github.com/vitejs/vite-plugin-react/pull/962)) ### [`v4.2.0`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#420-2025-10-24) [Compare Source](https://redirect.github.com/vitejs/vite-plugin-react/compare/v4.1.0...v4.2.0) ##### Add `@vitejs/plugin-react-swc/preamble` virtual module for SSR HMR ([#​890](https://redirect.github.com/vitejs/vite-plugin-react/pull/890)) SSR applications can now initialize HMR runtime by importing `@vitejs/plugin-react-swc/preamble` at the top of their client entry instead of manually calling `transformIndexHtml`. This simplifies SSR setup for applications that don't use the `transformIndexHtml` API. ##### Use SWC when useAtYourOwnRisk\_mutateSwcOptions is provided ([#​951](https://redirect.github.com/vitejs/vite-plugin-react/pull/951)) Previously, this plugin did not use SWC if plugins were not provided even if `useAtYourOwnRisk_mutateSwcOptions` was provided. This is now fixed. ### [`v4.1.0`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#410-2025-09-17) [Compare Source](f21864b102...v4.1.0) ##### Set SWC cacheRoot options This is set to `{viteCacheDir}/swc` and override the default of `.swc`. ##### Perf: simplify refresh wrapper generation ([#​835](https://redirect.github.com/vitejs/vite-plugin-react/pull/835)) ### [`v4.0.1`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#401-2025-08-19) [Compare Source](590f394c1e...f21864b102d40fca4f70dfe9112a10101ec12f54) ##### Set `optimizeDeps.rollupOptions.transform.jsx` instead of `optimizeDeps.rollupOptions.jsx` for rolldown-vite ([#​735](https://redirect.github.com/vitejs/vite-plugin-react/pull/735)) `optimizeDeps.rollupOptions.jsx` is going to be deprecated in favor of `optimizeDeps.rollupOptions.transform.jsx`. ### [`v4.0.0`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#400-2025-08-07) [Compare Source](9e0c103895...590f394c1e451987258ed64a4b5fb6207c5e8261) ### [`v3.11.0`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#3110-2025-07-18) [Compare Source](32d49ecf9b...9e0c1038959e828865be810a164a51c3db1ac375) ##### Add HMR support for compound components ([#​518](https://redirect.github.com/vitejs/vite-plugin-react/pull/518)) HMR now works for compound components like this: ```tsx const Root = () => <div>Accordion Root</div> const Item = () => <div>Accordion Item</div> export const Accordion = { Root, Item } ``` ##### Return `Plugin[]` instead of `PluginOption[]` ([#​537](https://redirect.github.com/vitejs/vite-plugin-react/pull/537)) The return type has changed from `react(): PluginOption[]` to more specialized type `react(): Plugin[]`. This allows for type-safe manipulation of plugins, for example: ```tsx // previously this causes type errors react() .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' })) ``` ### [`v3.10.2`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#3102-2025-06-10) [Compare Source](8ce7183265...32d49ecf9b15e3070c7abe5a176252a3fe542e5c) ##### Suggest `@vitejs/plugin-react-oxc` if rolldown-vite is detected [#​491](https://redirect.github.com/vitejs/vite-plugin-react/pull/491) Emit a log which recommends `@vitejs/plugin-react-oxc` when `rolldown-vite` is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting `disableOxcRecommendation: true` in the plugin options. ##### Use `optimizeDeps.rollupOptions` instead of `optimizeDeps.esbuildOptions` for rolldown-vite [#​489](https://redirect.github.com/vitejs/vite-plugin-react/pull/489) This suppresses the warning about `optimizeDeps.esbuildOptions` being deprecated in rolldown-vite. ##### Add Vite 7-beta to peerDependencies range [#​497](https://redirect.github.com/vitejs/vite-plugin-react/pull/497) React plugins are compatible with Vite 7, this removes the warning when testing the beta. ### [`v3.10.1`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#3101-2025-06-03) [Compare Source](dcadcfc284...8ce7183265c43f88623655a9cfdcec5282068f9b) ##### Add explicit semicolon in preambleCode [#​485](https://redirect.github.com/vitejs/vite-plugin-react/pull/485) This fixes an edge case when using HTML minifiers that strips line breaks aggressively. ### [`v3.10.0`](https://redirect.github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#3100-2025-05-23) [Compare Source](4a944487aa...dcadcfc2841c0bedfe44279c556835c350dfa5fa) ##### Add `filter` for rolldown-vite [#​470](https://redirect.github.com/vitejs/vite-plugin-react/pull/470) Added `filter` so that it is more performant when running this plugin with rolldown-powered version of Vite. ##### Skip HMR preamble in Vitest browser mode [#​478](https://redirect.github.com/vitejs/vite-plugin-react/pull/478) This was causing annoying `Sourcemap for "/@​react-refresh" points to missing source files` and is unnecessary in test mode. ##### Skip HMR for JSX files with hooks [#​480](https://redirect.github.com/vitejs/vite-plugin-react/pull/480) This removes the HMR warning for hooks with JSX. </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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NS4yIiwidXBkYXRlZEluVmVyIjoiNDIuOTUuMiIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
102 lines
3.2 KiB
JSON
102 lines
3.2 KiB
JSON
{
|
|
"name": "@affine/electron",
|
|
"private": true,
|
|
"version": "0.26.1",
|
|
"main": "./dist/main.js",
|
|
"author": "toeverything",
|
|
"repository": {
|
|
"url": "https://github.com/toeverything/AFFiNE",
|
|
"type": "git"
|
|
},
|
|
"description": "AFFiNE Desktop App",
|
|
"homepage": "https://github.com/toeverything/AFFiNE",
|
|
"exports": {
|
|
"./helper/exposed": "./src/helper/exposed.ts",
|
|
"./main/exposed": "./src/main/exposed.ts",
|
|
"./preload/electron-api": "./src/preload/electron-api.ts",
|
|
"./preload/shared-storage": "./src/preload/shared-storage.ts",
|
|
"./main/shared-state-schema": "./src/main/shared-state-schema.ts",
|
|
"./main/updater/event": "./src/main/updater/event.ts",
|
|
"./main/windows-manager": "./src/main/windows-manager/index.ts"
|
|
},
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dev": "cross-env DEV_SERVER_URL=http://localhost:8080 node ./scripts/dev.ts",
|
|
"dev:prod": "node ./scripts/dev.ts",
|
|
"build": "cross-env NODE_ENV=production node ./scripts/build-layers.ts",
|
|
"build:dev": "node ./scripts/build-layers.ts",
|
|
"generate-assets": "node ./scripts/generate-assets.ts",
|
|
"package": "electron-forge package",
|
|
"make": "electron-forge make",
|
|
"make-squirrel": "node ./scripts/make-squirrel.ts",
|
|
"make-nsis": "node ./scripts/make-nsis.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@affine-tools/utils": "workspace:*",
|
|
"@affine/i18n": "workspace:*",
|
|
"@affine/native": "workspace:*",
|
|
"@affine/nbstore": "workspace:*",
|
|
"@electron-forge/cli": "^7.10.2",
|
|
"@electron-forge/core": "^7.10.2",
|
|
"@electron-forge/core-utils": "^7.10.2",
|
|
"@electron-forge/maker-deb": "^7.10.2",
|
|
"@electron-forge/maker-dmg": "^7.10.2",
|
|
"@electron-forge/maker-flatpak": "^7.10.2",
|
|
"@electron-forge/maker-squirrel": "^7.10.2",
|
|
"@electron-forge/maker-zip": "^7.10.2",
|
|
"@electron-forge/plugin-auto-unpack-natives": "^7.10.2",
|
|
"@electron-forge/plugin-fuses": "^7.10.2",
|
|
"@electron-forge/shared-types": "^7.10.2",
|
|
"@pengx17/electron-forge-maker-appimage": "^1.2.1",
|
|
"@sentry/electron": "^7.0.0",
|
|
"@sentry/esbuild-plugin": "^4.0.0",
|
|
"@sentry/react": "^9.47.1",
|
|
"@toeverything/infra": "workspace:*",
|
|
"@types/set-cookie-parser": "^2.4.10",
|
|
"@types/uuid": "^11.0.0",
|
|
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
"app-builder-lib": "^26.1.0",
|
|
"builder-util-runtime": "^9.5.0",
|
|
"cross-env": "^10.1.0",
|
|
"debug": "^4.4.0",
|
|
"electron": "^39.0.0",
|
|
"electron-log": "^5.4.3",
|
|
"electron-squirrel-startup": "1.0.1",
|
|
"electron-window-state": "^5.0.3",
|
|
"esbuild": "^0.25.0",
|
|
"fs-extra": "^11.2.0",
|
|
"glob": "^11.0.0",
|
|
"lodash-es": "^4.17.23",
|
|
"msw": "^2.12.4",
|
|
"nanoid": "^5.1.6",
|
|
"rxjs": "^7.8.2",
|
|
"semver": "^7.7.3",
|
|
"tree-kill": "^1.2.2",
|
|
"ts-node": "^10.9.2",
|
|
"uuid": "^13.0.0",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"dependencies": {
|
|
"async-call-rpc": "^6.4.2",
|
|
"electron-updater": "^6.6.2",
|
|
"link-preview-js": "^3.1.0",
|
|
"next-themes": "^0.4.4",
|
|
"set-cookie-parser": "^2.7.1",
|
|
"yjs": "^13.6.27"
|
|
},
|
|
"build": {
|
|
"protocols": [
|
|
{
|
|
"name": "affine",
|
|
"schemes": [
|
|
"affine"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"peerDependencies": {
|
|
"ts-node": "*"
|
|
}
|
|
}
|