Update angular-html-parser to v10.8 (#19417)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-22 19:31:13 +08:00
1 parent 3313b12f46
commit 2be16eca12
8 files changed
+109 -7

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@
"acorn": "8.17.0",
"acorn-jsx": "5.3.2",
"angular-estree-parser": "15.5.0",
"angular-html-parser": "10.7.0",
"angular-html-parser": "10.8.0",
"camelcase": "9.0.0",
"ci-info": "4.4.0",
"cjk-regex": "3.4.0",
+1
View File
@@ -25,6 +25,7 @@ const DEFAULT_PARSE_OPTIONS = {
normalizeTagName: false,
normalizeAttributeName: false,
allowHtmComponentClosingTags: false,
allowInElementComments: false,
isTagNameCaseSensitive: false,
shouldParseFrontMatter: true,
};
+5 -1
View File
@@ -46,7 +46,11 @@ const categoryParsers = new Map([
],
[
"html",
{ parsers: ["html"], verifyParsers: [], extensions: [".html", ".svg"] },
{
parsers: ["html"],
verifyParsers: ["vue", "mjml", "lwc", "angular"],
extensions: [".html", ".svg"],
},
],
[
"mjml",
@@ -0,0 +1,86 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`block-comment.html format[angular] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div /* block comment */></div>
| ^^^^^^
2 |
Cause: Opening tag "div" not terminated."
`;
exports[`block-comment.html format[html] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div /* block comment */></div>
| ^^^^^^
2 |
Cause: Opening tag "div" not terminated."
`;
exports[`block-comment.html format[lwc] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div /* block comment */></div>
| ^^^^^^
2 |
Cause: Opening tag "div" not terminated."
`;
exports[`block-comment.html format[mjml] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div /* block comment */></div>
| ^^^^^^
2 |
Cause: Opening tag "div" not terminated."
`;
exports[`block-comment.html format[vue] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div /* block comment */></div>
| ^^^^^^
2 |
Cause: Opening tag "div" not terminated."
`;
exports[`line-comment.html format[angular] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div // line comment
| ^^^^^^
2 | ></div>
3 |
Cause: Opening tag "div" not terminated."
`;
exports[`line-comment.html format[html] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div // line comment
| ^^^^^^
2 | ></div>
3 |
Cause: Opening tag "div" not terminated."
`;
exports[`line-comment.html format[lwc] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div // line comment
| ^^^^^^
2 | ></div>
3 |
Cause: Opening tag "div" not terminated."
`;
exports[`line-comment.html format[mjml] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div // line comment
| ^^^^^^
2 | ></div>
3 |
Cause: Opening tag "div" not terminated."
`;
exports[`line-comment.html format[vue] 1`] = `
"Opening tag "div" not terminated. (1:1)
> 1 | <div // line comment
| ^^^^^^
2 | ></div>
3 |
Cause: Opening tag "div" not terminated."
`;
@@ -0,0 +1 @@
<div /* block comment */></div>
@@ -0,0 +1,8 @@
runFormatTest(import.meta, [
"html",
"vue",
"lwc",
"mjml",
// https://github.com/prettier/prettier/issues/18974
"angular",
]);
@@ -0,0 +1,2 @@
<div // line comment
></div>
+5 -5
View File
@@ -3053,10 +3053,10 @@ __metadata:
languageName: node
linkType: hard
"angular-html-parser@npm:10.7.0":
version: 10.7.0
resolution: "angular-html-parser@npm:10.7.0"
checksum: 10/bd71365b60354fc1a58c309be249717a027f8616ce6d5b0bb716bb2aa32538f940c11c95e69ee62e0a39e6a85b31dd6b63a5fcc6c12b1e8e83a377388ceeeafd
"angular-html-parser@npm:10.8.0":
version: 10.8.0
resolution: "angular-html-parser@npm:10.8.0"
checksum: 10/1417dbd93bec0b3b176a56ded0084cd07d67056327bce98faf9f9fda3fcde156c3c98cc975cfe8e5c4abbc3db47a2a3466be45c19df8e1a0531b3c949f7d4cb2
languageName: node
linkType: hard
@@ -8120,7 +8120,7 @@ __metadata:
acorn: "npm:8.17.0"
acorn-jsx: "npm:5.3.2"
angular-estree-parser: "npm:15.5.0"
angular-html-parser: "npm:10.7.0"
angular-html-parser: "npm:10.8.0"
base64-arraybuffer-es6: "npm:3.1.0"
browserslist: "npm:4.28.2"
browserslist-to-esbuild: "npm:2.1.1"