Commit Graph

21093 Commits

Author SHA1 Message Date
Ben Newman
8e1287054a Bump package versions for 1.7-rc.6 release. release/METEOR@1.7-rc.6 2018-05-10 12:16:22 -04:00
Ben Newman
1dd5e5f92f Merge branch 'devel' into release-1.7 2018-05-09 20:30:53 -04:00
Ben Newman
782d774b43 Rename cache files synchronously in caching-compiler.
I've noticed that sometimes it takes a while for cache files to be fully
written and renamed, so I think we can speed things up while still
preserving the asynchronicity by doing the rename synchronously in the
async fs.writeFile callback.
2018-05-09 20:25:34 -04:00
Ben Newman
3205a8ec0a Pass cacheOptions (not just cacheDeps) to Babel.compile.
It's important not to involve cacheDirectory in the computation of cache
keys, since that introduces too much diversity, especially when running
tests, since tests use temporary directories with randomized names.
2018-05-09 19:22:03 -04:00
Ben Newman
b7579ad100 Update modules test app to Meteor 1.7-rc.5. 2018-05-09 19:12:13 -04:00
Ben Newman
60caaeb774 Bump package versions for 1.7-rc.5 release. release/METEOR@1.7-rc.5 2018-05-09 18:48:35 -04:00
Ben Newman
538bd0374b Update meteor-babel to version 7.0.0-beta.46-4.
This version no longer includes the cache directory in the computation of
the cache key, which allows repeated test runs to reuse compilation
results from previous runs.
2018-05-09 18:36:59 -04:00
Ben Newman
84c5667f7f Bump package versions for 1.7-rc.4 release. release/METEOR@1.7-rc.4 2018-05-09 16:39:37 -04:00
Ben Newman
a8b6accb11 Set .babel-cache directory correctly for command-line tool.
This depends on new functionality in meteor-babel@7.0.0-beta.46-3:
d5d2bbf81e
dea6465daf
2018-05-09 16:16:05 -04:00
Ben Newman
210a09f5e4 Bump $BUNDLE_VERSION to 8.11.2.3 before rebuilding dev bundle. 2018-05-09 16:02:46 -04:00
Ben Newman
40d408e4fb Revert "Use a custom build of Node 8.11.2 for Mac and Linux."
This reverts commit 7a2e492b6c.

The custom build had a Node version of
8.11.2-nightly1525879461436bd3e42eb10ddd15a9fc1ed225d49c87ad7214 instead
of 8.11.2, which is not something that I want Galaxy (or any other hosting
service) to have to understand.
2018-05-09 13:30:18 -04:00
Ben Newman
c54c2660bd Bump $BUNDLE_VERSION to 8.11.2.2 before rebuilding dev bundle.
That is, instead of using the official 8.11.2-rc.1 release candidate.

Note that we're still using 8.11.1 on Windows, since the official RC has a
bad process.release.headersUrl.
2018-05-09 13:06:30 -04:00
Ben Newman
7a2e492b6c Use a custom build of Node 8.11.2 for Mac and Linux. 2018-05-09 13:04:50 -04:00
Ben Newman
b8ee3d01ab Stop setting a global Babel cache directory.
Instead, the cache directory is provided as part of the third argument to
Babel.compile, which means we can set the cache directory per instance of
BabelCompiler in BabelCompiler#setCacheDir.

This became a problem because coffeescript was calling
the setCacheDir method of its own instance of BabelCompiler, which was
racing with the setCacheDir call for the ecmascript package:
f601ec9693/packages/non-core/coffeescript/compile-coffeescript.js (L27)
2018-05-09 13:03:43 -04:00
Ben Newman
faa08fd5a6 Cache previous inferExtraBabelOptions work.
TODO This should be optimistically cached across invocations of
BabelCompiler#processFilesForTarget.
2018-05-08 20:21:29 -04:00
Ben Newman
f601ec9693 Bump package versions for 1.7-rc.3 release. release/METEOR@1.7-rc.3 2018-05-08 13:14:03 -04:00
Ben Newman
81248867aa Update meteor-node-stubs to version 0.4.1.
This only affects newly created applications for now, but developers can
update to the latest meteor-node-stubs by running

  meteor npm install meteor-node-stubs@latest

https://github.com/meteor/node-stubs/issues/15
2018-05-08 12:56:03 -04:00
Ben Newman
5ef428521e More details about writing modern/legacy packages. 2018-05-08 11:20:20 -04:00
Ben Newman
5667956844 Simplify History.md description of modern/legacy system somewhat. 2018-05-08 10:59:13 -04:00
Ben Newman
835c21ccb0 Talk about the modern/legacy system in History.md.
We may want to move some of this content into a blog post or Guide
article, and then link to that from History.md.
2018-05-07 21:33:49 -04:00
Ben Newman
ce209b5c7b Add v1.7 heading to History.md. 2018-05-07 19:15:48 -04:00
Ben Newman
7baaf19020 Report an error when meteor.mainModule cannot be resolved.
https://github.com/meteor/meteor/pull/9826#issuecomment-387172568
2018-05-07 18:48:38 -04:00
Ben Newman
b21659a66c Bump $BUNDLE_VERSION to 8.11.2.1 before rebuilding dev bundle. 2018-05-07 15:51:42 -04:00
Ben Newman
9bb92ba0a9 Force Node 8.11.1 on Windows for now.
https://github.com/nodejs/node/pull/20478#issuecomment-387181249
2018-05-07 15:51:39 -04:00
Ben Newman
bc6ec63f52 Update Node to v8.11.2-rc.1. 2018-05-07 15:22:13 -04:00
Ben Newman
f489ba9f95 Bump package versions for 1.7-rc.2 release. release/METEOR@1.7-rc.2 2018-05-07 11:19:43 -04:00
Ben Newman
08a0652b7f Merge branch 'devel' into release-1.7 2018-05-07 11:09:35 -04:00
ochicf
9fc0251eee Fix this.toHTMLAsync call in boilerplate-generator (#9838) 2018-05-07 11:02:25 -04:00
Jan Dvorak
18360a0265 facebook-oauth: upgrade api version to v3 👮 & add new fields (#9853) 2018-05-07 11:00:48 -04:00
Ben Newman
e75f017302 Fix #9866 by passing safari10:true in uglify-es mangle options. 2018-05-07 10:53:29 -04:00
Ben Newman
6020b38dde Bump package versions for 1.7-rc.1 release. 🎉 release/METEOR@1.7-rc.1 2018-05-03 19:14:18 -04:00
Ben Newman
a0842f70f6 Expose Cordova assets with and without /__cordova URL prefix.
Related to #9776.
Fixes #9782.
2018-05-03 19:12:01 -04:00
Ben Newman
fb9321870e Set minimum modern versions for Electron.
This effectively means Electron 1.6.0+ will be considered modern.

Fixes #9852.
2018-05-03 13:30:34 -04:00
Ben Newman
8bfdea712a Use legacy workaround for @babel/runtime/helpers/inheritsLoose.
IE10 does not support setting the __proto__ property of objects as an
alternative to Object.setPrototypeOf. Because Babel generates code that
uses the @babel/runtime/helpers/inheritsLoose helper, and that helper
relies on setting __proto__, subclassing fails in Babel-generated code in
IE10 (and earlier), which causes a white screen of death in newly created
Meteor apps.

This commit checks whether setting __proto__ works, and (if not) overrides
the inheritsLoose helper with an implementation that does not rely on
setting __proto__. This logic applies only in legacy browsers, thanks to
api.addFiles("legacy.js", "legacy").

Although this shim isn't perfect (for example, there is no way to set up
true inheritance of static properties), it will allow inheritance to work
in browsers that would otherwise be completely broken.

Since IE10 represents only 0.1% of the world market, we should not
overinvest in keeping it working, but this seemed like a good opportunity
to take advantage of legacy bundling, without adding any new code to the
modern bundle.
2018-05-02 18:29:00 -04:00
Ben Newman
454422f9f0 Avoid const in promise package, since it is not ecmascript-compiled. 2018-05-01 17:44:56 -04:00
Ben Newman
0efe66e6a1 Bump package versions for 1.7-beta.28 release. release/METEOR@1.7-beta.28 2018-05-01 17:08:06 -04:00
Ben Newman
0d6fbba203 Make sure minimal apps depend directly on meteor package.
All Meteor packages implicitly depend on the meteor package, and the
meteor-base package implies the meteor package for most Meteor apps, but
the new minimal skeleton does not use meteor-base, so minimal Meteor apps
were not directly depending on the meteor package.

The only reason this mattered was that the meteor package registers a
default compiler plugin for CSS files, and compiler plugins only apply if
an app or package directly depends on them (or depends on a package that
implies them, such as meteor-base).

In other words, this change reenables support for raw CSS files for
minimal apps.
2018-05-01 15:15:00 -04:00
Ben Newman
d61e5daae6 Merge pull request #9849 from meteor/stop-prefixing-legacy-URLs
Stop prefixing legacy URLs with /__browser.legacy
2018-05-01 10:14:44 -04:00
Ben Newman
182c426c6d Set Vary:User-Agent response header for static files.
The only new functionality is the res.setHeader("Vary", "User-Agent")
call; the rest of the changes in this commit are just reformatting.

@CaptainN I think this should be enough information for well-behaved
browsers and CDNs to do the right thing, though I agree it's worth
documenting.
2018-04-30 19:47:12 -04:00
Ben Newman
0765927393 Let bundle-visualizer tolerate WebAppInternals.staticFilesByArch. 2018-04-29 10:20:12 -04:00
Ben Newman
d6c8a96bda Refine URL prefix logic to exclude just web.browser[.legacy].
This still leaves web.cordova as the only architecture whose URLs get
prefixed (with /__cordova/), but the implementation better reflects the
special status of web.browser and web.browser.legacy as architectures that
the webapp and dynamic-import packages understand how to disambiguate
using the isModern test from the modern-browsers package.
2018-04-29 10:06:08 -04:00
Ben Newman
7e5e5b9fa1 Restrict URL prefixing to web.cordova URLs.
Now that webapp can differentiate between modern and legacy browsers when
serving static files, without relying on URL prefixes, in principle we
shouldn't have to use prefixes for any URLs except Cordova ones.
2018-04-29 09:58:08 -04:00
Ben Newman
223ec46525 Use isModern(request.browser) to determine architecture of static files.
Note that WebAppInternals.staticFiles has been replaced by
WebAppInternals.staticFilesByArch.
2018-04-29 09:58:08 -04:00
Ben Newman
f9e95b3bbb Merge branch 'devel' into release-1.7 2018-04-29 09:22:01 -04:00
Ben Newman
715b96bed8 Use ecmascript in test-helpers and downgrade to latest published jquery.
Though this commit comes after the 1.1.0 version bump, these changes
should be published when that version is published (with Meteor 1.7).
2018-04-29 09:06:17 -04:00
Ben Newman
9cc9214490 Bump test-helpers package version to 1.1.0. 2018-04-29 02:16:17 -04:00
Ben Newman
cac0c89492 Merge pull request #9848 from meteor/improve-oplog-entry-skipping-test
Improve "oplog - entry skipping" test, which has been failing intermittently.
2018-04-29 00:20:56 -04:00
Ben Newman
029611ec6d Improve "oplog - entry skipping" test to prevent intermittent failures. 2018-04-28 23:51:01 -04:00
Ben Newman
bdc98281b1 Bump test-helpers package version to 1.0.13. 2018-04-28 23:50:53 -04:00
Ben Newman
d3df76b2b5 Allow testAsyncMulti functions to return promises. 2018-04-28 23:49:20 -04:00