diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 85b1b707..763dfcfc 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -24,14 +24,14 @@ "typescript", // breaking changes - "source-map", - "react-refresh", + "cac", // `cac:v6.7.10+` has breaking changes + "react-router", // `react-router:v6.0.0+` has breaking changes + "react-router-dom", // `react-router-dom:v6.0.0+` has breaking changes + "source-map", // `source-map:v0.7.0+` needs more investigation - // breaks since "3.0.1", needs futher investigate - "postcss-load-config", - - // ESM Only - "strip-ansi", - "periscopic" + // ESM Only => https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm + "node-fetch", + "periscopic", + "strip-ansi" ] } diff --git a/package.json b/package.json index b4c42181..435cedfe 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "@microsoft/api-extractor": "^7.18.19", "@types/fs-extra": "^9.0.13", "@types/jest": "^27.0.2", - "@types/node": "^15.12.2", - "@types/semver": "^7.3.8", + "@types/node": "^16.11.6", + "@types/semver": "^7.3.9", "@typescript-eslint/eslint-plugin": "^5.3.0", "@typescript-eslint/parser": "^5.3.0", "chalk": "^4.1.2", @@ -45,20 +45,20 @@ "execa": "^5.1.1", "fs-extra": "^10.0.0", "jest": "^27.3.1", - "lint-staged": "^11.2.0", + "lint-staged": "^11.2.6", "minimist": "^1.2.5", "node-fetch": "^2.6.6", "npm-run-all": "^4.1.5", "playwright-chromium": "^1.16.3", "prettier": "2.4.1", - "prompts": "^2.4.1", + "prompts": "^2.4.2", "rimraf": "^3.0.2", "rollup": "^2.59.0", "semver": "^7.3.5", - "sirv": "^1.0.17", + "sirv": "^1.0.18", "ts-jest": "^27.0.7", - "ts-node": "^10.1.0", - "typescript": "~4.4.3", + "ts-node": "^10.4.0", + "typescript": "~4.4.4", "vite": "workspace:*", "vitepress": "^0.20.1", "yorkie": "^2.0.0" diff --git a/packages/plugin-vue/README.md b/packages/plugin-vue/README.md index b29039da..96f9cbb1 100644 --- a/packages/plugin-vue/README.md +++ b/packages/plugin-vue/README.md @@ -83,7 +83,7 @@ const vueI18nPlugin = { return } if (/\.ya?ml$/.test(id)) { - code = JSON.stringify(require('js-yaml').safeLoad(code.trim())) + code = JSON.stringify(require('js-yaml').load(code.trim())) } return `export default Comp => { Comp.i18n = ${code} diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index 726b01a1..1be309a3 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -38,7 +38,7 @@ "debug": "^4.3.2", "hash-sum": "^2.0.0", "rollup": "^2.59.0", - "slash": "^3.0.0", + "slash": "^4.0.0", "source-map": "^0.6.1", "vue": "^3.2.21" } diff --git a/packages/plugin-vue/src/main.ts b/packages/plugin-vue/src/main.ts index ef82b3a0..82ccb9ed 100644 --- a/packages/plugin-vue/src/main.ts +++ b/packages/plugin-vue/src/main.ts @@ -53,7 +53,8 @@ export async function transformMain( ) // template - const hasTemplateImport = descriptor.template && !isUseInlineTemplate(descriptor, !devServer) + const hasTemplateImport = + descriptor.template && !isUseInlineTemplate(descriptor, !devServer) let templateCode = '' let templateMap: RawSourceMap | undefined diff --git a/packages/plugin-vue/src/script.ts b/packages/plugin-vue/src/script.ts index f1f1b18f..1302282c 100644 --- a/packages/plugin-vue/src/script.ts +++ b/packages/plugin-vue/src/script.ts @@ -25,12 +25,11 @@ export function setResolvedScript( // Check if we can use compile template as inlined render function // inside