Skip to content

Commit

Permalink
chore: update packages (#4470)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 10, 2023
1 parent 40e9fd7 commit b28b19e
Show file tree
Hide file tree
Showing 25 changed files with 640 additions and 1,429 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-and-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
uses: pnpm/action-setup@v2

- name: Set node version to ${{ inputs.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

Expand Down
4 changes: 3 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"vite",
// we patch these packages
"@types/chai",
"@sinonjs/fake-timers"
"@sinonjs/fake-timers",
// TODO: update when chai is updated to 5.0
"loupe"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: pnpm/action-setup@v2

- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: pnpm

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ecosystem-ci-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
repo: pr.head.repo.full_name
}
- id: generate-token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_ID }}
installation_retrieval_payload: '${{ github.repository_owner }}/vitest-ecosystem-ci'
private_key: ${{ secrets.ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY }}
repository: '${{ github.repository_owner }}/vitest-ecosystem-ci'
- uses: actions/github-script@v6
id: trigger
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x

Expand Down
13 changes: 9 additions & 4 deletions docs/.vitepress/contributor-names.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"AriPerkkio",
"patak-dev",
"userquin",
"Dunqing",
"Demivan",
"Aslemammad",
"Dunqing",
"btea",
"poyoho",
"DerYeger",
Expand Down Expand Up @@ -36,17 +36,18 @@
"danez",
"horacioh",
"JessicaSachs",
"marcelobotega",
"pd4d10",
"narutosstudent",
"trivikr",
"azaleta",
"dsyddall",
"haikyuu",
"aleclarson",
"ouduidui",
"ghiscoding",
"kalvenschraut",
"LoTwT",
"marcelobotega",
"leonardssh",
"nickmccurdy",
"sachinraja",
Expand All @@ -64,7 +65,9 @@
"hannoeru",
"jgoux",
"thebanjomatic",
"adriencaccia",
"cawa-93",
"allisons11",
"anthonyblond",
"azrikahar",
"benmccann",
Expand All @@ -77,6 +80,7 @@
"Akryum",
"hamirmahal",
"sodatea",
"hi-ogawa",
"IanVS",
"InfiniteXyy",
"JakeGinnivan",
Expand Down Expand Up @@ -119,7 +123,6 @@
"atk",
"Codex-",
"abereghici",
"allisons11",
"aktyw",
"datsenkoboos",
"ArtyMaury",
Expand Down Expand Up @@ -185,7 +188,7 @@
"cometkim",
"IKoshelev",
"cogor",
"maIIady",
"Ilanaya",
"cliarena",
"beckjake",
"jcbhmr",
Expand Down Expand Up @@ -228,6 +231,7 @@
"luismartinezs",
"lukashass",
"lyx-jay",
"macklinu",
"malkiii",
"brzezinskimarcin",
"marcomuser",
Expand Down Expand Up @@ -342,6 +346,7 @@
"jonathan-graf",
"josefaidt",
"jp-liu",
"kare-rentelligent",
"lexmin0412",
"lxy-yz",
"mzanelee",
Expand Down
5 changes: 2 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"serve": "vitepress serve",
"preview-https": "pnpm run build && serve .vitepress/dist",
"preview-https-no-prefetch": "pnpm run build-no-prefetch && serve .vitepress/dist",
"prefetch": "esno .vitepress/scripts/fetch-avatars.ts",
"prefetch": "tsx .vitepress/scripts/fetch-avatars.ts",
"generate-pwa-icons": "pwa-assets-generator"
},
"dependencies": {
"@vueuse/core": "^10.5.0",
"@vueuse/core": "^10.6.0",
"vue": "latest"
},
"devDependencies": {
Expand All @@ -23,7 +23,6 @@
"@vite-pwa/assets-generator": "^0.0.10",
"@vite-pwa/vitepress": "^0.2.3",
"@vitejs/plugin-vue": "latest",
"esno": "^0.17.0",
"fast-glob": "^3.3.2",
"https-localhost": "^4.7.1",
"unocss": "^0.53.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"jsdom": "latest",
"vite": "latest",
"vitest": "latest",
"webdriverio": "^8.21.0"
"webdriverio": "^8.21.1"
},
"stackblitz": {
"startCommand": "npm run test:ui"
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "1.0.0-beta.4",
"private": true,
"packageManager": "pnpm@8.9.2",
"packageManager": "pnpm@8.10.2",
"description": "Next generation testing framework powered by Vite",
"engines": {
"node": "^18.0.0 || >=20.0.0"
Expand All @@ -17,8 +17,8 @@
"docs:serve": "pnpm -C docs run serve",
"docs:https": "pnpm -C docs run preview-https",
"docs:https-no-prefetch": "pnpm -C docs run preview-https-no-prefetch",
"docs:examples": "esno scripts/update-examples.ts",
"docs:contributors": "esno scripts/update-contributors.ts",
"docs:examples": "tsx scripts/update-examples.ts",
"docs:contributors": "tsx scripts/update-contributors.ts",
"lint": "eslint --cache .",
"lint:fix": "nr lint --fix",
"release": "bumpp package.json packages/*/package.json --commit --push --tag && git update-ref refs/heads/release refs/heads/main && git push origin release && pnpm -r publish --access public",
Expand All @@ -43,27 +43,27 @@
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/node": "^18.16.19",
"@types/ws": "^8.5.5",
"@types/node": "^18.18.9",
"@types/ws": "^8.5.9",
"@vitest/browser": "workspace:*",
"@vitest/coverage-istanbul": "workspace:*",
"@vitest/coverage-v8": "workspace:*",
"@vitest/ui": "workspace:*",
"bumpp": "^9.1.1",
"esbuild": "^0.18.11",
"bumpp": "^9.2.0",
"esbuild": "^0.19.5",
"eslint": "^8.44.0",
"esno": "^0.16.3",
"fast-glob": "^3.3.0",
"lint-staged": "^13.2.3",
"lint-staged": "^15.0.2",
"magic-string": "^0.30.5",
"npm-run-all": "^4.1.5",
"pathe": "^1.1.1",
"rimraf": "^5.0.5",
"rollup": "^4.1.4",
"rollup": "^4.3.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.0",
"rollup-plugin-license": "^3.2.0",
"simple-git-hooks": "^2.8.1",
"simple-git-hooks": "^2.9.0",
"tsx": "^4.1.0",
"typescript": "^5.1.6",
"vite": "^5.0.0-beta.15",
"vitest": "workspace:*"
Expand Down
6 changes: 3 additions & 3 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@
},
"devDependencies": {
"@types/estree": "^1.0.5",
"@types/ws": "^8.5.5",
"@types/ws": "^8.5.9",
"@vitest/runner": "workspace:*",
"@vitest/ui": "workspace:*",
"@vitest/ws-client": "workspace:*",
"@wdio/protocols": "^8.18.0",
"periscopic": "^3.1.0",
"periscopic": "^4.0.2",
"playwright": "^1.39.0",
"playwright-core": "^1.39.0",
"safaridriver": "^0.1.0",
"vitest": "workspace:*",
"webdriverio": "^8.20.0"
"webdriverio": "^8.21.1"
}
}
6 changes: 0 additions & 6 deletions packages/browser/src/node/providers/playwright.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Browser, LaunchOptions, Page } from 'playwright'
import type { BrowserProvider, BrowserProviderInitializationOptions, WorkspaceProject } from 'vitest/node'
import { ensurePackageInstalled } from 'vitest/node'

type Awaitable<T> = T | PromiseLike<T>

Expand Down Expand Up @@ -32,11 +31,6 @@ export class PlaywrightBrowserProvider implements BrowserProvider {
this.ctx = ctx
this.browser = browser
this.options = options as any

const root = this.ctx.config.root

if (!await ensurePackageInstalled('playwright', root))
throw new Error('Cannot find "playwright" package. Please install it manually.')
}

private async openBrowserPage() {
Expand Down
13 changes: 2 additions & 11 deletions packages/browser/src/node/providers/webdriver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { BrowserProvider, BrowserProviderInitializationOptions, WorkspaceProject } from 'vitest/node'
import { ensurePackageInstalled } from 'vitest/node'
import type { Browser, RemoteOptions } from 'webdriverio'
import type { RemoteOptions } from 'webdriverio'

type Awaitable<T> = T | PromiseLike<T>

Expand All @@ -14,7 +13,7 @@ interface WebdriverProviderOptions extends BrowserProviderInitializationOptions
export class WebdriverBrowserProvider implements BrowserProvider {
public name = 'webdriverio'

private cachedBrowser: Browser | null = null
private cachedBrowser: WebdriverIO.Browser | null = null
private stopSafari: () => void = () => {}
private browser!: WebdriverBrowser
private ctx!: WorkspaceProject
Expand All @@ -29,14 +28,6 @@ export class WebdriverBrowserProvider implements BrowserProvider {
this.ctx = ctx
this.browser = browser
this.options = options as RemoteOptions

const root = this.ctx.config.root

if (!await ensurePackageInstalled('webdriverio', root))
throw new Error('Cannot find "webdriverio" package. Please install it manually.')

if (browser === 'safari' && !await ensurePackageInstalled('safaridriver', root))
throw new Error('Cannot find "safaridriver" package. Please install it manually.')
}

async openBrowser() {
Expand Down
2 changes: 1 addition & 1 deletion packages/coverage-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"istanbul-reports": "^3.1.6",
"magic-string": "^0.30.5",
"picocolors": "^1.0.0",
"std-env": "^3.3.3",
"std-env": "^3.4.3",
"test-exclude": "^6.0.0",
"v8-to-istanbul": "^9.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@vitest/utils": "workspace:*",
"p-limit": "^4.0.0",
"p-limit": "^5.0.0",
"pathe": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion packages/snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"magic-string": "^0.30.5",
"pathe": "^1.1.1",
"pretty-format": "^29.5.0"
"pretty-format": "^29.7.0"
},
"devDependencies": {
"@types/natural-compare": "^1.4.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/client/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ declare global {
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const initializeNavigation: typeof import('./composables/navigation')['initializeNavigation']
const inject: typeof import('vue')['inject']
const injectLocal: typeof import('@vueuse/core')['injectLocal']
const isDark: typeof import('./composables/dark')['isDark']
const isDefined: typeof import('@vueuse/core')['isDefined']
const isProxy: typeof import('vue')['isProxy']
Expand Down Expand Up @@ -91,6 +92,7 @@ declare global {
const params: typeof import('./composables/params')['params']
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
const provide: typeof import('vue')['provide']
const provideLocal: typeof import('@vueuse/core')['provideLocal']
const reactify: typeof import('@vueuse/core')['reactify']
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
const reactive: typeof import('vue')['reactive']
Expand Down Expand Up @@ -167,6 +169,7 @@ declare global {
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
const useCached: typeof import('@vueuse/core')['useCached']
const useClipboard: typeof import('@vueuse/core')['useClipboard']
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
const useCloned: typeof import('@vueuse/core')['useCloned']
const useCodeMirror: typeof import('./composables/codemirror')['useCodeMirror']
const useColorMode: typeof import('@vueuse/core')['useColorMode']
Expand Down
12 changes: 6 additions & 6 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,25 @@
"sirv": "^2.0.3"
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"@faker-js/faker": "^8.2.0",
"@iconify-json/logos": "^1.1.37",
"@testing-library/cypress": "^9.0.0",
"@testing-library/cypress": "^10.0.1",
"@types/codemirror": "^5.60.13",
"@types/d3-force": "^3.0.9",
"@types/d3-selection": "^3.0.10",
"@types/ws": "^8.5.5",
"@types/ws": "^8.5.9",
"@unocss/reset": "^0.57.3",
"@vitejs/plugin-vue": "^4.4.1",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vitest/runner": "workspace:*",
"@vitest/ws-client": "workspace:*",
"@vueuse/core": "^10.2.1",
"@vueuse/core": "^10.6.0",
"ansi-to-html": "^0.7.2",
"birpc": "0.2.14",
"codemirror": "^5.65.15",
"codemirror-theme-vars": "^0.1.2",
"cypress": "^12.16.0",
"d3-graph-controller": "^2.6.2",
"cypress": "^13.5.0",
"d3-graph-controller": "^3.0.1",
"floating-vue": "^2.0.0-y.0",
"splitpanes": "^3.1.5",
"unocss": "^0.57.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
"prepublishOnly": "pnpm build"
},
"dependencies": {
"diff-sequences": "^29.4.3",
"diff-sequences": "^29.6.3",
"loupe": "^2.3.7",
"pretty-format": "^29.5.0"
"pretty-format": "^29.7.0"
},
"devDependencies": {
"@jridgewell/trace-mapping": "^0.3.18"
"@jridgewell/trace-mapping": "^0.3.20"
}
}
2 changes: 1 addition & 1 deletion packages/vite-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"vite": "^5.0.0-beta.15 || ^5.0.0"
},
"devDependencies": {
"@jridgewell/trace-mapping": "^0.3.18",
"@jridgewell/trace-mapping": "^0.3.20",
"@types/debug": "^4.1.12"
}
}

0 comments on commit b28b19e

Please sign in to comment.