Skip to content

Commit

Permalink
Fixed iterator reactivity in proxyMap and proxySet (#988)
Browse files Browse the repository at this point in the history
* added iterator fixes for proxyMap and proxySet and updated the examples directory with the newest version of valtio

* added tests for proxyMap and proxySet

* modified eslint and udpated tests for proxyMap and proxySet

* ran prettier on eslint

* fixed test

* removed unused var

* added file specific rule in eslint

* added new tests

* added new test and moved this.epoch in proxyMap

* changed imports in test file

* added more tests

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
  • Loading branch information
overthemike and dai-shi authored Nov 5, 2024
1 parent bbe3c3a commit 159221e
Show file tree
Hide file tree
Showing 13 changed files with 550 additions and 3,429 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@
"rules": {
"@typescript-eslint/no-require-imports": "off"
}
},
{
"files": [
"src/vanilla/utils/proxyMap.ts",
"src/vanilla/utils/proxySet.ts"
],
"rules": {
"@typescript-eslint/no-unused-expressions": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-prism": "^4.3.2",
"valtio": "^2.0.0"
"valtio": "^2.1.1"
},
"devDependencies": {
"@types/react": "^18.3.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/editor-proxyWithHistory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-prism": "^4.3.2",
"valtio": "^2.0.0",
"valtio": "^2.1.1",
"valtio-history": "^1.0.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 159221e

Please sign in to comment.