Skip to content

Commit ee30ad7

Browse files
authored
chore(deps): massive major deps update (#5574)
1 parent a1eca7c commit ee30ad7

File tree

7 files changed

+39
-33
lines changed

7 files changed

+39
-33
lines changed

.github/renovate.json5

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"typescript",
2525

2626
// breaking changes
27-
"source-map",
28-
"react-refresh",
27+
"cac", // `cac:v6.7.10+` has breaking changes
28+
"react-router", // `react-router:v6.0.0+` has breaking changes
29+
"react-router-dom", // `react-router-dom:v6.0.0+` has breaking changes
30+
"source-map", // `source-map:v0.7.0+` needs more investigation
2931

30-
// breaks since "3.0.1", needs futher investigate
31-
"postcss-load-config",
32-
33-
// ESM Only
34-
"strip-ansi",
35-
"periscopic"
32+
// ESM Only => https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm
33+
"node-fetch",
34+
"periscopic",
35+
"strip-ansi"
3636
]
3737
}

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"@microsoft/api-extractor": "^7.18.19",
3232
"@types/fs-extra": "^9.0.13",
3333
"@types/jest": "^27.0.2",
34-
"@types/node": "^15.12.2",
35-
"@types/semver": "^7.3.8",
34+
"@types/node": "^16.11.6",
35+
"@types/semver": "^7.3.9",
3636
"@typescript-eslint/eslint-plugin": "^5.3.0",
3737
"@typescript-eslint/parser": "^5.3.0",
3838
"chalk": "^4.1.2",
@@ -45,20 +45,20 @@
4545
"execa": "^5.1.1",
4646
"fs-extra": "^10.0.0",
4747
"jest": "^27.3.1",
48-
"lint-staged": "^11.2.0",
48+
"lint-staged": "^11.2.6",
4949
"minimist": "^1.2.5",
5050
"node-fetch": "^2.6.6",
5151
"npm-run-all": "^4.1.5",
5252
"playwright-chromium": "^1.16.3",
5353
"prettier": "2.4.1",
54-
"prompts": "^2.4.1",
54+
"prompts": "^2.4.2",
5555
"rimraf": "^3.0.2",
5656
"rollup": "^2.59.0",
5757
"semver": "^7.3.5",
58-
"sirv": "^1.0.17",
58+
"sirv": "^1.0.18",
5959
"ts-jest": "^27.0.7",
60-
"ts-node": "^10.1.0",
61-
"typescript": "~4.4.3",
60+
"ts-node": "^10.4.0",
61+
"typescript": "~4.4.4",
6262
"vite": "workspace:*",
6363
"vitepress": "^0.20.1",
6464
"yorkie": "^2.0.0"

packages/plugin-vue/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const vueI18nPlugin = {
8383
return
8484
}
8585
if (/\.ya?ml$/.test(id)) {
86-
code = JSON.stringify(require('js-yaml').safeLoad(code.trim()))
86+
code = JSON.stringify(require('js-yaml').load(code.trim()))
8787
}
8888
return `export default Comp => {
8989
Comp.i18n = ${code}

packages/plugin-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"debug": "^4.3.2",
3939
"hash-sum": "^2.0.0",
4040
"rollup": "^2.59.0",
41-
"slash": "^3.0.0",
41+
"slash": "^4.0.0",
4242
"source-map": "^0.6.1",
4343
"vue": "^3.2.21"
4444
}

packages/plugin-vue/src/main.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export async function transformMain(
5353
)
5454

5555
// template
56-
const hasTemplateImport = descriptor.template && !isUseInlineTemplate(descriptor, !devServer)
56+
const hasTemplateImport =
57+
descriptor.template && !isUseInlineTemplate(descriptor, !devServer)
5758

5859
let templateCode = ''
5960
let templateMap: RawSourceMap | undefined

packages/plugin-vue/src/script.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ export function setResolvedScript(
2525
// Check if we can use compile template as inlined render function
2626
// inside <script setup>. This can only be done for build because
2727
// inlined template cannot be individually hot updated.
28-
export function isUseInlineTemplate(descriptor: SFCDescriptor, isProd: boolean): boolean {
29-
return (
30-
isProd &&
31-
!!descriptor.scriptSetup &&
32-
!descriptor.template?.src
33-
)
28+
export function isUseInlineTemplate(
29+
descriptor: SFCDescriptor,
30+
isProd: boolean
31+
): boolean {
32+
return isProd && !!descriptor.scriptSetup && !descriptor.template?.src
3433
}
3534

3635
export function resolveScript(

scripts/jestPerTestSetup.ts

+15-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,21 @@ export function slash(p: string): string {
2222

2323
// injected by the test env
2424
declare global {
25-
// eslint-disable-next-line @typescript-eslint/no-namespace
26-
namespace NodeJS {
27-
interface Global {
28-
page?: Page
29-
viteTestUrl?: string
30-
watcher?: RollupWatcher
31-
beforeAllError: any
32-
}
33-
}
25+
const page: Page | undefined
26+
27+
const browserLogs: string[]
28+
const viteTestUrl: string | undefined
29+
const watcher: RollupWatcher | undefined
30+
let beforeAllError: Error | null // error caught in beforeAll, useful if you want to test error scenarios on build
31+
}
32+
33+
declare const global: {
34+
page?: Page
35+
36+
browserLogs: string[]
37+
viteTestUrl?: string
38+
watcher?: RollupWatcher
39+
beforeAllError: Error | null
3440
}
3541

3642
let server: ViteDevServer | http.Server

0 commit comments

Comments
 (0)