Skip to content

Commit 51c0674

Browse files
authored
chore: bump driver to 4.12.1, webpack to 5.x MONGOSH-1315 (#1365)
1 parent 229c9a3 commit 51c0674

File tree

15 files changed

+34500
-26648
lines changed

15 files changed

+34500
-26648
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"karma-typescript": "^5.5.1",
124124
"lerna": "^4.0.0",
125125
"mocha": "^7.1.2",
126-
"mongodb": "^4.10.0",
126+
"mongodb": "^4.12.1",
127127
"mongodb-download-url": "^1.2.2",
128128
"mongodb-js-precommit": "^2.0.0",
129129
"nock": "^13.0.11",

packages/arg-parser/package-lock.json

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

packages/arg-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
},
3636
"devDependencies": {
3737
"@mongodb-js/devtools-connect": "^1.4.3",
38-
"mongodb": "^4.10.0"
38+
"mongodb": "^4.12.1"
3939
}
4040
}

packages/build/src/compile/generate-bundle.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ export async function generateBundle(config: Config): Promise<void> {
5858
return result;
5959
};
6060

61-
// Parcel also unfortunately does not know about the built-in 'v8' module
61+
// Parcel also unfortunately does not know about the built-in 'v8' or 'http2' modules
6262
// of Node.js. We create a dummy version that points to it.
63-
await fs.mkdir(path.join(__dirname, '../../../../node_modules/v8'), { recursive: true });
64-
await fs.writeFile(path.join(__dirname, '../../../../node_modules/v8/index.js'),
65-
'module.exports = require("module").createRequire(__filename)("v8")');
63+
for (const mod of ['v8', 'http2']) {
64+
await fs.mkdir(path.join(__dirname, `../../../../node_modules/${mod}`), { recursive: true });
65+
await fs.writeFile(path.join(__dirname, `../../../../node_modules/${mod}/index.js`),
66+
`module.exports = require("module").createRequire(__filename)("${mod}")`);
67+
}
6668

6769
await bundler.bundle();
6870
}

0 commit comments

Comments
 (0)