From 47949d971c68f40ea4f52f215438fd2564f26d87 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Wed, 27 Sep 2023 15:52:43 +0200 Subject: [PATCH 01/34] Upgrade underscore to v1.6 --- packages/underscore/package.js | 6 +- packages/underscore/underscore.js | 215 +++++++++++++++++++----------- 2 files changed, 137 insertions(+), 84 deletions(-) diff --git a/packages/underscore/package.js b/packages/underscore/package.js index 9df15ceb1f..84f8474611 100644 --- a/packages/underscore/package.js +++ b/packages/underscore/package.js @@ -1,14 +1,14 @@ Package.describe({ summary: "Collection of small helpers: _.map, _.each, ...", - version: '1.0.13', + version: '1.6.0', }); Npm.depends({ - '@types/underscore': '1.11.4', + '@types/underscore': '1.11.9', }); Package.onUse(function (api) { - // Like all packages, we have an implicit depedency on the 'meteor' + // Like all packages, we have an implicit dependency on the 'meteor' // package, which provides such things as the *.js file handler. Use // an undocumented API to allow 'meteor' to alter us even though we // depend on it. This is necessary since 'meteor' depends on us. One diff --git a/packages/underscore/underscore.js b/packages/underscore/underscore.js index f5ca16aa33..b7788b3a4b 100644 --- a/packages/underscore/underscore.js +++ b/packages/underscore/underscore.js @@ -1,6 +1,6 @@ -// Underscore.js 1.5.2 +// Underscore.js 1.6.0 // http://underscorejs.org -// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. (function() { @@ -65,7 +65,7 @@ } // Current version. - _.VERSION = '1.5.2'; + _.VERSION = '1.6.0'; // Collection Functions // -------------------- @@ -100,7 +100,7 @@ // Handles objects with the built-in `forEach`, arrays, and raw objects. // Delegates to **ECMAScript 5**'s native `forEach` if available. var each = _.each = _.forEach = function(obj, iterator, context) { - if (obj == null) return; + if (obj == null) return obj; if (nativeForEach && obj.forEach === nativeForEach) { obj.forEach(iterator, context); } else if (looksLikeArray(obj)) { @@ -113,6 +113,7 @@ if (iterator.call(context, obj[keys[i]], keys[i], obj) === breaker) return; } } + return obj; }; // Return the results of applying the iterator to each element. @@ -178,10 +179,10 @@ }; // Return the first value which passes a truth test. Aliased as `detect`. - _.find = _.detect = function(obj, iterator, context) { + _.find = _.detect = function(obj, predicate, context) { var result; any(obj, function(value, index, list) { - if (iterator.call(context, value, index, list)) { + if (predicate.call(context, value, index, list)) { result = value; return true; } @@ -192,33 +193,33 @@ // Return all the elements that pass a truth test. // Delegates to **ECMAScript 5**'s native `filter` if available. // Aliased as `select`. - _.filter = _.select = function(obj, iterator, context) { + _.filter = _.select = function(obj, predicate, context) { var results = []; if (obj == null) return results; - if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context); + if (nativeFilter && obj.filter === nativeFilter) return obj.filter(predicate, context); each(obj, function(value, index, list) { - if (iterator.call(context, value, index, list)) results.push(value); + if (predicate.call(context, value, index, list)) results.push(value); }); return results; }; // Return all the elements for which a truth test fails. - _.reject = function(obj, iterator, context) { + _.reject = function(obj, predicate, context) { return _.filter(obj, function(value, index, list) { - return !iterator.call(context, value, index, list); + return !predicate.call(context, value, index, list); }, context); }; // Determine whether all of the elements match a truth test. // Delegates to **ECMAScript 5**'s native `every` if available. // Aliased as `all`. - _.every = _.all = function(obj, iterator, context) { - iterator || (iterator = _.identity); + _.every = _.all = function(obj, predicate, context) { + predicate || (predicate = _.identity); var result = true; if (obj == null) return result; - if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context); + if (nativeEvery && obj.every === nativeEvery) return obj.every(predicate, context); each(obj, function(value, index, list) { - if (!(result = result && iterator.call(context, value, index, list))) return breaker; + if (!(result = result && predicate.call(context, value, index, list))) return breaker; }); return !!result; }; @@ -226,13 +227,13 @@ // Determine if at least one element in the object matches a truth test. // Delegates to **ECMAScript 5**'s native `some` if available. // Aliased as `any`. - var any = _.some = _.any = function(obj, iterator, context) { - iterator || (iterator = _.identity); + var any = _.some = _.any = function(obj, predicate, context) { + predicate || (predicate = _.identity); var result = false; if (obj == null) return result; - if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context); + if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context); each(obj, function(value, index, list) { - if (result || (result = iterator.call(context, value, index, list))) return breaker; + if (result || (result = predicate.call(context, value, index, list))) return breaker; }); return !!result; }; @@ -258,19 +259,13 @@ // Convenience version of a common use case of `map`: fetching a property. _.pluck = function(obj, key) { - return _.map(obj, function(value){ return value[key]; }); + return _.map(obj, _.property(key)); }; // Convenience version of a common use case of `filter`: selecting only objects // containing specific `key:value` pairs. - _.where = function(obj, attrs, first) { - if (_.isEmpty(attrs)) return first ? void 0 : []; - return _[first ? 'find' : 'filter'](obj, function(value) { - for (var key in attrs) { - if (attrs[key] !== value[key]) return false; - } - return true; - }); + _.where = function(obj, attrs) { + return _.find(obj, _.matches(attrs)); }; // Convenience version of a common use case of `find`: getting the first object @@ -286,13 +281,15 @@ if (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) { return Math.max.apply(Math, obj); } - if (!iterator && _.isEmpty(obj)) return -Infinity; - var result = {computed : -Infinity, value: -Infinity}; + var result = -Infinity, lastComputed = -Infinity; each(obj, function(value, index, list) { var computed = iterator ? iterator.call(context, value, index, list) : value; - computed > result.computed && (result = {value : value, computed : computed}); + if (computed > lastComputed) { + result = value; + lastComputed = computed; + } }); - return result.value; + return result; }; // Return the minimum element (or element-based computation). @@ -300,16 +297,18 @@ if (!iterator && _.isArray(obj) && obj[0] === +obj[0] && obj.length < 65535) { return Math.min.apply(Math, obj); } - if (!iterator && _.isEmpty(obj)) return Infinity; - var result = {computed : Infinity, value: Infinity}; + var result = Infinity, lastComputed = Infinity; each(obj, function(value, index, list) { var computed = iterator ? iterator.call(context, value, index, list) : value; - computed < result.computed && (result = {value : value, computed : computed}); + if (computed < lastComputed) { + result = value; + lastComputed = computed; + } }); - return result.value; + return result; }; - // Shuffle an array, using the modern version of the + // Shuffle an array, using the modern version of the // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle). _.shuffle = function(obj) { var rand; @@ -323,11 +322,12 @@ return shuffled; }; - // Sample **n** random values from an array. - // If **n** is not specified, returns a single random element from the array. + // Sample **n** random values from a collection. + // If **n** is not specified, returns a single random element. // The internal `guard` argument allows it to work with `map`. _.sample = function(obj, n, guard) { - if (arguments.length < 2 || guard) { + if (n == null || guard) { + if (obj.length !== +obj.length) obj = _.values(obj); return obj[_.random(obj.length - 1)]; } return _.shuffle(obj).slice(0, Math.max(0, n)); @@ -335,12 +335,14 @@ // An internal function to generate lookup iterators. var lookupIterator = function(value) { - return _.isFunction(value) ? value : function(obj){ return obj[value]; }; + if (value == null) return _.identity; + if (_.isFunction(value)) return value; + return _.property(value); }; // Sort the object's values by a criterion produced by an iterator. - _.sortBy = function(obj, value, context) { - var iterator = lookupIterator(value); + _.sortBy = function(obj, iterator, context) { + iterator = lookupIterator(iterator); return _.pluck(_.map(obj, function(value, index, list) { return { value: value, @@ -360,9 +362,9 @@ // An internal function used for aggregate "group by" operations. var group = function(behavior) { - return function(obj, value, context) { + return function(obj, iterator, context) { var result = {}; - var iterator = value == null ? _.identity : lookupIterator(value); + iterator = lookupIterator(iterator); each(obj, function(value, index) { var key = iterator.call(context, value, index, obj); behavior(result, key, value); @@ -374,7 +376,7 @@ // Groups the object's values by a criterion. Pass either a string attribute // to group by, or a function that returns the criterion. _.groupBy = group(function(result, key, value) { - (_.has(result, key) ? result[key] : (result[key] = [])).push(value); + _.has(result, key) ? result[key].push(value) : result[key] = [value]; }); // Indexes the object's values by a criterion, similar to `groupBy`, but for @@ -425,7 +427,9 @@ // allows it to work with `_.map`. _.first = _.head = _.take = function(array, n, guard) { if (array == null) return void 0; - return (n == null) || guard ? array[0] : slice.call(array, 0, n); + if ((n == null) || guard) return array[0]; + if (n < 0) return []; + return slice.call(array, 0, n); }; // Returns everything but the last entry of the array. Especially useful on @@ -440,11 +444,8 @@ // values in the array. The **guard** check allows it to work with `_.map`. _.last = function(array, n, guard) { if (array == null) return void 0; - if ((n == null) || guard) { - return array[array.length - 1]; - } else { - return slice.call(array, Math.max(array.length - n, 0)); - } + if ((n == null) || guard) return array[array.length - 1]; + return slice.call(array, Math.max(array.length - n, 0)); }; // Returns everything but the first entry of the array. Aliased as `tail` and `drop`. @@ -485,6 +486,16 @@ return _.difference(array, slice.call(arguments, 1)); }; + // Split an array into two arrays: one whose elements all satisfy the given + // predicate, and one whose elements all do not satisfy the predicate. + _.partition = function(array, predicate) { + var pass = [], fail = []; + each(array, function(elem) { + (predicate(elem) ? pass : fail).push(elem); + }); + return [pass, fail]; + }; + // Produce a duplicate-free version of the array. If the array has already // been sorted, you have the option of using a faster algorithm. // Aliased as `unique`. @@ -518,7 +529,7 @@ var rest = slice.call(arguments, 1); return _.filter(_.uniq(array), function(item) { return _.every(rest, function(other) { - return _.indexOf(other, item) >= 0; + return _.contains(other, item) >= 0; }); }); }; @@ -533,7 +544,7 @@ // Zip together multiple lists into a single array -- elements that share // an index go together. _.zip = function() { - var length = _.max(_.pluck(arguments, "length").concat(0)); + var length = _.max(_.pluck(arguments, 'length').concat(0)); var results = new Array(length); for (var i = 0; i < length; i++) { results[i] = _.pluck(arguments, '' + i); @@ -639,19 +650,27 @@ }; // Partially apply a function by creating a version that has had some of its - // arguments pre-filled, without changing its dynamic `this` context. + // arguments pre-filled, without changing its dynamic `this` context. _ acts + // as a placeholder, allowing any combination of arguments to be pre-filled. _.partial = function(func) { - var args = slice.call(arguments, 1); + var boundArgs = slice.call(arguments, 1); return function() { - return func.apply(this, args.concat(slice.call(arguments))); + var position = 0; + var args = boundArgs.slice(); + for (var i = 0, length = args.length; i < length; i++) { + if (args[i] === _) args[i] = arguments[position++]; + } + while (position < arguments.length) args.push(arguments[position++]); + return func.apply(this, args); }; }; - // Bind all of an object's methods to that object. Useful for ensuring that - // all callbacks defined on an object belong to it. + // Bind a number of an object's methods to that object. Remaining arguments + // are the method names to be bound. Useful for ensuring that all callbacks + // defined on an object belong to it. _.bindAll = function(obj) { var funcs = slice.call(arguments, 1); - if (funcs.length === 0) throw new Error("bindAll must be passed function names"); + if (funcs.length === 0) throw new Error('bindAll must be passed function names'); each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); }); return obj; }; @@ -690,12 +709,12 @@ var previous = 0; options || (options = {}); var later = function() { - previous = options.leading === false ? 0 : new Date; + previous = options.leading === false ? 0 : _.now(); timeout = null; result = func.apply(context, args); }; return function() { - var now = new Date; + var now = _.now(); if (!previous && options.leading === false) previous = now; var remaining = wait - (now - previous); context = this; @@ -705,6 +724,7 @@ timeout = null; previous = now; result = func.apply(context, args); + context = args = null; } else if (!timeout && options.trailing !== false) { timeout = setTimeout(later, remaining); } @@ -718,24 +738,32 @@ // leading edge, instead of the trailing. _.debounce = function(func, wait, immediate) { var timeout, args, context, timestamp, result; + + var later = function() { + var last = _.now() - timestamp; + if (last < wait) { + timeout = setTimeout(later, wait - last); + } else { + timeout = null; + if (!immediate) { + result = func.apply(context, args); + context = args = null; + } + } + }; + return function() { context = this; args = arguments; - timestamp = new Date(); - var later = function() { - var last = (new Date()) - timestamp; - if (last < wait) { - timeout = setTimeout(later, wait - last); - } else { - timeout = null; - if (!immediate) result = func.apply(context, args); - } - }; + timestamp = _.now(); var callNow = immediate && !timeout; if (!timeout) { timeout = setTimeout(later, wait); } - if (callNow) result = func.apply(context, args); + if (callNow) { + result = func.apply(context, args); + context = args = null; + } return result; }; }; @@ -757,11 +785,7 @@ // allowing you to adjust arguments, run code before and after, and // conditionally execute the original function. _.wrap = function(func, wrapper) { - return function() { - var args = [func]; - push.apply(args, arguments); - return wrapper.apply(this, args); - }; + return _.partial(wrapper, func); }; // Returns a function that is the composition of a list of functions, each @@ -791,8 +815,9 @@ // Retrieve the names of an object's properties. // Delegates to **ECMAScript 5**'s native `Object.keys` - _.keys = nativeKeys || function(obj) { - if (obj !== Object(obj)) throw new TypeError('Invalid object'); + _.keys = function(obj) { + if (!_.isObject(obj)) return []; + if (nativeKeys) return nativeKeys(obj); var keys = []; for (var key in obj) if (_.has(obj, key)) keys.push(key); return keys; @@ -947,7 +972,8 @@ // from different frames are. var aCtor = a.constructor, bCtor = b.constructor; if (aCtor !== bCtor && !(_.isFunction(aCtor) && (aCtor instanceof aCtor) && - _.isFunction(bCtor) && (bCtor instanceof bCtor))) { + _.isFunction(bCtor) && (bCtor instanceof bCtor)) + && ('constructor' in a && 'constructor' in b)) { return false; } // Add the first object to the stack of traversed objects. @@ -1087,6 +1113,30 @@ return value; }; + _.constant = function(value) { + return function () { + return value; + }; + }; + + _.property = function(key) { + return function(obj) { + return obj[key]; + }; + }; + + // Returns a predicate for checking whether an object has a given set of `key:value` pairs. + _.matches = function(attrs) { + return function(obj) { + if (obj === attrs) return true; //avoid comparing an object to itself. + for (var key in attrs) { + if (attrs[key] !== obj[key]) + return false; + } + return true; + } + }; + // Run a function **n** times. _.times = function(n, iterator, context) { var accum = Array(Math.max(0, n)); @@ -1103,6 +1153,9 @@ return min + Math.floor(Math.random() * (max - min + 1)); }; + // A (possibly faster) way to get the current timestamp as an integer. + _.now = Date.now || function() { return new Date().getTime(); }; + // List of HTML entities for escaping. var entityMap = { escape: { From c29a19c8969921a6fa3bba13be1477499bef3e16 Mon Sep 17 00:00:00 2001 From: Corbelli Mattia Date: Wed, 13 Dec 2023 21:04:33 +0100 Subject: [PATCH 02/34] added missing type for createUserVerifyingEmail --- packages/accounts-base/accounts-base.d.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/accounts-base/accounts-base.d.ts b/packages/accounts-base/accounts-base.d.ts index 1e1ae22c09..c44a9895c9 100644 --- a/packages/accounts-base/accounts-base.d.ts +++ b/packages/accounts-base/accounts-base.d.ts @@ -48,6 +48,16 @@ export namespace Accounts { callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void ): Promise; + function createUserVerifyingEmail( + options: { + username?: string | undefined; + email?: string | undefined; + password?: string | undefined; + profile?: Meteor.UserProfile | undefined; + }, + callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void + ): Promise; + function config(options: { sendVerificationEmail?: boolean | undefined; forbidClientAccountCreation?: boolean | undefined; @@ -324,9 +334,9 @@ export namespace Accounts { type Password = | string | { - digest: string; - algorithm: 'sha-256'; - }; + digest: string; + algorithm: 'sha-256'; + }; /** * From eb7a0e6bab14b8600dc92c54dff903c1a310ba5c Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 13 Dec 2023 16:13:00 -0800 Subject: [PATCH 03/34] Fix missing/incorrect types in meteor and service-configuration --- packages/meteor/meteor.d.ts | 5 ++++- packages/service-configuration/service-configuration.d.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/meteor/meteor.d.ts b/packages/meteor/meteor.d.ts index ad3b50e018..94f4a9753f 100644 --- a/packages/meteor/meteor.d.ts +++ b/packages/meteor/meteor.d.ts @@ -69,6 +69,9 @@ export namespace Meteor { function user(options?: { fields?: Mongo.FieldSpecifier | undefined; }): User | null; + function userAsync(options?: { + fields?: Mongo.FieldSpecifier | undefined; + }): Promise; function userId(): string | null; var users: Mongo.Collection; @@ -241,7 +244,7 @@ export namespace Meteor { >( name: string, args: ReadonlyArray, - options?: MethodApplyOptions, + options?: MethodApplyOptions, asyncCallback?: ( error: global_Error | Meteor.Error | undefined, result?: Result diff --git a/packages/service-configuration/service-configuration.d.ts b/packages/service-configuration/service-configuration.d.ts index 828a517409..33667740a9 100644 --- a/packages/service-configuration/service-configuration.d.ts +++ b/packages/service-configuration/service-configuration.d.ts @@ -10,7 +10,7 @@ class ConfigError extends Error { message: string; } -export declare var ServiceConfiguration: { +export var ServiceConfiguration: { configurations: Mongo.Collection; ConfigError: typeof ConfigError }; From ea5105d6cfe93781a5859896431fece5cfcf86de Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:19:28 -0300 Subject: [PATCH 04/34] Bump dev-bundle script --- meteor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meteor b/meteor index 5260286f31..b758941e20 100755 --- a/meteor +++ b/meteor @@ -1,6 +1,6 @@ #!/usr/bin/env bash -BUNDLE_VERSION=14.21.4.8 +BUNDLE_VERSION=14.21.4.9 # OS Check. Put here because here is where we download the precompiled From 8c83b898dca7eca23c5959ee0fb272f962b99f65 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:19:38 -0300 Subject: [PATCH 05/34] bump meteor tool on packages --- packages/meteor-tool/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index ab146ae505..5cc209c2c3 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'The Meteor command-line tool', - version: '2.14.0', + version: '2.14.1-beta.0', }); Package.includeTool(); From 57d57ab526f6c43ede6604545be24d1e5dcd9b57 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:19:45 -0300 Subject: [PATCH 06/34] update release-script --- scripts/admin/meteor-release-experimental.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/admin/meteor-release-experimental.json b/scripts/admin/meteor-release-experimental.json index 6ede3d7e00..71548280f0 100644 --- a/scripts/admin/meteor-release-experimental.json +++ b/scripts/admin/meteor-release-experimental.json @@ -1,6 +1,6 @@ { "track": "METEOR", - "version": "2.14-rc.3", + "version": "2.14.1-beta.0", "recommended": false, "official": false, "description": "Meteor experimental release" From 68fd8527de75d468f407469481dad415233c40d5 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:19:56 -0300 Subject: [PATCH 07/34] update mongodb version from build --- scripts/build-dev-bundle-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-dev-bundle-common.sh b/scripts/build-dev-bundle-common.sh index 4a928ee0d3..e496c28402 100644 --- a/scripts/build-dev-bundle-common.sh +++ b/scripts/build-dev-bundle-common.sh @@ -6,7 +6,7 @@ set -u UNAME=$(uname) ARCH=$(uname -m) NODE_VERSION=14.21.4 -MONGO_VERSION_64BIT=6.0.3 +MONGO_VERSION_64BIT=7.0.5 MONGO_VERSION_32BIT=3.2.22 NPM_VERSION=6.14.18 From 63e816a523ba3c484c36d5a318bff4d419274a97 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Tue, 23 Jan 2024 16:20:16 -0300 Subject: [PATCH 08/34] update free monotoring optioon --- tools/runners/run-mongo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/runners/run-mongo.js b/tools/runners/run-mongo.js index 7a7bcd8444..26c42af566 100644 --- a/tools/runners/run-mongo.js +++ b/tools/runners/run-mongo.js @@ -56,7 +56,7 @@ function spawnMongod(mongodPath, port, dbPath, replSetName) { // in scripts/generate-dev-bundle.sh) neither displays the banner nor // supports the flag, so it's safe/important to avoid passing the flag // to mongod on 64-bit linux. - args.push('--enableFreeMonitoring', 'off'); + // args.push('--enableFreeMonitoring', 'off'); } // run with rosetta on mac m1 From 5949fedfcb67af36cb5eb4d34d7355abc29992e7 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:00:35 -0300 Subject: [PATCH 09/34] empty just to run ci From 974561fbcf1bb94f14a49f41b7872161efde8381 Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 24 Jan 2024 11:34:53 -0400 Subject: [PATCH 10/34] - update g++ version and install libstdc++6 --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 35e4e9f859..c2bfe92f09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: - travis_retry ./packages/test-in-console/run.sh env: global: - - CXX=g++-4.8 + - CXX=g++-4.9 - phantom=false - PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium jobs: @@ -24,4 +24,5 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - g++-4.8 + - g++-4.9 + - libstdc++6 From d6f62cfa59cccb97b1360cdc2cf2364d649f0746 Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 24 Jan 2024 11:57:34 -0400 Subject: [PATCH 11/34] - update puppeteer version --- .travis.yml | 4 ++-- packages/test-in-console/run.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c2bfe92f09..bb29b5a096 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: - travis_retry ./packages/test-in-console/run.sh env: global: - - CXX=g++-4.9 + - CXX=g++-4.8 - phantom=false - PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium jobs: @@ -24,5 +24,5 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - g++-4.9 + - g++-4.8 - libstdc++6 diff --git a/packages/test-in-console/run.sh b/packages/test-in-console/run.sh index 7c804ef27b..5269f93ea8 100755 --- a/packages/test-in-console/run.sh +++ b/packages/test-in-console/run.sh @@ -17,7 +17,7 @@ then ./meteor npm install -g phantomjs-prebuilt browserstack-webdriver else # Installs into dev_bundle/lib/node_modules/puppeteer. - ./meteor npm install -g puppeteer@20.4.0 + ./meteor npm install -g puppeteer@21.9.0 fi export PATH=$METEOR_HOME:$PATH From dffdbf44c6dc0cbb2bef1120c7135736c6eedf6b Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 24 Jan 2024 12:09:31 -0400 Subject: [PATCH 12/34] - use different distro on travis --- .travis.yml | 2 +- packages/test-in-console/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bb29b5a096..0964ad0981 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js os: linux -dist: xenial +dist: jammy node_js: - "14.17.6" cache: diff --git a/packages/test-in-console/run.sh b/packages/test-in-console/run.sh index 5269f93ea8..7c804ef27b 100755 --- a/packages/test-in-console/run.sh +++ b/packages/test-in-console/run.sh @@ -17,7 +17,7 @@ then ./meteor npm install -g phantomjs-prebuilt browserstack-webdriver else # Installs into dev_bundle/lib/node_modules/puppeteer. - ./meteor npm install -g puppeteer@21.9.0 + ./meteor npm install -g puppeteer@20.4.0 fi export PATH=$METEOR_HOME:$PATH From 62393231440b924450d44f5ae508d776ff3c9242 Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 24 Jan 2024 12:15:32 -0400 Subject: [PATCH 13/34] - update g++ to version 11 --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0964ad0981..3e63c8892f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: - travis_retry ./packages/test-in-console/run.sh env: global: - - CXX=g++-4.8 + - CXX=g++-4.11 - phantom=false - PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium jobs: @@ -24,5 +24,4 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - g++-4.8 - - libstdc++6 + - g++-4.11 From a0eeda6e602fa01883675db369575a24f36905b0 Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 24 Jan 2024 12:19:23 -0400 Subject: [PATCH 14/34] - update g++ to version 11 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e63c8892f..c6a6e2f049 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: - travis_retry ./packages/test-in-console/run.sh env: global: - - CXX=g++-4.11 + - CXX=g++11 - phantom=false - PUPPETEER_DOWNLOAD_PATH=~/.npm/chromium jobs: @@ -24,4 +24,4 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - g++-4.11 + - g++-11 From 088c1e4d62f2a2bef6b5dd15328c8a81699e9c8b Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:41:49 -0300 Subject: [PATCH 15/34] Meteor version to 2.14.1-beta.0 :comet: --- docs/generators/changelog/versions/2.14.1.md | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docs/generators/changelog/versions/2.14.1.md diff --git a/docs/generators/changelog/versions/2.14.1.md b/docs/generators/changelog/versions/2.14.1.md new file mode 100644 index 0000000000..4eb0fdb897 --- /dev/null +++ b/docs/generators/changelog/versions/2.14.1.md @@ -0,0 +1,40 @@ +## v2.14.1, 2024-01-XX + +### Highlights + +* Bumps embedded MongoDB to 7.0.5. + +#### Breaking Changes + +N/A + +#### Internal API changes + +N/A + +#### Migration Steps + +Please run the following command to update your project: + +```bash + +meteor update --release 2.14.1 + +``` + + +#### Meteor Version Release + + +* `Command line`: + - The bundle version was changed to include embedded MongoDB to 7.0.5. + + +#### Special thanks to + +- [@Grubba27](https://github.com/Grubba27). +- [@denihs](https://github.com/denihs). + +For making this great framework even better! + + From 4337bd2d12b5fb65590091b7cc975eb0d99cb735 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:33:56 -0300 Subject: [PATCH 16/34] =?UTF-8?q?Meteor=20version=20to=202.14.1-rc.0=C2=A0?= =?UTF-8?q?:comet:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/meteor-tool/package.js | 2 +- scripts/admin/meteor-release-experimental.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index 5cc209c2c3..9e0d2afc61 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'The Meteor command-line tool', - version: '2.14.1-beta.0', + version: '2.14.1-rc.0', }); Package.includeTool(); diff --git a/scripts/admin/meteor-release-experimental.json b/scripts/admin/meteor-release-experimental.json index 71548280f0..022df34db1 100644 --- a/scripts/admin/meteor-release-experimental.json +++ b/scripts/admin/meteor-release-experimental.json @@ -1,6 +1,6 @@ { "track": "METEOR", - "version": "2.14.1-beta.0", + "version": "2.14.1-rc.0", "recommended": false, "official": false, "description": "Meteor experimental release" From 121343f1c21b1bcc2bb2b12255d4e69362e1d052 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:33:12 -0300 Subject: [PATCH 17/34] Meteor version to 2.15-beta.0 :comet: --- packages/meteor-tool/package.js | 2 +- scripts/admin/meteor-release-experimental.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index 9e0d2afc61..1ef033ff2b 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'The Meteor command-line tool', - version: '2.14.1-rc.0', + version: '2.15.0-beta.0', }); Package.includeTool(); diff --git a/scripts/admin/meteor-release-experimental.json b/scripts/admin/meteor-release-experimental.json index 022df34db1..a38681aab4 100644 --- a/scripts/admin/meteor-release-experimental.json +++ b/scripts/admin/meteor-release-experimental.json @@ -1,6 +1,6 @@ { "track": "METEOR", - "version": "2.14.1-rc.0", + "version": "2.15-beta.0", "recommended": false, "official": false, "description": "Meteor experimental release" From 284b25decde68e6d8e5fd13ea39bf7fecc9e7071 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 29 Jan 2024 10:34:34 -0400 Subject: [PATCH 18/34] - Meteor version to 2.15.0-rc.0 :comet: --- docs/generators/changelog/versions/{2.14.1.md => 2.15.0.md} | 4 ++-- packages/meteor-tool/package.js | 2 +- scripts/admin/meteor-release-experimental.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename docs/generators/changelog/versions/{2.14.1.md => 2.15.0.md} (90%) diff --git a/docs/generators/changelog/versions/2.14.1.md b/docs/generators/changelog/versions/2.15.0.md similarity index 90% rename from docs/generators/changelog/versions/2.14.1.md rename to docs/generators/changelog/versions/2.15.0.md index 4eb0fdb897..b41ea00a61 100644 --- a/docs/generators/changelog/versions/2.14.1.md +++ b/docs/generators/changelog/versions/2.15.0.md @@ -1,4 +1,4 @@ -## v2.14.1, 2024-01-XX +## v2.15.0, 2024-01-XX ### Highlights @@ -18,7 +18,7 @@ Please run the following command to update your project: ```bash -meteor update --release 2.14.1 +meteor update --release 2.15.0 ``` diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index 1ef033ff2b..c1566e72e1 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'The Meteor command-line tool', - version: '2.15.0-beta.0', + version: '2.15.0-rc.0', }); Package.includeTool(); diff --git a/scripts/admin/meteor-release-experimental.json b/scripts/admin/meteor-release-experimental.json index a38681aab4..9355ff5007 100644 --- a/scripts/admin/meteor-release-experimental.json +++ b/scripts/admin/meteor-release-experimental.json @@ -1,6 +1,6 @@ { "track": "METEOR", - "version": "2.15-beta.0", + "version": "2.15-rc.0", "recommended": false, "official": false, "description": "Meteor experimental release" From d6cf404caf1aa2b1cf513ae3ca95b108a8294770 Mon Sep 17 00:00:00 2001 From: Gywem Date: Mon, 29 Jan 2024 16:22:32 +0100 Subject: [PATCH 19/34] configure properly the submodule to include proper sources on cordova-plugin-meteor-webapp npm package --- .gitmodules | 6 +++++- .../cordova-plugin-meteor-webapp/src/ios/GCDWebServer | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 160000 npm-packages/cordova-plugin-meteor-webapp/src/ios/GCDWebServer diff --git a/.gitmodules b/.gitmodules index 17644a42a4..59b70023f1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,7 @@ [submodule "packages/non-core/blaze"] path = packages/non-core/blaze - url = https://github.com/meteor/blaze.git \ No newline at end of file + url = https://github.com/meteor/blaze.git +[submodule "npm-packages/cordova-plugin-meteor-webapp/src/ios/GCDWebServer"] + path = npm-packages/cordova-plugin-meteor-webapp/src/ios/GCDWebServer + url = https://github.com/meteor/GCDWebServer.git + branch = master diff --git a/npm-packages/cordova-plugin-meteor-webapp/src/ios/GCDWebServer b/npm-packages/cordova-plugin-meteor-webapp/src/ios/GCDWebServer new file mode 160000 index 0000000000..38e9bf08e0 --- /dev/null +++ b/npm-packages/cordova-plugin-meteor-webapp/src/ios/GCDWebServer @@ -0,0 +1 @@ +Subproject commit 38e9bf08e09490561f4e982867cbc2adcee2b886 From ddc311761d091dd66c64bac2b18d61e96c8fdbb9 Mon Sep 17 00:00:00 2001 From: Gywem Date: Mon, 29 Jan 2024 17:23:07 +0100 Subject: [PATCH 20/34] bump package to new version --- npm-packages/cordova-plugin-meteor-webapp/package-lock.json | 2 +- npm-packages/cordova-plugin-meteor-webapp/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/npm-packages/cordova-plugin-meteor-webapp/package-lock.json b/npm-packages/cordova-plugin-meteor-webapp/package-lock.json index 3037eaae66..5408ca820a 100644 --- a/npm-packages/cordova-plugin-meteor-webapp/package-lock.json +++ b/npm-packages/cordova-plugin-meteor-webapp/package-lock.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-meteor-webapp", - "version": "2.0.0", + "version": "2.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/npm-packages/cordova-plugin-meteor-webapp/package.json b/npm-packages/cordova-plugin-meteor-webapp/package.json index adafb7399e..9b18751692 100644 --- a/npm-packages/cordova-plugin-meteor-webapp/package.json +++ b/npm-packages/cordova-plugin-meteor-webapp/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-meteor-webapp", - "version": "2.0.3", + "version": "2.0.4", "description": "Cordova plugin that serves a Meteor web app through a local server and implements hot code push", "cordova": { "id": "cordova-plugin-meteor-webapp", From 1cc513bbccccf171b480f3cad43e4628dc8ec3c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Mon, 29 Jan 2024 17:45:29 +0100 Subject: [PATCH 21/34] use new npm package version in webapp --- packages/webapp/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/package.js b/packages/webapp/package.js index 58e82ab1ea..ce01460953 100644 --- a/packages/webapp/package.js +++ b/packages/webapp/package.js @@ -25,7 +25,7 @@ Npm.strip({ // whitelist plugin is now included in the core Cordova.depends({ - 'cordova-plugin-meteor-webapp': '2.0.3', + 'cordova-plugin-meteor-webapp': '2.0.4', }); Package.onUse(function(api) { From b10e70b50c3c8dd08153dc618d9f203d62a593bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Mon, 29 Jan 2024 17:56:28 +0100 Subject: [PATCH 22/34] bump webapp version --- packages/webapp/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/package.js b/packages/webapp/package.js index ce01460953..2c8e34dddf 100644 --- a/packages/webapp/package.js +++ b/packages/webapp/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'Serves a Meteor app over HTTP', - version: '1.13.6', + version: '1.13.7', }); Npm.depends({ From a7de432a2db1591d52a73d6e5541df89a0a49b0e Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 29 Jan 2024 16:10:29 -0400 Subject: [PATCH 23/34] - make-release-tarballs.sh: execute the git commands line by line --- scripts/make-release-tarballs.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/make-release-tarballs.sh b/scripts/make-release-tarballs.sh index 562b67823c..ee8c8b12eb 100755 --- a/scripts/make-release-tarballs.sh +++ b/scripts/make-release-tarballs.sh @@ -12,10 +12,12 @@ done echo "BRANCH_NAME = $BRANCH_NAME" echo "VERSION = $VERSION" -git fetch origin && git checkout release/METEOR@"$VERSION" && - git reset --hard origin/"$BRANCH_NAME" && - git clean -df && - ./meteor admin make-bootstrap-tarballs --target-arch os.windows.x86_64 "$VERSION" win64 && +git fetch origin +git checkout release/METEOR@"$VERSION" +git reset --hard origin/"$BRANCH_NAME" +git clean -df + +./meteor admin make-bootstrap-tarballs --target-arch os.windows.x86_64 "$VERSION" win64 && aws s3 cp --acl public-read win64/meteor-bootstrap-os.windows.x86_64.tar.gz s3://com.meteor.static/packages-bootstrap/"$VERSION"/ && ./meteor admin make-bootstrap-tarballs --target-arch os.linux.x86_64 "$VERSION" linux64 && aws s3 cp --acl public-read linux64/meteor-bootstrap-os.linux.x86_64.tar.gz s3://com.meteor.static/packages-bootstrap/"$VERSION"/ && From 74b70f1e6859c2025f5ea43d9e4fb2eac4caae7c Mon Sep 17 00:00:00 2001 From: denihs Date: Tue, 30 Jan 2024 10:41:30 -0400 Subject: [PATCH 24/34] Fix cordova launch screen warnings on 2.15 --- tools/cordova/builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index aba7ac3d5d..5a0860892b 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -771,7 +771,7 @@ configuration. The key may be deprecated.`); Object.keys(splashIosKeys).concat(Object.keys(splashAndroidKeys)); Object.keys(launchScreens).forEach((key) => { - if (!(key in validDevices)) { + if (!validDevices.includes(key)) { Console.labelWarn(`${key}: unknown key in App.launchScreens \ configuration. The key may be deprecated.`); } @@ -780,7 +780,7 @@ configuration. The key may be deprecated.`); if (typeof value !== "string" && key.includes("android")) { throw new Error("Android splash screen path must be a string. To enable dark splash screens for your app, check out the android developer guide: https://developer.android.com/develop/ui/views/theming/darktheme."); } - }) + }); Object.assign(builder.imagePaths.splash, launchScreens); }, From d0b55ba8fdb93d01cf14aa07119a079ef7ea16f3 Mon Sep 17 00:00:00 2001 From: denihs Date: Tue, 30 Jan 2024 12:30:13 -0400 Subject: [PATCH 25/34] - Meteor version to 2.15.0-rc.1 :comet: --- docs/history.md | 48 +++++++++++++++++++++-- packages/accounts-base/package.js | 2 +- packages/meteor-tool/package.js | 2 +- packages/meteor/package.js | 2 +- packages/service-configuration/package.js | 2 +- packages/underscore/package.js | 2 +- packages/webapp/package.js | 2 +- 7 files changed, 50 insertions(+), 10 deletions(-) diff --git a/docs/history.md b/docs/history.md index d9ac737b8b..0d868b9256 100644 --- a/docs/history.md +++ b/docs/history.md @@ -10,6 +10,46 @@ +## v2.15.0, 2024-01-XX + +### Highlights + +* Bumps embedded MongoDB to 7.0.5. + +#### Breaking Changes + +N/A + +#### Internal API changes + +N/A + +#### Migration Steps + +Please run the following command to update your project: + +```bash + +meteor update --release 2.15.0 + +``` + + +#### Meteor Version Release + + +* `Command line`: + - The bundle version was changed to include embedded MongoDB to 7.0.5. + + +#### Special thanks to + +- [@Grubba27](https://github.com/Grubba27). +- [@denihs](https://github.com/denihs). + +For making this great framework even better! + + ## v2.14.0, 2023-12-12 ### Highlights @@ -74,7 +114,7 @@ For more information you can check our [Migration Guide](https://guide.meteor.co ## Meteor Version Release -* `accounts-base@2.2.9` +* `accounts-base@2.2.10` - Ensure that `onLogin` callback fires properly - Indexes are now created asynchronously @@ -131,7 +171,7 @@ For more information you can check our [Migration Guide](https://guide.meteor.co * `logic-solver@2.0.9` - Removed Underscore dependency -* `meteor@1.11.4`: +* `meteor@1.11.5`: - Improve TS types * `mobile-experience@1.1.1`: @@ -160,7 +200,7 @@ For more information you can check our [Migration Guide](https://guide.meteor.co * `react-fast-refresh@0.2.8`: - Updated `semver` to version 7.5.4 -* `service-configuration@1.3.2` +* `service-configuration@1.3.3` - Indexes are now created asynchronously - Add types for ConfigError @@ -186,7 +226,7 @@ For more information you can check our [Migration Guide](https://guide.meteor.co * `typescript@4.9.5`: - Updated to 4.9.5 -* `webapp@1.13.6` +* `webapp@1.13.8` - Updated `cordova-plugin-meteor-webapp` to v2.0.3 - Updated `cookie-parser` to v1.4.6 - Updated `send` to v0.18.0 diff --git a/packages/accounts-base/package.js b/packages/accounts-base/package.js index 4721dbcce9..99aa24ea1f 100644 --- a/packages/accounts-base/package.js +++ b/packages/accounts-base/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'A user account system', - version: '2.2.9', + version: '2.2.10-rc215.1', }); Package.onUse(api => { diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index c1566e72e1..2b74b89883 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'The Meteor command-line tool', - version: '2.15.0-rc.0', + version: '2.15.0-rc.1', }); Package.includeTool(); diff --git a/packages/meteor/package.js b/packages/meteor/package.js index 6698828811..511ac2b4b7 100644 --- a/packages/meteor/package.js +++ b/packages/meteor/package.js @@ -2,7 +2,7 @@ Package.describe({ summary: "Core Meteor environment", - version: '1.11.4', + version: '1.11.5-rc215.1', }); Package.registerBuildPlugin({ diff --git a/packages/service-configuration/package.js b/packages/service-configuration/package.js index 2bc11a7448..723c88e6a2 100644 --- a/packages/service-configuration/package.js +++ b/packages/service-configuration/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'Manage the configuration for third-party services', - version: '1.3.2', + version: '1.3.3-rc215.1', }); Package.onUse(function(api) { diff --git a/packages/underscore/package.js b/packages/underscore/package.js index 84f8474611..30061ada28 100644 --- a/packages/underscore/package.js +++ b/packages/underscore/package.js @@ -1,7 +1,7 @@ Package.describe({ summary: "Collection of small helpers: _.map, _.each, ...", - version: '1.6.0', + version: '1.6.0-rc215.1', }); Npm.depends({ diff --git a/packages/webapp/package.js b/packages/webapp/package.js index 2c8e34dddf..0dd0beb31e 100644 --- a/packages/webapp/package.js +++ b/packages/webapp/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'Serves a Meteor app over HTTP', - version: '1.13.7', + version: '1.13.8-rc215.1', }); Npm.depends({ From 0da2bc7392ab1bb1d48deaaa8e74ad5e017c68d3 Mon Sep 17 00:00:00 2001 From: denihs Date: Tue, 30 Jan 2024 12:30:51 -0400 Subject: [PATCH 26/34] - Meteor version to 2.15.0-rc.1 :comet: --- scripts/admin/meteor-release-experimental.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/admin/meteor-release-experimental.json b/scripts/admin/meteor-release-experimental.json index 9355ff5007..3c23aace78 100644 --- a/scripts/admin/meteor-release-experimental.json +++ b/scripts/admin/meteor-release-experimental.json @@ -1,6 +1,6 @@ { "track": "METEOR", - "version": "2.15-rc.0", + "version": "2.15-rc.1", "recommended": false, "official": false, "description": "Meteor experimental release" From 8b03be6d5a5b69aefe49ce00b4ec8dcd62843824 Mon Sep 17 00:00:00 2001 From: denihs Date: Tue, 30 Jan 2024 12:41:29 -0400 Subject: [PATCH 27/34] - remove unnecessary code --- tools/runners/run-mongo.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/runners/run-mongo.js b/tools/runners/run-mongo.js index 26c42af566..1f7db6c889 100644 --- a/tools/runners/run-mongo.js +++ b/tools/runners/run-mongo.js @@ -49,14 +49,6 @@ function spawnMongod(mongodPath, port, dbPath, replSetName) { // Use mmapv1 on 32bit platforms, as our binary doesn't support WT if (process.arch === 'ia32') { args.push('--storageEngine', 'mmapv1', '--smallfiles'); - } else if (process.platform !== 'linux') { - // MongoDB 4, which we use on 64-bit systems, displays a banner in the - // Mongo shell about a free monitoring service, which can be disabled - // with this flag. However, the custom Linux build (see MONGO_BASE_URL - // in scripts/generate-dev-bundle.sh) neither displays the banner nor - // supports the flag, so it's safe/important to avoid passing the flag - // to mongod on 64-bit linux. - // args.push('--enableFreeMonitoring', 'off'); } // run with rosetta on mac m1 From 6e0bb8ed6b2c588009eaca7f9d41e2a7b46503f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20N=C3=A9vola?= Date: Wed, 31 Jan 2024 08:55:14 -0300 Subject: [PATCH 28/34] updates findAsync to fetchAsync on Tracker's docs --- docs/source/api/tracker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/api/tracker.md b/docs/source/api/tracker.md index c23fed63e1..8701a3d466 100644 --- a/docs/source/api/tracker.md +++ b/docs/source/api/tracker.md @@ -90,13 +90,13 @@ Tracker.autorun(async function example1(computation) { // Code before the first await will stay reactive. reactiveVar1.get(); // This will trigger a rerun. - let links = await LinksCollection.findAsync({}).fetch(); // First async call will stay reactive. + let links = await LinksCollection.find({}).fetchAsync(); // First async call will stay reactive. // Code after the first await looses Tracker.currentComputation: no reactivity. reactiveVar2.get(); // This won't trigger a rerun. // You can bring back reactivity with the Tracker.withCompuation wrapper: - let users = await Tracker.withComputation(computation, () => Meteor.users.findAsync({}).fetch()); + let users = await Tracker.withComputation(computation, () => Meteor.users.find({}).fetchAsync()); // Code below will again not be reactive, so you will need another Tracker.withComputation. const value = Tracker.withComputation(computation, () => reactiveVar3.get()); // This will trigger a rerun. From fe49adb9139b661818f8f72433fe8a6aad7ad5cc Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 31 Jan 2024 16:32:59 -0400 Subject: [PATCH 29/34] - update changelog --- docs/generators/changelog/versions/2.15.0.md | 22 +++++++++++++++--- docs/history.md | 24 +++++++++++++++++--- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/docs/generators/changelog/versions/2.15.0.md b/docs/generators/changelog/versions/2.15.0.md index b41ea00a61..7ee2756533 100644 --- a/docs/generators/changelog/versions/2.15.0.md +++ b/docs/generators/changelog/versions/2.15.0.md @@ -14,11 +14,15 @@ N/A #### Migration Steps -Please run the following command to update your project: +In development, if you're using Linux, you might get an error like `version GLIBCXX_3.4.26 not found` or something related to g++. + +This is related to your g++ version. With MongoDB 7, you need to have g++ 11 or higher. So make sure to have this updated. + +This will happen only if you are trying to run your Meteor application with a MongoDB 7 version. If you run your app with a MONGO_URL pointing to a different MongoDB version, you won't have this issue. ```bash -meteor update --release 2.15.0 +meteor update --release 2.15 ``` @@ -28,12 +32,24 @@ meteor update --release 2.15.0 * `Command line`: - The bundle version was changed to include embedded MongoDB to 7.0.5. - + - Fix cordova launch screen warnings on 2.15 [PR #12971] +* `underscore@get-version`: + - A test related to [PR #12798] to see if the tests can manage the first update step. [PR #12912] +* `service-configuration@get-version`: + - added new types* [PR #12922] +* `meteor@get-version`: + - added new types [PR #12922] +* `accounts-base@get-version`: + - Added missing type for createUserVerifyingEmail [PR #12919] #### Special thanks to - [@Grubba27](https://github.com/Grubba27). - [@denihs](https://github.com/denihs). +- [@mcorbelli](https://github.com/mcorbelli). +- [@matheusccastroo](https://github.com/matheusccastroo). +- [@StorytellerCZ](https://github.com/StorytellerCZ). +- [@ebroder](https://github.com/ebroder). For making this great framework even better! diff --git a/docs/history.md b/docs/history.md index 0d868b9256..a665177aa3 100644 --- a/docs/history.md +++ b/docs/history.md @@ -26,11 +26,17 @@ N/A #### Migration Steps -Please run the following command to update your project: +In development, if you're using Linux, you might get an error like `version GLIBCXX_3.4.26 not found` or something related to g++. + +This is related to your g++ version. With MongoDB 7, you need to have g++ 11 or higher. So make sure to have this updated. + +This will happen only if you are trying to run your Meteor application with a MongoDB 7 version. If you run your app with a MONGO_URL pointing to a different MongoDB version, you won't have this issue. ```bash -meteor update --release 2.15.0 +```bash + +meteor update --release 2.15 ``` @@ -40,12 +46,24 @@ meteor update --release 2.15.0 * `Command line`: - The bundle version was changed to include embedded MongoDB to 7.0.5. - + - Fix cordova launch screen warnings on 2.15 [PR](https://github.com/meteor/meteor/pull/12971) +* `underscore@1.6.0`: + - A test related to [PR](https://github.com/meteor/meteor/pull/12798) to see if the tests can manage the first update step. [PR](https://github.com/meteor/meteor/pull/12912) +* `service-configuration@1.3.3`: + - added new types* [PR](https://github.com/meteor/meteor/pull/12922) +* `meteor@1.11.5`: + - added new types [PR](https://github.com/meteor/meteor/pull/12922) +* `accounts-base@2.2.10`: + - Added missing type for createUserVerifyingEmail [PR](https://github.com/meteor/meteor/pull/12919) #### Special thanks to - [@Grubba27](https://github.com/Grubba27). - [@denihs](https://github.com/denihs). +- [@mcorbelli](https://github.com/mcorbelli). +- [@matheusccastroo](https://github.com/matheusccastroo). +- [@StorytellerCZ](https://github.com/StorytellerCZ). +- [@ebroder](https://github.com/ebroder). For making this great framework even better! From c516ddf60bf5f601f23ab679fb9817796a984f0d Mon Sep 17 00:00:00 2001 From: Denilson Date: Wed, 31 Jan 2024 17:02:39 -0400 Subject: [PATCH 30/34] Update SECURITY.md We no longer support version <= 1.12.x --- SECURITY.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 3d2a49b445..278969b992 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -5,8 +5,7 @@ | Version | Support Status | ------- | -------------- | 2.x.y | ✅ all security issues -| 1.12.x | 🚧 only critical security issues -| <= 1.11.x | ❌ no longer supportted +| <= 1.12.x | ❌ no longer supported ## Reporting a Vulnerability From fff3b0bc8e5b8c4afb26496e86535040d3cbbfe0 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 5 Feb 2024 12:09:02 -0400 Subject: [PATCH 31/34] - update changelog --- docs/generators/changelog/versions/2.15.0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/generators/changelog/versions/2.15.0.md b/docs/generators/changelog/versions/2.15.0.md index 7ee2756533..c1eca4ba44 100644 --- a/docs/generators/changelog/versions/2.15.0.md +++ b/docs/generators/changelog/versions/2.15.0.md @@ -1,4 +1,4 @@ -## v2.15.0, 2024-01-XX +## v2.15.0, 2024-02-05 ### Highlights @@ -50,6 +50,7 @@ meteor update --release 2.15 - [@matheusccastroo](https://github.com/matheusccastroo). - [@StorytellerCZ](https://github.com/StorytellerCZ). - [@ebroder](https://github.com/ebroder). +- [@nachocodoner](https://github.com/nachocodoner). For making this great framework even better! From 0ad2ae7580cadb49b97fbefe645b5504d74452e3 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 5 Feb 2024 12:10:09 -0400 Subject: [PATCH 32/34] - update history.md --- docs/history.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/history.md b/docs/history.md index a665177aa3..7cea5d7854 100644 --- a/docs/history.md +++ b/docs/history.md @@ -10,7 +10,7 @@ -## v2.15.0, 2024-01-XX +## v2.15.0, 2024-02-05 ### Highlights @@ -34,8 +34,6 @@ This will happen only if you are trying to run your Meteor application with a Mo ```bash -```bash - meteor update --release 2.15 ``` @@ -64,6 +62,7 @@ meteor update --release 2.15 - [@matheusccastroo](https://github.com/matheusccastroo). - [@StorytellerCZ](https://github.com/StorytellerCZ). - [@ebroder](https://github.com/ebroder). +- [@nachocodoner](https://github.com/nachocodoner). For making this great framework even better! From ff3d9cc470cc3c0b6a3ca3dac8b1025dd02a0b85 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 5 Feb 2024 12:21:55 -0400 Subject: [PATCH 33/34] Meteor version to 2.15 :comet: --- packages/accounts-base/package.js | 2 +- packages/meteor-tool/package.js | 2 +- packages/meteor/package.js | 2 +- packages/service-configuration/package.js | 2 +- packages/underscore/package.js | 2 +- packages/webapp/package.js | 2 +- scripts/admin/meteor-release-official.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/accounts-base/package.js b/packages/accounts-base/package.js index 99aa24ea1f..43df32c119 100644 --- a/packages/accounts-base/package.js +++ b/packages/accounts-base/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'A user account system', - version: '2.2.10-rc215.1', + version: '2.2.10', }); Package.onUse(api => { diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index 2b74b89883..0bb4e708d3 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'The Meteor command-line tool', - version: '2.15.0-rc.1', + version: '2.15.0', }); Package.includeTool(); diff --git a/packages/meteor/package.js b/packages/meteor/package.js index 511ac2b4b7..4ca33c6f6b 100644 --- a/packages/meteor/package.js +++ b/packages/meteor/package.js @@ -2,7 +2,7 @@ Package.describe({ summary: "Core Meteor environment", - version: '1.11.5-rc215.1', + version: '1.11.5', }); Package.registerBuildPlugin({ diff --git a/packages/service-configuration/package.js b/packages/service-configuration/package.js index 723c88e6a2..45e0a1179d 100644 --- a/packages/service-configuration/package.js +++ b/packages/service-configuration/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'Manage the configuration for third-party services', - version: '1.3.3-rc215.1', + version: '1.3.3', }); Package.onUse(function(api) { diff --git a/packages/underscore/package.js b/packages/underscore/package.js index 30061ada28..84f8474611 100644 --- a/packages/underscore/package.js +++ b/packages/underscore/package.js @@ -1,7 +1,7 @@ Package.describe({ summary: "Collection of small helpers: _.map, _.each, ...", - version: '1.6.0-rc215.1', + version: '1.6.0', }); Npm.depends({ diff --git a/packages/webapp/package.js b/packages/webapp/package.js index 0dd0beb31e..1ad7c8146c 100644 --- a/packages/webapp/package.js +++ b/packages/webapp/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'Serves a Meteor app over HTTP', - version: '1.13.8-rc215.1', + version: '1.13.8', }); Npm.depends({ diff --git a/scripts/admin/meteor-release-official.json b/scripts/admin/meteor-release-official.json index 92ae645cc5..dad0e15c64 100644 --- a/scripts/admin/meteor-release-official.json +++ b/scripts/admin/meteor-release-official.json @@ -1,6 +1,6 @@ { "track": "METEOR", - "version": "2.14", + "version": "2.15", "recommended": false, "official": true, "description": "The Official Meteor Distribution" From e10370010210944bdefd1804d89985225d26d8a0 Mon Sep 17 00:00:00 2001 From: denihs Date: Mon, 5 Feb 2024 15:28:34 -0400 Subject: [PATCH 34/34] Update Meteor npm installer --- npm-packages/meteor-installer/README.md | 1 + npm-packages/meteor-installer/config.js | 2 +- npm-packages/meteor-installer/package.json | 2 +- packages/underscore/.npm/package/npm-shrinkwrap.json | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/npm-packages/meteor-installer/README.md b/npm-packages/meteor-installer/README.md index e59677a47f..b5e1b180c2 100644 --- a/npm-packages/meteor-installer/README.md +++ b/npm-packages/meteor-installer/README.md @@ -14,6 +14,7 @@ npm install -g meteor | NPM Package | Meteor Official Release | |-------------|-------------------------| +| 2.15.0 | 2.15.0 | | 2.14.0 | 2.14.0 | | 2.13.3 | 2.13.3 | | 2.13.1 | 2.13.1 | diff --git a/npm-packages/meteor-installer/config.js b/npm-packages/meteor-installer/config.js index 5c23ae55d4..80bdf837d2 100644 --- a/npm-packages/meteor-installer/config.js +++ b/npm-packages/meteor-installer/config.js @@ -1,7 +1,7 @@ const path = require('path'); const os = require('os'); -const METEOR_LATEST_VERSION = '2.14'; +const METEOR_LATEST_VERSION = '2.15'; const sudoUser = process.env.SUDO_USER || ''; function isRoot() { return process.getuid && process.getuid() === 0; diff --git a/npm-packages/meteor-installer/package.json b/npm-packages/meteor-installer/package.json index d5a92142de..25bec2b1fd 100644 --- a/npm-packages/meteor-installer/package.json +++ b/npm-packages/meteor-installer/package.json @@ -1,6 +1,6 @@ { "name": "meteor", - "version": "2.14.0", + "version": "2.15.0", "description": "Install Meteor", "main": "install.js", "scripts": { diff --git a/packages/underscore/.npm/package/npm-shrinkwrap.json b/packages/underscore/.npm/package/npm-shrinkwrap.json index 5cfda9f6c6..ff55e7b366 100644 --- a/packages/underscore/.npm/package/npm-shrinkwrap.json +++ b/packages/underscore/.npm/package/npm-shrinkwrap.json @@ -2,9 +2,9 @@ "lockfileVersion": 1, "dependencies": { "@types/underscore": { - "version": "1.11.4", - "resolved": "https://registry.npmjs.org/@types/underscore/-/underscore-1.11.4.tgz", - "integrity": "sha512-uO4CD2ELOjw8tasUrAhvnn2W4A0ZECOvMjCivJr4gA9pGgjv+qxKWY9GLTMVEK8ej85BxQOocUyE7hImmSQYcg==" + "version": "1.11.9", + "resolved": "https://registry.npmjs.org/@types/underscore/-/underscore-1.11.9.tgz", + "integrity": "sha512-M63wKUdsjDFUfyFt1TCUZHGFk9KDAa5JP0adNUErbm0U45Lr06HtANdYRP+GyleEopEoZ4UyBcdAC5TnW4Uz2w==" } } }