Skip to content

Commit

Permalink
feat: 🎸 Support immer draft and Uint[8/16/32] Array
Browse files Browse the repository at this point in the history
  • Loading branch information
haozi committed Aug 26, 2024
1 parent 8ec2f73 commit c6e0bbb
Show file tree
Hide file tree
Showing 7 changed files with 1,452 additions and 1,293 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"cSpell.words": ["codecov", "haozi", "idmp", "typeof", "vitejs"]
"cSpell.words": ["codecov", "haozi", "idmp", "immer", "typeof", "vitejs"]
}
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idmp",
"version": "2.0.1",
"version": "2.1.0",
"keywords": [
"deduplicate network requests",
"idempotent function",
Expand Down Expand Up @@ -65,23 +65,24 @@
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.14.8",
"@types/react": "^18.3.3",
"@types/node": "^22.5.0",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-legacy": "^5.4.1",
"@vitejs/plugin-legacy": "^5.4.2",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitest/coverage-istanbul": "^1.6.0",
"@vitest/coverage-istanbul": "^2.0.5",
"fs-extra": "^11.2.0",
"prettier": "^3.3.2",
"immer": "^10.1.1",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.24.0",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"vite-node": "^1.6.0",
"react-router-dom": "^6.26.1",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"vite-node": "^2.0.5",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-dts": "^3.9.1",
"vite-plugin-dts": "^4.0.3",
"vite-plugin-html": "^3.2.2",
"vitest": "^1.6.0"
"vitest": "^2.0.5"
}
}
2 changes: 1 addition & 1 deletion plugins/browser-storage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const storageIdmpWrap = (

const memoryData = await promiseFunc()
if (memoryData !== udf) {
// console.log('from memoryData')s a
// console.log('from memoryData')
storage.set(globalKey, memoryData, finalOptions.maxAge) // no need wait
}
return memoryData
Expand Down
Loading

0 comments on commit c6e0bbb

Please sign in to comment.