Skip to content

Commit a3f6258

Browse files
author
Marcel Kalveram
committed
fix: change license, trigger new release
1 parent d24ba3d commit a3f6258

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Marcel Kalveram <marcel.kalveram@googlemail.com>
3+
Copyright (c) 2021 Marcel Kalveram <marcel.kalveram@googlemail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ History nodes allow you to transition back to the previous sub-state of a state
1212

1313
**Drawbacks**
1414

15-
Be aware that this wrapper is stateful, storing the state machine's history in an internal array. This is contrary to what a simple non-interpreted state machine does, which is fully pure and doesn't store any internal state.
15+
Be aware that this wrapper is stateful, storing the state machine's history in an internal array. This is contrary to what a simple non-interpreted state machine does, which is fully pure and doesn't store any internal state.
1616

1717
This conflicts with the way that `transition` works (which is pure) since we're augmenting its behaviour to store its result. But this was an acceptable drawback for my use case, and I may consider extending this library with a `pure` version in the future.
1818

@@ -60,6 +60,7 @@ const previousState = undoable.goBack();
6060
## API
6161

6262
### `goBack()`
63+
6364
Goes back one step in state history
6465

6566
```
@@ -69,6 +70,7 @@ const previousState = undoable.goBack();
6970
```
7071

7172
### `reset()`
73+
7274
Sets the state machine back to its initial state
7375

7476
```
@@ -77,6 +79,7 @@ const initialState = undoable.reset();
7779
```
7880

7981
### `getHistory()`
82+
8083
Returns the state machine history as an array
8184

8285
```
@@ -88,4 +91,4 @@ const history = undoable.getHistory();
8891

8992
# License
9093

91-
MIT © Marcel Kalveram
94+
MIT

0 commit comments

Comments
 (0)