Skip to content

Commit

Permalink
chore: bump driver to 4.12.1, webpack to 5.x MONGOSH-1315 (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Nov 30, 2022
1 parent 229c9a3 commit 51c0674
Show file tree
Hide file tree
Showing 15 changed files with 34,500 additions and 26,648 deletions.
39,388 changes: 21,173 additions & 18,215 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"karma-typescript": "^5.5.1",
"lerna": "^4.0.0",
"mocha": "^7.1.2",
"mongodb": "^4.10.0",
"mongodb": "^4.12.1",
"mongodb-download-url": "^1.2.2",
"mongodb-js-precommit": "^2.0.0",
"nock": "^13.0.11",
Expand Down
2,810 changes: 2,475 additions & 335 deletions packages/arg-parser/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/arg-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
},
"devDependencies": {
"@mongodb-js/devtools-connect": "^1.4.3",
"mongodb": "^4.10.0"
"mongodb": "^4.12.1"
}
}
10 changes: 6 additions & 4 deletions packages/build/src/compile/generate-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ export async function generateBundle(config: Config): Promise<void> {
return result;
};

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

await bundler.bundle();
}
Loading

0 comments on commit 51c0674

Please sign in to comment.