[Snyk] Upgrade chai from 4.2.0 to 5.1.0 #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade chai from 4.2.0 to 5.1.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 22 versions ahead of your current version.
The recommended version was released on 9 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-BODYPARSER-7926860
SNYK-JS-BROWSERIFYSIGN-6037026
SNYK-JS-DECODEURICOMPONENT-3149970
SNYK-JS-Y18N-1021887
SNYK-JS-JSONSCHEMA-1920922
SNYK-JS-QS-3153490
SNYK-JS-SECP256K1-8237220
SNYK-JS-SEMVER-3247795
SNYK-JS-SEMVER-3247795
SNYK-JS-ES5EXT-6095076
SNYK-JS-GETFUNCNAME-5923417
SNYK-JS-HANDLEBARS-1056767
SNYK-JS-PATHPARSE-1077067
SNYK-JS-COOKIE-8163060
SNYK-JS-MINIMATCH-3050818
SNYK-JS-UGLIFYJS-1727251
SNYK-JS-PATHTOREGEXP-7925106
SNYK-JS-PATHVAL-596926
SNYK-JS-EXPRESS-6474509
SNYK-JS-EXPRESS-7926867
SNYK-JS-HANDLEBARS-1279029
SNYK-JS-HOSTEDGITINFO-1088355
SNYK-JS-HTTPCACHESEMANTICS-3248783
SNYK-JS-WORDWRAP-3149973
npm:debug:20170905
SNYK-JS-SEND-7926862
SNYK-JS-SERVESTATIC-7926865
Release notes
Package name: chai
-
5.1.0 - 2024-02-12
- Remove useless guards and add parentheses to constuctors by @ koddsson in #1593
- Cleanup jsdoc comments by @ koddsson in #1596
- Convert comments in "legal comments" format to jsdoc or normal comments by @ koddsson in #1598
- Implement
- Assert interface fix by @ developer-bandi in #1601
- Set support in same members by @ koddsson in #1583
- Fix publish script by @ koddsson in #1602
- @ developer-bandi made their first contribution in #1601
-
5.0.3 - 2024-01-25
-
5.0.2 - 2024-01-25
- build(deps): bump nanoid and mocha by @ dependabot in #1558
- remove
- Update developer dependencies by @ koddsson in #1560
- fix: removes
- Update
- Re-enable some webkit tests by @ koddsson in #1580
- Remove a bunch of if statements in test/should.js by @ koddsson in #1581
- Remove a bunch of unused files by @ koddsson in #1582
- Fix 1564 by @ koddsson in #1566
-
5.0.0 - 2023-12-28
- Chai now only supports EcmaScript Modules (ESM). This means your tests will need to either have
- Dropped support for Internet Explorer.
- Dropped support for NodeJS < 18.
- Minimum supported browsers are now Firefox 100, Safari 14.1, Chrome 100, Edge 100. Support for browsers prior to these versions is "best effort" (bug reports on older browsers will be assessed individually and may be marked as wontfix).
- feat: use chaijs/loupe for inspection by @ pcorpet in #1401
- docs: fix URL in README by @ Izzur in #1413
- Remove
- Convert Makefile script to npm scripts by @ koddsson in #1424
- Clean up README badges by @ koddsson in #1422
- fix: package.json - deprecation warning on exports field by @ stevenjoezhang in #1400
- fix: deep-eql bump package to support symbols by @ snewcomer in #1458
- ES module conversion PoC by @ 43081j in #1498
- chore: drop commonjs support by @ 43081j in #1503
- Update pathval by @ koddsson in #1527
- Update check-error by @ koddsson in #1528
- update
- Inline
- Update loupe by @ koddsson in #1545
- Typo 'Test an object' not 'Test and object' by @ mavaddat in #1460
- Update
- Replacing Karma with Web Test Runner by @ koddsson in #1546
- @ Izzur made their first contribution in #1413
- @ stevenjoezhang made their first contribution in #1400
- @ 43081j made their first contribution in #1498
-
5.0.0-rc.0 - 2023-12-06
- feat: use chaijs/loupe for inspection by @ pcorpet in #1401
- docs: fix URL in README by @ Izzur in #1413
- Remove
- Convert Makefile script to npm scripts by @ koddsson in #1424
- Clean up README badges by @ koddsson in #1422
- fix: package.json - deprecation warning on exports field by @ stevenjoezhang in #1400
- fix: deep-eql bump package to support symbols by @ snewcomer in #1458
- ES module conversion PoC by @ 43081j in #1498
- chore: drop commonjs support by @ 43081j in #1503
- Update pathval by @ koddsson in #1527
- Update check-error by @ koddsson in #1528
- update
- Inline
- Update loupe by @ koddsson in #1545
- Typo 'Test an object' not 'Test and object' by @ mavaddat in #1460
- Update
- Replacing Karma with Web Test Runner by @ koddsson in #1546
- remove codecov by @ koddsson in #1548
- remove chai version constant by @ koddsson in #1550
- Remove istanbul by @ koddsson in #1549
- @ Izzur made their first contribution in #1413
- @ koddsson made their first contribution in #1416
- @ stevenjoezhang made their first contribution in #1400
- @ 43081j made their first contribution in #1498
-
5.0.0-alpha.2 - 2023-10-30
- update
- Inline
- Update loupe by @ koddsson in #1545
- Typo 'Test an object' not 'Test and object' by @ mavaddat in #1460
- Update
- Replacing Karma with Web Test Runner by @ koddsson in #1546
-
5.0.0-alpha.1 - 2023-07-26
-
5.0.0-alpha.0 - 2023-02-07
-
4.5.0 - 2024-07-25
-
4.4.1 - 2024-01-12
- fix: removes
-
4.4.0 - 2024-01-05
- Allow deepEqual fonction to be configured globally (4.x.x branch) by @ forty in #1553
-
4.3.10 - 2023-09-28
- upgrade all dependencies by @ keithamus in #1540
-
4.3.9 - 2023-09-27
-
4.3.8 - 2023-08-24
-
4.3.7 - 2022-11-07
-
4.3.6 - 2022-01-26
-
4.3.5 - 2022-01-25
-
4.3.4 - 2021-03-12
-
4.3.3 - 2021-03-03
-
4.3.2 - 2021-03-03
-
4.3.1 - 2021-03-02
-
4.3.0 - 2021-02-04
-
4.2.0 - 2018-09-26
from chai GitHub release notesWhat's Changed
iterableassertion by @ koddsson in #1592New Contributors
Full Changelog: v5.0.3...v5.1.0
Fix bad v5.0.2 publish.
Full Changelog: v5.0.2...v5.0.3
What's Changed
bump-cliby @ koddsson in #1559??for node compat (5.x) by @ 43081j in #1576loupeto latest version by @ koddsson in #1579Full Changelog: v5.0.1...v5.0.2
BREAKING CHANGES
import {...} from 'chai'orimport('chai').require('chai')will cause failures in nodejs. If you're using ESM and seeing failures, it may be due to a bundler or transpiler which is incorrectly converting import statements into require calls.What's Changed
get-func-namedependency by @ koddsson in #1416deep-eqlto latest version by @ koddsson in #1542type-detectas a simple function by @ koddsson in #1544assertion-errorto it's latest major version! by @ koddsson in #1543New Contributors
Full Changelog: 4.3.1...v5.0.0
The first Release Candidate of chai@v5 is here!
We've put out a few alpha versions and tested them out in various projects with good success. This RC includes all those changes plus any fixes that we've discovered since then.
Please try it out in your projects and let us know if you run into any issues so we can make fixes before version 5!
Thanks for using Chai 🙏🏻
What's Changed
get-func-namedependency by @ koddsson in #1416deep-eqlto latest version by @ koddsson in #1542type-detectas a simple function by @ koddsson in #1544assertion-errorto it's latest major version! by @ koddsson in #1543New Contributors
Full Changelog: v4.3.10...v5.0.0-rc.0
What's Changed
deep-eqlto latest version by @ koddsson in #1542type-detectas a simple function by @ koddsson in #1544assertion-errorto it's latest major version! by @ koddsson in #1543Full Changelog: v5.0.0-alpha.1...v5.0.0-alpha.2
What's Changed
??for node compat by @ 43081j in #1574Full Changelog: v4.4.0...v4.4.1
What's Changed
Full Changelog: v4.3.10...v4.4.0
This release simply bumps all dependencies to their latest non-breaking versions.
What's Changed
Full Changelog: v4.3.9...v4.3.10
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"chai","from":"4.2.0","to":"5.1.0"}],"env":"prod","hasFixes":true,"isBreakingChange":true,"isMajorUpgrade":true,"issuesToFix":[{"exploit_maturity":"no-known-exploit","id":"SNYK-JS-BODYPARSER-7926860","issue_id":"SNYK-JS-BODYPARSER-7926860","priority_score":111,"priority_score_factors":[{"name":"confidentiality","value":"none"},{"name":"integrity","value":"none"},{"name":"availability","value":"high"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"high"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.00046},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Wed Sep 11 2024 11:22:36 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":5.99},{"name":"likelihood","value":1.84},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Asymmetric Resource Consumption (Amplification)"},{"exploit_maturity":"no-known-exploit","id":"SNYK-JS-BROWSERIFYSIGN-6037026","issue_id":"SNYK-JS-BROWSERIFYSIGN-6037026","priority_score":114,"priority_score_factors":[{"name":"confidentiality","value":"none"},{"name":"integrity","value":"high"},{"name":"availability","value":"none"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.00062},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Fri Oct 27 2023 12:03:19 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":5.99},{"name":"likelihood","value":1.89},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Improper Verification of Cryptographic Signature"},{"exploit_maturity":"proof-of-concept","id":"SNYK-JS-DECODEURICOMPONENT-3149970","issue_id":"SNYK-JS-DECODEURICOMPONENT-3149970","priority_score":159,"priority_score_factors":[{"name":"confidentiality","value":"none"},{"name":"integrity","value":"none"},{"name":"availability","value":"high"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.00382},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Mon Nov 28 2022 16:12:34 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":5.99},{"name":"likelihood","value":2.65},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Denial of Service (DoS)"},{"exploit_maturity":"proof-of-concept","id":"SNYK-JS-Y18N-1021887","issue_id":"SNYK-JS-Y18N-1021887","priority_score":189,"priority_score_factors":[{"name":"confidentiality","value":"low"},{"name":"integrity","value":"low"},{"name":"availability","value":"low"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.28236},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Tue Nov 10 2020 15:27:28 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":5.62},{"name":"likelihood","value":3.35},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Prototype Pollution"},{"exploit_maturity":"no-known-exploit","id":"SNYK-JS-JSONSCHEMA-1920922","issue_id":"SNYK-JS-JSONSCHEMA-1920922","priority_score":150,"priority_score_factors":[{"name":"confidentiality","value":"low"},{"name":"integrity","value":"low"},{"name":"availability","value":"high"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.00504},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Sun Nov 14 2021 16:49:43 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":7.84},{"name":"likelihood","value":1.9},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Prototype Pollution"},{"exploit_maturity":"proof-of-concept","id":"SNYK-JS-QS-3153490","issue_id":"SNYK-JS-QS-3153490","priority_score":162,"priority_score_factors":[{"name":"confidentiality","value":"none"},{"name":"integrity","value":"none"},{"name":"availability","value":"high"},{"name":"scope","value":"unchanged"},{"name":"exploitCodeMaturity","value":"proofOfConcept"},{"name":"userInteraction","value":"none"},{"name":"privilegesRequired","value":"none"},{"name":"attackComplexity","value":"low"},{"name":"attackVector","value":"network"},{"name":"epss","value":0.01947},{"name":"isTrending","value":false},{"name":"publicationDate","value":"Sun Dec 04 2022 12:24:32 GMT+0000 (Coordinated Universal Time)"},{"name":"isReachable","value":false},{"name":"isTransitive","value":true},{"name":"isMalicious","value":false},{"name":"businessCriticality","value":"high"},{"name":"relativeImportance","value":"high"},{"name":"relativePopularityRank","value":99},{"name":"impact","value":5.99},{"name":"likelihood","value":2.69},{"name":"scoreVersion","value":"V5"}],"severity":"high","title":"Prototype Poisoning"},{"exploit_maturity":"proof-of-concept","id":"SNYK-JS-SECP256K1-8237220","issue_id":"SNYK-JS-SECP256K...