Skip to content

Commit ca06ad8

Browse files
authored
chore(deps): bump chai and related dependencies (#2588)
In particular, this lets us avoid the bug fixed by chaijs/loupe@020f283.
1 parent 06cca65 commit ca06ad8

37 files changed

+198
-166
lines changed

package-lock.json

Lines changed: 117 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@
101101
"@babel/compat-data": "^7.26.8",
102102
"@mongodb-js/monorepo-tools": "^1.1.10",
103103
"@pkgjs/nv": "^0.2.2",
104-
"@types/chai": "^4.2.5",
104+
"@types/chai": "^5.2.3",
105105
"@types/mocha": "^5.2.7",
106106
"@types/node": "^22.15.30",
107107
"@types/rimraf": "^3.0.0",
108108
"@types/semver": "^7.3.4",
109-
"@types/sinon-chai": "^3.2.4",
109+
"@types/sinon-chai": "^4.0.0",
110110
"@types/which": "^1.3.2",
111-
"chai": "^4.2.0",
111+
"chai": "^6.2.1",
112112
"cross-env": "^6.0.3",
113113
"depcheck": "^1.4.7",
114114
"duplexpair": "^1.0.2",
@@ -124,7 +124,7 @@
124124
"rimraf": "^3.0.2",
125125
"semver": "^7.6.3",
126126
"sinon": "^7.5.0",
127-
"sinon-chai": "^3.5.0",
127+
"sinon-chai": "^4.0.1",
128128
"terser-webpack-plugin": "^5.3.11",
129129
"ts-loader": "^8.0.14",
130130
"ts-node": "^10.9.2",

packages/arg-parser/src/arg-mapper.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { CliOptions, ConnectionInfo } from './';
2-
import chai, { expect } from 'chai';
2+
import * as chai from 'chai';
3+
import { expect } from 'chai';
34
import sinonChai from 'sinon-chai';
45
import { mapCliToDriver } from './arg-mapper';
56
import type { DevtoolsConnectOptions } from '@mongodb-js/devtools-connect';

packages/async-rewriter2/src/async-writer-babel.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import path from 'path';
44
import { promisify } from 'util';
55
import vm from 'vm';
66
import sinon from 'sinon';
7-
import chai, { expect } from 'chai';
7+
import * as chai from 'chai';
8+
import { expect } from 'chai';
89
import sinonChai from 'sinon-chai';
910
chai.use(sinonChai);
1011
const execFile = promisify(childProcess.execFile);

packages/browser-repl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@types/react": "^16.9.17",
8888
"@types/react-dom": "^18.0.8",
8989
"@types/sinon": "^7.5.1",
90-
"@types/sinon-chai": "^3.2.4",
90+
"@types/sinon-chai": "^4.0.0",
9191
"@types/text-table": "^0.2.1",
9292
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
9393
"babel-loader": "^8.3.0",

packages/browser-repl/testing/chai.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import chai, { expect } from 'chai';
1+
import * as chai from 'chai';
2+
import { expect } from 'chai';
23
import sinonChai from 'sinon-chai';
34
chai.use(sinonChai);
45

packages/browser-runtime-core/src/open-context-runtime.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import type { InterpreterEnvironment } from './';
44
import { OpenContextRuntime } from './';
55
import type { MongoshBus } from '@mongosh/types';
66
import type { ServiceProvider } from '@mongosh/service-provider-core';
7-
import chai, { expect } from 'chai';
7+
import * as chai from 'chai';
8+
import { expect } from 'chai';
89
import sinonChai from 'sinon-chai';
910
import type { StubbedInstance } from 'ts-sinon';
1011
import { stubInterface } from 'ts-sinon';

packages/browser-runtime-electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
4444
"@mongosh/service-provider-node-driver": "^3.17.5",
4545
"@types/sinon": "^7.5.1",
46-
"@types/sinon-chai": "^3.2.4",
46+
"@types/sinon-chai": "^4.0.0",
4747
"bson": "^6.10.4",
4848
"depcheck": "^1.4.7",
4949
"eslint": "^7.25.0",

packages/browser-runtime-electron/src/electron-runtime.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { SinonStubbedInstance } from 'sinon';
22
import sinon from 'sinon';
3-
import chai from 'chai';
3+
import * as chai from 'chai';
44
import sinonChai from 'sinon-chai';
55
chai.use(sinonChai);
66
const { expect } = chai;

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"depcheck": "^1.4.7",
6161
"eslint": "^7.25.0",
6262
"prettier": "^2.8.8",
63-
"sinon-chai": "^3.5.0",
63+
"sinon-chai": "^4.0.1",
6464
"yaml": "^2.3.1"
6565
},
6666
"dependencies": {

0 commit comments

Comments
 (0)