chai
6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed
Your version
2.3.0 is the newest release of 2.x.
In short
1 new1 fixed
Release note
Deep property strings can now be escaped using \\ - for example:
var deepCss = { '.link': { '[target]': 42 }};
expect(deepCss).to.have.deep.property('\\.link.\\[target\\]', 42)Community Contributions
Code Features & Fixes
Allow escaping of deep
property keys.
Documentation fixes
Tweak documentation around
deep property escaping.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.