Skip to content

chore(deps-dev): bump happy-dom from 20.14.6 to 21.0.4 in /tests/git_sync - #4220

Merged
vybe merged 1 commit into
devfrom
dependabot/npm_and_yarn/tests/git_sync/dev/happy-dom-21.0.4
Nov 4, 2026
Merged

vybe merged 1 commit into
devfrom
dependabot/npm_and_yarn/tests/git_sync/dev/happy-dom-21.0.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 3, 2026

Copy link
Copy Markdown
Contributor

Bumps happy-dom from 20.14.6 to 21.0.4.

Release notes

Sourced from happy-dom's releases.

v21.0.4

👷‍♂️ Patch fixes

  • Fixed a code injection vulnerability in the ESM compiler - By @​capricorn86
  • Fixed cross-origin isolation so opaque-origin data: iframes cannot access their parent or top window - By @​capricorn86

v21.0.3

👷‍♂️ Patch fixes

  • Fixes security vulnerability where authorization header was forwarded when redirecting - By @​capricorn86

v21.0.2

👷‍♂️ Patch fixes

v21.0.1

👷‍♂️ Patch fixes

v21.0.0

💣 Breaking Changes

  • Disables CSS and IFrame loading by default to prevent server-side request forgery (SSRF) - By @​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 and enableIframePageLoading
    • 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 (e.g. new Window({ settings }));
Commits
  • fd16352 fix: Fixed a code injection vulnerability in the ESM compiler (#2537)
  • 75ab0fb fix: Fixed cross-origin isolation so opaque-origin data: iframes cannot acces...
  • 875ef5c fix: Fixes security vulnerability where authorization header was forwarded wh...
  • 1f3ffdf fix: Fixes SSRF security vulnerability by doing a target-origin bypass in the...
  • f55c7e0 chore: Update security documentation (#2509)
  • 2b91e68 fix: Adds alias for enabling CSS and iframe loading in server-renderer (#2503)
  • 0a99c75 BREAKING CHANGE: Disables CSS and IFrame loading by default (#2502)
  • See full diff in compare view

Dependabot compatibility score

Dependabot 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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.14.6 to 21.0.4.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](capricorn86/happy-dom@v20.14.6...v21.0.4)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 21.0.4
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency label Nov 3, 2026

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge-train: major happy-dom bump, dev-only, used only by the tests/git_sync harness. No workflow runs that suite, so CI is not evidence for this change. Ran it in Docker on node:24: 10 of 10 pass on happy-dom 20.14.6 and on 21.0.4.

@vybe
vybe merged commit 4c2dab7 into dev Nov 4, 2026
22 of 25 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/tests/git_sync/dev/happy-dom-21.0.4 branch November 4, 2026 04:41
vybe pushed a commit that referenced this pull request Nov 10, 2026
…ed root lockfile, WhatsApp/log/credential-panel fixes (Abilityai/trinity-enterprise#1117) (#4400)

* chore(deps): remove the unused repo-root package.json and package-lock.json (Abilityai/trinity-enterprise#1117) (#4316)

The root manifest dates from the initial commit and declares only
@modelcontextprotocol/sdk plus overrides. Nothing installs, copies or
resolves it: every npm call in CI runs in src/frontend, src/mcp-server or
src/helper-mcp; the frontend, mcp-server and base images build from their
own subfolder contexts; the backend and scheduler images use the repo root
as context but copy only named backend, scheduler, config and VERSION
paths; no script or doc runs npm at the root; and every bare import in
each Node package is present in that package's own lockfile.

Keeping it meant patching its lockfile for alerts on code that never runs.

(cherry picked from commit 9bae16e)

* fix(deps): bump vite in the git-sync test harness and black in the test requirements and backend image (Abilityai/trinity-enterprise#1117) (#4292)

* fix(deps): bump vite to 8.3.5 in the git-sync test harness lock (Abilityai/trinity-enterprise#1117)

vite 8.2.1 is inside GHSA-587h-7wmj-h5pm (>= 8.2.0, <= 8.2.3, High).
Lock-only change, regenerated with npm 11.20.0
(npm update vite --before=2026-11-04 --package-lock-only --ignore-scripts);
package.json is unchanged. vite 8.3.5 matches src/frontend. The only other
movement is vite's own rolldown 1.2.4 -> 1.2.16 and @oxc-project/types.
The harness's vitest suite passes 10/10 before and after; npm audit High 1 -> 0.

* fix(deps): bump black to 26.10.1 in the test requirements and the backend image (Abilityai/trinity-enterprise#1117)

black 26.5.1 is inside GHSA-cg8m-r9f2-5wm2 (< 26.10.1, High). black is not
a tool this repo runs: it is a declared runtime requirement of payments-py
1.18.0, and both files pin that runtime set exactly so the image and CI
exercise the same SDK stack. The pin moves in both files together, because
tests/unit/test_ent679_payments_pin_parity.py compares the Dockerfile pin
with the installed version and fails when only one file moves (checked in
both directions).

A fresh Python 3.13 venv resolves the full tests/requirements-test.txt
with exit 0 before and after, 174 packages each, and black is the only
version that changes; the same holds for the Dockerfile's pip install set
(171 packages). test_ent679_payments_pin_parity.py: 20 passed.

(cherry picked from commit adac3a5)

* fix(backend): linear WhatsApp markdown conversion, secret-free boot and fork logs, anchored consent check (Abilityai/trinity-enterprise#1117) (#4296)

* fix(whatsapp): markdown conversion runs in linear time (Abilityai/trinity-enterprise#1117)

The header and link rules in _markdown_to_whatsapp were quadratic in the
reply length: 8-11 s of CPU for one 64 KB agent reply, spent synchronously
on the event loop. The header title now starts and ends on a non-space so
the trailing \s* never competes with it; link text may not contain a
bracket, and the URL may contain anything but ')' except the '](' that
starts the next link, so IPv6 hosts and ?filter[]= queries still convert.
Regex input is clamped to the largest response the platform accepts
(4,000,000 chars, the result-callback cap); any excess passes through
unconverted.

Tests pin 4/16/64 KB growth on CodeQL's pump strings, bracket URLs, the
clamp, equivalence with the previous rules on realistic replies, and the
three intentional differences.

* fix(logs): boot warning and fork log carry no secret-derived detail (Abilityai/trinity-enterprise#1117)

A weak ADMIN_PASSWORD made the boot log list each failed rule, which gave
away the password's length, its missing character classes and whether it
is on the public common-password list. The warning now prints the fixed
rules line, identical for every password.

The fork-to-own clone-failure log scrubbed git output a second time;
_run_git already returns it scrubbed, so the line logs that output
directly. Output is identical (scrubbing is idempotent for tokens without
'*'), verified through a real _run_git against a git that prints the token.

* fix(sanitizer): anchor the consent client_id check and pin the key scan as linear (Abilityai/trinity-enterprise#1117)

The Google-consent client_id check is a re.fullmatch; a leading '^' is a
no-op there and lets static ReDoS analysis, which treats every pattern as
unanchored, see the anchor. Applied to the backend and agent-server copies
as a one-character change, so no other line in either file moves.

New growth-ratio tests time the key=value scan and the client_id check at
three sizes on the pump strings static analysis reports, in both copies,
and check that the same harness flags known-quadratic counterfactuals.

* test(whatsapp): declare the header-title difference and check that the declared differences are the only ones (Abilityai/trinity-enterprise#1117)

The linear header rule requires the title to start on a non-space, so a
header whose title starts with whitespace that the `[ \t]+` after the marks
does not take (`\r`, `\f`, `\v`, NBSP, U+3000, ...) is now left as it is
instead of becoming a bold line. That is a fourth intentional difference
from the previous rules; it is now pinned next to the other three.

A new test compares the conversion, on 20,000 seeded random strings over
markdown punctuation and every non-newline whitespace character, with an
independent statement of the previous rules plus the four declared
differences, and a second test checks the corpus reaches each difference on
its own. The header rule itself is unchanged: it stays the form already
confirmed linear.

* docs(whatsapp): state the reply caps the conversion clamp is sized against (Abilityai/trinity-enterprise#1117)

The comment on `_MARKDOWN_CONVERSION_MAX_CHARS` said agent replies reach
the conversion uncapped and that the clamp equals the largest response any
path accepts. Neither is exact: the sync task path cuts a reply at 10,000
chars, proactive text is capped at 4,096, the async result callback at
4,000,000, and the pull result route sets no length cap. The clamp is sized
to the callback cap, and on the pull path it is the only bound on the regex
work. Comment and test wording now say that; the value is unchanged.

* test(boot): tie the weak-password rules line to the validator's length bounds (Abilityai/trinity-enterprise#1117)

The boot warning's rules line is a literal so it can carry nothing derived
from ADMIN_PASSWORD, which means its "12-128 characters" could drift from
password_validation.MIN_LENGTH/MAX_LENGTH unnoticed. A test now reads both
constants and requires the boot output to state exactly that range.

* test(whatsapp): the completeness check names the expected output when it fails (Abilityai/trinity-enterprise#1117)

* docs(whatsapp): a channel reply has no length cap on push or pull, so the clamp is the only bound (Abilityai/trinity-enterprise#1117)

The previous wording named a 10,000-char sync task cap and implied the
push path was bounded. That cap is AgentClient's task parser, which no
WhatsApp path uses. A channel turn runs through execute_task, whose
inline /api/task response is not length-checked, and the 4,000,000-char
result-callback cap applies only to schedule and webhook triggers. On the
pull path the result route sets no cap either. The comment and test
wording now say that the clamp is the only bound; its value is unchanged.

* test(whatsapp): pin that a header takes one to six marks (Abilityai/trinity-enterprise#1117)

The random corpus never produced six or more `#` followed by a space, so
widening or narrowing `#{1,6}` passed every test. Two explicit rows and
two corpus tokens now cover six marks (a header) and seven (not one).

* merge-train: the WhatsApp feature flow states the linear conversion rules and its clamp (#4296)

Mechanical, per the merge-train note on the PR. The outbound markdown section
did not mention the 4,000,000-character clamp or the four inputs that now
convert differently.

Part of Abilityai/trinity-enterprise#1117.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: trinity-ability <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 65d0b3e)

* fix(credentials): escape backslashes when the Credentials panel writes .env (Abilityai/trinity-enterprise#1117) (#4297)

* refactor(credentials): move the .env value encoding into utils/envFile.js (Abilityai/trinity-enterprise#1117)

The Credentials panel's .env writer and reader move, unchanged, into one
module beside each other, so the encoding can be tested on its own and
against the agent's encoder. No behaviour change.

* fix(credentials): escape backslashes when the Credentials panel writes .env (Abilityai/trinity-enterprise#1117)

The panel rewrites an agent's whole .env on every save. Its writer escaped
`"` but not `\`, while its own reader and the agent's unquote_env_value
(#2023) both turn `\\` back into `\`. So a credential containing two
backslashes lost one the next time any credential in the file was saved,
and the agent then authenticated with a value nobody supplied.

The writer now escapes backslash before quote, which is the agent's own
encoding. The comment that argued against widening the escaping was
written before #2023 gave the agent a reader that unescapes, and is
rewritten to say what is true now.

One value -> line table (tests/fixtures/ent1117-env-escape-cases.json,
generated from the agent's format_env_line) is checked by a vitest spec
against the browser encoder, decoder and a mounted Quick Inject save, and
by a pytest against the agent's encoder, decoder and file parser and the
backend's agent_env_patch writer.

* chore(frontend): delete the unused useAgentCredentials composable (Abilityai/trinity-enterprise#1117)

Nothing imports it: the Credentials panel carries its own implementation,
and the composable's only reference was its re-export from
composables/index.js. It still held the old .env writer that escapes `"`
but not `\`, so it is removed rather than fixed.

* chore(frontend): delete the uncalled formatGithubRepo from ReplayTimeline (Abilityai/trinity-enterprise#1117)

The function has no caller in the component's script or template, or
anywhere else in the tree.

* fix(agent): mcp_template reads .env values with the agent's own decoder (Abilityai/trinity-enterprise#1117)

agent_server/mcp_template.py renders .mcp.json.template from .env at every
container start. Its reader reversed only \" and left \\ doubled, while every
writer of the file (the agent's format_env_line, the backend's agent_env_patch
and now the Credentials panel) escapes the backslash. A panel-saved C:\path
was therefore rendered into .mcp.json as C:\\path.

The reader now decodes exactly like execution_env.unquote_env_value: one
matched quote pair stripped, \" and \\ reversed in a single scan inside double
quotes, single-quoted values literal. The decoder is mirrored rather than
imported because importing the services package loads the runtime modules on
this standalone boot path.

The table test now holds mcp_template to the agent's reader per row, over a
whole panel-written file, over every right-hand side up to six characters, and
through render() end to end. A second fixture of lines the new writer never
produced (the old panel writer's output, single-quoted, unquoted and lone-quote
lines) pins every agent-side reader to what execution_env returns for them.
(Abilityai/trinity-enterprise#1117)

* test(credentials): the panel keeps reading existing .env lines as before (Abilityai/trinity-enterprise#1117)

The panel's reader also meets lines its new writer never produced: what it
wrote before backslashes were escaped, hand edits and Quick Inject pastes.
The spec now checks unquoteEnvValue against tests/fixtures/ent1117-env-legacy-reads.json,
whose panel column was produced by running the previous reader, asserts the
panel and the agent differ only on a lone single quote, and mounts the panel
to show a Quick Inject carries each such line over as the value it read.

Both fixtures join the frontend-build path filter, so a change to either runs
the browser spec as well as the pytest twin.

* docs(credentials): describe the current .env encoding and its readers (Abilityai/trinity-enterprise#1117)

credential-injection.md still said the deleted useAgentCredentials composable
exists, that only " is escaped, and that widening the escaping would make the
agent-side mismatch worse; none of that has been true since #2023. It now
names the shared encoding, every reader of the file, the two fixtures that
hold them together, and the three single-key readers that only strip quotes.

CLAUDE.md said .mcp.json.template rendering is "not yet live"; startup.sh has
run it at every agent start since #2013.

* test(credentials): the ent127 round trip runs utils/envFile.js and covers backslashes (Abilityai/trinity-enterprise#1117)

test_ent127_frontend_contract.py extracts parseEnvText and formatEnvContent
from CredentialsPanel.vue and runs them under node. Since the encoding moved
into utils/envFile.js those functions call the imported formatEnvLine and
unquoteEnvValue, so every round trip died with "ReferenceError: formatEnvLine
is not defined" (17 of 37 failed).

The script now defines both functions from utils/envFile.js itself, anchored
on the panel's import and the file's two exports, so it runs the code the
panel ships. VALUES gains a\\b, C:\path\new, a trailing backslash and a
backslash before a quote; with the quote-only encoder a\\b fails both round
trips.

* test(agent): hold mcp_template's .env decoder to the agent's with blanks around = (Abilityai/trinity-enterprise#1117)

The exhaustive comparison now writes every value twice, once as K=v and once
as K = v, so dropping the strip before decoding fails it.

The docstring gave the wrong reason for copying the decoder. Under
python3 -m agent_server.mcp_template the package import has already loaded
execution_env. The real constraint is the flat, by-path load the module
supports: there the name "services" is ambiguous, and in a test process it
resolves to the backend package, which has no execution_env.

* docs(credentials): state both legacy fixture columns and the one mcp_template upgrade change (Abilityai/trinity-enterprise#1117)

* merge-train: guided-credential-setup no longer calls the .env escaping mismatch open (#4297)

Mechanical, per the merge-train note on the PR. Section 6 still said the
agent's reader does not unescape and listed the mismatch as follow-up 5; this
PR closes both, so the paragraph now points at the shared rules in
credential-injection.md.

Part of Abilityai/trinity-enterprise#1117.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: trinity-ability <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e0e0306)

* chore(deps-dev): bump the patch-and-minor group across 1 directory with 2 updates (#3856)

Bumps the patch-and-minor group with 2 updates in the /tests/git_sync directory: [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and [vue](https://github.com/vuejs/core).

Updates `vitest` from 5.0.3 to 5.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest)

Updates `vue` from 3.5.43 to 3.5.44
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](vuejs/core@v3.5.43...v3.5.44)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 5.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: vue
  dependency-version: 3.5.44
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 990e190)

* chore(deps-dev): bump happy-dom in /tests/git_sync (#4220)

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.14.6 to 21.0.4.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](capricorn86/happy-dom@v20.14.6...v21.0.4)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 21.0.4
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 4c2dab7)

* test: the .env escape table on main has no backend agent_env_patch writer to check (Abilityai/trinity-enterprise#1117)

test_ent1117_s11_env_escape_table.py comes from dev, where it also holds
services/agent_env_patch.py to the shared table. That module arrived on
dev with later feature work and does not exist on main, so its fixture,
its one table test and its one legacy-read assertion are removed here.
Every agent-side and mcp_template check is unchanged.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: trinity-ability <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant