Commit Graph

18945 Commits

Author SHA1 Message Date
Ben Newman
bfb2c95462 Upgrade meteor-promise to version 0.8.4.
This is a change that was necessary on the wip-upgrade-to-node-6 branch,
and it seems better to ship it sooner rather than waiting:
meteor/meteor@d823812e85
2017-05-30 13:03:17 -04:00
Ben Newman
bfc79eea9b Add //# sourceURL=<module id> comment to dynamic modules.
Fixes #8719 by displaying a recognizable (and even clickable) file name in
stack traces for errors thrown by dynamic code.
2017-05-29 21:29:22 -04:00
Ben Newman
1df6668cc9 Test that importing the winston npm package works now.
This is a test that should have accompanied my previous commit
81a07ed84f.
2017-05-29 19:37:33 -04:00
Ben Newman
4351b89904 Bump package versions for 1.5-rc.12 release. release/METEOR@1.5-rc.12 2017-05-29 19:17:43 -04:00
Ben Newman
91212e3a95 Bump $BUNDLE_VERSION to 4.8.16 before rebuilding dev bundle. 2017-05-29 19:16:16 -04:00
Ben Newman
81a07ed84f Upgrade reify to prevent accidental override of namespace.default.
The `winston` npm package is not an ECMAScript module, but it does export
a "default" property, and this property was accidentally clobbering the
"default" property of the namespace object, thus interfering with default
import syntax:

  import winston from "winston"

Specifically, the `winston` variable would end up referring to
`require("winston").default`, rather than `require("winston")`.

Nothing is lost by fixing this problem, as you can still refer to
`winston.default` if you need to access that property.

Reported by @fermuch here:
https://github.com/meteor/meteor/pull/8327#issuecomment-304721401

Fixed by this commit:
20fdd10d04
2017-05-29 19:07:25 -04:00
James
6445a44001 Clarify meteor update message for indirect dependencies
* Adjust string style to be in line with meteor style guide 6.2

* Partially addresses #8721 #8488
2017-05-29 14:41:00 -04:00
Ben Newman
aff0fbcc12 Bump package versions for 1.5-rc.11 release. release/METEOR@1.5-rc.11 2017-05-29 12:27:45 -04:00
Ben Newman
5dd7b4cfc0 Upgrade uglify-js to latest version. 2017-05-29 12:17:54 -04:00
Ben Newman
67f88db386 Bump $BUNDLE_VERSION to 4.8.15 before rebuilding dev bundle. 2017-05-29 12:04:46 -04:00
Ben Newman
cd4fc028f8 Upgrade reify to version 0.11.20 to fix getNamespace bug.
Reported here:
https://github.com/meteor/meteor/pull/8327#issuecomment-304582864

Fixed by:
aeb46dcd61
2017-05-29 12:02:56 -04:00
Ben Newman
d11cf771cd Bump package versions for 1.5-rc.10 release. release/METEOR@1.5-rc.10 2017-05-28 20:46:42 -04:00
Ben Newman
cea372909b Bump $BUNDLE_VERSION to 4.8.14 before rebuilding dev bundle. 2017-05-28 20:26:00 -04:00
Ben Newman
bfea780495 Upgrade meteor-babel and reify to latest versions. 2017-05-28 20:25:32 -04:00
Ben Newman
e866da2210 Add a target release date for Meteor 1.5 to History.md. 2017-05-27 17:06:40 -04:00
Ben Newman
ee6235147c Bump package versions for 1.5-rc.9 release. release/METEOR@1.5-rc.9 2017-05-27 16:58:55 -04:00
Ben Newman
8ff00a26e8 Upgrade uglify-js to version 3.0.12.
Fixes #8704.
2017-05-27 16:10:20 -04:00
Ben Newman
122f0d2cb3 Bump package versions for 1.5-rc.8 release. release/METEOR@1.5-rc.8 2017-05-27 12:28:54 -04:00
Ben Newman
9a166ef212 Bump $BUNDLE_VERSION to 4.8.13 before rebuilding dev bundle. 2017-05-27 12:01:34 -04:00
Ben Newman
6c29e19a94 Upgrade reify to latest version, 0.11.15. 2017-05-27 12:00:56 -04:00
Ben Newman
b1f6904a4e Bump package versions for 1.5-rc.7 release. release/METEOR@1.5-rc.7 2017-05-26 20:14:56 -04:00
Ben Newman
b94443391a Upgrade reify to version 0.11.14 to polyfill WeakMap. 2017-05-26 20:12:10 -04:00
Ben Newman
a4fa387886 Bump $BUNDLE_VERSION to 4.8.12 before rebuilding dev bundle. 2017-05-26 18:22:28 -04:00
Ben Newman
e2210ef01d Update Reify API usage for version 0.11.13. 2017-05-26 18:22:02 -04:00
Ben Newman
93cf550c17 Upgrade meteor-babel to version 0.21.3 and reify to 0.11.13.
Fixes #8720.
2017-05-26 18:21:55 -04:00
Ben Newman
f9f66e100a Upgrade npm to version 4.6.1. 2017-05-26 18:17:33 -04:00
Ben Newman
a445e50c11 Merge branch 'release-1.4.4.3' into release-1.5 2017-05-22 20:21:10 -04: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
30082c17d5 Bump package versions for 1.5-rc.6 release. release/METEOR@1.5-rc.6 2017-05-18 12:35:10 -04:00
Ben Newman
02cbf94834 Reorganize ecmascript-runtime-client to tolerate more core-js versions.
By not implicitly assuming a particular version of core-js (by importing
specific modules), we can avoid the problems reported in #8699.

Fixes #8699.
2017-05-18 12:32:20 -04:00
Ben Newman
0fbb97432c Fix ENOTEMPTY and EPERM errors on Windows.
Windows began suffering from cryptic ENOTEMPTY and EPERM errors between
1.5-beta.20 and 1.5-rc.0. After a tricky `git bisect` adventure, I tracked
the problem down to my commit b6694b2f5d,
which caused dynamic modules to be written more than once by the bundler.
Though I don't understand exactly why Windows complained in this way, I'm
glad that it did, because otherwise this mistake would merely have been a
performance problem, and might not have been noticed before the release.
2017-05-18 11:48:40 -04:00
Ben Newman
f2d39c167b Bump package versions for 1.5-rc.5 release. release/METEOR@1.5-rc.5 2017-05-17 16:30:40 -04:00
Ben Newman
c871916756 Tolerate older versions of core-js.
Should fix #8699.
2017-05-17 16:30:39 -04:00
Ben Newman
2aa5c28bdb Save 13.5KB minified JS by not forcing core-js TypedArray polyfills.
You can still import these polyfills yourself, if you need them.
2017-05-17 16:18:26 -04:00
Michiel ter Reehorst
fb2e35fa30 Move localStorage access back into try statement (#8703)
Accessing window.localStorage can immediately throw an error in IE (#1291) and other/older webkit versions.
2017-05-17 16:16:49 -04:00
Jesse Rosenberger
647e3a2fc5 Bump bundle-visualizer version to 1.0.1 in preparation for publishing. 2017-05-17 12:46:22 -04:00
Jesse Rosenberger
d45e51f544 Merge pull request #8688 from Primigenus/patch-12
Ensure visualizer displays on top of other UI
2017-05-17 12:15:20 -04:00
Ben Newman
8bd1005840 Bump package versions for 1.5-rc.4 release. release/METEOR@1.5-rc.4 2017-05-16 15:30:37 -04:00
Ben Newman
0a8a538d8e Mention the ecmascript-runtime-{client,server} split in History.md. 2017-05-16 15:25:45 -04:00
Ben Newman
f339dec5ae 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-16 14:55:28 -04:00
Ben Newman
16a8a3ae3c Tweaks to linker caching.
No longer using a RegExp when we know what the old file wildcard path
should be, and no longer using Fiber when we can just use a Promise
callback (since all Promise callbacks run in a Fiber).
2017-05-16 13:43:38 -04:00