From 7227b7f8f6d611c16b093c6f0cc6e78940c590fb Mon Sep 17 00:00:00 2001 From: renovate <29139614+renovate@users.noreply.github.com> Date: Fri, 28 Feb 2025 10:43:56 +0000 Subject: [PATCH] chore: bump up oxlint version to v0.15.12 (#10206) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [oxlint](https://oxc.rs) ([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.15.10` -> `0.15.12`](https://renovatebot.com/diffs/npm/oxlint/0.15.10/0.15.12) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.15.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.15.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.15.10/0.15.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.15.10/0.15.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
oxc-project/oxc (oxlint) ### [`v0.15.12`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.12): oxlint v0.15.12 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.11...oxlint_v0.15.12) #### \[0.15.12] - 2025-02-24 ##### Features - [`914dd46`](https://redirect.github.com/oxc-project/oxc/commit/914dd46) linter: Add eslint/max-depth ([#​9173](https://redirect.github.com/oxc-project/oxc/issues/9173)) (ikkz) - [`0b08159`](https://redirect.github.com/oxc-project/oxc/commit/0b08159) linter: Add eslint/max-lines-per-function ([#​9161](https://redirect.github.com/oxc-project/oxc/issues/9161)) (ikkz) - [`cc8dd48`](https://redirect.github.com/oxc-project/oxc/commit/cc8dd48) linter: Add unicorn/no-invalid-fetch-options rule ([#​9212](https://redirect.github.com/oxc-project/oxc/issues/9212)) (Mikhail Baev) - [`af13b1b`](https://redirect.github.com/oxc-project/oxc/commit/af13b1b) linter: Promote `eslint/no-eval` to `correctness` ([#​9231](https://redirect.github.com/oxc-project/oxc/issues/9231)) (dalaoshu) - [`542bbd7`](https://redirect.github.com/oxc-project/oxc/commit/542bbd7) linter: Support `import-x` plugin name ([#​9074](https://redirect.github.com/oxc-project/oxc/issues/9074)) (Sysix) - [`d266c29`](https://redirect.github.com/oxc-project/oxc/commit/d266c29) linter: Add eslint/max-nested-callbacks ([#​9172](https://redirect.github.com/oxc-project/oxc/issues/9172)) (ikkz) - [`86795d0`](https://redirect.github.com/oxc-project/oxc/commit/86795d0) linter: Implement grouped-accessor-pairs ([#​9065](https://redirect.github.com/oxc-project/oxc/issues/9065)) (yefan) - [`d70bad3`](https://redirect.github.com/oxc-project/oxc/commit/d70bad3) linter: Add eslint/no-unneeded-ternary rule ([#​9160](https://redirect.github.com/oxc-project/oxc/issues/9160)) (Cédric DIRAND) - [`4bd86e6`](https://redirect.github.com/oxc-project/oxc/commit/4bd86e6) linter: Add `fixer` for `unicorn/catch-error-name` ([#​9165](https://redirect.github.com/oxc-project/oxc/issues/9165)) (dalaoshu) ##### Bug Fixes - [`94bd2d8`](https://redirect.github.com/oxc-project/oxc/commit/94bd2d8) language_server: Fix `clippy::significant_drop_in_scrutinee` warning ([#​9234](https://redirect.github.com/oxc-project/oxc/issues/9234)) (Boshen) - [`69091c0`](https://redirect.github.com/oxc-project/oxc/commit/69091c0) linter: Correct default for `eslint/no-eval` ([#​9312](https://redirect.github.com/oxc-project/oxc/issues/9312)) (dalaoshu) - [`3031845`](https://redirect.github.com/oxc-project/oxc/commit/3031845) linter: Add option "allowTypeImports" for rule "no-restricted-imports" ([#​7894](https://redirect.github.com/oxc-project/oxc/issues/7894)) (Alexander S.) ##### Documentation - [`6c0f006`](https://redirect.github.com/oxc-project/oxc/commit/6c0f006) linter: Improve the documentation of eslint/no-useless-concat ([#​9179](https://redirect.github.com/oxc-project/oxc/issues/9179)) (Tom) - [`3414824`](https://redirect.github.com/oxc-project/oxc/commit/3414824) oxc: Enable `clippy::too_long_first_doc_paragraph` ([#​9237](https://redirect.github.com/oxc-project/oxc/issues/9237)) (Boshen) ##### Refactor - [`fb7df52`](https://redirect.github.com/oxc-project/oxc/commit/fb7df52) linter: Allow indirect `eval` by default for `eslint/no-eval` ([#​9302](https://redirect.github.com/oxc-project/oxc/issues/9302)) (dalaoshu) - [`b6fc0f6`](https://redirect.github.com/oxc-project/oxc/commit/b6fc0f6) linter: Improve `unicorn/consistent-function-scoping` ([#​9163](https://redirect.github.com/oxc-project/oxc/issues/9163)) (dalaoshu) ### [`v0.15.11`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#01511---2025-02-16) [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.10...oxlint_v0.15.11) ##### Features - [`5d508a4`](https://redirect.github.com/oxc-project/oxc/commit/5d508a4) linter: Support `env` and `globals` in `overrides` configuration ([#​8915](https://redirect.github.com/oxc-project/oxc/issues/8915)) (Sysix)
--- ### 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. --- - [ ] 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). --- package.json | 2 +- .../backend/server/src/core/doc/reader.ts | 9 ++- .../frontend/core/src/modules/cloud/index.ts | 3 +- yarn.lock | 74 +++++++++---------- 4 files changed, 46 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index a2317bae3..9e17db90a 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "husky": "^9.1.7", "lint-staged": "^15.2.11", "msw": "^2.6.8", - "oxlint": "0.15.10", + "oxlint": "0.15.12", "prettier": "^3.4.2", "semver": "^7.6.3", "serve": "^14.2.4", diff --git a/packages/backend/server/src/core/doc/reader.ts b/packages/backend/server/src/core/doc/reader.ts index e52780045..e2fc2e494 100644 --- a/packages/backend/server/src/core/doc/reader.ts +++ b/packages/backend/server/src/core/doc/reader.ts @@ -183,11 +183,14 @@ export class RpcDocReader extends DatabaseDocReader { if (body) { headers['content-type'] = 'application/octet-stream'; } - const res = await fetch(url, { + const requestInit: RequestInit = { method, headers, - body, - }); + }; + if (body) { + requestInit.body = body; + } + const res = await fetch(url, requestInit); if (!res.ok) { if (res.status === 404) { return null; diff --git a/packages/frontend/core/src/modules/cloud/index.ts b/packages/frontend/core/src/modules/cloud/index.ts index 573b11d35..d5046f38d 100644 --- a/packages/frontend/core/src/modules/cloud/index.ts +++ b/packages/frontend/core/src/modules/cloud/index.ts @@ -39,7 +39,8 @@ import { type Framework } from '@toeverything/infra'; import { DocScope } from '../doc/scopes/doc'; import { DocService } from '../doc/services/doc'; -import { GlobalCache, GlobalState, GlobalStateService } from '../storage'; +import { GlobalCache, GlobalState } from '../storage/providers/global'; +import { GlobalStateService } from '../storage/services/global'; import { UrlService } from '../url'; import { WorkspaceScope, WorkspaceService } from '../workspace'; import { CloudDocMeta } from './entities/cloud-doc-meta'; diff --git a/yarn.lock b/yarn.lock index cd425db95..bed6116dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -730,7 +730,7 @@ __metadata: husky: "npm:^9.1.7" lint-staged: "npm:^15.2.11" msw: "npm:^2.6.8" - oxlint: "npm:0.15.10" + oxlint: "npm:0.15.12" prettier: "npm:^3.4.2" semver: "npm:^7.6.3" serve: "npm:^14.2.4" @@ -9481,58 +9481,58 @@ __metadata: languageName: node linkType: hard -"@oxlint/darwin-arm64@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/darwin-arm64@npm:0.15.10" +"@oxlint/darwin-arm64@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/darwin-arm64@npm:0.15.12" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/darwin-x64@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/darwin-x64@npm:0.15.10" +"@oxlint/darwin-x64@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/darwin-x64@npm:0.15.12" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/linux-arm64-gnu@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/linux-arm64-gnu@npm:0.15.10" +"@oxlint/linux-arm64-gnu@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/linux-arm64-gnu@npm:0.15.12" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-arm64-musl@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/linux-arm64-musl@npm:0.15.10" +"@oxlint/linux-arm64-musl@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/linux-arm64-musl@npm:0.15.12" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@oxlint/linux-x64-gnu@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/linux-x64-gnu@npm:0.15.10" +"@oxlint/linux-x64-gnu@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/linux-x64-gnu@npm:0.15.12" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-x64-musl@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/linux-x64-musl@npm:0.15.10" +"@oxlint/linux-x64-musl@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/linux-x64-musl@npm:0.15.12" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@oxlint/win32-arm64@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/win32-arm64@npm:0.15.10" +"@oxlint/win32-arm64@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/win32-arm64@npm:0.15.12" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/win32-x64@npm:0.15.10": - version: 0.15.10 - resolution: "@oxlint/win32-x64@npm:0.15.10" +"@oxlint/win32-x64@npm:0.15.12": + version: 0.15.12 + resolution: "@oxlint/win32-x64@npm:0.15.12" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -26797,18 +26797,18 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:0.15.10": - version: 0.15.10 - resolution: "oxlint@npm:0.15.10" +"oxlint@npm:0.15.12": + version: 0.15.12 + resolution: "oxlint@npm:0.15.12" dependencies: - "@oxlint/darwin-arm64": "npm:0.15.10" - "@oxlint/darwin-x64": "npm:0.15.10" - "@oxlint/linux-arm64-gnu": "npm:0.15.10" - "@oxlint/linux-arm64-musl": "npm:0.15.10" - "@oxlint/linux-x64-gnu": "npm:0.15.10" - "@oxlint/linux-x64-musl": "npm:0.15.10" - "@oxlint/win32-arm64": "npm:0.15.10" - "@oxlint/win32-x64": "npm:0.15.10" + "@oxlint/darwin-arm64": "npm:0.15.12" + "@oxlint/darwin-x64": "npm:0.15.12" + "@oxlint/linux-arm64-gnu": "npm:0.15.12" + "@oxlint/linux-arm64-musl": "npm:0.15.12" + "@oxlint/linux-x64-gnu": "npm:0.15.12" + "@oxlint/linux-x64-musl": "npm:0.15.12" + "@oxlint/win32-arm64": "npm:0.15.12" + "@oxlint/win32-x64": "npm:0.15.12" dependenciesMeta: "@oxlint/darwin-arm64": optional: true @@ -26829,7 +26829,7 @@ __metadata: bin: oxc_language_server: bin/oxc_language_server oxlint: bin/oxlint - checksum: 10/b58e22b17c47e01841d02be998eabfb249c156ff492d24929ca57e5ec93dc88a69bff5300db70e0132f655d84c9ed1d28b1f428f322b74ff5fdeac0e46a46137 + checksum: 10/796d4129df9ec4b8cb2346ae2dcc5bab7a14515bdf5e30c7a7783b24aecbc68e82bd5a66a45d2e13c51562fc7e452ea06a9be7da88f6b7d5472cfffdcc93ac0a languageName: node linkType: hard