mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-11-30 01:00:27 +03:00
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`5.2.3` → `5.4.1`](https://renovatebot.com/diffs/npm/js-yaml/5.2.3/5.4.1) |  |  | | [js-yaml](https://redirect.github.com/nodeca/js-yaml) | [`^3.15.1` → `^5.0.0`](https://renovatebot.com/diffs/npm/js-yaml/3.15.2/5.4.1) |  |  | --- ### js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources [GHSA-r3ph-w7gj-g6xm](https://redirect.github.com/advisories/GHSA-r3ph-w7gj-g6xm) <details> <summary>More information</summary> #### Details ##### Summary `maxTotalMergeKeys` does not count empty mappings. An attacker can repeatedly merge a large sequence of them and consume significant CPU without reaching the configured limit. ##### Example ```yaml arr: &arr [{}, {}, {}, ...] # N empty mappings targets: - <<: *arr # repeated K times ``` For every target, the loader iterates all `N` elements of `arr`. This results in `O(N * K)` work while `totalMergeKeys` remains unchanged. ##### PoC ```js import { performance } from 'node:perf_hooks' import { load, YAML11_SCHEMA } from 'js-yaml' const n = 20000 const src = 'arr: &arr [' + '{},'.repeat(n).slice(0, -1) + ']\n' + 'targets:\n' + ' - <<: *arr\n'.repeat(n) const started = performance.now() load(src, { schema: YAML11_SCHEMA }) console.log(`${(performance.now() - started).toFixed(1)} ms`) ``` Observed results: | N | YAML size | Time | |---:|---:|---:| | 800 | ~13 KB | ~20 ms | | 3200 | ~50 KB | ~180 ms | | 20000 | ~500 KB | ~13 s | ##### Impact When merge keys are enabled, an attacker can submit a relatively small YAML document that causes prolonged CPU consumption despite the default `maxTotalMergeKeys` limit. ##### Fix Count every merge source mapping as one budget unit in addition to counting its keys. #### Severity - CVSS Score: 5.3 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L` #### References - [https://github.com/nodeca/js-yaml/security/advisories/GHSA-r3ph-w7gj-g6xm](https://redirect.github.com/nodeca/js-yaml/security/advisories/GHSA-r3ph-w7gj-g6xm) - [https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480](https://redirect.github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480) - [https://github.com/nodeca/js-yaml/releases/tag/5.4.1](https://redirect.github.com/nodeca/js-yaml/releases/tag/5.4.1) - [https://github.com/advisories/GHSA-r3ph-w7gj-g6xm](https://redirect.github.com/advisories/GHSA-r3ph-w7gj-g6xm) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-r3ph-w7gj-g6xm) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>nodeca/js-yaml (js-yaml)</summary> ### [`v5.4.1`](https://redirect.github.com/nodeca/js-yaml/compare/5.4.0...5.4.1) [Compare Source](https://redirect.github.com/nodeca/js-yaml/compare/5.4.0...5.4.1) ### [`v5.4.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#540---2026-08-25) [Compare Source](https://redirect.github.com/nodeca/js-yaml/compare/5.3.0...5.4.0) ##### Added - Added the `scalarStyleRules` dumper option to customize string formatting. See [Scalar styling](docs/scalar_styling.md) for details. ##### Changed - \[breaking] Flattened the low-level AST node style representation. Scalar and collection nodes now use `SCALAR_STYLE` and `COLLECTION_STYLE` values; explicit tags use the separate `tagged` property. Alias nodes now contain only `kind` and `anchor`. This only affects code that directly constructs or edits AST nodes. - \[breaking] The `sortKeys` option was rewritten using AST mutation to avoid side effects. - Reworked scalar style selection. This can change formatting without changing loaded values; in particular, whitespace-only strings are now double-quoted. ##### Fixed - Accept a byte order mark at the start of each document in a stream, [#​791](https://redirect.github.com/nodeca/js-yaml/issues/791). - Produce valid flow mappings with `quoteFlowKeys` and `flowSkipColonSpace`, including alias and property-only keys, [#​786](https://redirect.github.com/nodeca/js-yaml/issues/786). - Preserve empty scalar items when converting block sequences to flow style. - Do not apply the 1024-character simple-key limit to flow mapping keys. - Count Unicode code points, rather than UTF-16 code units, for the 1024-character simple-key limit. - Add an explicit document-end marker after keep-chomped block scalars when needed to preserve trailing newlines. ### [`v5.3.0`](https://redirect.github.com/nodeca/js-yaml/blob/HEAD/CHANGELOG.md#530---2026-08-14) [Compare Source](https://redirect.github.com/nodeca/js-yaml/compare/5.2.3...5.3.0) This release focuses on reworking the documentation and making small architectural improvements before moving forward. ##### Added - Added completely new documentation. - Exported `DUMP_SCHEMA`, the default schema used by the dumper. - Added `YAMLException.throwAt()` for throwing an error at a source position. ##### Changed - Changed flat constant exports to grouped exports: `EVENT_ID`, `SCALAR_STYLE`, `COLLECTION_STYLE`, and `CHOMPING_MODE`, along with their value types. The old exports are still preserved, but deprecated. - Made `identify` mandatory for custom tag definitions. Use `identify: () => false` for load-only tags. ##### Deprecated - Deprecated flat constant exports. Use grouped ones instead. ##### Removed - Removed the `MERGE_KEY` export (not used anymore after last fixes). ##### Fixed - Validate `<<` sequence items at merge time, so aliased merge sources are checked too. - Resolve `<<` outside of a mapping key as the plain string `'<<'`, matching v4, instead of leaking an internal symbol into the result. </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
229 lines
8.5 KiB
JSON
229 lines
8.5 KiB
JSON
{
|
|
"name": "@affine/monorepo",
|
|
"version": "0.27.5",
|
|
"private": true,
|
|
"author": "toeverything",
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
".",
|
|
"blocksuite/**/*",
|
|
"packages/*/*",
|
|
"packages/frontend/apps/*",
|
|
"tools/*",
|
|
"docs/reference",
|
|
"tools/@types/*",
|
|
"tests/*"
|
|
],
|
|
"engines": {
|
|
"node": ">=22.12.0 <23.0.0"
|
|
},
|
|
"scripts": {
|
|
"affine": "r affine.ts",
|
|
"af": "r affine.ts",
|
|
"dev": "yarn affine dev",
|
|
"build": "yarn affine build",
|
|
"lint:format": "oxfmt --check .",
|
|
"lint:format:fix": "oxfmt --write .",
|
|
"lint:ox": "oxlint --deny-warnings",
|
|
"lint:ox:fix": "yarn lint:ox --fix",
|
|
"lint": "yarn lint:ox && yarn lint:format",
|
|
"lint:fix": "yarn lint:ox:fix && yarn lint:format:fix",
|
|
"test": "vitest --run",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest run --coverage",
|
|
"typecheck": "tsc -b tsconfig.json --verbose",
|
|
"postinstall": "yarn affine init && yarn husky"
|
|
},
|
|
"lint-staged": {
|
|
"*": "oxfmt --write --no-error-on-unmatched-pattern",
|
|
"*.{ts,tsx,mjs,js,jsx}": [
|
|
"oxlint --fix --no-error-on-unmatched-pattern"
|
|
],
|
|
"*.toml": [
|
|
"taplo format"
|
|
],
|
|
"*.rs": [
|
|
"cargo fmt --"
|
|
]
|
|
},
|
|
"dependenciesMeta": {
|
|
"@apollo/protobufjs": {
|
|
"built": false
|
|
},
|
|
"@prisma/client": {
|
|
"built": true
|
|
},
|
|
"@prisma/engines": {
|
|
"built": true
|
|
},
|
|
"@scarf/scarf": {
|
|
"built": false
|
|
},
|
|
"@sentry/cli": {
|
|
"built": true
|
|
},
|
|
"@swc/core": {
|
|
"built": false
|
|
},
|
|
"core-js": {
|
|
"built": false
|
|
},
|
|
"electron": {
|
|
"built": true
|
|
},
|
|
"electron-winstaller": {
|
|
"built": true
|
|
},
|
|
"esbuild": {
|
|
"built": true
|
|
},
|
|
"msgpackr-extract": {
|
|
"built": false
|
|
},
|
|
"msw": {
|
|
"built": false
|
|
},
|
|
"prisma": {
|
|
"built": false
|
|
},
|
|
"protobufjs": {
|
|
"built": false
|
|
},
|
|
"unrs-resolver": {
|
|
"built": false
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@affine-tools/cli": "workspace:*",
|
|
"@capacitor/cli": "^8.4.2",
|
|
"@faker-js/faker": "^10.5.0",
|
|
"@istanbuljs/schema": "^0.1.3",
|
|
"@playwright/test": "=1.58.2",
|
|
"@taplo/cli": "^0.7.0",
|
|
"@toeverything/infra": "workspace:*",
|
|
"@types/node": "^22.0.0",
|
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
"@vanilla-extract/vite-plugin": "~5.1.5",
|
|
"@vitest/browser": "^4.1.11",
|
|
"@vitest/coverage-istanbul": "^4.1.11",
|
|
"@vitest/ui": "^4.1.11",
|
|
"electron": "^39.0.0",
|
|
"eslint": "9.39.2",
|
|
"eslint-plugin-import-x": "^4.16.1",
|
|
"eslint-plugin-lit": "^2.2.1",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
"happy-dom": "^20.0.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.0.0",
|
|
"msw": "^2.13.2",
|
|
"oxfmt": "0.63.0",
|
|
"oxlint": "1.78.0",
|
|
"oxlint-tsgolint": "7.0.2001",
|
|
"semver": "^7.7.3",
|
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
"unplugin-swc": "^1.5.9",
|
|
"vite": "^7.3.6",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"packageManager": "yarn@4.18.0",
|
|
"resolutions": {
|
|
"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@^1",
|
|
"array-includes": "npm:@nolyfill/array-includes@^1",
|
|
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@^1",
|
|
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@^1",
|
|
"array.prototype.tosorted": "npm:@nolyfill/array.prototype.tosorted@^1",
|
|
"arraybuffer.prototype.slice": "npm:@nolyfill/arraybuffer.prototype.slice@^1",
|
|
"asynciterator.prototype": "npm:@nolyfill/asynciterator.prototype@^1",
|
|
"available-typed-arrays": "npm:@nolyfill/available-typed-arrays@^1",
|
|
"deep-equal": "npm:@nolyfill/deep-equal@^1",
|
|
"define-properties": "npm:@nolyfill/define-properties@^1",
|
|
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
|
|
"es-set-tostringtag": "npm:@nolyfill/es-set-tostringtag@^1",
|
|
"function-bind": "npm:@nolyfill/function-bind@^1",
|
|
"function.prototype.name": "npm:@nolyfill/function.prototype.name@^1",
|
|
"get-symbol-description": "npm:@nolyfill/get-symbol-description@^1",
|
|
"globalthis": "npm:@nolyfill/globalthis@^1",
|
|
"gopd": "npm:@nolyfill/gopd@^1",
|
|
"has": "npm:@nolyfill/has@^1",
|
|
"has-property-descriptors": "npm:@nolyfill/has-property-descriptors@^1",
|
|
"has-proto": "npm:@nolyfill/has-proto@^1",
|
|
"has-symbols": "npm:@nolyfill/has-symbols@^1",
|
|
"has-tostringtag": "npm:@nolyfill/has-tostringtag@^1",
|
|
"is-arguments": "npm:@nolyfill/is-arguments@^1",
|
|
"is-array-buffer": "npm:@nolyfill/is-array-buffer@^1",
|
|
"is-date-object": "npm:@nolyfill/is-date-object@^1",
|
|
"is-generator-function": "npm:@nolyfill/is-generator-function@^1",
|
|
"is-regex": "npm:@nolyfill/is-regex@^1",
|
|
"is-shared-array-buffer": "npm:@nolyfill/is-shared-array-buffer@^1",
|
|
"is-string": "npm:@nolyfill/is-string@^1",
|
|
"is-symbol": "npm:@nolyfill/is-symbol@^1",
|
|
"is-weakref": "npm:@nolyfill/is-weakref@^1",
|
|
"iterator.prototype": "npm:@nolyfill/iterator.prototype@^1",
|
|
"json-stable-stringify": "npm:@nolyfill/json-stable-stringify@^1",
|
|
"jsonify": "npm:@nolyfill/jsonify@^1",
|
|
"object-is": "npm:@nolyfill/object-is@^1",
|
|
"object-keys": "npm:@nolyfill/object-keys@^1",
|
|
"object.assign": "npm:@nolyfill/object.assign@^1",
|
|
"object.entries": "npm:@nolyfill/object.entries@^1",
|
|
"object.fromentries": "npm:@nolyfill/object.fromentries@^1",
|
|
"object.hasown": "npm:@nolyfill/object.hasown@^1",
|
|
"object.values": "npm:@nolyfill/object.values@^1",
|
|
"on-headers": "npm:on-headers@^1.1.0",
|
|
"reflect.getprototypeof": "npm:@nolyfill/reflect.getprototypeof@^1",
|
|
"regexp.prototype.flags": "npm:@nolyfill/regexp.prototype.flags@^1",
|
|
"safe-array-concat": "npm:@nolyfill/safe-array-concat@^1",
|
|
"safe-regex-test": "npm:@nolyfill/safe-regex-test@^1",
|
|
"side-channel": "npm:@nolyfill/side-channel@^1",
|
|
"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@^1",
|
|
"string.prototype.trim": "npm:@nolyfill/string.prototype.trim@^1",
|
|
"string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@^1",
|
|
"string.prototype.trimstart": "npm:@nolyfill/string.prototype.trimstart@^1",
|
|
"typed-array-buffer": "npm:@nolyfill/typed-array-buffer@^1",
|
|
"typed-array-byte-length": "npm:@nolyfill/typed-array-byte-length@^1",
|
|
"typed-array-byte-offset": "npm:@nolyfill/typed-array-byte-offset@^1",
|
|
"typed-array-length": "npm:@nolyfill/typed-array-length@^1",
|
|
"unbox-primitive": "npm:@nolyfill/unbox-primitive@^1",
|
|
"which-boxed-primitive": "npm:@nolyfill/which-boxed-primitive@^1",
|
|
"which-typed-array": "npm:@nolyfill/which-typed-array@^1",
|
|
"array-flatten": "npm:@nolyfill/array-flatten@^1",
|
|
"array.prototype.findlast": "npm:@nolyfill/array.prototype.findlast@^1",
|
|
"hasown": "npm:@nolyfill/hasown@^1",
|
|
"internal-slot": "npm:@nolyfill/internal-slot@^1",
|
|
"is-core-module": "npm:@nolyfill/is-core-module@^1",
|
|
"is-typed-array": "npm:@nolyfill/is-typed-array@^1",
|
|
"isarray": "npm:@nolyfill/isarray@^1",
|
|
"safe-buffer": "npm:@nolyfill/safe-buffer@^1",
|
|
"safer-buffer": "npm:@nolyfill/safer-buffer@^1",
|
|
"set-function-length": "npm:@nolyfill/set-function-length@^1",
|
|
"string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@^1",
|
|
"typedarray": "npm:@nolyfill/typedarray@^1",
|
|
"macos-alias": "npm:@napi-rs/macos-alias@0.0.4",
|
|
"fs-xattr": "npm:@napi-rs/xattr@latest",
|
|
"@opentelemetry/core": "^2.10.0",
|
|
"ioredis": "^5.11.1",
|
|
"js-yaml@npm:^3.13.1": "^5.0.0",
|
|
"js-yaml@npm:^3.14.1": "^5.0.0",
|
|
"js-yaml@npm:^4.1.0": "^5.0.0",
|
|
"js-yaml@npm:4.1.1": "^5.0.0",
|
|
"js-yaml@npm:5.2.1": "^5.2.3",
|
|
"esbuild@npm:^0.21.3": "^0.25.0",
|
|
"multer": "^2.4.0",
|
|
"protobufjs": "^7.6.4",
|
|
"tar": "^7.5.21",
|
|
"tmp": "^0.2.7",
|
|
"vite@npm:^5.4.14": "^6.4.3",
|
|
"ws@npm:^8.18.0": "^8.21.0",
|
|
"ws@npm:^8.18.3": "^8.21.0",
|
|
"ws@npm:^8.19.0": "^8.21.0",
|
|
"ws@npm:8.20.1": "^8.21.0",
|
|
"ws@npm:~8.17.1": "^8.21.0",
|
|
"@magic-works/i18n-codegen": "patch:@magic-works/i18n-codegen@npm%3A0.6.1#~/.yarn/patches/@magic-works-i18n-codegen-virtual-25e53a17d6.patch",
|
|
"decode-named-character-reference@npm:^1.0.0": "patch:decode-named-character-reference@npm%3A1.0.2#~/.yarn/patches/decode-named-character-reference-npm-1.0.2-db17a755fd.patch",
|
|
"@atlaskit/pragmatic-drag-and-drop": "patch:@atlaskit/pragmatic-drag-and-drop@npm%3A1.4.0#~/.yarn/patches/@atlaskit-pragmatic-drag-and-drop-npm-1.4.0-75c45f52d3.patch",
|
|
"yjs": "patch:yjs@npm%3A13.6.21#~/.yarn/patches/yjs-npm-13.6.21-c9f1f3397c.patch"
|
|
}
|
|
}
|