Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:shouldjs/should.js
Browse files Browse the repository at this point in the history
  • Loading branch information
btd committed Aug 14, 2016
2 parents 34edd41 + ba0093e commit 28160d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
16 changes: 8 additions & 8 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
11.0.0 / 2016-08-10
===================

* From code extracted parts for traversing different types in similar way.
This allows from now easy extend library to almost any collection class.
Now should.js everywhere supports Set/Map/WeakSet/WeakMap.
* .empty() now uses new type adaptors
* brecking change in .keys()/.key() now checks only for passed keys also uses type adaptors - it can check for keys in Map/Set e.g
* Added .value(key, value) to assert if key-value object has such value with this key
* Added .size() to get size of collection, works also with type adaptors
* .containEql uses type adaptors and can check if something contained within collection or subpart of key-value object
* Extracted parts from code for traversing different data types in similar ways.
This allows for easily extending the library to almost any collection class.
Now should.js supports `Set`/`Map`/`WeakSet`/`WeakMap` everywhere.
* `.empty()` now uses new type adaptors
* Breaking change in `.keys()`/`.key()`: now only checks for passed keys (also uses type adaptors) - it can check for keys in `Map`/`Set` e.g
* Added `.value(key, value)` to assert if key-value object has such `value` with this `key`
* Added `.size()` to get size of collection; also works with type adaptors
* `.containEql` uses type adaptors and can check something contained within a collection or sub-part of a key-value object

10.0.0 / 2016-07-18
===================
Expand Down
10 changes: 9 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ AssertionError: expected { id: 10 } to be asset
expected { id: 10 } to have property path
```
## Additional projects
* [`should-sinon`](https://github.com/shouldjs/sinon) - adds additional assertions for sinon.js
* [`should-immutable`](https://github.com/shouldjs/should-immutable) - extends different parts of should.js to make immutable.js first-class citizen in should.js
* [`should-http`](https://github.com/shouldjs/http) - adds small assetions for assertion on http responses for node only
* [`should-jq`](https://github.com/shouldjs/jq) - asserions for jq (need maintainer)
* [`karma-should`](https://github.com/seegno/karma-should) - make more or less easy to work karma with should.js
## Contributions
Expand All @@ -199,7 +207,7 @@ See also [CONTRIBUTING](./CONTRIBUTING.md).
Yes, yes it does, with a single getter _should_, and no it won't break your code, because it does this **properly** with a non-enumerable property.
Also it is possible use it without extension.
Also it is possible use it without extension. Just use `require('should/as-function')` everywhere.
## License
Expand Down

0 comments on commit 28160d5

Please sign in to comment.