Upgrading vite 0.10 to 0.11
Unknown0.10.3 → 0.11.5
UnknownUpgrade verdict
DepDelta hasn't looked for this range's notes in its newest sources yet, so breaking changes can't be ruled out.
In plain terms
- DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
- DepDelta found no commit log for them either.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
Adds esbuild ^0.2.6, open ^7.0.3, ora ^4.0.4.
Drops @rollup/plugin-alias, @rollup/plugin-replace.
Installs 493 packages in all (was 468).
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
function build(options?: BuildOptions): Promise<BuildResult> - removed:
function ssrBuild(options?: BuildOptions): Promise<BuildResult> - removed:
interface BuildOptions - removed:
interface BuildResult - removed:
property BuildOptions.assetsDir?: string - removed:
property BuildOptions.assetsInlineLimit?: number - removed:
property BuildOptions.base?: string - removed:
property BuildOptions.cdn?: boolean - removed:
property BuildOptions.emitAssets?: boolean - removed:
property BuildOptions.emitIndex?: boolean - removed:
property BuildOptions.minify?: boolean - removed:
property BuildOptions.outDir?: string - removed:
property BuildOptions.resolvers?: Resolver[] - removed:
property BuildOptions.rollupInputOptions?: InputOptions - removed:
property BuildOptions.rollupOutputOptions?: OutputOptions - removed:
property BuildOptions.rollupPluginVueOptions?: Partial<Options> - removed:
property BuildOptions.root?: string - removed:
property BuildOptions.silent?: boolean - removed:
property BuildOptions.srcRoots?: string[] - removed:
property BuildOptions.write?: boolean - removed:
property BuildResult.assets: RollupOutput['output'] - removed:
property BuildResult.html: string
- added:
const createBuildAssetPlugin: (publicBase: string, assetsDir: string, inlineLimit: number) => Plugin - added:
const registerAssets: (assets: Map<string, string>, bundle: OutputBundle) => void - added:
const resolveAsset: (id: string, publicBase: string, assetsDir: string, inlineLimit: number) => Promise<AssetCacheEntry>
- added:
const createBuildCssPlugin: (root: string, publicBase: string, assetsDir: string, cssFileName: string, minify: boolean, inlineLimit: number) => Plugin
- added:
const createEsbuildPlugin: (minify: boolean, jsx: { factory?: string | undefined; fragment?: string | undefined }) => Promise<Plugin>
- added:
const createBuildHtmlPlugin: (indexPath: string | null, publicBasePath: string, assetsDir: string, inlineLimit: number, resolver: InternalResolver) => Promise<{ renderIndex: (...args: any[…
- added:
const createReplacePlugin: (replacements: Record<string, string>, sourcemap: boolean) => Plugin
- added:
const createBuildResolvePlugin: (root: string, cdn: boolean, srcRoots: string[], resolver: InternalResolver) => Plugin
- added:
function build(options?: BuildOptions): Promise<BuildResult> - added:
function ssrBuild(options?: BuildOptions): Promise<BuildResult> - added:
interface BuildOptions - added:
interface BuildResult - added:
property BuildOptions.assetsDir?: string - added:
property BuildOptions.assetsInlineLimit?: number - added:
property BuildOptions.base?: string - added:
property BuildOptions.cdn?: boolean - added:
property BuildOptions.emitAssets?: boolean - added:
property BuildOptions.emitIndex?: boolean - added:
property BuildOptions.jsx?: { factory?: string; fragment?: string } - added:
property BuildOptions.minify?: boolean | 'terser' | 'esbuild' - added:
property BuildOptions.outDir?: string - added:
property BuildOptions.resolvers?: Resolver[] - added:
property BuildOptions.rollupInputOptions?: InputOptions - added:
property BuildOptions.rollupOutputOptions?: OutputOptions - added:
property BuildOptions.rollupPluginVueOptions?: Partial<Options> - added:
property BuildOptions.root?: string - added:
property BuildOptions.silent?: boolean - added:
property BuildOptions.sourcemap?: boolean - added:
property BuildOptions.srcRoots?: string[] - added:
property BuildOptions.write?: boolean - added:
property BuildResult.assets: RollupOutput['output'] - added:
property BuildResult.html: string
- removed:
const createBuildAssetPlugin: (publicBase: string, assetsDir: string, inlineLimit: number) => Plugin - removed:
const registerAssets: (assets: Map<string, string>, bundle: OutputBundle) => void - removed:
const resolveAsset: (id: string, publicBase: string, assetsDir: string, inlineLimit: number) => Promise<AssetCacheEntry>
- removed:
const createBuildCssPlugin: (root: string, publicBase: string, assetsDir: string, cssFileName: string, minify: boolean, inlineLimit: number) => Plugin
- removed:
const createBuildHtmlPlugin: (indexPath: string | null, publicBasePath: string, assetsDir: string, inlineLimit: number, resolver: InternalResolver) => Promise<{ renderIndex: (...args: any[…
- removed:
const createBuildResolvePlugin: (root: string, cdn: boolean, srcRoots: string[], resolver: InternalResolver) => Plugin
- removed:
function loadPostcssConfig(root: string): Promise<Result | null>
- added:
const stopService: () => void - added:
const tjsxRE: RegExp - added:
const transform: (code: string, file: string, options?: TransformOptions) => Promise<{ code: string; map: string | undefined }>
- added:
const supportedExts: string[]
- removed:
export { Resolver } - removed:
function createServer(config?: ServerConfig): Server - removed:
interface PluginContext - removed:
interface ServerConfig - removed:
property PluginContext.app: Koa - removed:
property PluginContext.resolver: InternalResolver - removed:
property PluginContext.root: string - removed:
property PluginContext.server: Server - removed:
property PluginContext.watcher: HMRWatcher - removed:
property ServerConfig.plugins?: Plugin[] - removed:
property ServerConfig.resolvers?: Resolver[] - removed:
property ServerConfig.root?: string - removed:
type Plugin = (ctx: PluginContext) => void
- added:
export { Resolver } - added:
function createServer(config?: ServerConfig): Server - added:
interface PluginContext - added:
interface ServerConfig - added:
property PluginContext.app: Koa - added:
property PluginContext.jsxConfig: { jsxFactory: string | undefined; jsxFragment: string | undefined } - added:
property PluginContext.resolver: InternalResolver - added:
property PluginContext.root: string - added:
property PluginContext.server: Server - added:
property PluginContext.watcher: HMRWatcher - added:
property ServerConfig.jsx?: { factory?: string; fragment?: string } - added:
property ServerConfig.plugins?: Plugin[] - added:
property ServerConfig.resolvers?: Resolver[] - added:
property ServerConfig.root?: string - added:
type Plugin = (ctx: PluginContext) => void
- added:
const cssPlugin: Plugin
- added:
const esbuildPlugin: Plugin
- added:
const debugHmr: any - added:
const hmrAcceptanceMap: HMRStateMap - added:
const hmrClientFilePath: string - added:
const hmrClientId = '@hmr' - added:
const hmrClientPublicPath: string - added:
const hmrPlugin: Plugin - added:
const importeeMap: HMRStateMap - added:
const importerMap: HMRStateMap - added:
function ensureMapEntry(map: HMRStateMap, key: string): Set<string> - added:
function rewriteFileWithHMR(source: string, importer: string, s: MagicString): void - added:
type HMRWatcher = FSWatcher & { handleVueReload: (file: string, timestamp?: number, content?: string) => void; handleJSReload: (file: string, timestamp?: number) => void; send:…
- added:
const jsonPlugin: Plugin
- added:
const fileToRequestMap: Map<any, any> - added:
const idToFileMap: Map<any, any> - added:
const moduleRE: RegExp - added:
const moduleResolvePlugin: Plugin - added:
function resolveWebModule(root: string, id: string): Promise<string | undefined>
- added:
const moduleRewritePlugin: Plugin
- added:
const serveStaticPlugin: Plugin
- added:
const styleSrcImportMap: Map<any, any> - added:
const vueCache: LRUCache<string, CacheEntry> - added:
const vuePlugin: Plugin - added:
function parseSFC(root: string, filename: string, content?: string | Buffer): Promise<SFCDescriptor | undefined>
- removed:
const cssPlugin: Plugin
- removed:
const debugHmr: any - removed:
const hmrAcceptanceMap: HMRStateMap - removed:
const hmrClientFilePath: string - removed:
const hmrClientId = '@hmr' - removed:
const hmrClientPublicPath: string - removed:
const hmrPlugin: Plugin - removed:
const importeeMap: HMRStateMap - removed:
const importerMap: HMRStateMap - removed:
function ensureMapEntry(map: HMRStateMap, key: string): Set<string> - removed:
function rewriteFileWithHMR(source: string, importer: string, s: MagicString): void - removed:
type HMRWatcher = FSWatcher & { handleVueReload: (file: string, timestamp?: number, content?: string) => void; handleJSReload: (file: string, timestamp?: number) => void; send:…
- removed:
const jsonPlugin: Plugin
- removed:
const moduleResolvePlugin: Plugin
- removed:
const moduleRewritePlugin: Plugin
- removed:
const serveStaticPlugin: Plugin
- removed:
const vueCache: LRUCache<string, CacheEntry> - removed:
const vuePlugin: Plugin - removed:
function parseSFC(root: string, filename: string, content?: string | Buffer): Promise<SFCDescriptor | undefined>
- removed:
const cleanUrl: (url: string) => string - removed:
const hashRE: RegExp - removed:
const isExternalUrl: (url: string) => boolean - removed:
const isImportRequest: (ctx: Context) => boolean - removed:
const isStaticAsset: (file: string) => boolean - removed:
const queryRE: RegExp - removed:
function cachedRead(ctx: Context | null, file: string): Promise<string> - removed:
function readBody(stream: Readable | Buffer | string | null): Promise<string | null>
- added:
function cachedRead(ctx: Context | null, file: string): Promise<string> - added:
function readBody(stream: Readable | Buffer | string | null): Promise<string | null>
- added:
export * from './fsUtils' - added:
export * from './pathUtils' - added:
export * from './resolvePostCssConfig' - added:
export * from './resolveVue' - added:
export * from './transformUtils'
- added:
function openBrowser(url: string): boolean
- added:
const cleanUrl: (url: string) => string - added:
const hashRE: RegExp - added:
const isExternalUrl: (url: string) => boolean - added:
const isImportRequest: (ctx: Context) => boolean - added:
const isStaticAsset: (file: string) => boolean - added:
const queryRE: RegExp - added:
const resolveRelativeRequest: (importer: string, id: string) => { url: string; pathname: string; query: string }
- added:
function loadPostcssConfig(root: string): Promise<Result | null>
- added:
function resolveCompiler(cwd: string): typeof sfcCompiler - added:
function resolveVue(root: string): ResolvedVuePaths
- added:
function asyncReplace(input: string, re: RegExp, replacer: (match: RegExpExecArray) => string | Promise<string>): Promise<string> - added:
function genSourceMapString(map: object | string | undefined): string
- removed:
function resolveCompiler(cwd: string): typeof sfcCompiler - removed:
function resolveVue(root: string): ResolvedVuePaths