chore(deps): upgrade to entities 5.0

close #11507
This commit is contained in:
Evan You 2024-08-05 14:14:52 +08:00
parent 67bb820904
commit ea190f24e4
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
5 changed files with 12 additions and 6 deletions

View File

@ -48,7 +48,7 @@
"dependencies": {
"@babel/parser": "catalog:",
"@vue/shared": "workspace:*",
"entities": "^4.5.0",
"entities": "^5.0.0",
"estree-walker": "catalog:",
"source-map-js": "catalog:"
},

View File

@ -44,7 +44,7 @@ import {
isSimpleIdentifier,
isStaticArgOf,
} from './utils'
import { decodeHTML } from 'entities/lib/decode.js'
import { decodeHTML } from 'entities/dist/decode.js'
import {
type ParserOptions as BabelOptions,
parse,

View File

@ -36,7 +36,7 @@ import {
EntityDecoder,
fromCodePoint,
htmlDecodeTree,
} from 'entities/lib/decode.js'
} from 'entities/dist/decode.js'
export enum ParseMode {
BASE,

View File

@ -183,8 +183,8 @@ importers:
specifier: workspace:*
version: link:../shared
entities:
specifier: ^4.5.0
version: 4.5.0
specifier: ^5.0.0
version: 5.0.0
estree-walker:
specifier: 'catalog:'
version: 2.0.2
@ -1891,6 +1891,10 @@ packages:
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
engines: {node: '>=0.12'}
entities@5.0.0:
resolution: {integrity: sha512-BeJFvFRJddxobhvEdm5GqHzRV/X+ACeuw0/BuuxsCh1EUZcAIz8+kYmBp/LrQuloy6K1f3a0M7+IhmZ7QnkISA==}
engines: {node: '>=0.12'}
env-paths@2.2.1:
resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
engines: {node: '>=6'}
@ -4982,6 +4986,8 @@ snapshots:
entities@4.5.0: {}
entities@5.0.0: {}
env-paths@2.2.1: {}
error-ex@1.3.2:

View File

@ -253,7 +253,7 @@ function createConfig(format, output, plugins = []) {
'source-map-js',
'@babel/parser',
'estree-walker',
'entities/lib/decode.js',
'entities/dist/decode.js',
]
if (isGlobalBuild || isBrowserESMBuild || isCompatPackage) {