Upgrading @nuxtjs/color-mode 2 to 3
Unknown2.1.1 → 3.5.2New4Changed2Fixed7Other30
Fetching 27 releases from GitHub…10 / 27
UnknownUpgrade verdict
DepDelta is still reading the notes for 17 of 27 releases, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Adds @nuxt/kit ^3.13.2, pathe ^1.1.2, pkg-types ^1.2.1, semver ^7.6.3.
Drops defu, lodash.template.
Installs 51 packages in all (was 4).
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
const __VLS_directiveBindingRestFields: { instance: null; oldValue: null; modifiers: any; dir: any } - added:
const __VLS_intrinsicElements: __VLS_IntrinsicElements - added:
const __VLS_nativeElements: { a: HTMLAnchorElement; abbr: HTMLElement; address: HTMLElement; area: HTMLAreaElement; article: HTMLElement; aside: HTMLElement; audio: HTMLAudioElement; b: H… - added:
const __VLS_unref: typeof import('vue').unref - added:
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends { $props: infer Props } ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & { __ctx?: { attrs?: any; slots?: K extends { $slots: infer Slots } ? Slots : any; emit?: K extends { $emit: infer Em… - added:
function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any ? T | __VLS_unknownDirective : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']> - added:
function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void - added:
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [] - added:
function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0] - added:
function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>> - added:
function __VLS_getVForSourceType(source: number): [number, number, number][] - added:
function __VLS_getVForSourceType(source: string): [string, number, number][] - added:
function __VLS_getVForSourceType<T extends any[]>(source: T): [item: T[number], key: number, index: number][] - added:
function __VLS_getVForSourceType<T extends number | { [Symbol.iterator](): Iterator<any> }>(source: T): [item: number | (Exclude<T, number> extends { [Symbol.iterator](): Iterator<infer T1> } ? T1 : never), key: number, index: undefined][] - added:
function __VLS_getVForSourceType<T extends { [Symbol.iterator](): Iterator<any> }>(source: T): [item: T extends { [Symbol.iterator](): Iterator<infer T1> } ? T1 : never, key: number, index: undefined][] - added:
function __VLS_getVForSourceType<T>(source: T): [item: T[keyof T], key: keyof T, index: number][] - added:
function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] } - added:
function __VLS_nonNullable<T>(t: T): T extends null | undefined ? never : T - added:
function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S - added:
function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>> - added:
function __VLS_tryAsConstant<const T>(t: T): T - added:
function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K - added:
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? { [K in E & string]: (...args: A) => void } : never : never - added:
type __VLS_Element = import('vue/jsx-runtime').JSX.Element - added:
type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never : T extends (props: infer P, ...args: any) =… - added:
type __VLS_GlobalComponents = import('vue').GlobalComponents & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'> - added:
type __VLS_GlobalDirectives = import('vue').GlobalDirectives - added:
type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements - added:
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false - added:
type __VLS_IsFunction<T, K> = K extends keyof T ? __VLS_IsAny<T[K]> extends false ? unknown extends T[K] ? false : true : false : false - added:
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & { [K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never }>> - added:
type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never> - added:
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) =>… - added:
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A - added:
type __VLS_PrettifyGlobal<T> = { [K in keyof T]: T[K] } & {} - added:
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never - added:
type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N1] } :… - added:
type __VLS_unknownDirective = (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void
- added:
interface NuxtApp extends PluginInjection
- removed:
interface Context - removed:
property Context.$colorMode: ColorModeInstance
- removed:
interface NuxtOptions - removed:
property NuxtOptions.colorMode: ColorModeConfig
- removed:
interface Context - removed:
property Context.$colorMode: ColorModeInstance
- added:
interface ComponentCustomProperties extends PluginInjection - added:
interface GlobalComponents - added:
interface GlobalDirectives
- added:
interface RouteMeta - added:
property RouteMeta.colorMode?: string
- changed:
interface ComponentOptions<V extends Vue> → interface ComponentOptions<V>
- added:
const default: _nuxt_schema.NuxtModule<{ preference: string; fallback: string; hid: string; globalName: string; componentName: string; classPrefix: string; classSuffix: strin… - added:
interface ModuleOptions - added:
property ModuleOptions.classPrefix: string - added:
property ModuleOptions.classSuffix: string - added:
property ModuleOptions.componentName: string - added:
property ModuleOptions.dataValue: string - added:
property ModuleOptions.disableTransition?: boolean - added:
property ModuleOptions.fallback: string - added:
property ModuleOptions.globalName: string - added:
property ModuleOptions.hid: string - added:
property ModuleOptions.preference: string - added:
property ModuleOptions.script?: string - added:
property ModuleOptions.storage?: ColorModeStorage - added:
property ModuleOptions.storageKey: string
- added:
const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ placeholder: StringConstructor; tag: { type: StringConstructor; default: string } }>, {}, {}, {}… - added:
declare global - added:
declare module 'vue' - added:
default _default
- added:
const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ placeholder: StringConstructor; tag: { type: StringConstructor; default: string } }>, {}, {}, {}… - added:
default _default
- added:
const useColorMode: () => ColorModeInstance
- added:
const _default: NitroAppPlugin - added:
default _default
- added:
const _default: import('#app').Plugin<Record<string, unknown>> & import('#app').ObjectPlugin<Record<string, unknown>> - added:
default _default
- added:
const _default: import('#app').Plugin<Record<string, unknown>> & import('#app').ObjectPlugin<Record<string, unknown>> - added:
default _default
- added:
declare module '#app' - added:
declare module 'vue' - added:
declare module 'vue-router' - added:
declare module 'vue/types/options' - added:
declare module 'vue/types/vue' - added:
interface ColorModeInstance - added:
property ColorModeInstance.forced: boolean - added:
property ColorModeInstance.preference: string - added:
property ColorModeInstance.unknown: boolean - added:
property ColorModeInstance.value: string - added:
type ColorModeStorage = 'localStorage' | 'sessionStorage' | 'cookie'
- added:
export { ModuleOptions } from './module' - added:
export { default } from './module'
- removed:
interface ColorModeInstance extends Vue - removed:
interface ColorModeOptions - removed:
property ColorModeInstance.forced: boolean - removed:
property ColorModeInstance.preference: string - removed:
property ColorModeInstance.unknown: boolean - removed:
property ColorModeInstance.value: string - removed:
property ColorModeOptions.classPrefix: string - removed:
property ColorModeOptions.classSuffix: string - removed:
property ColorModeOptions.componentName: string - removed:
property ColorModeOptions.fallback: string - removed:
property ColorModeOptions.globalName: string - removed:
property ColorModeOptions.hid: string - removed:
property ColorModeOptions.preference: string - removed:
property ColorModeOptions.storageKey: string - removed:
type ColorModeConfig = Partial<ColorModeOptions>
- removed:
declare module '@nuxt/types' - removed:
declare module '@nuxt/types/config/index' - removed:
declare module '@nuxt/vue-app' - removed:
declare module 'vue/types/options' - removed:
declare module 'vue/types/vue'