Commit Graph

9579 Commits

Author SHA1 Message Date
Ben Newman
60caaeb774 Bump package versions for 1.7-rc.5 release. 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. 2018-05-09 16:39:37 -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. 2018-05-08 13:14:03 -04:00
Ben Newman
f489ba9f95 Bump package versions for 1.7-rc.2 release. 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. 🎉 2018-05-03 19:14:18 -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. 2018-05-01 17:08:06 -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
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
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
Ben Newman
8e6f673fd0 Bump package versions for 1.7-beta.27 release. 2018-04-28 12:09:02 -04:00
Ben Newman
72edda6b37 Cache previously computed app.manifest files.
This is an easy optimization that we should have done a long time ago.
2018-04-28 11:58:57 -04:00
Ben Newman
7e883b337f Register app.manifest FALLBACK for non-prefixed asset URLs.
This is an alternate solution to the problems #9776 was intended to fix.
2018-04-28 11:26:10 -04:00
Ben Newman
21ffb90154 Pass arch and prefix to eachResource callback in appcache-server.js. 2018-04-28 11:21:34 -04:00
Ben Newman
a2b770e8db Merge branch 'devel' into release-1.7 2018-04-28 10:11:18 -04:00
Ben Newman
61506c64e2 Reinstate Deps as an alias for Tracker to fix #9830. 2018-04-28 10:10:47 -04:00
Ben Newman
11078e46b2 Bump package versions for 1.7-beta.26 release. 2018-04-27 13:43:14 -04:00
Ben Newman
cd165c50e6 Bump appcache package version to 1.2.0. 2018-04-27 13:25:18 -04:00
Ben Newman
a599aa738d Avoid using WebApp.connectHandlers for appcache sizeCheck.
The (req, res, next) handler was not calling next(), which caused some
tests where appcache was used (e.g. hot code push) to time out.
2018-04-27 13:25:15 -04:00
Ben Newman
cf33eeedbc Decompose eachResource helper function in appcache-server.js. 2018-04-27 13:07:37 -04:00
Ben Newman
b50a52ecf5 Tolerate assets added with same path to both modern and legacy architectures.
Since legacy assets are no longer disambiguated from modern assets with a
/__browser.legacy/ URL prefix (#9776), we need a principled way to handle
collisions in the staticFiles registry.
2018-04-27 12:41:36 -04:00
Kevin Newman
06f9f78277 Avoid the need to rewrite URLs in appcache, by avoiding adding the prefix at build time for assets 2018-04-27 09:47:21 -04:00
Kevin Newman
154533af26 Rewrite /public urls to remove /__browser.legacy/ prefix in app.manifest (also skip stats.json) 2018-04-27 09:47:21 -04:00
Kevin Newman
7f2a683e2c Always omit .map files from app.manifest 2018-04-27 09:47:21 -04:00
Kevin Newman
04a0a2a97f Use isModern checks to decide which arch assets to put in the app.manifest, and add filter for web.browser.legacy in isDynamic check 2018-04-27 09:47:21 -04:00
Carl Littke
b6a385dfb2 Stop logging value of METEOR_SETTINGS when it is not valid JSON. (#9843)
In many production systems logs from the application will be forwarded to various logging systems, sometimes third party ones. All credentials in your settings will be leaked if you have any errors in your json.

Feature request can be found here
https://github.com/meteor/meteor-feature-requests/issues/293.
2018-04-27 15:10:40 +03:00
Ben Newman
dcd01aceba Merge branch 'devel' into release-1.7 2018-04-25 18:22:00 -04:00
Ben Newman
986b47d1c4 Update meteor-babel to version 7.0.0-beta.46. (#9840) 2018-04-25 18:15:29 -04:00
Ben Newman
cf273f0911 Bump package versions for 1.7-beta.25 release. 2018-04-25 12:43:35 -04:00
Ben Newman
3502761c4d Exclude IE11 and all earlier versions from modern classification.
Builds on #9793.
Fixes #9818.
Fixes #9839.
2018-04-25 12:35:45 -04:00
Ben Newman
5824129a34 Bump package versions for 1.7-beta.24 release. 2018-04-24 12:40:07 -04:00
Christian Klaussner
1555e3e1e3 Update MongoDB driver to 3.0.7 (#9831)
The internal `client.s` property is no longer necessary to create the database object. If `MongoClient.prototype.db` is called without arguments, it will use the database name from the connection URI
(https://jira.mongodb.org/projects/NODE/issues/NODE-1258).
2018-04-20 13:26:24 -04:00
Ben Newman
a3a19f94eb Bump package versions for 1.7-beta.23 release. 2018-04-19 10:53:15 -04:00
Ben Newman
567e620a86 Prefer client.s.databaseName over client.s.options.dbName.
Fixes #9827.

The client.s.databaseName property appears to have been introduced a long
time ago (in 2014), so it seems reliable:
14fd60b99d

The use of client.s.options.dbName was only recently introduced in #9790,
since the MongoDB.connect callback now receives a MongoClient object
rather than a Db object. Not sure if client.s.options.dbName was ever
reliable, but at least we know when the problem started.
2018-04-19 10:12:23 -04:00
Ben Newman
5189713d01 Bump package versions for 1.7-beta.22 release. 2018-04-18 19:42:50 -04:00