valtio-history 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # valtio-history
2
2
 
3
- [![npm version](https://badge.fury.io/js/valtio-history.svg)](https://badge.fury.io/js/valtio-history)
4
-
5
3
  valtio utility for creating a proxy state with history tracking
6
4
 
5
+ [![npm version](https://badge.fury.io/js/valtio-history.svg)](https://badge.fury.io/js/valtio-history)
6
+
7
7
  https://valtio.pmnd.rs/docs/api/utils/proxyWithHistory
8
8
 
9
9
  see detailed [api docs](https://github.com/valtiojs/valtio-history/blob/main/packages/history-utility/docs/modules.md) for more info.
@@ -35,10 +35,9 @@ export default function App() {
35
35
  undo,
36
36
  redo,
37
37
  history,
38
- canUndo,
39
- canRedo,
40
- getCurrentChangeDate,
41
- getNode,
38
+ isUndoEnabled,
39
+ isRedoEnabled,
40
+ currentChangeDate,
42
41
  remove,
43
42
  replace,
44
43
  } = useSnapshot(state);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtio-history",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "author": "Daishi Kato",
5
5
  "repository": {
6
6
  "type": "git",