Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support Vite 4 #2470

Merged
merged 7 commits into from Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
92 changes: 74 additions & 18 deletions docs/.vitepress/contributor-names.json
Expand Up @@ -5,43 +5,57 @@
"userquin",
"Demivan",
"Aslemammad",
"poyoho",
"DerYeger",
"AriPerkkio",
"edimitchel",
"togami2864",
"dammy001",
"cexbrayat",
"Saul-Mirone",
"btea",
"poyoho",
"AriPerkkio",
"Saul-Mirone",
"nieyuyao",
"wtchnm",
"11joselu",
"nieyuyao",
"sapphi-red",
"dominikg",
"simon-abbott",
"tony-go",
"zxch3n",
"mitchelvanbever",
"stygian-desolator",
"ChpShy",
"bartoszgolebiowski",
"horacioh",
"JessicaSachs",
"pd4d10",
"narutosstudent",
"azaleta",
"ouduidui",
"haikyuu",
"aleclarson",
"kalvenschraut",
"leonardssh",
"sachinraja",
"Shinigami92",
"Tanimodori",
"pastelmind",
"alexzhang1030",
"jereklas",
"webfansplz",
"BluesYoung-web",
"antoinerey",
"sudongyuer",
"cawa-93",
"bluwy",
"Monkatraz",
"ChrisTowles",
"danez",
"Dragomir-Ivanov",
"EvHaus",
"filiptammergard",
"Akryum",
"g4rry420",
"hannoeru",
"IanVS",
"JakeGinnivan",
Expand All @@ -50,129 +64,169 @@
"JoostK",
"LoTwT",
"ciddan",
"nickmccurdy",
"eroblaze",
"pionxzh",
"PuruVJ",
"robcaldecott",
"sabertazimi",
"TheJaredWilcurt",
"tmkx",
"TrickyPi",
"vasilii-kovalev",
"irvile",
"ocavue",
"scarf005",
"skarab42",
"webfansplz",
"sun0day",
"murongg",
"pikax",
"IgnusG",
"jfgreffier",
"katranci",
"atk",
"benjakugler96",
"bluwy",
"bfanger",
"CyriacBr",
"calebwaldner",
"craciuncezar",
"ChrisTowles",
"christianhg",
"screendriver",
"cpojer",
"Cphayim",
"luckylooke",
"Xwil",
"freezepluto",
"DannyFeliz",
"byr-gdp",
"david-crespo",
"voraciousdev",
"Dragomir-Ivanov",
"voracious",
"euaaaio",
"elliotwestlake",
"innocenzi",
"ericjgagnon",
"erik-perri",
"evandroguedes",
"cyco130",
"filiptammergard",
"GabrielAlfs",
"GeopJr",
"ghiscoding",
"gleysonabreu",
"gdorsi",
"guoyunhe",
"bissolli",
"hamirmahal",
"sodatea",
"hubertstrk",
"hugoattal",
"nvh95",
"cogor",
"maIIady",
"Lounane",
"jamacku",
"nyarthan",
"jhuleatt",
"stormwarning",
"Jastor11",
"ydcjeff",
"okxiaoliang4",
"WonderPanda",
"joeyhuang0235",
"wuzzeb",
"IgnusG",
"dotnetCarpenter",
"FlippingBinary",
"Jordan-Hall",
"joshnuss",
"jgoux",
"zephraph",
"kainstar",
"kazuma1989",
"oekazuma",
"gaokun",
"KentoMoriwaki",
"kidonng",
"kkuegler",
"krishnan-chandra",
"linux-china",
"Lioness100",
"localhousee",
"luismartinezs",
"lukashass",
"brzezinskimarcin",
"marcomuser",
"marshallswain",
"silvenon",
"MPeloquin",
"mikearnaldi",
"lampewebdev",
"mcous",
"mikekidder",
"mikestopcontinues",
"mikewheaton",
"NMinhNguyen",
"RedJanvier",
"okikio",
"freshollie",
"OrestHk",
"Orleydovsky",
"pengYYYYY",
"patrickelectric",
"yingpengsha",
"Peeterush",
"rafedramzi",
"believer",
"rmehner",
"rowanwins",
"pandyarudra",
"ecstrema",
"ST-DDT",
"Sajad-Sharhani",
"sakit0",
"sanjaiyan-dev",
"sebastinez",
"ShivamJoker",
"shiwano",
"simon-abbott",
"sidharthv96",
"smcenlly",
"NoriSte",
"TadejPolajnar",
"cyamy",
"Tanimodori",
"TommyDew42",
"tony19",
"veritem",
"victortolbert",
"Baael",
"ycmjason",
"promer94",
"ysaskia",
"kingyue737",
"Talljack",
"iamyuu",
"zrev2220",
"zachOS-tech",
"zingxy",
"await-ovo",
"c0dedance",
"canyonwan",
"ChpShy",
"eleith",
"MatthewZito",
"exbotanical",
"gtarsia",
"yamazaki-sensei",
"hugo-t-b",
"irvile",
"jamsch",
"jfgreffier",
"jfrs",
"josefaidt",
"jp-liu",
"lexmin0412",
"lxy-yz",
"remcovaes",
"silverwind",
"SnowingFox",
"so11y",
"steve-py96",
"vaakian",
"wael-fadlallah",
"warmthdawn",
"wheatjs",
"wjx0820",
"yaegassy",
Expand All @@ -181,5 +235,7 @@
"zthxxx",
"artplan1",
"shiradofu",
"sxzz"
"sxzz",
"zhangzhonghe",
"ahaoboy"
]
6 changes: 3 additions & 3 deletions docs/package.json
Expand Up @@ -24,9 +24,9 @@
"https-localhost": "^4.7.1",
"unocss": "^0.46.0",
"unplugin-vue-components": "^0.22.9",
"vite": "^3.2.3",
"vite-plugin-pwa": "0.13.1",
"vitepress": "1.0.0-alpha.27",
"vite": "^4.0.0",
"vite-plugin-pwa": "0.13.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pwa plugin not yet ready for Vite 4: I've sent rn the PR to the repo, maybe tmr I can release it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs appear to work fine anyway. We can merge this now, and update plugin later.

"vitepress": "1.0.0-alpha.30",
"workbox-window": "^6.5.4"
}
}
1 change: 1 addition & 0 deletions examples/README.md
Expand Up @@ -3,6 +3,7 @@
| `basic` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/basic) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/basic?initialPath=__vitest__) |
| `fastify` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/fastify) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/fastify?initialPath=__vitest__) |
| `graphql` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/graphql) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/graphql?initialPath=__vitest__) |
| `image-snapshot` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/image-snapshot) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/image-snapshot?initialPath=__vitest__) |
| `lit` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/lit) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/lit?initialPath=__vitest__) |
| `mocks` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/mocks) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/mocks?initialPath=__vitest__) |
| `nextjs` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/nextjs) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/nextjs?initialPath=__vitest__) |
Expand Down
1 change: 0 additions & 1 deletion examples/solid/components/Hello.jsx
@@ -1,4 +1,3 @@
/* eslint-disable react/prop-types */
import { createSignal } from 'solid-js'

export const Hello = (props) => {
Expand Down
6 changes: 4 additions & 2 deletions examples/solid/package.json
Expand Up @@ -9,9 +9,11 @@
"solid-js": "^1.4.3"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.4",
"jsdom": "latest",
"solid-testing-library": "0.3.0",
"vite-plugin-solid": "^2.2.6",
"solid-testing-library": "^0.5.0",
"vite": "latest",
"vite-plugin-solid": "^2.5.0",
"vitest": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/solid/test/Hello.test.jsx
Expand Up @@ -9,7 +9,7 @@ describe('<Hello />', () => {
unmount()
})

test('updates', async() => {
test('updates', async () => {
const { container, unmount, queryByText } = render(() => <Hello count={4} />)
const button = queryByText('x1')
const buttonClicked = new Promise((resolve) => {
Expand Down
3 changes: 0 additions & 3 deletions examples/solid/vite.config.mjs
Expand Up @@ -10,9 +10,6 @@ export default defineConfig({
transformMode: {
web: [/.[jt]sx?/],
},
deps: {
registerNodeLoader: true,
},
threads: false,
isolate: false,
},
Expand Down
6 changes: 3 additions & 3 deletions examples/svelte/package.json
Expand Up @@ -8,11 +8,11 @@
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"@testing-library/svelte": "^3.1.3",
"@sveltejs/vite-plugin-svelte": "^2.0.0",
"@testing-library/svelte": "^3.2.2",
"@vitest/ui": "latest",
"jsdom": "latest",
"svelte": "^3.48.0",
"svelte": "latest",
"vite": "latest",
"vitest": "latest"
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -47,7 +47,7 @@
"@vitest/ui": "workspace:*",
"bumpp": "^8.2.1",
"c8": "^7.12.0",
"esbuild": "^0.15.13",
"esbuild": "^0.16.3",
"eslint": "^8.27.0",
"esno": "^0.16.3",
"fast-glob": "^3.2.12",
Expand All @@ -73,8 +73,8 @@
},
"pnpm": {
"overrides": {
"esbuild": "^0.14.47",
"vite": "^3.2.3",
"esbuild": "^0.16.3",
"vite": "^4.0.0",
"vitest": "workspace:*",
"rollup": "^2.79.1"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/package.json
Expand Up @@ -39,14 +39,14 @@
},
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@testing-library/cypress": "^8.0.3",
"@testing-library/cypress": "^8.0.7",
"@types/codemirror": "^5.60.5",
"@types/d3-force": "^3.0.3",
"@types/d3-selection": "^3.0.3",
"@types/ws": "^8.5.3",
"@unocss/reset": "^0.46.3",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.1",
"@unocss/reset": "^0.47.5",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vitest/ws-client": "workspace:*",
"@vueuse/core": "^9.4.0",
"ansi-to-html": "^0.7.2",
Expand All @@ -64,7 +64,7 @@
"unocss": "^0.46.3",
"unplugin-auto-import": "^0.11.4",
"unplugin-vue-components": "^0.22.9",
"vite": "^3.2.3",
"vite": "^4.0.0",
"vite-plugin-pages": "^0.27.1",
"vue": "^3.2.41",
"vue-router": "^4.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-node/package.json
Expand Up @@ -80,7 +80,7 @@
"pathe": "^0.2.0",
"source-map": "^0.6.1",
"source-map-support": "^0.5.21",
"vite": "^3.0.0"
sheremet-va marked this conversation as resolved.
Show resolved Hide resolved
"vite": "^3.0.0 || ^4.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.7",
Expand Down