Skip to content

Commit

Permalink
Published version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Oct 4, 2017
1 parent aaa1f86 commit 59412b1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions API.md
Expand Up @@ -597,6 +597,7 @@ Returns **any**

Run's the typechecker on the given type.
Throws if the given value is not according the provided type specification.
Use this if you need typechecks even in a production build (by default all automatic runtime type checks will be skipped in production builds)

**Parameters**

Expand Down
17 changes: 14 additions & 3 deletions changelog.md
@@ -1,9 +1,20 @@
# 1.0.1

* `getEnv` will return an empty object instead of throwing when a tree was initialized without environment
* exposed `typecheck(type, value)` as public api (will ignore environment flags)
* Introduced `createActionTrackingMiddleware` to simplify the creation of middleware that support complex async processes

### Features

* Added the middlewares `atomic` and types `TimeTraveller`, `UndoManager`. Check out the [docs](https://github.com/mobxjs/mobx-state-tree/blob/master/docs/middleware.md)!
* Introduced `createActionTrackingMiddleware` to simplify the creation of middleware that support complex async processes
* exposed `typecheck(type, value)` as public api (will ignore environment flags)

### Improvements

* `getEnv` will return an empty object instead of throwing when a tree was initialized without environment
* Fixed issue where patches generated for nested maps were incorrect (#396)
* Fixed the escaping of (back)slashes in JSON paths (#405)
* Improved the algorithm that reconcile items in an array (#384)
* Assigning a node that has an environment to a parent is now allowed, as long as the environment is strictly the same (#387)
* Many minor documentation improvements. Thanks everybody who created a PR!

# 1.0.0

Expand Down
2 changes: 1 addition & 1 deletion middleware/TimeTraveller.js
Expand Up @@ -49,7 +49,7 @@ const TimeTraveller = types
// TODO: check if targetStore doesn't contain self
// if (contains(targetStore, self)) throw new Error("TimeTraveller shouldn't be recording itself. Please specify a sibling as taret, not some parent")
// start listening to changes
snapshotDisposer = onSnapshot(targetStore, todos => self.addUndoState(todos))
snapshotDisposer = onSnapshot(targetStore, snapshot => self.addUndoState(snapshot))
// record an initial state if no known
if (self.history.length === 0) self.addUndoState(getSnapshot(targetStore))
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "mobx-state-tree",
"version": "1.0.0",
"version": "1.0.1",
"description": "Opinionated, transactional, MobX powered state container",
"main": "dist/mobx-state-tree.js",
"umd:main": "dist/mobx-state-tree.umd.js",
Expand Down Expand Up @@ -89,4 +89,4 @@
"git add"
]
}
}
}

0 comments on commit 59412b1

Please sign in to comment.