Repository navigation
Bump the dependencies of #5983 and bundle sanitize-html for webpack 4 and Jest - #5987
Merged
Merged
Conversation
Bumps the npm_and_yarn group with 18 updates in the / directory: | Package | From | To | | --- | --- | --- | | [compression](https://github.com/expressjs/compression) | `1.8.1` | `1.8.2` | | [adm-zip](https://github.com/cthackers/adm-zip) | `0.5.17` | `0.6.1` | | [katex](https://github.com/KaTeX/KaTeX) | `0.17.0` | `0.19.1` | | [sanitize-html](https://github.com/apostrophecms/apostrophe/tree/HEAD/packages/sanitize-html) | `2.17.4` | `2.18.1` | | [brace-expansion](https://github.com/juliangruber/brace-expansion) | `1.1.15` | `1.1.21` | | [js-yaml](https://github.com/nodeca/js-yaml) | `3.14.2` | `3.15.2` | | [axios](https://github.com/axios/axios) | `1.16.1` | `1.21.0` | | [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) | `2.9.10` | `2.11.34` | | [browserslist](https://github.com/browserslist/browserslist) | `4.28.1` | `4.29.5` | | [fast-uri](https://github.com/fastify/fast-uri) | `3.1.2` | `3.1.9` | | [follow-redirects](https://github.com/follow-redirects/follow-redirects) | `1.16.0` | `1.16.2` | | [happy-dom](https://github.com/capricorn86/happy-dom) | `20.9.0` | `21.0.4` | | [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser) | `7.1.0` | `7.1.7` | | [proxy-addr](https://github.com/jshttp/proxy-addr) | `2.0.7` | `2.0.8` | | [qs](https://github.com/ljharb/qs) | `6.15.2` | `6.17.1` | | [shell-quote](https://github.com/ljharb/shell-quote) | `1.8.4` | `1.12.0` | | [source-map-js](https://github.com/7rulnik/source-map-js) | `1.2.1` | `1.2.2` | | [zod](https://github.com/colinhacks/zod) | `4.2.1` | `4.6.7` | Bumps the npm_and_yarn group with 2 updates in the /packages/bundle directory: [katex](https://github.com/KaTeX/KaTeX) and [sanitize-html](https://github.com/apostrophecms/apostrophe/tree/HEAD/packages/sanitize-html). Bumps the npm_and_yarn group with 1 update in the /packages/support/cldr-data-downloader directory: [adm-zip](https://github.com/cthackers/adm-zip). Bumps the npm_and_yarn group with 4 updates in the /samples directory: [brace-expansion](https://github.com/juliangruber/brace-expansion), [source-map-js](https://github.com/7rulnik/source-map-js), [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) and [@angular/core](https://github.com/angular/angular/tree/HEAD/packages/core). Bumps the npm_and_yarn group with 4 updates in the /samples/01.getting-started/k.direct-line-token/javascript/bot directory: [axios](https://github.com/axios/axios), [follow-redirects](https://github.com/follow-redirects/follow-redirects), [qs](https://github.com/ljharb/qs) and [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse). Bumps the npm_and_yarn group with 3 updates in the /samples/01.getting-started/k.direct-line-token/javascript/web directory: [follow-redirects](https://github.com/follow-redirects/follow-redirects), [qs](https://github.com/ljharb/qs) and [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse). Updates `compression` from 1.8.1 to 1.8.2 - [Release notes](https://github.com/expressjs/compression/releases) - [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md) - [Commits](expressjs/compression@v1.8.1...v1.8.2) Updates `adm-zip` from 0.5.17 to 0.6.1 - [Release notes](https://github.com/cthackers/adm-zip/releases) - [Changelog](https://github.com/cthackers/adm-zip/blob/master/history.md) - [Commits](cthackers/adm-zip@v0.5.17...v0.6.1) Updates `katex` from 0.17.0 to 0.19.1 - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md) - [Commits](KaTeX/KaTeX@v0.17.0...v0.19.1) Updates `sanitize-html` from 2.17.4 to 2.18.1 - [Changelog](https://github.com/apostrophecms/apostrophe/blob/main/packages/sanitize-html/CHANGELOG.md) - [Commits](https://github.com/apostrophecms/apostrophe/commits/sanitize-html@2.18.1/packages/sanitize-html) Updates `brace-expansion` from 1.1.15 to 1.1.21 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v1.1.15...v1.1.21) Updates `js-yaml` from 3.14.2 to 3.15.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/3.15.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.2...3.15.2) Updates `axios` from 1.16.1 to 1.21.0 - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.16.1...v1.21.0) Updates `baseline-browser-mapping` from 2.9.10 to 2.11.34 - [Release notes](https://github.com/web-platform-dx/baseline-browser-mapping/releases) - [Commits](web-platform-dx/baseline-browser-mapping@v2.9.10...v2.11.34) Updates `browserslist` from 4.28.1 to 4.29.5 - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](browserslist/browserslist@4.28.1...4.29.5) Updates `fast-uri` from 3.1.2 to 3.1.9 - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.2...v3.1.9) Updates `follow-redirects` from 1.16.0 to 1.16.2 - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.16.0...v1.16.2) Updates `happy-dom` from 20.9.0 to 21.0.4 - [Release notes](https://github.com/capricorn86/happy-dom/releases) - [Commits](capricorn86/happy-dom@v20.9.0...v21.0.4) Updates `postcss-selector-parser` from 7.1.0 to 7.1.7 - [Release notes](https://github.com/postcss/postcss-selector-parser/releases) - [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md) - [Commits](postcss/postcss-selector-parser@v7.1.0...7.1.7) Updates `proxy-addr` from 2.0.7 to 2.0.8 - [Release notes](https://github.com/jshttp/proxy-addr/releases) - [Changelog](https://github.com/jshttp/proxy-addr/blob/master/HISTORY.md) - [Commits](jshttp/proxy-addr@v2.0.7...v2.0.8) Updates `qs` from 6.15.2 to 6.17.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.15.2...v6.17.1) Updates `shell-quote` from 1.8.4 to 1.12.0 - [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md) - [Commits](ljharb/shell-quote@v1.8.4...v1.12.0) Updates `source-map-js` from 1.2.1 to 1.2.2 - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2) Updates `zod` from 4.2.1 to 4.6.7 - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](colinhacks/zod@v4.2.1...v4.6.7) Updates `katex` from 0.17.0 to 0.19.1 - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md) - [Commits](KaTeX/KaTeX@v0.17.0...v0.19.1) Updates `sanitize-html` from 2.17.4 to 2.18.1 - [Changelog](https://github.com/apostrophecms/apostrophe/blob/main/packages/sanitize-html/CHANGELOG.md) - [Commits](https://github.com/apostrophecms/apostrophe/commits/sanitize-html@2.18.1/packages/sanitize-html) Updates `adm-zip` from 0.5.17 to 0.6.1 - [Release notes](https://github.com/cthackers/adm-zip/releases) - [Changelog](https://github.com/cthackers/adm-zip/blob/master/history.md) - [Commits](cthackers/adm-zip@v0.5.17...v0.6.1) Updates `brace-expansion` from 1.1.15 to 1.1.21 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@v1.1.15...v1.1.21) Updates `source-map-js` from 1.2.1 to 1.2.2 - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2) Updates `@angular/common` from 21.2.15 to 22.2.4 - [Release notes](https://github.com/angular/angular/releases) - [Commits](https://github.com/angular/angular/commits/v22.2.4/packages/common) Updates `@angular/core` from 21.2.15 to 22.2.4 - [Release notes](https://github.com/angular/angular/releases) - [Commits](https://github.com/angular/angular/commits/v22.2.4/packages/core) Updates `axios` from 1.16.1 to 1.21.0 - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.16.1...v1.21.0) Updates `follow-redirects` from 1.16.0 to 1.16.2 - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.16.0...v1.16.2) Updates `qs` from 6.15.2 to 6.17.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.15.2...v6.17.1) Updates `csv-parse` from 6.1.0 to 7.0.3 - [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md) - [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@7.0.3/packages/csv-parse) Updates `follow-redirects` from 1.16.0 to 1.16.2 - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.16.0...v1.16.2) Updates `qs` from 6.15.2 to 6.17.1 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.15.2...v6.17.1) Updates `csv-parse` from 6.1.0 to 7.0.3 - [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md) - [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@7.0.3/packages/csv-parse) --- updated-dependencies: - dependency-name: compression dependency-version: 1.8.2 dependency-type: direct:development dependency-group: npm_and_yarn - dependency-name: adm-zip dependency-version: 0.6.1 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: katex dependency-version: 0.19.1 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: sanitize-html dependency-version: 2.18.1 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 3.15.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: axios dependency-version: 1.21.0 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: baseline-browser-mapping dependency-version: 2.11.34 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: browserslist dependency-version: 4.29.5 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: fast-uri dependency-version: 3.1.9 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: follow-redirects dependency-version: 1.16.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: happy-dom dependency-version: 21.0.4 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: postcss-selector-parser dependency-version: 7.1.7 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: proxy-addr dependency-version: 2.0.8 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.17.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: shell-quote dependency-version: 1.12.0 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: zod dependency-version: 4.6.7 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: katex dependency-version: 0.19.1 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: sanitize-html dependency-version: 2.18.1 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: adm-zip dependency-version: 0.6.1 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: "@angular/common" dependency-version: 22.2.4 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: "@angular/core" dependency-version: 22.2.4 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: axios dependency-version: 1.21.0 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: follow-redirects dependency-version: 1.16.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.17.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: csv-parse dependency-version: 7.0.3 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: follow-redirects dependency-version: 1.16.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.17.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: csv-parse dependency-version: 7.0.3 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
…consumers sanitize-html@2.17.6+ depends on htmlparser2@11+, which is ESM-only and ships class fields, ?. and ?? (also in domhandler, domutils, dom-serializer and entities): webpack 4 cannot parse them and Jest cannot require() them.
happy-dom@21 disables iframe page loading by default and fires "error" on every <iframe>, which rejects loadIFRAME() before the tests fire "load".
Eugene (OEvgeny)
marked this pull request as ready for review
October 30, 2026 23:14
Eugene (OEvgeny)
requested review from
William Wong (compulim),
Chris Whitten (cwhitten) and
Thomas Durnford (tdurnford)
as code owners
October 30, 2026 23:14
William Wong (compulim)
previously approved these changes
Oct 31, 2026
Eugene (OEvgeny)
dismissed
William Wong (compulim)’s stale review
via
October 31, 2026 00:41
d9ae8a1
William Wong (compulim)
approved these changes
Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changelog Entry
Changed
katex@0.19.1andsanitize-html@2.18.1, now bundled for webpack 4 and Jest, in PR #5987, by @OEvgenyDescription
sanitize-html@2.17.6and later depend onhtmlparser2@12, which is ESM-only and ships class fields,?.and??(withdomhandler,domutils,dom-serializerandentities): webpack 4 cannot parse them and Jest cannotrequire()them. This takes the 21 updates of #5983, bundlessanitize-htmlinto the npm package (its CommonJS build is lowered to ES2019 like the rest of it), and adapts the embed tests tohappy-dom@21.Design
sanitize-htmllikeshikianduuid(noExternal), so webpack 4 and Jest apps need no new setup; in exchange,overridesofsanitize-htmlno longer reach our npm build (as already forwebchat.js), so its security fixes ship in our releases; holding it at 2.17.5 would skip the fixes in 2.17.6–2.18.1, and adding 4 packages to the webpack 4 workarounds inHOSTING.mdwould break existing webpack 4 apps on upgrade.enableIframePageLoading, whichhappy-dom@21disabled by default, to keep the behavior ofhappy-dom@20.Specific Changes
Dependabot's commit from Bump the npm_and_yarn group across 6 directories with 21 updates #5983, unchanged
packages/bundle/tsup.config.ts:sanitize-htmlinnoExternalpackages/embed/src/setups/{aries,legacy,loadIFRAME,scorpio}.spec.js:enableIframePageLoadingforhappy-dom@21I have added tests and executed them locally
I have added
.changelog/<PR#>-<slug>.mdI have updated documentation
Review Checklist
z-index)package.jsonandpackage-lock.jsonreviewed