diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index c12e5d99ee..2639c8ed99 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@pinia/nuxt", - "version": "0.11.3", + "version": "0.11.4", "description": "Nuxt Module for pinia", "keywords": [ "pinia", diff --git a/packages/pinia/package.json b/packages/pinia/package.json index cf507816f6..ef2cd1a3b0 100644 --- a/packages/pinia/package.json +++ b/packages/pinia/package.json @@ -1,6 +1,6 @@ { "name": "pinia", - "version": "3.0.4", + "version": "3.0.5", "description": "Intuitive, type safe and flexible Store for Vue", "type": "module", "main": "index.cjs", diff --git a/packages/pinia/src/hmr.ts b/packages/pinia/src/hmr.ts index c8ce9b8edb..57d0210697 100644 --- a/packages/pinia/src/hmr.ts +++ b/packages/pinia/src/hmr.ts @@ -16,7 +16,7 @@ import { * @param fn - object to test * @returns true if `fn` is a StoreDefinition */ -export const isUseStore = (fn: any): fn is StoreDefinition => { +export const isUseStore = (fn: unknown): fn is StoreDefinition return typeof fn === 'function' && typeof fn.$id === 'string' } @@ -30,9 +30,9 @@ export const isUseStore = (fn: any): fn is StoreDefinition => { * @returns - newState */ export function patchObject( - newState: Record, - oldState: Record -): Record { + newState: Record, + oldState: Record +): Record { // no need to go through symbols because they cannot be serialized anyway for (const key in oldState) { const subPatch = oldState[key] @@ -79,12 +79,12 @@ export function acceptHMRUpdate< S extends StateTree = StateTree, G extends _GettersTree = _GettersTree, A = _ActionsTree, ->(initialUseStore: StoreDefinition, hot: any) { +>(initialUseStore: StoreDefinition, hot: unknown) { // strip as much as possible from iife.prod if (!__DEV__) { return () => {} } - return (newModule: any) => { + return (newModule: unknown) => { const pinia: Pinia | undefined = hot.data.pinia || initialUseStore._pinia if (!pinia) { diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index 97651e9922..49558d22cc 100644 --- a/packages/pinia/src/types.ts +++ b/packages/pinia/src/types.ts @@ -11,14 +11,13 @@ import { Pinia } from './rootStore' /** * Generic state of a Store */ -export type StateTree = Record +export type StateTree = Record export function isPlainObject( value: S | unknown ): value is S export function isPlainObject( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - o: any + o: unknown ): o is StateTree { return ( o && diff --git a/packages/testing/package.json b/packages/testing/package.json index 0d335e6929..b33df54f8e 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@pinia/testing", - "version": "1.0.3", + "version": "1.0.4", "description": "Testing module for Pinia", "keywords": [ "vue",