From ae9a6bd2f5cd69e38968dcd82fe08a2ee7618789 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:10:33 +0000 Subject: [PATCH 1/2] Bump chai from 4.5.0 to 6.2.2 Bumps [chai](https://github.com/chaijs/chai) from 4.5.0 to 6.2.2. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](https://github.com/chaijs/chai/compare/v4.5.0...v6.2.2) --- updated-dependencies: - dependency-name: chai dependency-version: 6.2.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 340d3e6..b7f44b5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "devDependencies": { "@eslint/eslintrc": "^3.3.5", "async": "^3.2.4", - "chai": "^4.2.0", + "chai": "^6.2.2", "coveralls": "^3.0.7", "eslint": "^10.5.0", "eslint-config-google": "^0.14.0", From 2eded7fdeff0355f267b5376eeeb2e3d36d66f36 Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Mon, 29 Jun 2026 13:29:53 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20`sinon-chai`=20?= =?UTF-8?q?to=20support=20`chai@6`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dependabot bumped `chai` to v6, but CI then fails at `npm install`: npm error ERESOLVE unable to resolve dependency tree npm error peer chai@"^4.0.0" from sinon-chai@3.7.0 `sinon-chai@3.7.0` only peer-depends on `chai@^4`, so it can't coexist with `chai@6`. This change bumps `sinon-chai` to `^4.0.1`, whose peer range is `chai@^5 || ^6`, which clears the conflict. `sinon-chai@4` ships as ESM with a default export, so under Node's `require(esm)` interop `require('sinon-chai')` resolves to the module namespace rather than the plugin function; we now reach for `.default` so `chai.use()` gets the function it expects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- package.json | 2 +- test/test_mongo_middleware.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b7f44b5..2681cbe 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "sharedb": "^6.0.0", "sharedb-mingo-memory": "^5.0.0", "sinon": "^22.0.0", - "sinon-chai": "^3.7.0" + "sinon-chai": "^4.0.1" }, "scripts": { "lint": "./node_modules/.bin/eslint .", diff --git a/test/test_mongo_middleware.js b/test/test_mongo_middleware.js index 6c34f17..c75d93e 100644 --- a/test/test_mongo_middleware.js +++ b/test/test_mongo_middleware.js @@ -1,7 +1,7 @@ var async = require('async'); var sinon = require('sinon'); var chai = require('chai'); -chai.use(require('sinon-chai')); +chai.use(require('sinon-chai').default); var expect = chai.expect; var ShareDbMongo = require('..'); var mongodb = require('./../mongodb');