From f40ee7e1de42ac043b8c871089b33f3fa4545d18 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 3 May 2022 01:09:05 +0800 Subject: [PATCH] chore: downgrade happy-dom --- .github/renovate.json5 | 6 +++++- .tazerc.json | 1 + examples/vitesse/src/components.d.ts | 7 +++++-- package.json | 1 + packages/vitest/package.json | 2 +- pnpm-lock.yaml | 21 +++++++++++---------- 6 files changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index ddef3dfc1..337140b6b 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -39,6 +39,10 @@ "ignoreDeps": [ // wait for ecosystem to upgrade to React v18 "@testing-library/react", - "@testing-library/user-event" + "@testing-library/user-event". + // TODO: migrate + "pretty-format", + // TODO: breaking changes + "happy-dom" ] } diff --git a/.tazerc.json b/.tazerc.json index 77ada1c05..b40fd767b 100644 --- a/.tazerc.json +++ b/.tazerc.json @@ -3,6 +3,7 @@ "vue", "esbuild", "puppeteer", + "pretty-format", "vite" ] } diff --git a/examples/vitesse/src/components.d.ts b/examples/vitesse/src/components.d.ts index 98a00b625..d6cf4ad93 100644 --- a/examples/vitesse/src/components.d.ts +++ b/examples/vitesse/src/components.d.ts @@ -1,12 +1,15 @@ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/vue-next/pull/3399 +import '@vue/runtime-core' -declare module 'vue' { +declare module '@vue/runtime-core' { export interface GlobalComponents { Foo: typeof import('./components/Foo.vue')['default'] Hello: typeof import('./components/Hello.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] } } -export { } +export {} diff --git a/package.json b/package.json index 92cafc89f..4d084c519 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "pnpm": { "overrides": { "vite": "^2.9.5", + "happy-dom": "^2.55.0", "vitest": "workspace:*" } }, diff --git a/packages/vitest/package.json b/packages/vitest/package.json index ccc508595..5ead63d25 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -109,7 +109,7 @@ "fast-glob": "^3.2.11", "find-up": "^6.3.0", "flatted": "^3.2.5", - "happy-dom": "^3.1.0", + "happy-dom": "^2.55.0", "jsdom": "^19.0.0", "log-update": "^5.0.1", "magic-string": "^0.26.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 166a1edf4..ce951d8c9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2,6 +2,7 @@ lockfileVersion: 5.4 overrides: vite: ^2.9.5 + happy-dom: ^2.55.0 vitest: workspace:* importers: @@ -143,7 +144,7 @@ importers: examples/lit: specifiers: '@vitest/ui': latest - happy-dom: latest + happy-dom: ^2.55.0 lit: ^2.2.2 vite: ^2.9.5 vitest: workspace:* @@ -151,7 +152,7 @@ importers: lit: 2.2.2 devDependencies: '@vitest/ui': link:../../packages/ui - happy-dom: 3.1.0 + happy-dom: 2.55.0 vite: 2.9.5 vitest: link:../../packages/vitest @@ -215,7 +216,7 @@ importers: '@types/react-test-renderer': ^17.0.2 '@vitejs/plugin-react': 1.3.1 '@vitest/ui': latest - happy-dom: latest + happy-dom: ^2.55.0 jsdom: latest react: ^17.0.2 react-test-renderer: 17.0.2 @@ -227,7 +228,7 @@ importers: '@types/react-test-renderer': 17.0.2 '@vitejs/plugin-react': 1.3.1 '@vitest/ui': link:../../packages/ui - happy-dom: 3.1.0 + happy-dom: 2.55.0 jsdom: 19.0.0 react-test-renderer: 17.0.2_react@17.0.2 vitest: link:../../packages/vitest @@ -470,7 +471,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.1 '@vue/test-utils': ^2.0.0-rc.21 - happy-dom: latest + happy-dom: ^2.55.0 unplugin-auto-import: ^0.7.1 unplugin-vue-components: ^0.19.3 vitest: workspace:* @@ -480,7 +481,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.1_vue@3.2.33 '@vue/test-utils': 2.0.0-rc.21_vue@3.2.33 - happy-dom: 3.1.0 + happy-dom: 2.55.0 unplugin-auto-import: 0.7.1 unplugin-vue-components: 0.19.3_vue@3.2.33 vitest: link:../../packages/vitest @@ -633,7 +634,7 @@ importers: fast-glob: ^3.2.11 find-up: ^6.3.0 flatted: ^3.2.5 - happy-dom: ^3.1.0 + happy-dom: ^2.55.0 jsdom: ^19.0.0 local-pkg: ^0.4.1 log-update: ^5.0.1 @@ -684,7 +685,7 @@ importers: fast-glob: 3.2.11 find-up: 6.3.0 flatted: 3.2.5 - happy-dom: 3.1.0 + happy-dom: 2.55.0 jsdom: 19.0.0 log-update: 5.0.1 magic-string: 0.26.1 @@ -11251,8 +11252,8 @@ packages: uglify-js: 3.15.4 dev: true - /happy-dom/3.1.0: - resolution: {integrity: sha512-BewZQwLdu6JS9HYT7enB2toju80OjSjl44+3HXMB3hT+2skC9Mja+/N/b+SbtnwJCMbQqiZVzy/RXevPPuBIXQ==} + /happy-dom/2.55.0: + resolution: {integrity: sha512-CHDMBRau+l/yKQL+ANmexRAC8FRCuYbXRSpu/GbLVyfqkrlBzV7OSNd5C5HZ+pVFtFv1bFJYC5r+xrqgGQuq5w==} dependencies: css.escape: 1.5.1 he: 1.2.0 -- 2.54.0