npm-mongo: use fork of mongodb-core for #8598 (#9200)

This commit is contained in:
David Glasser
2017-10-09 18:02:36 -07:00
committed by Ben Newman
parent 8279f12377
commit e4367acdf1
3 changed files with 23 additions and 11 deletions

View File

@@ -31,14 +31,14 @@
"from": "isarray@>=1.0.0 <1.1.0"
},
"mongodb": {
"version": "2.2.30",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-2.2.30.tgz",
"from": "mongodb@2.2.30"
"version": "2.2.31",
"resolved": "https://github.com/meteor/node-mongodb-native/tarball/0f54d887aef0f172fd48cf4eafd0cf7e5a2500af",
"from": "https://github.com/meteor/node-mongodb-native/tarball/0f54d887aef0f172fd48cf4eafd0cf7e5a2500af"
},
"mongodb-core": {
"version": "2.1.14",
"resolved": "https://registry.npmjs.org/mongodb-core/-/mongodb-core-2.1.14.tgz",
"from": "mongodb-core@2.1.14"
"version": "2.1.15",
"resolved": "https://github.com/meteor/mongodb-core/tarball/82608e807235ac744fc29d161ea1d75361a8f178",
"from": "https://github.com/meteor/mongodb-core/tarball/82608e807235ac744fc29d161ea1d75361a8f178"
},
"process-nextick-args": {
"version": "1.0.7",
@@ -66,8 +66,8 @@
"from": "safe-buffer@>=5.1.0 <5.2.0"
},
"semver": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
"from": "semver@>=5.1.0 <6.0.0"
},
"string_decoder": {

View File

@@ -3,12 +3,17 @@
Package.describe({
summary: "Wrapper around the mongo npm package",
version: '2.2.30',
version: '2.2.31',
documentation: null
});
Npm.depends({
mongodb: "2.2.30"
// Fork of mongodb@2.2.31 whose only change is pointing at a mongodb-core
// with https://github.com/mongodb-js/mongodb-core/pull/224
// NOTE: For the time being, we have hard-coded "2.2.31" as the version
// number in wrapper.js. When reverting back to non-fork, revert that
// change too!
mongodb: "https://github.com/meteor/node-mongodb-native/tarball/0f54d887aef0f172fd48cf4eafd0cf7e5a2500af",
});
Package.onUse(function (api) {

View File

@@ -1,2 +1,9 @@
NpmModuleMongodb = Npm.require('mongodb');
NpmModuleMongodbVersion = Npm.require('mongodb/package.json').version;
// Hard-code the version number of our fork. When we un-fork, revert this
// change! Otherwise, NpmModuleMongodbVersion will either get the value of
// "2.2.31" or the fork's URL, depending on in what order npm processes the
// install commands.
// Previously:
// NpmModuleMongodbVersion = Npm.require('mongodb/package.json').version;
NpmModuleMongodbVersion = "2.2.31";