mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
Release 1.5.0
This commit is contained in:
parent
5cfd37df18
commit
ab4bd0e76f
7 changed files with 169 additions and 21 deletions
56
History.md
56
History.md
|
@ -1,4 +1,60 @@
|
|||
|
||||
1.5.0 / 2013-02-03
|
||||
==================
|
||||
|
||||
* docs: add Release Notes for non-gitlog summary of changes.
|
||||
* lib: update copyright to 2013
|
||||
* Merge branch 'refactor/travis'
|
||||
* makefile: remove test-component for full test run
|
||||
* pkg: script test now runs make test so travis will test browser
|
||||
* browser: build
|
||||
* tests: refactor some tests to support new objDisplay output
|
||||
* test: [bootstrap] normalize boostrap across all test scenarios
|
||||
* assertions: refactor some assertions to use objDisplay instead of inspect
|
||||
* util: [objDisplay] normalize output of functions
|
||||
* makefile: refactor for full build scenarios
|
||||
* component: fix build bug where missing util:type file
|
||||
* assertions: [throw] code cleanup
|
||||
* Merge branch 'refactor/typeDetection'
|
||||
* browser: build
|
||||
* makefile: chai.js is .PHONY so it builds every time
|
||||
* test: [expect] add arguments type detection test
|
||||
* core/assertions: [type] (a/an) refactor to use type detection utility
|
||||
* util: add cross-browser type detection utility
|
||||
* Merge branch 'feature/component'
|
||||
* browser: build
|
||||
* component: add component.json file
|
||||
* makefile: refactor for fine grain control of testing scenarios
|
||||
* test: add mochaPhantomJS support and component test file
|
||||
* deps: add component and mocha-phantomjs for browser testing
|
||||
* ignore: update ignore files for component support
|
||||
* travis: run for all branches
|
||||
* Merge branch 'feature/showDiff'
|
||||
* test: [Assertion] configruable showDiff flag. Closes #132
|
||||
* lib: [Assertion] add configurable showDiff flag. #132
|
||||
* Merge branch 'feature/saucelabs'
|
||||
* Merge branch 'master' into feature/saucelabs
|
||||
* browser: build
|
||||
* support: add mocha cloud runner, client, and html test page
|
||||
* test: [saucelabs] add auth placeholder
|
||||
* deps: add mocha-cloud
|
||||
* Merge pull request #136 from whatthejeff/message_fix
|
||||
* Merge pull request #138 from timnew/master
|
||||
* Fix issue #137, test message existence by using message!=null rather than using message
|
||||
* Fixed backwards negation messages.
|
||||
* Merge pull request #133 from RubenVerborgh/throw
|
||||
* Functions throwing strings can reliably be tested.
|
||||
* Merge pull request #131 from RubenVerborgh/proto
|
||||
* Cache whether __proto__ is supported.
|
||||
* Use __proto__ if available.
|
||||
* Determine the property names to exclude beforehand.
|
||||
* Merge pull request #126 from RubenVerborgh/eqls
|
||||
* Add alias eqls for eql.
|
||||
* Use inherited enumerable properties in deep equality comparison.
|
||||
* Show inherited properties when inspecting an object.
|
||||
* Add new getProperties and getEnumerableProperties utils.
|
||||
* showDiff: force true for equal and eql
|
||||
|
||||
1.4.2 / 2012-12-21
|
||||
==================
|
||||
|
||||
|
|
38
README.md
38
README.md
|
@ -10,32 +10,36 @@ For more information or to download plugins, view the [documentation](http://cha
|
|||
### Contributors
|
||||
|
||||
project : chai
|
||||
repo age : 12 months
|
||||
active : 103 days
|
||||
commits : 553
|
||||
files : 47
|
||||
repo age : 1 year, 2 months
|
||||
active : 117 days
|
||||
commits : 616
|
||||
files : 56
|
||||
authors :
|
||||
408 Jake Luer 73.8%
|
||||
66 Veselin Todorov 11.9%
|
||||
39 Domenic Denicola 7.1%
|
||||
5 Jo Liss 0.9%
|
||||
5 Scott Nonnenberg 0.9%
|
||||
5 Juliusz Gonera 0.9%
|
||||
4 josher19 0.7%
|
||||
4 John Firebaugh 0.7%
|
||||
459 Jake Luer 74.5%
|
||||
66 Veselin Todorov 10.7%
|
||||
42 Domenic Denicola 6.8%
|
||||
5 Jo Liss 0.8%
|
||||
5 Ruben Verborgh 0.8%
|
||||
5 Scott Nonnenberg 0.8%
|
||||
5 Juliusz Gonera 0.8%
|
||||
4 josher19 0.6%
|
||||
4 John Firebaugh 0.6%
|
||||
3 Jeff Barczewski 0.5%
|
||||
2 Jakub Nešetřil 0.4%
|
||||
2 Teddy Cross 0.4%
|
||||
1 Chun-Yi 0.2%
|
||||
2 Edwin Shao 0.3%
|
||||
2 Jakub Nešetřil 0.3%
|
||||
2 Teddy Cross 0.3%
|
||||
1 Anand Patil 0.2%
|
||||
1 Kilian Ciuffolo 0.2%
|
||||
1 Niklas Närhinen 0.2%
|
||||
1 Paul Miller 0.2%
|
||||
1 Chun-Yi 0.2%
|
||||
1 Sasha Koss 0.2%
|
||||
1 Chris Connelly 0.2%
|
||||
1 Anand Patil 0.2%
|
||||
1 Jeff Welch 0.2%
|
||||
1 Benjamin Horsleben 0.2%
|
||||
1 Victor Costan 0.2%
|
||||
1 Vinay Pulim 0.2%
|
||||
1 Kilian Ciuffolo 0.2%
|
||||
1 DD 0.2%
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
@ -1 +1,89 @@
|
|||
# Release Notes
|
||||
|
||||
## 1.5.0 / 2013-02-03
|
||||
|
||||
### Migration Requirements
|
||||
|
||||
The following changes are required if you are upgrading from the previous version:
|
||||
|
||||
- **Users:**
|
||||
- No changes required.
|
||||
- **Plugin Developers:**
|
||||
- No changes required.
|
||||
- **Core Contributors:**
|
||||
- Refresh `node_modules` folder for updated developement dependencies.
|
||||
|
||||
### Community Contributions
|
||||
|
||||
- [#126](https://github.com/chaijs/chai/pull/126): Add `eqls` alias for `eql`. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#127](https://github.com/chaijs/chai/issues/127): Performance refactor for chainable methods. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#133](https://github.com/chaijs/chai/pull/133): Assertion `.throw` support for primitives. [@RubenVerborgh](https://github.com/RubenVerborgh)
|
||||
- [#137](https://github.com/chaijs/chai/issues/137): Assertion `.throw` support for empty messages. [@timnew](https://github.com/timnew)
|
||||
- [#136](https://github.com/chaijs/chai/pull/136): Fix backward negation messages when using `.above()` and `.below()`. [@whatthejeff](https://github.com/whatthejeff)
|
||||
|
||||
Thank you to all who took time to contribute!
|
||||
|
||||
### Other Bug Fixes
|
||||
|
||||
- Improve type detection of `.a()`/`.an()` to work in cross-browser scenarios.
|
||||
- [#116](https://github.com/chaijs/chai/issues/116): `.throw()` has cleaner display of errors when WebKit browsers.
|
||||
|
||||
### Usage Updates
|
||||
|
||||
#### For Users
|
||||
|
||||
**1. Component Support:** Chai now included the proper configuration to be installed as a
|
||||
[component](https://github.com/component/component). Component users are encouraged to consult
|
||||
[chaijs.com](http://chaijs.com) for the latest version number as using the master branch
|
||||
does not gaurantee stability.
|
||||
|
||||
```js
|
||||
// relevant component.json
|
||||
devDependencies: {
|
||||
"chaijs/chai": "1.5.0"
|
||||
}
|
||||
```
|
||||
|
||||
Alternatively, bleeding-edge is available:
|
||||
|
||||
$ component install chaijs/chai
|
||||
|
||||
**2. Configurable showDiff:** Some test runners (such as [mocha](http://visionmedia.github.com/mocha/))
|
||||
include support for showing the diff of strings and objects when an equality error occurs. Chai has
|
||||
already included support for this, however some users may not prefer this display behavior. To revert to
|
||||
no diff display, the following configuration is available:
|
||||
|
||||
```js
|
||||
chai.Assertion.showDiff = false; // diff output disabled
|
||||
chai.Assertion.showDiff = true; // default, diff output enabled
|
||||
```
|
||||
|
||||
#### For Plugin Developers
|
||||
|
||||
**1. New Utility - type**: The new utility `.type()` is available as a better implementation of `typeof`
|
||||
that can be used cross-browser. It handles the inconsistencies of Array, `null`, and `undefined` detection.
|
||||
|
||||
- **@param** _{Mixed}_ object to detect type of
|
||||
- **@return** _{String}_ object type
|
||||
|
||||
```js
|
||||
chai.use(function (c, utils) {
|
||||
// some examples
|
||||
utils.type({}); // 'object'
|
||||
utils.type(null); // `null'
|
||||
utils.type(undefined); // `undefined`
|
||||
utils.type([]); // `array`
|
||||
});
|
||||
```
|
||||
|
||||
#### For Core Contributors
|
||||
|
||||
**1. Browser Testing**: Browser testing of the `./chai.js` file is now available in the command line
|
||||
via PhantomJS. `make test` and Travis-CI will now also rebuild and test `./chai.js`. Consequently, all
|
||||
pull requests will now be browser tested in this way.
|
||||
|
||||
_Note: Contributors opening pull requests should still NOT include the browser build._
|
||||
|
||||
**2. SauceLabs Testing**: Early SauceLab support has been enabled with the file `./support/mocha-cloud.js`.
|
||||
Those interested in trying it out should create a free [Open Sauce](https://saucelabs.com/signup/plan) account
|
||||
and include their credentials in `./test/auth/sauce.json`.
|
||||
|
|
2
chai.js
2
chai.js
|
@ -74,7 +74,7 @@
|
|||
* Chai version
|
||||
*/
|
||||
|
||||
exports.version = '1.4.2';
|
||||
exports.version = '1.5.0';
|
||||
|
||||
/*!
|
||||
* Primary `Assertion` prototype
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "chai"
|
||||
, "repo": "chaijs/chai"
|
||||
, "version": "1.4.2"
|
||||
, "version": "1.5.0"
|
||||
, "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic."
|
||||
, "license": "MIT"
|
||||
, "keywords": [
|
||||
|
|
|
@ -11,7 +11,7 @@ var used = []
|
|||
* Chai version
|
||||
*/
|
||||
|
||||
exports.version = '1.4.2';
|
||||
exports.version = '1.5.0';
|
||||
|
||||
/*!
|
||||
* Primary `Assertion` prototype
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"Veselin Todorov <hi@vesln.com>",
|
||||
"John Firebaugh <john.firebaugh@gmail.com>"
|
||||
],
|
||||
"version": "1.4.2",
|
||||
"version": "1.5.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/chaijs/chai"
|
||||
|
|
Loading…
Reference in a new issue