mirror of https://github.com/vuejs/core.git
chore(deps): upgrade to TypeScript 5.6
This commit is contained in:
parent
e596378e0b
commit
b1db66a1a9
|
@ -6,7 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node scripts/dev.js",
|
"dev": "node scripts/dev.js",
|
||||||
"build": "node scripts/build.js",
|
"build": "node scripts/build.js",
|
||||||
"build-dts": "tsc -p tsconfig.build-browser.json && tsc -p tsconfig.build-node.json && rollup -c rollup.dts.config.js",
|
"build-dts": "tsc -p tsconfig.build.json --noCheck && rollup -c rollup.dts.config.js",
|
||||||
"clean": "rimraf --glob packages/*/dist temp .eslintcache",
|
"clean": "rimraf --glob packages/*/dist temp .eslintcache",
|
||||||
"size": "run-s \"size-*\" && tsx scripts/usage-size.ts",
|
"size": "run-s \"size-*\" && tsx scripts/usage-size.ts",
|
||||||
"size-global": "node scripts/build.js vue runtime-dom -f global -p --size",
|
"size-global": "node scripts/build.js vue runtime-dom -f global -p --size",
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
"todomvc-app-css": "^2.4.3",
|
"todomvc-app-css": "^2.4.3",
|
||||||
"tslib": "^2.7.0",
|
"tslib": "^2.7.0",
|
||||||
"tsx": "^4.19.0",
|
"tsx": "^4.19.0",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.6.2",
|
||||||
"typescript-eslint": "^8.4.0",
|
"typescript-eslint": "^8.4.0",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"extends": "../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"isolatedDeclarations": false
|
||||||
|
},
|
||||||
|
"include": ["."]
|
||||||
|
}
|
|
@ -3,6 +3,8 @@ import {
|
||||||
ElementTypes,
|
ElementTypes,
|
||||||
Namespaces,
|
Namespaces,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
|
type Property,
|
||||||
|
type SimpleExpressionNode,
|
||||||
type VNodeCall,
|
type VNodeCall,
|
||||||
locStub,
|
locStub,
|
||||||
} from '../src'
|
} from '../src'
|
||||||
|
@ -22,7 +24,10 @@ const bracketsRE = /^\[|\]$/g
|
||||||
// e.g.
|
// e.g.
|
||||||
// - createObjectMatcher({ 'foo': '[bar]' }) matches { foo: bar }
|
// - createObjectMatcher({ 'foo': '[bar]' }) matches { foo: bar }
|
||||||
// - createObjectMatcher({ '[foo]': 'bar' }) matches { [foo]: "bar" }
|
// - createObjectMatcher({ '[foo]': 'bar' }) matches { [foo]: "bar" }
|
||||||
export function createObjectMatcher(obj: Record<string, any>) {
|
export function createObjectMatcher(obj: Record<string, any>): {
|
||||||
|
type: NodeTypes
|
||||||
|
properties: Partial<Property>[]
|
||||||
|
} {
|
||||||
return {
|
return {
|
||||||
type: NodeTypes.JS_OBJECT_EXPRESSION,
|
type: NodeTypes.JS_OBJECT_EXPRESSION,
|
||||||
properties: Object.keys(obj).map(key => ({
|
properties: Object.keys(obj).map(key => ({
|
||||||
|
@ -31,7 +36,7 @@ export function createObjectMatcher(obj: Record<string, any>) {
|
||||||
type: NodeTypes.SIMPLE_EXPRESSION,
|
type: NodeTypes.SIMPLE_EXPRESSION,
|
||||||
content: key.replace(bracketsRE, ''),
|
content: key.replace(bracketsRE, ''),
|
||||||
isStatic: !leadingBracketRE.test(key),
|
isStatic: !leadingBracketRE.test(key),
|
||||||
},
|
} as SimpleExpressionNode,
|
||||||
value: isString(obj[key])
|
value: isString(obj[key])
|
||||||
? {
|
? {
|
||||||
type: NodeTypes.SIMPLE_EXPRESSION,
|
type: NodeTypes.SIMPLE_EXPRESSION,
|
||||||
|
@ -78,7 +83,7 @@ type Flags = PatchFlags | ShapeFlags
|
||||||
export function genFlagText(
|
export function genFlagText(
|
||||||
flag: Flags | Flags[],
|
flag: Flags | Flags[],
|
||||||
names: { [k: number]: string } = PatchFlagNames,
|
names: { [k: number]: string } = PatchFlagNames,
|
||||||
) {
|
): string {
|
||||||
if (isArray(flag)) {
|
if (isArray(flag)) {
|
||||||
let f = 0
|
let f = 0
|
||||||
flag.forEach(ff => {
|
flag.forEach(ff => {
|
||||||
|
|
|
@ -13,6 +13,7 @@ import {
|
||||||
type ForNode,
|
type ForNode,
|
||||||
type InterpolationNode,
|
type InterpolationNode,
|
||||||
NodeTypes,
|
NodeTypes,
|
||||||
|
type RootNode,
|
||||||
type SimpleExpressionNode,
|
type SimpleExpressionNode,
|
||||||
} from '../../src/ast'
|
} from '../../src/ast'
|
||||||
import { ErrorCodes } from '../../src/errors'
|
import { ErrorCodes } from '../../src/errors'
|
||||||
|
@ -24,7 +25,10 @@ import { createObjectMatcher } from '../testUtils'
|
||||||
export function parseWithForTransform(
|
export function parseWithForTransform(
|
||||||
template: string,
|
template: string,
|
||||||
options: CompilerOptions = {},
|
options: CompilerOptions = {},
|
||||||
) {
|
): {
|
||||||
|
root: RootNode
|
||||||
|
node: ForNode & { codegenNode: ForCodegenNode }
|
||||||
|
} {
|
||||||
const ast = parse(template, options)
|
const ast = parse(template, options)
|
||||||
transform(ast, {
|
transform(ast, {
|
||||||
nodeTransforms: [
|
nodeTransforms: [
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import {
|
import {
|
||||||
type SFCParseOptions,
|
type SFCParseOptions,
|
||||||
|
type SFCScriptBlock,
|
||||||
type SFCScriptCompileOptions,
|
type SFCScriptCompileOptions,
|
||||||
compileScript,
|
compileScript,
|
||||||
parse,
|
parse,
|
||||||
|
@ -12,7 +13,7 @@ export function compileSFCScript(
|
||||||
src: string,
|
src: string,
|
||||||
options?: Partial<SFCScriptCompileOptions>,
|
options?: Partial<SFCScriptCompileOptions>,
|
||||||
parseOptions?: SFCParseOptions,
|
parseOptions?: SFCParseOptions,
|
||||||
) {
|
): SFCScriptBlock {
|
||||||
const { descriptor, errors } = parse(src, parseOptions)
|
const { descriptor, errors } = parse(src, parseOptions)
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.warn(errors[0])
|
console.warn(errors[0])
|
||||||
|
@ -23,7 +24,7 @@ export function compileSFCScript(
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function assertCode(code: string) {
|
export function assertCode(code: string): void {
|
||||||
// parse the generated code to make sure it is valid
|
// parse the generated code to make sure it is valid
|
||||||
try {
|
try {
|
||||||
babelParse(code, {
|
babelParse(code, {
|
||||||
|
|
|
@ -350,7 +350,7 @@ const KeepAliveImpl: ComponentOptions = {
|
||||||
keys.add(key)
|
keys.add(key)
|
||||||
// prune oldest entry
|
// prune oldest entry
|
||||||
if (max && keys.size > parseInt(max as string, 10)) {
|
if (max && keys.size > parseInt(max as string, 10)) {
|
||||||
pruneCacheEntry(keys.values().next().value)
|
pruneCacheEntry(keys.values().next().value!)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// avoid vnode being unmounted
|
// avoid vnode being unmounted
|
||||||
|
|
|
@ -17,7 +17,7 @@ export const render = baseRender as RootRenderFunction<TestElement>
|
||||||
export const createApp = baseCreateApp as CreateAppFunction<TestElement>
|
export const createApp = baseCreateApp as CreateAppFunction<TestElement>
|
||||||
|
|
||||||
// convenience for one-off render validations
|
// convenience for one-off render validations
|
||||||
export function renderToString(vnode: VNode) {
|
export function renderToString(vnode: VNode): string {
|
||||||
const root = nodeOps.createElement('div')
|
const root = nodeOps.createElement('div')
|
||||||
render(vnode, root)
|
render(vnode, root)
|
||||||
return serializeInner(root)
|
return serializeInner(root)
|
||||||
|
|
|
@ -57,11 +57,11 @@ export interface NodeOp {
|
||||||
let nodeId: number = 0
|
let nodeId: number = 0
|
||||||
let recordedNodeOps: NodeOp[] = []
|
let recordedNodeOps: NodeOp[] = []
|
||||||
|
|
||||||
export function logNodeOp(op: NodeOp) {
|
export function logNodeOp(op: NodeOp): void {
|
||||||
recordedNodeOps.push(op)
|
recordedNodeOps.push(op)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resetOps() {
|
export function resetOps(): void {
|
||||||
recordedNodeOps = []
|
recordedNodeOps = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ function createComment(text: string): TestComment {
|
||||||
return node
|
return node
|
||||||
}
|
}
|
||||||
|
|
||||||
function setText(node: TestText, text: string) {
|
function setText(node: TestText, text: string): void {
|
||||||
logNodeOp({
|
logNodeOp({
|
||||||
type: NodeOpTypes.SET_TEXT,
|
type: NodeOpTypes.SET_TEXT,
|
||||||
targetNode: node,
|
targetNode: node,
|
||||||
|
@ -137,7 +137,11 @@ function setText(node: TestText, text: string) {
|
||||||
node.text = text
|
node.text = text
|
||||||
}
|
}
|
||||||
|
|
||||||
function insert(child: TestNode, parent: TestElement, ref?: TestNode | null) {
|
function insert(
|
||||||
|
child: TestNode,
|
||||||
|
parent: TestElement,
|
||||||
|
ref?: TestNode | null,
|
||||||
|
): void {
|
||||||
let refIndex
|
let refIndex
|
||||||
if (ref) {
|
if (ref) {
|
||||||
refIndex = parent.children.indexOf(ref)
|
refIndex = parent.children.indexOf(ref)
|
||||||
|
@ -166,7 +170,7 @@ function insert(child: TestNode, parent: TestElement, ref?: TestNode | null) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove(child: TestNode, logOp = true) {
|
function remove(child: TestNode, logOp = true): void {
|
||||||
const parent = child.parentNode
|
const parent = child.parentNode
|
||||||
if (parent) {
|
if (parent) {
|
||||||
if (logOp) {
|
if (logOp) {
|
||||||
|
@ -188,7 +192,7 @@ function remove(child: TestNode, logOp = true) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setElementText(el: TestElement, text: string) {
|
function setElementText(el: TestElement, text: string): void {
|
||||||
logNodeOp({
|
logNodeOp({
|
||||||
type: NodeOpTypes.SET_ELEMENT_TEXT,
|
type: NodeOpTypes.SET_ELEMENT_TEXT,
|
||||||
targetNode: el,
|
targetNode: el,
|
||||||
|
@ -228,11 +232,23 @@ function querySelector(): never {
|
||||||
throw new Error('querySelector not supported in test renderer.')
|
throw new Error('querySelector not supported in test renderer.')
|
||||||
}
|
}
|
||||||
|
|
||||||
function setScopeId(el: TestElement, id: string) {
|
function setScopeId(el: TestElement, id: string): void {
|
||||||
el.props[id] = ''
|
el.props[id] = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
export const nodeOps = {
|
export const nodeOps: {
|
||||||
|
insert: typeof insert
|
||||||
|
remove: typeof remove
|
||||||
|
createElement: typeof createElement
|
||||||
|
createText: typeof createText
|
||||||
|
createComment: typeof createComment
|
||||||
|
setText: typeof setText
|
||||||
|
setElementText: typeof setElementText
|
||||||
|
parentNode: typeof parentNode
|
||||||
|
nextSibling: typeof nextSibling
|
||||||
|
querySelector: typeof querySelector
|
||||||
|
setScopeId: typeof setScopeId
|
||||||
|
} = {
|
||||||
insert,
|
insert,
|
||||||
remove,
|
remove,
|
||||||
createElement,
|
createElement,
|
||||||
|
|
|
@ -6,7 +6,7 @@ export function patchProp(
|
||||||
key: string,
|
key: string,
|
||||||
prevValue: any,
|
prevValue: any,
|
||||||
nextValue: any,
|
nextValue: any,
|
||||||
) {
|
): void {
|
||||||
logNodeOp({
|
logNodeOp({
|
||||||
type: NodeOpTypes.PATCH,
|
type: NodeOpTypes.PATCH,
|
||||||
targetNode: el,
|
targetNode: el,
|
||||||
|
|
|
@ -23,7 +23,7 @@ export function serializeInner(
|
||||||
node: TestElement,
|
node: TestElement,
|
||||||
indent: number = 0,
|
indent: number = 0,
|
||||||
depth: number = 0,
|
depth: number = 0,
|
||||||
) {
|
): string {
|
||||||
const newLine = indent ? `\n` : ``
|
const newLine = indent ? `\n` : ``
|
||||||
return node.children.length
|
return node.children.length
|
||||||
? newLine +
|
? newLine +
|
||||||
|
|
|
@ -5,7 +5,7 @@ export function triggerEvent(
|
||||||
el: TestElement,
|
el: TestElement,
|
||||||
event: string,
|
event: string,
|
||||||
payload: any[] = [],
|
payload: any[] = [],
|
||||||
) {
|
): void {
|
||||||
const { eventListeners } = el
|
const { eventListeners } = el
|
||||||
if (eventListeners) {
|
if (eventListeners) {
|
||||||
const listener = eventListeners[event]
|
const listener = eventListeners[event]
|
||||||
|
|
|
@ -2,7 +2,7 @@ export function triggerEvent(
|
||||||
target: Element,
|
target: Element,
|
||||||
event: string,
|
event: string,
|
||||||
process?: (e: any) => any,
|
process?: (e: any) => any,
|
||||||
) {
|
): Event {
|
||||||
const e = new Event(event, {
|
const e = new Event(event, {
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
cancelable: true,
|
cancelable: true,
|
||||||
|
|
|
@ -548,4 +548,4 @@ export default {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
} as any
|
||||||
|
|
|
@ -31,7 +31,27 @@ export async function expectByPolling(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setupPuppeteer(args?: string[]) {
|
interface PuppeteerUtils {
|
||||||
|
page: () => Page
|
||||||
|
click(selector: string, options?: ClickOptions): Promise<void>
|
||||||
|
count(selector: string): Promise<number>
|
||||||
|
text(selector: string): Promise<string | null>
|
||||||
|
value(selector: string): Promise<string>
|
||||||
|
html(selector: string): Promise<string>
|
||||||
|
classList(selector: string): Promise<string[]>
|
||||||
|
children(selector: string): Promise<any[]>
|
||||||
|
isVisible(selector: string): Promise<boolean>
|
||||||
|
isChecked(selector: string): Promise<boolean>
|
||||||
|
isFocused(selector: string): Promise<boolean>
|
||||||
|
setValue(selector: string, value: string): Promise<any>
|
||||||
|
typeValue(selector: string, value: string): Promise<any>
|
||||||
|
enterValue(selector: string, value: string): Promise<any>
|
||||||
|
clearValue(selector: string): Promise<any>
|
||||||
|
timeout(time: number): Promise<any>
|
||||||
|
nextFrame(): Promise<any>
|
||||||
|
}
|
||||||
|
|
||||||
|
export function setupPuppeteer(args?: string[]): PuppeteerUtils {
|
||||||
let browser: Browser
|
let browser: Browser
|
||||||
let page: Page
|
let page: Page
|
||||||
|
|
||||||
|
@ -69,35 +89,38 @@ export function setupPuppeteer(args?: string[]) {
|
||||||
await browser.close()
|
await browser.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
async function click(selector: string, options?: ClickOptions) {
|
async function click(
|
||||||
|
selector: string,
|
||||||
|
options?: ClickOptions,
|
||||||
|
): Promise<void> {
|
||||||
await page.click(selector, options)
|
await page.click(selector, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function count(selector: string) {
|
async function count(selector: string): Promise<number> {
|
||||||
return (await page.$$(selector)).length
|
return (await page.$$(selector)).length
|
||||||
}
|
}
|
||||||
|
|
||||||
async function text(selector: string) {
|
async function text(selector: string): Promise<string | null> {
|
||||||
return await page.$eval(selector, node => node.textContent)
|
return page.$eval(selector, node => node.textContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function value(selector: string) {
|
async function value(selector: string): Promise<string> {
|
||||||
return await page.$eval(selector, node => (node as HTMLInputElement).value)
|
return page.$eval(selector, node => (node as HTMLInputElement).value)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function html(selector: string) {
|
async function html(selector: string): Promise<string> {
|
||||||
return await page.$eval(selector, node => node.innerHTML)
|
return page.$eval(selector, node => node.innerHTML)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function classList(selector: string) {
|
async function classList(selector: string): Promise<string[]> {
|
||||||
return await page.$eval(selector, (node: any) => [...node.classList])
|
return page.$eval(selector, (node: any) => [...node.classList])
|
||||||
}
|
}
|
||||||
|
|
||||||
async function children(selector: string) {
|
async function children(selector: string): Promise<any[]> {
|
||||||
return await page.$eval(selector, (node: any) => [...node.children])
|
return page.$eval(selector, (node: any) => [...node.children])
|
||||||
}
|
}
|
||||||
|
|
||||||
async function isVisible(selector: string) {
|
async function isVisible(selector: string): Promise<boolean> {
|
||||||
const display = await page.$eval(selector, node => {
|
const display = await page.$eval(selector, node => {
|
||||||
return window.getComputedStyle(node).display
|
return window.getComputedStyle(node).display
|
||||||
})
|
})
|
||||||
|
|
103
pnpm-lock.yaml
103
pnpm-lock.yaml
|
@ -91,10 +91,10 @@ importers:
|
||||||
version: 9.9.1
|
version: 9.9.1
|
||||||
eslint-plugin-import-x:
|
eslint-plugin-import-x:
|
||||||
specifier: ^3.1.0
|
specifier: ^3.1.0
|
||||||
version: 3.1.0(eslint@9.9.1)(typescript@5.5.4)
|
version: 3.1.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
eslint-plugin-vitest:
|
eslint-plugin-vitest:
|
||||||
specifier: ^0.5.4
|
specifier: ^0.5.4
|
||||||
version: 0.5.4(eslint@9.9.1)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.16.5)(jsdom@25.0.0)(sass@1.78.0))
|
version: 0.5.4(eslint@9.9.1)(typescript@5.6.2)(vitest@2.0.5(@types/node@20.16.5)(jsdom@25.0.0)(sass@1.78.0))
|
||||||
estree-walker:
|
estree-walker:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 2.0.2
|
version: 2.0.2
|
||||||
|
@ -133,7 +133,7 @@ importers:
|
||||||
version: 3.0.3
|
version: 3.0.3
|
||||||
puppeteer:
|
puppeteer:
|
||||||
specifier: ~23.3.0
|
specifier: ~23.3.0
|
||||||
version: 23.3.0(typescript@5.5.4)
|
version: 23.3.0(typescript@5.6.2)
|
||||||
rimraf:
|
rimraf:
|
||||||
specifier: ^6.0.1
|
specifier: ^6.0.1
|
||||||
version: 6.0.1
|
version: 6.0.1
|
||||||
|
@ -142,7 +142,7 @@ importers:
|
||||||
version: 4.21.2
|
version: 4.21.2
|
||||||
rollup-plugin-dts:
|
rollup-plugin-dts:
|
||||||
specifier: ^6.1.1
|
specifier: ^6.1.1
|
||||||
version: 6.1.1(rollup@4.21.2)(typescript@5.5.4)
|
version: 6.1.1(rollup@4.21.2)(typescript@5.6.2)
|
||||||
rollup-plugin-esbuild:
|
rollup-plugin-esbuild:
|
||||||
specifier: ^6.1.1
|
specifier: ^6.1.1
|
||||||
version: 6.1.1(esbuild@0.23.1)(rollup@4.21.2)
|
version: 6.1.1(esbuild@0.23.1)(rollup@4.21.2)
|
||||||
|
@ -171,11 +171,11 @@ importers:
|
||||||
specifier: ^4.19.0
|
specifier: ^4.19.0
|
||||||
version: 4.19.0
|
version: 4.19.0
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ~5.5.4
|
specifier: ~5.6.2
|
||||||
version: 5.5.4
|
version: 5.6.2
|
||||||
typescript-eslint:
|
typescript-eslint:
|
||||||
specifier: ^8.4.0
|
specifier: ^8.4.0
|
||||||
version: 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
version: 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
vite:
|
vite:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 5.4.0(@types/node@20.16.5)(sass@1.78.0)
|
version: 5.4.0(@types/node@20.16.5)(sass@1.78.0)
|
||||||
|
@ -3258,6 +3258,11 @@ packages:
|
||||||
engines: {node: '>=14.17'}
|
engines: {node: '>=14.17'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
typescript@5.6.2:
|
||||||
|
resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==}
|
||||||
|
engines: {node: '>=14.17'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
uglify-js@3.19.1:
|
uglify-js@3.19.1:
|
||||||
resolution: {integrity: sha512-y/2wiW+ceTYR2TSSptAhfnEtpLaQ4Ups5zrjB2d3kuVxHj16j/QJwPl5PvuGy9uARb39J0+iKxcRPvtpsx4A4A==}
|
resolution: {integrity: sha512-y/2wiW+ceTYR2TSSptAhfnEtpLaQ4Ups5zrjB2d3kuVxHj16j/QJwPl5PvuGy9uARb39J0+iKxcRPvtpsx4A4A==}
|
||||||
engines: {node: '>=0.8.0'}
|
engines: {node: '>=0.8.0'}
|
||||||
|
@ -3987,34 +3992,34 @@ snapshots:
|
||||||
'@types/node': 20.16.5
|
'@types/node': 20.16.5
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@typescript-eslint/eslint-plugin@8.4.0(@typescript-eslint/parser@8.4.0(eslint@9.9.1)(typescript@5.5.4))(eslint@9.9.1)(typescript@5.5.4)':
|
'@typescript-eslint/eslint-plugin@8.4.0(@typescript-eslint/parser@8.4.0(eslint@9.9.1)(typescript@5.6.2))(eslint@9.9.1)(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/regexpp': 4.11.0
|
'@eslint-community/regexpp': 4.11.0
|
||||||
'@typescript-eslint/parser': 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/parser': 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
'@typescript-eslint/scope-manager': 8.4.0
|
'@typescript-eslint/scope-manager': 8.4.0
|
||||||
'@typescript-eslint/type-utils': 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/type-utils': 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
'@typescript-eslint/utils': 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/utils': 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
'@typescript-eslint/visitor-keys': 8.4.0
|
'@typescript-eslint/visitor-keys': 8.4.0
|
||||||
eslint: 9.9.1
|
eslint: 9.9.1
|
||||||
graphemer: 1.4.0
|
graphemer: 1.4.0
|
||||||
ignore: 5.3.1
|
ignore: 5.3.1
|
||||||
natural-compare: 1.4.0
|
natural-compare: 1.4.0
|
||||||
ts-api-utils: 1.3.0(typescript@5.5.4)
|
ts-api-utils: 1.3.0(typescript@5.6.2)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@typescript-eslint/parser@8.4.0(eslint@9.9.1)(typescript@5.5.4)':
|
'@typescript-eslint/parser@8.4.0(eslint@9.9.1)(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/scope-manager': 8.4.0
|
'@typescript-eslint/scope-manager': 8.4.0
|
||||||
'@typescript-eslint/types': 8.4.0
|
'@typescript-eslint/types': 8.4.0
|
||||||
'@typescript-eslint/typescript-estree': 8.4.0(typescript@5.5.4)
|
'@typescript-eslint/typescript-estree': 8.4.0(typescript@5.6.2)
|
||||||
'@typescript-eslint/visitor-keys': 8.4.0
|
'@typescript-eslint/visitor-keys': 8.4.0
|
||||||
debug: 4.3.6
|
debug: 4.3.6
|
||||||
eslint: 9.9.1
|
eslint: 9.9.1
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
@ -4028,14 +4033,14 @@ snapshots:
|
||||||
'@typescript-eslint/types': 8.4.0
|
'@typescript-eslint/types': 8.4.0
|
||||||
'@typescript-eslint/visitor-keys': 8.4.0
|
'@typescript-eslint/visitor-keys': 8.4.0
|
||||||
|
|
||||||
'@typescript-eslint/type-utils@8.4.0(eslint@9.9.1)(typescript@5.5.4)':
|
'@typescript-eslint/type-utils@8.4.0(eslint@9.9.1)(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/typescript-estree': 8.4.0(typescript@5.5.4)
|
'@typescript-eslint/typescript-estree': 8.4.0(typescript@5.6.2)
|
||||||
'@typescript-eslint/utils': 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/utils': 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
debug: 4.3.6
|
debug: 4.3.6
|
||||||
ts-api-utils: 1.3.0(typescript@5.5.4)
|
ts-api-utils: 1.3.0(typescript@5.6.2)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- eslint
|
- eslint
|
||||||
- supports-color
|
- supports-color
|
||||||
|
@ -4044,7 +4049,7 @@ snapshots:
|
||||||
|
|
||||||
'@typescript-eslint/types@8.4.0': {}
|
'@typescript-eslint/types@8.4.0': {}
|
||||||
|
|
||||||
'@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4)':
|
'@typescript-eslint/typescript-estree@7.18.0(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 7.18.0
|
'@typescript-eslint/types': 7.18.0
|
||||||
'@typescript-eslint/visitor-keys': 7.18.0
|
'@typescript-eslint/visitor-keys': 7.18.0
|
||||||
|
@ -4053,13 +4058,13 @@ snapshots:
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
minimatch: 9.0.5
|
minimatch: 9.0.5
|
||||||
semver: 7.6.3
|
semver: 7.6.3
|
||||||
ts-api-utils: 1.3.0(typescript@5.5.4)
|
ts-api-utils: 1.3.0(typescript@5.6.2)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@typescript-eslint/typescript-estree@8.4.0(typescript@5.5.4)':
|
'@typescript-eslint/typescript-estree@8.4.0(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 8.4.0
|
'@typescript-eslint/types': 8.4.0
|
||||||
'@typescript-eslint/visitor-keys': 8.4.0
|
'@typescript-eslint/visitor-keys': 8.4.0
|
||||||
|
@ -4068,29 +4073,29 @@ snapshots:
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
minimatch: 9.0.5
|
minimatch: 9.0.5
|
||||||
semver: 7.6.3
|
semver: 7.6.3
|
||||||
ts-api-utils: 1.3.0(typescript@5.5.4)
|
ts-api-utils: 1.3.0(typescript@5.6.2)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@typescript-eslint/utils@7.18.0(eslint@9.9.1)(typescript@5.5.4)':
|
'@typescript-eslint/utils@7.18.0(eslint@9.9.1)(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.4.0(eslint@9.9.1)
|
'@eslint-community/eslint-utils': 4.4.0(eslint@9.9.1)
|
||||||
'@typescript-eslint/scope-manager': 7.18.0
|
'@typescript-eslint/scope-manager': 7.18.0
|
||||||
'@typescript-eslint/types': 7.18.0
|
'@typescript-eslint/types': 7.18.0
|
||||||
'@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4)
|
'@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.2)
|
||||||
eslint: 9.9.1
|
eslint: 9.9.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
- typescript
|
- typescript
|
||||||
|
|
||||||
'@typescript-eslint/utils@8.4.0(eslint@9.9.1)(typescript@5.5.4)':
|
'@typescript-eslint/utils@8.4.0(eslint@9.9.1)(typescript@5.6.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.4.0(eslint@9.9.1)
|
'@eslint-community/eslint-utils': 4.4.0(eslint@9.9.1)
|
||||||
'@typescript-eslint/scope-manager': 8.4.0
|
'@typescript-eslint/scope-manager': 8.4.0
|
||||||
'@typescript-eslint/types': 8.4.0
|
'@typescript-eslint/types': 8.4.0
|
||||||
'@typescript-eslint/typescript-estree': 8.4.0(typescript@5.5.4)
|
'@typescript-eslint/typescript-estree': 8.4.0(typescript@5.6.2)
|
||||||
eslint: 9.9.1
|
eslint: 9.9.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
@ -4549,14 +4554,14 @@ snapshots:
|
||||||
|
|
||||||
core-util-is@1.0.3: {}
|
core-util-is@1.0.3: {}
|
||||||
|
|
||||||
cosmiconfig@9.0.0(typescript@5.5.4):
|
cosmiconfig@9.0.0(typescript@5.6.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
env-paths: 2.2.1
|
env-paths: 2.2.1
|
||||||
import-fresh: 3.3.0
|
import-fresh: 3.3.0
|
||||||
js-yaml: 4.1.0
|
js-yaml: 4.1.0
|
||||||
parse-json: 5.2.0
|
parse-json: 5.2.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
|
|
||||||
cross-spawn@7.0.3:
|
cross-spawn@7.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -4747,9 +4752,9 @@ snapshots:
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-plugin-import-x@3.1.0(eslint@9.9.1)(typescript@5.5.4):
|
eslint-plugin-import-x@3.1.0(eslint@9.9.1)(typescript@5.6.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/utils': 7.18.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/utils': 7.18.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
debug: 4.3.6
|
debug: 4.3.6
|
||||||
doctrine: 3.0.0
|
doctrine: 3.0.0
|
||||||
eslint: 9.9.1
|
eslint: 9.9.1
|
||||||
|
@ -4764,9 +4769,9 @@ snapshots:
|
||||||
- supports-color
|
- supports-color
|
||||||
- typescript
|
- typescript
|
||||||
|
|
||||||
eslint-plugin-vitest@0.5.4(eslint@9.9.1)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.16.5)(jsdom@25.0.0)(sass@1.78.0)):
|
eslint-plugin-vitest@0.5.4(eslint@9.9.1)(typescript@5.6.2)(vitest@2.0.5(@types/node@20.16.5)(jsdom@25.0.0)(sass@1.78.0)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/utils': 7.18.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/utils': 7.18.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
eslint: 9.9.1
|
eslint: 9.9.1
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
vitest: 2.0.5(@types/node@20.16.5)(jsdom@25.0.0)(sass@1.78.0)
|
vitest: 2.0.5(@types/node@20.16.5)(jsdom@25.0.0)(sass@1.78.0)
|
||||||
|
@ -5813,11 +5818,11 @@ snapshots:
|
||||||
- supports-color
|
- supports-color
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
|
|
||||||
puppeteer@23.3.0(typescript@5.5.4):
|
puppeteer@23.3.0(typescript@5.6.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@puppeteer/browsers': 2.4.0
|
'@puppeteer/browsers': 2.4.0
|
||||||
chromium-bidi: 0.6.5(devtools-protocol@0.0.1330662)
|
chromium-bidi: 0.6.5(devtools-protocol@0.0.1330662)
|
||||||
cosmiconfig: 9.0.0(typescript@5.5.4)
|
cosmiconfig: 9.0.0(typescript@5.6.2)
|
||||||
devtools-protocol: 0.0.1330662
|
devtools-protocol: 0.0.1330662
|
||||||
puppeteer-core: 23.3.0
|
puppeteer-core: 23.3.0
|
||||||
typed-query-selector: 2.12.0
|
typed-query-selector: 2.12.0
|
||||||
|
@ -5914,11 +5919,11 @@ snapshots:
|
||||||
glob: 11.0.0
|
glob: 11.0.0
|
||||||
package-json-from-dist: 1.0.0
|
package-json-from-dist: 1.0.0
|
||||||
|
|
||||||
rollup-plugin-dts@6.1.1(rollup@4.21.2)(typescript@5.5.4):
|
rollup-plugin-dts@6.1.1(rollup@4.21.2)(typescript@5.6.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
magic-string: 0.30.11
|
magic-string: 0.30.11
|
||||||
rollup: 4.21.2
|
rollup: 4.21.2
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@babel/code-frame': 7.24.7
|
'@babel/code-frame': 7.24.7
|
||||||
|
|
||||||
|
@ -6242,9 +6247,9 @@ snapshots:
|
||||||
dependencies:
|
dependencies:
|
||||||
punycode: 2.3.1
|
punycode: 2.3.1
|
||||||
|
|
||||||
ts-api-utils@1.3.0(typescript@5.5.4):
|
ts-api-utils@1.3.0(typescript@5.6.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
|
|
||||||
tslib@2.7.0: {}
|
tslib@2.7.0: {}
|
||||||
|
|
||||||
|
@ -6265,19 +6270,21 @@ snapshots:
|
||||||
|
|
||||||
typed-query-selector@2.12.0: {}
|
typed-query-selector@2.12.0: {}
|
||||||
|
|
||||||
typescript-eslint@8.4.0(eslint@9.9.1)(typescript@5.5.4):
|
typescript-eslint@8.4.0(eslint@9.9.1)(typescript@5.6.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/eslint-plugin': 8.4.0(@typescript-eslint/parser@8.4.0(eslint@9.9.1)(typescript@5.5.4))(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/eslint-plugin': 8.4.0(@typescript-eslint/parser@8.4.0(eslint@9.9.1)(typescript@5.6.2))(eslint@9.9.1)(typescript@5.6.2)
|
||||||
'@typescript-eslint/parser': 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/parser': 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
'@typescript-eslint/utils': 8.4.0(eslint@9.9.1)(typescript@5.5.4)
|
'@typescript-eslint/utils': 8.4.0(eslint@9.9.1)(typescript@5.6.2)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
typescript: 5.5.4
|
typescript: 5.6.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- eslint
|
- eslint
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
typescript@5.5.4: {}
|
typescript@5.5.4: {}
|
||||||
|
|
||||||
|
typescript@5.6.2: {}
|
||||||
|
|
||||||
uglify-js@3.19.1:
|
uglify-js@3.19.1:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"types": ["node"],
|
|
||||||
"declaration": true,
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
"stripInternal": true,
|
|
||||||
"composite": false
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"packages/global.d.ts",
|
|
||||||
"packages/compiler-sfc/src",
|
|
||||||
"packages/compiler-ssr/src",
|
|
||||||
"packages/server-renderer/src"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"types": [],
|
"types": ["node"],
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"emitDeclarationOnly": true,
|
"emitDeclarationOnly": true,
|
||||||
"stripInternal": true,
|
"stripInternal": true,
|
||||||
|
@ -16,6 +16,10 @@
|
||||||
"packages/runtime-core/src",
|
"packages/runtime-core/src",
|
||||||
"packages/runtime-dom/src",
|
"packages/runtime-dom/src",
|
||||||
"packages/reactivity/src",
|
"packages/reactivity/src",
|
||||||
"packages/shared/src"
|
"packages/shared/src",
|
||||||
|
"packages/global.d.ts",
|
||||||
|
"packages/compiler-sfc/src",
|
||||||
|
"packages/compiler-ssr/src",
|
||||||
|
"packages/server-renderer/src"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -32,11 +32,9 @@
|
||||||
"include": [
|
"include": [
|
||||||
"packages/global.d.ts",
|
"packages/global.d.ts",
|
||||||
"packages/*/src",
|
"packages/*/src",
|
||||||
"packages-private/*/src",
|
|
||||||
"packages/runtime-dom/types/jsx.d.ts",
|
|
||||||
"packages/*/__tests__",
|
"packages/*/__tests__",
|
||||||
"packages-private/dts-test",
|
|
||||||
"packages/vue/jsx-runtime",
|
"packages/vue/jsx-runtime",
|
||||||
|
"packages/runtime-dom/types/jsx.d.ts",
|
||||||
"scripts/*",
|
"scripts/*",
|
||||||
"rollup.*.js"
|
"rollup.*.js"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue