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

Commit 48fac91

Browse files
committed
Release 11.2.0
1 parent 51a3c5e commit 48fac91

File tree

4 files changed

+3531
-3531
lines changed

4 files changed

+3531
-3531
lines changed

History.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
11.2.0 / 2017-01-27
2+
===================
3+
4+
* Added `.only` modifier for `.keys` to check also size
5+
* Soft deprecate `.enumerable(s)`
6+
17
11.1.2 / 2016-12-10
28
===================
39

lib/ext/property.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,6 @@ export default function(should, Assertion) {
5252
return args;
5353
}
5454

55-
56-
/**
57-
* Asserts given object has enumerable property with optionally value. **On success it change given object to be value of property**.
58-
* **Deprecated**. Use .keys
59-
*
60-
* @name enumerable
61-
* @memberOf Assertion
62-
* @category assertion property
63-
* @param {string} name Name of property
64-
* @param {*} [val] Optional property value to check
65-
* @example
66-
*
67-
* ({ a: 10 }).should.have.enumerable('a');
68-
*/
6955
Assertion.add('enumerable', function(name, val) {
7056
name = convertPropertyName(name);
7157

@@ -80,18 +66,6 @@ export default function(should, Assertion) {
8066
this.have.propertyWithDescriptor(name, desc);
8167
});
8268

83-
/**
84-
* Asserts given object has enumerable properties.
85-
* **Deprecated**. Use .keys
86-
*
87-
* @name enumerables
88-
* @memberOf Assertion
89-
* @category assertion property
90-
* @param {Array|...string|Object} names Names of property
91-
* @example
92-
*
93-
* ({ a: 10, b: 10 }).should.have.enumerables('a');
94-
*/
9569
Assertion.add('enumerables', function(/*names*/) {
9670
var args = processPropsArgs.apply(null, arguments);
9771

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "should",
33
"description": "test framework agnostic BDD-style assertions",
4-
"version": "11.1.2",
4+
"version": "11.2.0",
55
"author": "TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]>",
66
"repository": {
77
"type": "git",
@@ -24,7 +24,7 @@
2424
"eslint-config-shouldjs": "^1.0.0",
2525
"mocha": "latest",
2626
"mocha-better-spec-reporter": "latest",
27-
"rollup": "0.34.7",
27+
"rollup": "^0.41.4",
2828
"rollup-plugin-node-resolve": "^2.0.0",
2929
"zuul": "latest"
3030
},

0 commit comments

Comments
 (0)