diff --git a/package.json b/package.json index 271ddb85d..2af2b1a32 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@glimmer/syntax": "0.95.0", "@prettier/cli": "0.9.0", "@prettier/html-event-attributes": "0.0.1", - "@prettier/html-tags": "1.1.0", + "@prettier/html-tags": "2.0.0", "@prettier/parse-srcset": "3.1.0", "@typescript-eslint/typescript-estree": "8.46.2", "@typescript-eslint/visitor-keys": "8.46.2", diff --git a/src/language-html/utils/html-tags.evaluate.js b/src/language-html/utils/html-tags.evaluate.js index 4b3add222..d45899927 100644 --- a/src/language-html/utils/html-tags.evaluate.js +++ b/src/language-html/utils/html-tags.evaluate.js @@ -1,4 +1,4 @@ -import htmlTags from "@prettier/html-tags"; +import { htmlTags } from "@prettier/html-tags"; const HTML_TAGS = new Set(htmlTags); diff --git a/tests/unit/__snapshots__/html-elements.js.snap b/tests/unit/__snapshots__/html-elements.js.snap index 2ac164435..a3f88f5a8 100644 --- a/tests/unit/__snapshots__/html-elements.js.snap +++ b/tests/unit/__snapshots__/html-elements.js.snap @@ -217,6 +217,11 @@ exports[`htmlTagNames 1`] = ` "tagName": "embed", "whiteSpace": "normal", }, + { + "display": "inline", + "tagName": "fencedframe", + "whiteSpace": "normal", + }, { "display": "block", "tagName": "fieldset", diff --git a/tests/unit/html-elements.js b/tests/unit/html-elements.js index bef14cb10..18be3ebe6 100644 --- a/tests/unit/html-elements.js +++ b/tests/unit/html-elements.js @@ -1,4 +1,4 @@ -import htmlTags from "@prettier/html-tags"; +import { htmlTags } from "@prettier/html-tags"; import { CSS_DISPLAY_DEFAULT, CSS_DISPLAY_TAGS, diff --git a/yarn.lock b/yarn.lock index b47508d73..04e460090 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2289,10 +2289,10 @@ __metadata: languageName: node linkType: hard -"@prettier/html-tags@npm:1.1.0": - version: 1.1.0 - resolution: "@prettier/html-tags@npm:1.1.0" - checksum: 10/833def8e68a0a20a1a1a7240de894c708971bfeaba54bdb08d9d390a2d6a9526312f71ca767c64bc3cf4250206631ace74e19b3b08cc792bad3be46a3c8558a3 +"@prettier/html-tags@npm:2.0.0": + version: 2.0.0 + resolution: "@prettier/html-tags@npm:2.0.0" + checksum: 10/9aec10300b02a371dd9199b4be931346ec53597ddcb257dcb8f3b4e380d761b9587da64652f05197d2811dfdda4b4b910042b442c0ee85de03efb9b9948b58c9 languageName: node linkType: hard @@ -7259,7 +7259,7 @@ __metadata: "@glimmer/syntax": "npm:0.95.0" "@prettier/cli": "npm:0.9.0" "@prettier/html-event-attributes": "npm:0.0.1" - "@prettier/html-tags": "npm:1.1.0" + "@prettier/html-tags": "npm:2.0.0" "@prettier/parse-srcset": "npm:3.1.0" "@stylistic/eslint-plugin": "npm:5.5.0" "@types/estree": "npm:1.0.8"