From 14fbb8b05946ca5ff853680c957f582a9ed56ded Mon Sep 17 00:00:00 2001 From: renovate <29139614+renovate@users.noreply.github.com> Date: Wed, 5 Feb 2025 10:54:56 +0000 Subject: [PATCH] chore: bump up oxlint version to v0.15.9 (#9922) 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.8` -> `0.15.9`](https://renovatebot.com/diffs/npm/oxlint/0.15.8/0.15.9) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.15.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.15.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.15.8/0.15.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.15.8/0.15.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
oxc-project/oxc (oxlint) ### [`v0.15.9`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.9): oxlint v0.15.9 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.8...oxlint_v0.15.9) #### \[0.15.9] - 2025-02-01 ##### Features - [`1a41181`](https://redirect.github.com/oxc-project/oxc/commit/1a41181) linter: Implement `eslint/prefer-object-spread` ([#​8216](https://redirect.github.com/oxc-project/oxc/issues/8216)) (tbashiyy) - [`adb8ebd`](https://redirect.github.com/oxc-project/oxc/commit/adb8ebd) linter: Implement no-useless-call rule ([#​8789](https://redirect.github.com/oxc-project/oxc/issues/8789)) (keita hino) - [`3790933`](https://redirect.github.com/oxc-project/oxc/commit/3790933) linter: Add vitest/prefer-lowercase-title rule ([#​8152](https://redirect.github.com/oxc-project/oxc/issues/8152)) (Tyler Earls) - [`e8e6917`](https://redirect.github.com/oxc-project/oxc/commit/e8e6917) linter: Unicorn/switch-cases-braces support options ([#​8704](https://redirect.github.com/oxc-project/oxc/issues/8704)) (1zumii) ##### Bug Fixes - [`8ce21d1`](https://redirect.github.com/oxc-project/oxc/commit/8ce21d1) linter: Can't disable `no-nested-ternary` rule anymore ([#​8600](https://redirect.github.com/oxc-project/oxc/issues/8600)) (dalaoshu) - [`e929f26`](https://redirect.github.com/oxc-project/oxc/commit/e929f26) linter: Output `LintCommandInfo` for `CliRunResult::LintNoFilesFound` ([#​8714](https://redirect.github.com/oxc-project/oxc/issues/8714)) (Sysix) - [`4f30a17`](https://redirect.github.com/oxc-project/oxc/commit/4f30a17) linter: Unicorn/switch-case-braces mangles code when applying fix ([#​8758](https://redirect.github.com/oxc-project/oxc/issues/8758)) (Tyler Earls) - [`9cc9d5f`](https://redirect.github.com/oxc-project/oxc/commit/9cc9d5f) linter: `ignorePatterns` does not work when files are provided as command arguments ([#​8590](https://redirect.github.com/oxc-project/oxc/issues/8590)) (dalaoshu) - [`1de6f85`](https://redirect.github.com/oxc-project/oxc/commit/1de6f85) linter: No-lone-blocks erroring on block statements containing comments ([#​8720](https://redirect.github.com/oxc-project/oxc/issues/8720)) (Tyler Earls) - [`77ef61a`](https://redirect.github.com/oxc-project/oxc/commit/77ef61a) linter: Fix diagnostic spans for `oxc/no-async-await` ([#​8721](https://redirect.github.com/oxc-project/oxc/issues/8721)) (camchenry) - [`f15bdce`](https://redirect.github.com/oxc-project/oxc/commit/f15bdce) linter: Catch `Promise` in `typescript/array-type` rule ([#​8702](https://redirect.github.com/oxc-project/oxc/issues/8702)) (Rintaro Itokawa) - [`5041cb3`](https://redirect.github.com/oxc-project/oxc/commit/5041cb3) vscode: Fix commands by reverting commit `259a47b` ([#​8819](https://redirect.github.com/oxc-project/oxc/issues/8819)) (Alexander S.) ##### Performance - [`d318238`](https://redirect.github.com/oxc-project/oxc/commit/d318238) linter: Remove sorting of rules in cache ([#​8718](https://redirect.github.com/oxc-project/oxc/issues/8718)) (camchenry) ##### Documentation - [`57b7ca8`](https://redirect.github.com/oxc-project/oxc/commit/57b7ca8) ast: Add documentation for all remaining JS AST methods ([#​8820](https://redirect.github.com/oxc-project/oxc/issues/8820)) (Cam McHenry) ##### Refactor - [`c2fdfc4`](https://redirect.github.com/oxc-project/oxc/commit/c2fdfc4) linter: Correctly handle loose options for `eslint/eqeqeq` ([#​8798](https://redirect.github.com/oxc-project/oxc/issues/8798)) (dalaoshu) - [`0aeaedd`](https://redirect.github.com/oxc-project/oxc/commit/0aeaedd) linter: Support loose options for `eslint/eqeqeq` ([#​8790](https://redirect.github.com/oxc-project/oxc/issues/8790)) (dalaoshu) - [`194a5ff`](https://redirect.github.com/oxc-project/oxc/commit/194a5ff) linter: Remove `LintResult` ([#​8712](https://redirect.github.com/oxc-project/oxc/issues/8712)) (Sysix) - [`4a2f2a9`](https://redirect.github.com/oxc-project/oxc/commit/4a2f2a9) linter: Move default `all_rules` output to trait ([#​8710](https://redirect.github.com/oxc-project/oxc/issues/8710)) (Sysix) - [`741fb40`](https://redirect.github.com/oxc-project/oxc/commit/741fb40) linter: Move stdout outside LintRunner ([#​8694](https://redirect.github.com/oxc-project/oxc/issues/8694)) (Sysix) - [`10e5920`](https://redirect.github.com/oxc-project/oxc/commit/10e5920) linter: Move finishing default diagnostic message to `GraphicalReporter` ([#​8683](https://redirect.github.com/oxc-project/oxc/issues/8683)) (Sysix) - [`9731c56`](https://redirect.github.com/oxc-project/oxc/commit/9731c56) oxlint: Move output from `CliRunResult::InvalidOption` to outside and use more Enums for different invalid options ([#​8778](https://redirect.github.com/oxc-project/oxc/issues/8778)) (Sysix) - [`fe45bee`](https://redirect.github.com/oxc-project/oxc/commit/fe45bee) oxlint: Create different `CliRunResult` instead of passing `ExitCode` to it ([#​8777](https://redirect.github.com/oxc-project/oxc/issues/8777)) (Sysix) - [`2378fef`](https://redirect.github.com/oxc-project/oxc/commit/2378fef) oxlint: Move ConfigFileInit output outside CliRunResult, exit code 1 when it fails ([#​8776](https://redirect.github.com/oxc-project/oxc/issues/8776)) (Sysix) - [`f4cecb5`](https://redirect.github.com/oxc-project/oxc/commit/f4cecb5) oxlint: Remove unused `CliRunResult::PathNotFound` ([#​8775](https://redirect.github.com/oxc-project/oxc/issues/8775)) (Sysix) ##### Testing - [`ad35e82`](https://redirect.github.com/oxc-project/oxc/commit/ad35e82) linter: Use snapshot testing instead of LintResult ([#​8711](https://redirect.github.com/oxc-project/oxc/issues/8711)) (Sysix) - [`bf895eb`](https://redirect.github.com/oxc-project/oxc/commit/bf895eb) linter: Add diagnostic format test snapshots ([#​8696](https://redirect.github.com/oxc-project/oxc/issues/8696)) (Alexander S.) - [`34d3d72`](https://redirect.github.com/oxc-project/oxc/commit/34d3d72) linter: Add snapshot tester for cli ([#​8695](https://redirect.github.com/oxc-project/oxc/issues/8695)) (Sysix) - [`0bf2bcf`](https://redirect.github.com/oxc-project/oxc/commit/0bf2bcf) oxlint: Test two real rules with same name but from different plugins ([#​8821](https://redirect.github.com/oxc-project/oxc/issues/8821)) (dalaoshu) - [`2b83b71`](https://redirect.github.com/oxc-project/oxc/commit/2b83b71) oxlint: Improve disabling "no-nested-ternary" tests ([#​8814](https://redirect.github.com/oxc-project/oxc/issues/8814)) (Alexander S.) - [`45648e7`](https://redirect.github.com/oxc-project/oxc/commit/45648e7) oxlint: Fix InvalidOptionTsConfig tests for windows ([#​8791](https://redirect.github.com/oxc-project/oxc/issues/8791)) (Alexander S.) - [`48bfed9`](https://redirect.github.com/oxc-project/oxc/commit/48bfed9) oxlint: Ignore windows path mismatch (Boshen) - [`6f4a023`](https://redirect.github.com/oxc-project/oxc/commit/6f4a023) oxlint: Remove "--print-config" test ([#​8792](https://redirect.github.com/oxc-project/oxc/issues/8792)) (Sysix) - [`55c2025`](https://redirect.github.com/oxc-project/oxc/commit/55c2025) oxlint: Add `CliRunResult` to snapshot ([#​8780](https://redirect.github.com/oxc-project/oxc/issues/8780)) (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). --- .../block-std/src/scope/block-std-scope.ts | 8 +- package.json | 2 +- .../components/affine/ai-onboarding/apis.ts | 2 +- yarn.lock | 74 +++++++++---------- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/blocksuite/framework/block-std/src/scope/block-std-scope.ts b/blocksuite/framework/block-std/src/scope/block-std-scope.ts index 11c451611a..bb1d0d13bd 100644 --- a/blocksuite/framework/block-std/src/scope/block-std-scope.ts +++ b/blocksuite/framework/block-std/src/scope/block-std-scope.ts @@ -135,7 +135,7 @@ export class BlockStdScope { this.provider = this.container.provider(undefined, this.store.provider); this._lifeCycleWatchers.forEach(watcher => { - watcher.created.call(watcher); + watcher.created(); }); } @@ -183,7 +183,7 @@ export class BlockStdScope { mount() { this._lifeCycleWatchers.forEach(watcher => { - watcher.mounted.call(watcher); + watcher.mounted(); }); } @@ -193,7 +193,7 @@ export class BlockStdScope { element.doc = this.store; this._host = element; this._lifeCycleWatchers.forEach(watcher => { - watcher.rendered.call(watcher); + watcher.rendered(); }); return element; @@ -201,7 +201,7 @@ export class BlockStdScope { unmount() { this._lifeCycleWatchers.forEach(watcher => { - watcher.unmounted.call(watcher); + watcher.unmounted(); }); } } diff --git a/package.json b/package.json index 27e773803c..6311d0bdda 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.8", + "oxlint": "0.15.9", "prettier": "^3.4.2", "semver": "^7.6.3", "serve": "^14.2.4", diff --git a/packages/frontend/core/src/components/affine/ai-onboarding/apis.ts b/packages/frontend/core/src/components/affine/ai-onboarding/apis.ts index 2150df330a..a6f9d004b7 100644 --- a/packages/frontend/core/src/components/affine/ai-onboarding/apis.ts +++ b/packages/frontend/core/src/components/affine/ai-onboarding/apis.ts @@ -12,7 +12,7 @@ function createStorageEvent(key: string, newValue: string) { const setItem = function (key: string, value: string) { const oldValue = localStorage.getItem(key); - localStorage.setItem.call(localStorage, key, value); + localStorage.setItem(key, value); if (oldValue !== value) createStorageEvent(key, value); }; diff --git a/yarn.lock b/yarn.lock index 16c0d0b1b4..907f0ace5b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -688,7 +688,7 @@ __metadata: husky: "npm:^9.1.7" lint-staged: "npm:^15.2.11" msw: "npm:^2.6.8" - oxlint: "npm:0.15.8" + oxlint: "npm:0.15.9" prettier: "npm:^3.4.2" semver: "npm:^7.6.3" serve: "npm:^14.2.4" @@ -10754,58 +10754,58 @@ __metadata: languageName: node linkType: hard -"@oxlint/darwin-arm64@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/darwin-arm64@npm:0.15.8" +"@oxlint/darwin-arm64@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/darwin-arm64@npm:0.15.9" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/darwin-x64@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/darwin-x64@npm:0.15.8" +"@oxlint/darwin-x64@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/darwin-x64@npm:0.15.9" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/linux-arm64-gnu@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/linux-arm64-gnu@npm:0.15.8" +"@oxlint/linux-arm64-gnu@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/linux-arm64-gnu@npm:0.15.9" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-arm64-musl@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/linux-arm64-musl@npm:0.15.8" +"@oxlint/linux-arm64-musl@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/linux-arm64-musl@npm:0.15.9" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@oxlint/linux-x64-gnu@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/linux-x64-gnu@npm:0.15.8" +"@oxlint/linux-x64-gnu@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/linux-x64-gnu@npm:0.15.9" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-x64-musl@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/linux-x64-musl@npm:0.15.8" +"@oxlint/linux-x64-musl@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/linux-x64-musl@npm:0.15.9" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@oxlint/win32-arm64@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/win32-arm64@npm:0.15.8" +"@oxlint/win32-arm64@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/win32-arm64@npm:0.15.9" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/win32-x64@npm:0.15.8": - version: 0.15.8 - resolution: "@oxlint/win32-x64@npm:0.15.8" +"@oxlint/win32-x64@npm:0.15.9": + version: 0.15.9 + resolution: "@oxlint/win32-x64@npm:0.15.9" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -28750,18 +28750,18 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:0.15.8": - version: 0.15.8 - resolution: "oxlint@npm:0.15.8" +"oxlint@npm:0.15.9": + version: 0.15.9 + resolution: "oxlint@npm:0.15.9" dependencies: - "@oxlint/darwin-arm64": "npm:0.15.8" - "@oxlint/darwin-x64": "npm:0.15.8" - "@oxlint/linux-arm64-gnu": "npm:0.15.8" - "@oxlint/linux-arm64-musl": "npm:0.15.8" - "@oxlint/linux-x64-gnu": "npm:0.15.8" - "@oxlint/linux-x64-musl": "npm:0.15.8" - "@oxlint/win32-arm64": "npm:0.15.8" - "@oxlint/win32-x64": "npm:0.15.8" + "@oxlint/darwin-arm64": "npm:0.15.9" + "@oxlint/darwin-x64": "npm:0.15.9" + "@oxlint/linux-arm64-gnu": "npm:0.15.9" + "@oxlint/linux-arm64-musl": "npm:0.15.9" + "@oxlint/linux-x64-gnu": "npm:0.15.9" + "@oxlint/linux-x64-musl": "npm:0.15.9" + "@oxlint/win32-arm64": "npm:0.15.9" + "@oxlint/win32-x64": "npm:0.15.9" dependenciesMeta: "@oxlint/darwin-arm64": optional: true @@ -28782,7 +28782,7 @@ __metadata: bin: oxc_language_server: bin/oxc_language_server oxlint: bin/oxlint - checksum: 10/4b1457297207bc000a6ad3eba8263b78a43ddb960194d745c8a0642828bd0f4c077278a3d7195cf7166767a75c272009d66188b4f0c9b45603e2aed79b9394f7 + checksum: 10/c4e553cc0200eef787c2ba9b6a6932ab96c6a97652832c5fa024e7591939250c3f69d7b9c5be4a5bedc9d4527c26a0dc6a8dfd2bc11158ed50965fc9e984ef9e languageName: node linkType: hard