Skip to content

Upgrading pinia 0.0 to 0.1

Unknown0.0.7 → 0.1.0

Fetching 3 releases from GitHub…0 / 3
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • 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.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: export { StoreGetter } from './types'
  • changed: const storesMap: WeakMap<Record<any, any>, Map<string, import('./types').Store<string, Record<string | number | symbol, any>, Record<string, import('./types').StoreGetter<Recor… → const storesMap: WeakMap<Record<any, any>, Map<string, import('./types').Store<string, Record<string | number | symbol, any>, Record<string, import('./types').Method>, Record<s…
  • changed: const PiniaSsr: (vue: VueConstructor) => void → const PiniaSsr: (_Vue: VueConstructor) => void
  • changed: function buildStore<Id extends string, S extends StateTree, G extends Record<string, StoreGetter<S>>, A extends Record<string, StoreAction>>(id: Id, buildState?: () => S, getters?: G, actions?: A, initialState?: S | undefined): Store<Id, S, G, A> → function buildStore<Id extends string, S extends StateTree, G extends Record<string, Method>, A extends Record<string, Method>>(id: Id, buildState?: () => S, getters?: G, actions?: A, initialState?: S | undefined): Store<Id, S, G, A>
  • changed: function createStore<Id extends string, S extends StateTree, G extends Record<string, StoreGetter<S>>, A extends Record<string, StoreAction>>(options: { id: Id; state?: () => S; getters?: G; actions?: A & ThisType<A & StoreWithState<Id, S> & StoreWithGetters<S, G>> }): (reqKey?: object | undefined) => Store<Id, S, G, A> → function createStore<Id extends string, S extends StateTree, G, A>(options: { id: Id; state?: () => S; getters?: G & ThisType<S & StoreWithGetters<G>>; actions?: A & ThisType<A & S & StoreWithState<Id, S> & StoreWithGetters<G>> }): (reqKey?: object | undefined) => Store<Id, S, G, A>
  • removed: call StoreAction(...args: any[]): any
  • removed: call StoreGetter(state: S, getters: Record<string, Ref<any>>): T
  • removed: interface StoreAction
  • removed: interface StoreGetter<S extends StateTree, T = any>
  • changed: type GenericStore = Store<string, StateTree, Record<string, StoreGetter<StateTree>>, Record<string, StoreAction>> → type GenericStore = Store<string, StateTree, Record<string, Method>, Record<string, Method>>
  • changed: type Store<Id extends string, S extends StateTree, G extends Record<string, StoreGetter<S>>, A extends Record<string, StoreAction>> = StoreWithState<Id, S> & StoreWithGetters<S, G> & StoreWithActions<A> → type Store<Id extends string, S extends StateTree, G, A> = StoreWithState<Id, S> & S & StoreWithGetters<G> & StoreWithActions<A>
  • changed: type StoreWithActions<A extends Record<string, StoreAction>> = { [k in keyof A]: A[k] extends (this: infer This, ...args: infer P) => infer R ? (this: This, ...args: P) => R : never } → type StoreWithActions<A> = { [k in keyof A]: A[k] extends (...args: infer P) => infer R ? (...args: P) => R : never }
  • changed: type StoreWithGetters<S extends StateTree, G extends Record<string, StoreGetter<S>>> = { [k in keyof G]: G[k] extends StoreGetter<S, infer V> ? Ref<V> : never } → type StoreWithGetters<G> = { [k in keyof G]: G[k] extends (this: infer This, store?: any) => infer R ? R : never }
  • added: type Method = (...args: any[]) => any