mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
chore: bump up oxlint version to v0.15.12 (#10206)
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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>oxc-project/oxc (oxlint)</summary> ### [`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) </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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
74
yarn.lock
74
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user