From 0912fe113f6266c9a1e6e5af33205d4c3c27de4f Mon Sep 17 00:00:00 2001 From: renovate <29139614+renovate@users.noreply.github.com> Date: Tue, 7 May 2024 11:22:19 +0000 Subject: [PATCH] chore: bump up oxlint version to v0.3.2 (#6763) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [oxlint](https://oxc-project.github.io) ([source](https://togithub.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.3.1` -> `0.3.2`](https://renovatebot.com/diffs/npm/oxlint/0.3.1/0.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.3.1/0.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.3.1/0.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
oxc-project/oxc (oxlint) ### [`v0.3.2`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.3.2): oxlint v0.3.2 [Compare Source](https://togithub.com/oxc-project/oxc/compare/99d46f9e489663935780f434f52711787ff1de19...a7940868c6e66d16814ebef5c8dbbfd9b948a0cd) #### What's Changed [Oxlint Import Plugin Alpha Release](http://localhost:5173/blog/2024-05-04-import-plugin-alpha.html) - feat(linter): [@​typescript-eslint/prefer-literal-enum-member](https://togithub.com/typescript-eslint/prefer-literal-enum-member) by [@​kaykdm](https://togithub.com/kaykdm) in [https://github.com/oxc-project/oxc/pull/3134](https://togithub.com/oxc-project/oxc/pull/3134) - feat(linter): add more "ban-ts-comment" test cases. by [@​woai3c](https://togithub.com/woai3c) in [https://github.com/oxc-project/oxc/pull/3107](https://togithub.com/oxc-project/oxc/pull/3107) - feat(linter): eslint-plugin-jest/require-hook by [@​eryue0220](https://togithub.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/3110](https://togithub.com/oxc-project/oxc/pull/3110) - feat(linter): eslint/no-await-in-loop by [@​woai3c](https://togithub.com/woai3c) in [https://github.com/oxc-project/oxc/pull/3070](https://togithub.com/oxc-project/oxc/pull/3070) - feat(linter): typescript-eslint/prefer-enum-initializers by [@​todor-a](https://togithub.com/todor-a) in [https://github.com/oxc-project/oxc/pull/3097](https://togithub.com/oxc-project/oxc/pull/3097) - feat(linter/jsdoc): Implement `implements-on-classes` rule by [@​leaysgur](https://togithub.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/3081](https://togithub.com/oxc-project/oxc/pull/3081) - feat(linter/jsdoc): Implement check-tag-names rule by [@​leaysgur](https://togithub.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/3029](https://togithub.com/oxc-project/oxc/pull/3029) - feat(linter/jsdoc): Implement no-defaults rule by [@​leaysgur](https://togithub.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/3098](https://togithub.com/oxc-project/oxc/pull/3098) - feat(linter/jsdoc): Implement require-yields rule by [@​leaysgur](https://togithub.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/3150](https://togithub.com/oxc-project/oxc/pull/3150) - feat(linter/jsdoc): Support settings.ignore(Private|Internal) by [@​leaysgur](https://togithub.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/3147](https://togithub.com/oxc-project/oxc/pull/3147) #### New Contributors - [@​vsn4ik](https://togithub.com/vsn4ik) made their first contribution in [https://github.com/oxc-project/oxc/pull/3118](https://togithub.com/oxc-project/oxc/pull/3118) **Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.3.1...oxlint_v0.3.2
--- ### 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 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). --- package.json | 4 +- .../server/src/core/workspaces/permission.ts | 2 +- yarn.lock | 74 +++++++++---------- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index daedce6323..ddf827882d 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "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 --import-plugin --deny-warnings -D correctness -D nursery -D prefer-array-some -D no-useless-promise-resolve-reject -D perf -A no-undef -A consistent-type-exports -A default -A named -A ban-ts-comment -A export -A no-unresolved -A no-default-export -A no-duplicates -A no-side-effects-in-initialization -A no-named-as-default -A getter-return", + "lint:ox": "oxlint -c oxlint.json --import-plugin --deny-warnings -D correctness -D nursery -D prefer-array-some -D no-useless-promise-resolve-reject -D perf -A no-undef -A consistent-type-exports -A default -A named -A ban-ts-comment -A export -A no-unresolved -A no-default-export -A no-duplicates -A no-side-effects-in-initialization -A no-named-as-default -A getter-return -A no-barrel-file -A no-await-in-loop", "lint": "yarn lint:eslint && yarn lint:prettier", "lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix", "test": "vitest --run", @@ -95,7 +95,7 @@ "nanoid": "^5.0.7", "nx": "^19.0.0", "nyc": "^15.1.0", - "oxlint": "0.3.1", + "oxlint": "0.3.2", "prettier": "^3.2.5", "semver": "^7.6.0", "serve": "^14.2.1", diff --git a/packages/backend/server/src/core/workspaces/permission.ts b/packages/backend/server/src/core/workspaces/permission.ts index e89ed8f608..47d30b2451 100644 --- a/packages/backend/server/src/core/workspaces/permission.ts +++ b/packages/backend/server/src/core/workspaces/permission.ts @@ -93,7 +93,7 @@ export class PermissionService { // if workspace is public or have any public page, then allow to access const [isPublicWorkspace, publicPages] = await Promise.all([ this.tryCheckWorkspace(ws, user, Permission.Read), - await this.prisma.workspacePage.count({ + this.prisma.workspacePage.count({ where: { workspaceId: ws, public: true, diff --git a/yarn.lock b/yarn.lock index 1a20e6f1d2..00e22fc11e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -610,7 +610,7 @@ __metadata: nanoid: "npm:^5.0.7" nx: "npm:^19.0.0" nyc: "npm:^15.1.0" - oxlint: "npm:0.3.1" + oxlint: "npm:0.3.2" prettier: "npm:^3.2.5" semver: "npm:^7.6.0" serve: "npm:^14.2.1" @@ -9851,58 +9851,58 @@ __metadata: languageName: node linkType: hard -"@oxlint/darwin-arm64@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/darwin-arm64@npm:0.3.1" +"@oxlint/darwin-arm64@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/darwin-arm64@npm:0.3.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/darwin-x64@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/darwin-x64@npm:0.3.1" +"@oxlint/darwin-x64@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/darwin-x64@npm:0.3.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/linux-arm64-gnu@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/linux-arm64-gnu@npm:0.3.1" +"@oxlint/linux-arm64-gnu@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/linux-arm64-gnu@npm:0.3.2" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-arm64-musl@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/linux-arm64-musl@npm:0.3.1" +"@oxlint/linux-arm64-musl@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/linux-arm64-musl@npm:0.3.2" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@oxlint/linux-x64-gnu@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/linux-x64-gnu@npm:0.3.1" +"@oxlint/linux-x64-gnu@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/linux-x64-gnu@npm:0.3.2" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-x64-musl@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/linux-x64-musl@npm:0.3.1" +"@oxlint/linux-x64-musl@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/linux-x64-musl@npm:0.3.2" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@oxlint/win32-arm64@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/win32-arm64@npm:0.3.1" +"@oxlint/win32-arm64@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/win32-arm64@npm:0.3.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/win32-x64@npm:0.3.1": - version: 0.3.1 - resolution: "@oxlint/win32-x64@npm:0.3.1" +"@oxlint/win32-x64@npm:0.3.2": + version: 0.3.2 + resolution: "@oxlint/win32-x64@npm:0.3.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -29785,18 +29785,18 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:0.3.1": - version: 0.3.1 - resolution: "oxlint@npm:0.3.1" +"oxlint@npm:0.3.2": + version: 0.3.2 + resolution: "oxlint@npm:0.3.2" dependencies: - "@oxlint/darwin-arm64": "npm:0.3.1" - "@oxlint/darwin-x64": "npm:0.3.1" - "@oxlint/linux-arm64-gnu": "npm:0.3.1" - "@oxlint/linux-arm64-musl": "npm:0.3.1" - "@oxlint/linux-x64-gnu": "npm:0.3.1" - "@oxlint/linux-x64-musl": "npm:0.3.1" - "@oxlint/win32-arm64": "npm:0.3.1" - "@oxlint/win32-x64": "npm:0.3.1" + "@oxlint/darwin-arm64": "npm:0.3.2" + "@oxlint/darwin-x64": "npm:0.3.2" + "@oxlint/linux-arm64-gnu": "npm:0.3.2" + "@oxlint/linux-arm64-musl": "npm:0.3.2" + "@oxlint/linux-x64-gnu": "npm:0.3.2" + "@oxlint/linux-x64-musl": "npm:0.3.2" + "@oxlint/win32-arm64": "npm:0.3.2" + "@oxlint/win32-x64": "npm:0.3.2" dependenciesMeta: "@oxlint/darwin-arm64": optional: true @@ -29816,7 +29816,7 @@ __metadata: optional: true bin: oxlint: bin/oxlint - checksum: 10/fbe6f45d1ea56afa70c689e36c593796d3eefbcb901383eafad17994c89e7cfdf49cda390a52dc2918786bf90e0e597d17e7b25191eda2b5c337d4568ed6fb54 + checksum: 10/e31116e2c3931eff589cf38b5421f266a475f514639350b45bc75c901229ab483863ad43e3c6479f8bbfe3df50df9ebc019f22df864650e855f7218b3bd874f6 languageName: node linkType: hard