tcomb
Advanced tools
Comparing version 2.7.0 to 3.0.0
@@ -15,2 +15,9 @@ # Changelog | ||
# v3.0.0 | ||
**Warning**. If you don't rely in your codebase on the property `maybe(MyType)(undefined) === null` this **is not a breaking change** for you. | ||
- **Breaking Change** | ||
- prevent `Maybe` constructor from altering the value when `Nil`, fix #183 (thanks @gabro) | ||
# v2.7.0 | ||
@@ -17,0 +24,0 @@ |
@@ -34,3 +34,3 @@ var assert = require('./assert'); | ||
} | ||
return Nil.is(value) ? null : create(type, value, path); | ||
return Nil.is(value) ? value : create(type, value, path); | ||
} | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "tcomb", | ||
"version": "2.7.0", | ||
"version": "3.0.0", | ||
"description": "Type checking and DDD for JavaScript", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^1.10.3", | ||
"mocha": "^2.3.4" | ||
"eslint": "1.10.3", | ||
"mocha": "2.3.4" | ||
}, | ||
@@ -31,0 +31,0 @@ "tags": [ |
@@ -107,3 +107,3 @@ [![build status](https://img.shields.io/travis/gcanti/tcomb/master.svg?style=flat-square)](https://travis-ci.org/gcanti/tcomb) | ||
where `spec` is an object contaning *commands*. The following commands are compatible with the [Facebook Immutability Helpers](http://facebook.github.io/react/docs/update.html): | ||
where `spec` is an object containing *commands*. The following commands are compatible with the [Facebook Immutability Helpers](http://facebook.github.io/react/docs/update.html): | ||
@@ -181,3 +181,3 @@ * `$push` | ||
- [Giulio Canti](https://github.com/gcanti) mantainer | ||
- [Giulio Canti](https://github.com/gcanti) maintainer | ||
- [Becky Conning](https://github.com/beckyconning) `func` combinator ideas and documentation | ||
@@ -196,3 +196,2 @@ - [Andrea Lattuada](https://github.com/utaal) `declare` combinator | ||
* [icedam](https://github.com/winkler1/icedam) | ||
* [immutable-store](https://github.com/christianalfoni/immutable-store) | ||
* [ObjectModel](https://github.com/sylvainpolletvillard/ObjectModel) | ||
@@ -199,0 +198,0 @@ * [rfx](https://github.com/ericelliott/rfx) |
64135
200