Commit Graph

18724 Commits

Author SHA1 Message Date
Ben Newman
64239ce8e5 Bump package versions for the official 1.4.4.6 release. release/METEOR@1.4.4.6 2018-03-31 11:25:03 -04:00
Ben Newman
310eb6a489 Update release date of 1.4.4.6 in History.md. 2018-03-31 11:25:01 -04:00
Ben Newman
6493a10bcd Minor History.md tweaks. 2018-03-31 11:09:57 -04:00
Jesse Rosenberger
bae11f09ec Bump package versions for 1.4.4.6-rc.0 release. release/METEOR@1.4.4.6-rc.0 2018-03-30 23:14:34 +03:00
Jesse Rosenberger
c9bee611ca Update semver to the latest version, backporting 9fdde2b7.
This wasn't available to cherry-pick for some reason.

Backports: 9fdde2b765

Ref: https://github.com/meteor/meteor/pull/8859
2018-03-30 22:20:51 +03:00
Florian Schaeffler
6fdd03bcae updated dependency of semver to the first patched one 2018-03-30 22:19:46 +03:00
Ben Newman
78c6fce3b4 Modernize package-version-parser by using modules. (#8914)
Also removed the underscore dependency while I was at it.

Prerequisite for #8859.

Backports: d3aff777a2
2018-03-30 22:18:11 +03:00
Ben Newman
20c33243ec Don't add tilde-constraints package explicitly to .meteor/packages.
Adding the tilde-dependent package should be enough, since its package.js
file calls api.use("tilde-constraints");

Backports: 1b65ef1726
2018-03-30 22:18:11 +03:00
Ben Newman
9b0cf92786 Support @~ version constraints and use them for core packages.
As discovered in #8947, creating an app with

  meteor create --release 1.4.4.1 new-app

does not actually constrain core packages to have the same minor versions
they had when Meteor 1.4.4.1 was published. Rather (as of Meteor 1.4.3),
the Meteor release only constrains core packages to have versions at least
as recent as the versions they had when the release was published, and to
have the same major version. Any later minor version is fair game.

What we need is a new kind of package version constraint, more like
semver's ~ range operator:
https://www.npmjs.com/package/semver#tilde-ranges-123-12-1

This commit implements that functionality, though it stops short of
supporting all possible semver range syntax.

Backports: b7645a4d1f
2018-03-30 22:18:10 +03:00
Ben Newman
dde012c57f Bump $BUNDLE_VERSION to 4.7.30 before rebuilding dev bundle. 2018-03-30 22:18:10 +03:00
Jesse Rosenberger
78f9e11927 Update npm package to v4.6.1.
Notable changes:
  https://github.com/npm/npm/releases/tag/v4.6.1
2018-03-30 22:18:10 +03:00
Jesse Rosenberger
c2b8ac1bf0 Add note about Node.js v4 leaving LTS status on April 30, 2018. 2018-03-30 22:16:07 +03:00
Jesse Rosenberger
6e7187a2bb Upgrade Node to version 4.9.0.
https://nodejs.org/en/blog/release/v4.9.0
https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/
2018-03-30 21:53:56 +03:00
Ben Newman
80d46d2e18 Bump package versions for the official 1.4.4.5 release. release/METEOR@1.4.4.5 2017-12-08 16:36:06 -05:00
Ben Newman
5ffa98e327 Bump $BUNDLE_VERSION to 4.7.29 before rebuilding dev bundle. 2017-12-08 16:06:39 -05:00
Ben Newman
2d8f006ce0 Upgrade Node to version 4.9.7.
https://nodejs.org/en/blog/release/v4.9.7/
https://nodejs.org/en/blog/vulnerability/december-2017-security-releases/
2017-12-08 16:05:39 -05:00
Ben Newman
40787c1a51 Update expected dev bundle tarball count from 4 to 5. 2017-12-07 21:19:50 -05:00
Ben Newman
0b89e7a235 Bump package versions for 1.4.4.5-beta.0 release. release/METEOR@1.4.4.5-beta.0 2017-12-07 20:45:37 -05:00
Ben Newman
2594470e07 Avoid using Object.getOwnPropertyDescriptors to clone inserted documents. 2017-12-07 20:39:55 -05:00
Ben Newman
e5b8c431e3 Bump $BUNDLE_VERSION to 4.7.28 before rebuilding dev bundle.
These Node and dev bundle version bumps are just to make sure nothing
significant has changed since last time, before we bump the Node version
again for the 1.4.4.5 release.
2017-12-07 20:24:15 -05:00
Ben Newman
026b298314 Upgrade Node to version 4.8.6.
https://nodejs.org/en/blog/release/v4.8.6/
2017-12-07 20:23:09 -05:00
Ben Newman
9c53e186d4 Shallow-clone inserted documents more reliably.
In a previous commit, I changed

  doc = _.extend({}, doc);

to avoid using underscore, thus:

  doc = { ...doc };

While this may seem harmless, it broke a few Mongo.Collection tests
because _.extend copies *all* properties, both own and inherited, whereas
object ...spread only copies own properties.

However, the correct way to fix this problem is *not* to revert to the old
behavior, since flattening the inherited properties of a document was
never actually what we wanted. The old behavior was subtly broken, too.

Instead, we need to create a new object with the same prototoype as the
provided document, then shallow-copy the own properties. Any properties or
methods inherited from the original prototype will then be available on
the new object, even though they didn't get copied over.

I've intentionally left some trivial formatting changes in this commit to
remind myself which broken tests were fixed by this change.
2017-12-07 19:49:09 -05:00
Jesse Rosenberger
5cc99149d0 Bump package versions for 1.4.4.4-rc.0 release. release/METEOR@1.4.4.4-rc.0 2017-09-25 20:48:27 +03:00
Jesse Rosenberger
49cf456d05 Bump allow-deny package patch version. 2017-09-25 20:46:11 +03:00
Jesse Rosenberger
7308d46a86 Avoid Array.prototype.includes.
Array.prototype.includes was not available in older implementations
and this avoids tighter version contraints and maximum compatibility.
2017-09-25 20:45:57 +03:00
Jesse Rosenberger
8b87abe41a Bump allow-deny package patch version. 2017-09-25 20:45:52 +03:00
Ben Newman
174f3dc135 Avoid Array.from, Set, and spread elements when computing union. 2017-09-25 20:45:24 +03:00
Jesse Rosenberger
8b8622960b Replace Underscore methods with native ECMAScript.
This removes `underscore` entirely from `allow-deny`.
2017-09-25 20:45:24 +03:00
Ben Newman
7e52b10ba4 Bump package versions for the official 1.4.4.3 release. release/METEOR@1.4.4.3 2017-05-22 18:42:17 -04:00
Ben Newman
994558ccd7 Bump package versions for 1.4.4.3-rc.0 release. release/METEOR@1.4.4.3-rc.0 2017-05-22 17:00:06 -04:00
Ben Newman
6c998370db Bump $BUNDLE_VERSION to 4.7.27 before rebuilding dev bundle. 2017-05-22 16:55:13 -04:00
Ben Newman
95c11c1b78 Upgrade Node to version 4.8.3.
https://nodejs.org/en/blog/release/v4.8.3/
2017-05-22 16:53:19 -04:00
Ben Newman
48814ddbe3 Update History.md to mention fix for #8709. 2017-05-22 16:52:52 -04:00
Ben Newman
2a3fd57303 Style tweaks and a small bug fix.
These checks should still happen when body is an empty string, which (for
better or worse) is falsy in JavaScript.
2017-05-22 16:40:48 -04:00
David Glasser
5f18c6e24a tools: fix Galaxy discovery
1a036553 in 1.4.4.2 expanded on the HTTP error checking added by 30aec9f in
1.4.2. Neither of these changes were aware that discoverGalaxy invokes
httpHelpers.request with json:true, resulting in a `body` that is a parsed JSON
object rather than a string or Buffer.  Before 1.4.4.2, this had no consequences
because body.length is undefined and `undefined < 90` is false, but the change
to Buffer.byteLength actually made the condition true.

It's safe to not check length in the JSON case because a truncated JSON object
is not legal JSON (unless the truncation just drops trailing whitespace, in
white case that's OK).

I check for both string and Buffer because some calls to this function pass in
an encoding option.  Buffer.byteLength works with both types.
2017-05-22 16:40:42 -04:00
Ben Newman
fee86a0b17 Try not running a full meteor --get-ready before Circle CI tests.
In the ongoing struggle with Circle CI-specific test failures, the
preparatory `meteor --get-ready` has been a consistent point of failure,
before any real tests have the chance to run.

Using a lighter-weight command (meteor --help) that still does most of
what --get-ready did seems worth a try, though it might just defer
memory-intensive work until later, so we'll have to see what happens.
2017-05-22 16:40:33 -04:00
Ben Newman
47496e9dba Call requestGarbageCollection in Isopack#_writeTool.
This method appears to be causing large spikes in memory consumption on
Circle CI during the `meteor --get-ready` preparation step, which often
leads to the test process being killed.

Also added a call in IsopackCache#_loadLocalPackage for good measure.

We're now calling requestGarbageCollection pretty frequently when
we run Node with --expose-gc, but that currently only happens during
Circle CI tests, so I don't think we need to implement the improvements
suggested in tools/utils/gc.js, yet.

Previously: 35f488e140, f6df21ff1e
2017-05-22 16:40:32 -04:00
Ben Newman
35386e49dd Re-run individual tests to avoid re-running the whole suite.
To deal with individual flaky tests, we often just re-run the entire test
suite, which feels like an enormous waste of shared computing resources.

This change automatically re-runs individual failed tests as many as two
more times, and considers the test successful if any of those attempts
succeeds.

cc @abernix @hwillson et al.
2017-05-22 16:40:32 -04:00
Ben Newman
e3c00ad5ca Merge pull request #8636 from meteor/release-1.4.4.2
Release 1.4.4.2
2017-05-02 11:14:08 -04:00
Jesse Rosenberger
5e617b93c8 Bump minimongo package version to 1.0.23 in preparation for publishing. 2017-05-02 12:28:24 +03:00
Jesse Rosenberger
1ac0d4ca2f Bump package versions for the official 1.4.4.2 release. release/METEOR@1.4.4.2 2017-05-02 10:56:09 +03:00
Jesse Rosenberger
15542d7de2 Add date to History.md for official 1.4.4.2 release. 2017-05-02 10:46:59 +03:00
Jesse Rosenberger
0223c6a8ed Add message about MAIL_URL scheme in History.md.
This should act as a reminder for those who may be using `smtp://` when
they should be using `smtps://`.  Previously, the scheme was implied by
the port number, however this is not the ideal behavior in the same way
that it is unsafe to assume that port 443 is always `https://`.
2017-05-02 10:42:42 +03:00
Jesse Rosenberger
30e9e01afa Bump package versions for 1.4.4.2-rc.1 release. release/METEOR@1.4.4.2-rc.1 2017-04-26 13:26:09 -07:00
Bartosz Wojtkowiak
5a4d5035c3 Implement CORDOVA_COMPATIBILITY_VERSION_IOS/ANDROID and EXCLUDE (#8581)
* Implement CORDOVA_COMPATIBILITY_VERSION_EXCLUDE and CORDOVA_COMPATIBILITY_VERSION_IOS/ANDROID

CORDOVA_COMPATIBILITY_VERSION_IOS or CORDOVA_COMPATIBILITY_VERSION_ANDROID allows to override compatibility version for a specified platform.

CORDOVA_COMPATIBILITY_VERSION_EXCLUDE provides a way of excluding a certain plugin from compatibility version calculation. You can pass several plugin names with ';'. For example: `CORDOVA_COMPATIBILITY_VERSION_EXCLUDE='cordova-plugin-crosswalk-webview;cordova-plugin-device'`

* Changes after review
2017-04-26 13:23:22 -07:00
mutdmour
9da6767447 Handle legacy coordinates as GeoJSON in minimongo (#2077) (#8620) 2017-04-26 13:23:21 -07:00
mutdmour
f46b5f9e41 [Fix #5165] don't allow invalid field names (#8608) 2017-04-26 13:23:00 -07:00
Jesse Rosenberger
3d04c48b25 Bump package versions for 1.4.4.2-rc.0 release. release/METEOR@1.4.4.2-rc.0 2017-04-25 17:36:24 -07:00
Jesse Rosenberger
6cf0783282 Additions to the History.md for 1.4.4.2. 2017-04-25 16:41:32 -07:00
Ben Newman
1a036553c1 Fix faulty content-length comparison in utils/http-helpers.js.
Since body is a string, body.length is not necessarily the number of bytes
in the response body.
2017-04-25 16:11:29 -07:00