Comparing version 1.2.2 to 1.2.3
@@ -1,2 +0,2 @@ | ||
declare const useLocalStorage: <T = StoredData>(key: StorageKey, initialValue?: T | undefined, version?: Version | undefined) => { | ||
declare const useLocalStorage: <T = StoredData>(key: StorageKey, initialValue?: T | undefined, version?: Version) => { | ||
mergeState: (state: Record<string, unknown>) => void; | ||
@@ -9,3 +9,3 @@ resetValue: () => void; | ||
}; | ||
declare const useSessionStorage: <T = StoredData>(key: StorageKey, initialValue?: T | undefined, version?: Version | undefined) => { | ||
declare const useSessionStorage: <T = StoredData>(key: StorageKey, initialValue?: T | undefined, version?: Version) => { | ||
mergeState: (state: Record<string, unknown>) => void; | ||
@@ -12,0 +12,0 @@ resetValue: () => void; |
@@ -92,3 +92,3 @@ var __defProp = Object.defineProperty; | ||
const currentState = isObject(storedValue.data) ? storedValue.data : {}; | ||
const updatedState = Object.assign(currentState, state); | ||
const updatedState = Object.assign({}, currentState, state); | ||
setStoredValue({ | ||
@@ -95,0 +95,0 @@ data: updatedState, |
@@ -8,3 +8,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "dist/index.js", | ||
@@ -46,7 +46,7 @@ "types": "dist/index.d.ts", | ||
"@testing-library/react-hooks": "8.0.0", | ||
"@types/jest": "27.5.0", | ||
"@types/react": "18.0.9", | ||
"@typescript-eslint/eslint-plugin": "5.23.0", | ||
"@typescript-eslint/parser": "5.23.0", | ||
"eslint": "8.15.0", | ||
"@types/jest": "28.1.1", | ||
"@types/react": "18.0.12", | ||
"@typescript-eslint/eslint-plugin": "5.27.1", | ||
"@typescript-eslint/parser": "5.27.1", | ||
"eslint": "8.17.0", | ||
"eslint-config-prettier": "8.5.0", | ||
@@ -56,6 +56,6 @@ "eslint-plugin-prettier": "4.0.0", | ||
"husky": "8.0.1", | ||
"jest": "28.1.0", | ||
"jest-environment-jsdom": "28.1.0", | ||
"jest": "28.1.1", | ||
"jest-environment-jsdom": "28.1.1", | ||
"jest-localstorage-mock": "2.4.21", | ||
"lint-staged": "12.4.1", | ||
"lint-staged": "13.0.1", | ||
"mockdate": "3.0.5", | ||
@@ -65,5 +65,5 @@ "prettier": "2.6.2", | ||
"react-test-renderer": "18.1.0", | ||
"ts-jest": "28.0.2", | ||
"tsup": "5.12.7", | ||
"typescript": "4.6.4" | ||
"ts-jest": "28.0.4", | ||
"tsup": "6.1.2", | ||
"typescript": "4.7.3" | ||
}, | ||
@@ -70,0 +70,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
23806