cssmagic / ChangeLog

Keep up with frequently updated projects.
12 stars 0 forks source link

Chai #2

Open cssmagic opened 8 years ago

cssmagic commented 8 years ago

3.5.0 / 2016-01-28

For assert fans: you now have assert.includeDeepMembers() which matches expect().to.include.deep.members() and .should.include.deep.members()!

assert 用户:你们现在有了 assert.includeDeepMembers() 这个方法,它跟 expect().to.include.deep.members().should.include.deep.members() 是对应的!

This release also includes a variety of small bugfixes and documentation fixes. Most notably, we are now governed by a Code Of Conduct - which gives Chai contributors (including those who files issues, work on code, or documentation, or even just hang out on our Slack & Gitter channels) safety from harassment and discrimination.

这个版本还包含了一些细微的错误修正,以及文档修正。最重要的是,我们引入了一部《编码准则》作为今后所有行动的纲领。

3.4.2 / 2015-11-15

This is a small documentation bug fix release - it adds extra metatags to each public method to allow us to generate the docs easier for the website.

仅仅是少量的文档修正。

3.4.1 / 2015-11-07

This is a small documentation bug fix release - it just fixes a couple of issues with the documentation.

仅仅是少量的文档修正。

3.4.0 / 2015-10-21

This release improves some confusing error messages, and adds some new assertions. Key points:

这个版本改进了一些难以理解的错误信息,并增加了一些新的断言方法。主要包括:

This release adds some new assertions and fixes some quite important, long standing bugs. Here are the cliff notes:

这个版本增加了一些新的断言方法,并修正了一些非常重要且长期存在的 bug。简要汇总如下:

This release fixes a bug with the previous additions in 3.1.0. assert.frozen/expect().to.be.frozen/.should.be.frozen all accidentally called Object.isSealed() instead. Now they correctly call Object.isFrozen().

这个版本修正了 3.1.0 引入的新断言方法的 bug。assert.frozen/expect().to.be.frozen/.should.be.frozen 全都一不小心调用了 Object.isSealed() 作为底层实现。现在已经修正为 Object.isFrozen() 方法。

If you're using these features, please upgrade immediately.

如果你正在使用这些特性,请立即升级。

It also adds aliases for a lot of assert methods:

这个版本还为大量的 assert 方法增加了别名:

This release adds assertions for extensibility/freezing/sealing on objects:

增加了对象 extensibility/freezing/sealing 的断言方法:

assert.extensible({});
assert.notExtensible(Object.preventExtensions({}));
expect(Object.preventExtensions({})).to.not.be.extensible;
Object.preventExtensions({}).should.not.be.extensible;

assert.notSealed({});
assert.sealed(Object.seal({}));
expect(Object.seal({})).to.be.sealed;
Object.seal({}).should.be.sealed;

assert.notFrozen({});
assert.frozen(Object.freeze({}));
expect(Object.freeze({})).to.be.frozen;
Object.freeze({}).should.be.frozen;

It also adds assertions for checking if a number is NaN:

还增加了一些断言方法,用于检查一个数字是否是 NaN:

assert.isNaN(NaN);
assert.isNotNaN(5);
expect(NaN).to.be.NaN;
expect(5).to.not.be.NaN;
NaN.should.be.NaN;
5.should.not.be.NaN;

3.0.0 / 2015-06-04

This release contains some small breaking changes. Most people are unlikely to notice them - but here are the breaking changes:

这个版本引入了一些破坏性的小更新。绝大多数人可能完全察觉不到,但我们还是要列一下:

cssmagic commented 8 years ago

v2 以及之前的更新记录参见: #1