chore(deps-dev): bump happy-dom from 18.0.1 to 20.0.0 #661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps happy-dom from 18.0.1 to 20.0.0.
Release notes
Sourced from happy-dom's releases.
... (truncated)
Commits
819d15bBREAKING CHANGE: #0 Changes JavaScript evaluation to be disabled by default...c80a08ffix: #1620 Fixes issue related to CSS pseudo selector :scope (#1911)220df23fix: #1908 Fixes issue with sending in URLs as string in server-renderer co...9849f8bchore: #1906 Fixes failing unit test caused by package version (#1907)48d174echore: #1904 Updates conventional commit package (#1905)275efe5BREAKING CHANGE: #1620 Release v18.0.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
Important
Bumps
happy-domfrom 18.0.1 to 20.0.0, introducing breaking changes like disabling JavaScript evaluation by default and removing CommonJS support.happy-domfrom 18.0.1 to 20.0.0 inpackage.json.@happy-dom/server-rendererpackage for SSG/SSR.import.metain ESM compiler.:scopeissue.@happy-dom/server-rendererconfig.This description was created by
for db4ebbd. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Updated On: 2025-10-11 00:18:22 UTC
Summary
Updated
happy-domfrom version 18.0.1 to 20.0.0, a dev dependency used as the test environment for Vitest.Key Changes:
enableJavaScriptEvaluation: trueif needed.@types/node(18.19.124→130, 20.19.11→20, 24.3.0→24.7.1),undici-types(7.10.0→7.14.0)Impact Assessment:
eval()usage found intests/e2e/langchain.e3e.test.ts:469runs in Node.js context (not happy-dom VM), so it's unaffected by the breaking changevitest.config.ts, no custom configuration neededConfidence Score: 5/5
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant Dev as Developer participant Dep as Dependabot participant PKG as package.json participant Lock as pnpm-lock.yaml participant Vitest as Vitest Tests participant HD as happy-dom 20.0.0 Dep->>PKG: Update happy-dom: 18.0.1 → 20.0.0 Dep->>Lock: Update dependency tree Lock->>Lock: Update @types/node versions Lock->>Lock: Update undici-types versions Note over Vitest,HD: Breaking Change: JS eval disabled by default Vitest->>HD: Initialize test environment HD-->>Vitest: Environment ready (no eval by default) Vitest->>Vitest: Run test suites alt Tests use eval() in Node.js context Note over Vitest: Tests run in Node.js, not happy-dom VM Vitest->>Vitest: eval() works normally else Tests need happy-dom eval HD-->>Vitest: Would need enableJavaScriptEvaluation: true end