Upgrading vitest 0.2 to 0.3
Review needed0.2.8 → 0.3.6New7Changed2Fixed21
2 behavior changes.
- enable tinypool useAtomics in node env.
- use cpu cores more efficently.
No breaking, platform, security or deprecated items in this range.
Installs 49 packages in all (was 53).
Also installs @esbuild/linux-loong64, es-errors, esbuild, esbuild-android-64, esbuild-android-arm64, esbuild-darwin-64, esbuild-darwin-arm64, esbuild-freebsd-64, esbuild-freebsd-arm64, esbuild-linux-32, esbuild-linux-64, esbuild-linux-arm, esbuild-linux-arm64, esbuild-linux-mips64le, esbuild-linux-ppc64le and 15 more.
No longer installs @oxc-project/types, @rolldown/binding-android-arm-eabi, @rolldown/binding-android-arm64, @rolldown/binding-darwin-arm64, @rolldown/binding-darwin-x64, @rolldown/binding-freebsd-x64, @rolldown/binding-linux-arm-gnueabihf, @rolldown/binding-linux-arm64-gnu, @rolldown/binding-linux-arm64-musl, @rolldown/binding-linux-ppc64-gnu, @rolldown/binding-linux-s390x-gnu, @rolldown/binding-linux-x64-gnu, @rolldown/binding-linux-x64-musl, @rolldown/binding-openharmony-arm64, @rolldown/binding-win32-arm64-msvc and 19 more.
Moves vite 8.3.5 → 2.9.18. Your build may pick other versions.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
interface Vi.Assertion<T = any> extends VitestAssertion<Chai.Assertion>, JestAssertion<T> → interface Vi.Assertion<T = any> extends VitestAssertion<Chai.Assertion, T>, JestAssertion<T> - changed:
method Vi.JestAssertion.toBeGreaterThan(num: number): void → method Vi.JestAssertion.toBeGreaterThan(num: number | bigint): void - changed:
method Vi.JestAssertion.toBeGreaterThanOrEqual(num: number): void → method Vi.JestAssertion.toBeGreaterThanOrEqual(num: number | bigint): void - changed:
method Vi.JestAssertion.toBeLessThan(num: number): void → method Vi.JestAssertion.toBeLessThan(num: number | bigint): void - changed:
method Vi.JestAssertion.toBeLessThanOrEqual(num: number): void → method Vi.JestAssertion.toBeLessThanOrEqual(num: number | bigint): void - changed:
type Vi.VitestAssertion<A> = { [K in keyof A]: A[K] extends Chai.Assertion ? Assertion<any> : A[K] extends (...args: any[]) => any ? A[K] : VitestAssertion<A[K]> } → type Vi.VitestAssertion<A, T> = { [K in keyof A]: A[K] extends Chai.Assertion ? Assertion<T> : A[K] extends (...args: any[]) => any ? A[K] : VitestAssertion<A[K], T> } & ((type: string, messa… - added:
method Vi.JestAssertion.toBeTypeOf(expected: 'bigint' | 'boolean' | 'function' | 'number' | 'object' | 'string' | 'symbol' | 'undefined'): void
- removed:
property UserConfig.run?: boolean - changed:
interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'coverage' | 'testNamePattern' | 'related' | 'api'> → interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'coverage' | 'testNamePattern' | 'related' | 'api' | 'reporters'> - changed:
type EachFunction = <T>(cases: T[]) => (name: string, fn: (...args: T extends any[] ? T : [T]) => void) => void → type EachFunction = <T>(cases: T[] | readonly T[]) => (name: string, fn: (...args: T extends any[] | readonly any[] ? MutableArray<T> : [T]) => void) => void - added:
interface WorkerGlobalState - added:
property ResolvedConfig.reporters: (Reporter | BuiltinReporters)[] - added:
property WorkerGlobalState.config: ResolvedConfig - added:
property WorkerGlobalState.ctx: WorkerContext - added:
property WorkerGlobalState.current?: Test - added:
property WorkerGlobalState.filepath?: string - added:
property WorkerGlobalState.moduleCache: Map<string, ModuleCache> - added:
property WorkerGlobalState.rpc: BirpcReturn<WorkerRPC> - added:
type MutableArray<T extends readonly any[]> = { -readonly [k in keyof T]: T[k] }
- added:
const configDefaults: UserConfig - added:
function defineConfig(config: UserConfig$1): UserConfig$1