Commit Graph

21139 Commits

Author SHA1 Message Date
Ben Newman
b28c8a6249 Update meteor-babel to 7.0.0-beta.48 and reify to 0.16.1. 2018-05-24 22:34:38 -04:00
Ben Newman
e3bac92c82 Strip //# sourceMappingURL comments for files without source maps.
https://github.com/meteor/meteor/issues/9894#issuecomment-391101074

Fixes #9894.
2018-05-23 19:19:05 -04:00
Ben Newman
1aabda8fcf Set release date for Meteor 1.7. 🎉
cc @abernix @hwillson
2018-05-16 20:45:04 -04:00
Ben Newman
d64e87b852 Bump LINKER_CACHE_SALT and compiler.BUILT_BY for good measure. 2018-05-16 20:43:26 -04:00
Ben Newman
9313e683d5 Bump package versions for 1.7-rc.11 release. release/METEOR@1.7-rc.11 2018-05-16 17:53:20 -04:00
Ben Newman
edc05ee06b Bump $BUNDLE_VERSION to 8.11.2.6 before rebuilding dev bundle. 2018-05-16 17:52:00 -04:00
Ben Newman
a76e6da686 Update help text about minimal starter app to deemphasize emptiness. 2018-05-16 17:47:19 -04:00
Ben Newman
3d1078b5b3 Expand History.md entry about meteor create --minimal. 2018-05-16 17:47:18 -04:00
Ben Newman
af9a0e183f Include "Learn Meteor!" links in minimial starter app HTML. 2018-05-16 17:31:59 -04:00
Ben Newman
10e69ee84d Include actual CSS in default starter app. 2018-05-16 17:31:37 -04:00
Ben Newman
c88b888275 Demonstrate basic server-side rendering in minimal starter app.
Now that the meteor/server-render package is lazy on the client, it adds
no weight to the client JavaScript bundle unless imported.
2018-05-16 17:22:12 -04:00
Ben Newman
b6ac0acbf6 Remove outdated Reify runtime workarounds from modules/reify.js. 2018-05-16 15:20:38 -04:00
Ben Newman
538175116b Make meteor/server-render lazy on the client. 2018-05-16 15:20:38 -04:00
Ben Newman
c29b191a42 Make the minimal starter application follow best practices. 2018-05-16 15:20:38 -04:00
Ben Newman
b830665a1f Expose App.settings in mobile-config.js rather than Settings.
Follow-up to #9873.
2018-05-16 12:45:07 -04:00
Jan Owsiany
b35aab6c55 Expose Meteor settings inside mobile-config.js (#9873) 2018-05-16 12:22:38 -04:00
Ben Newman
124e334a95 Update meteor-babel and @babel/runtime to version 7.0.0-beta.47. 2018-05-16 12:16:28 -04:00
Ben Newman
938d92d25e Bump package versions for 1.7-rc.10 release. release/METEOR@1.7-rc.10 2018-05-15 18:03:10 -04:00
Ben Newman
157e028bf7 Bump $BUNDLE_VERSION to 8.11.2.5 before rebuilding dev bundle. 2018-05-15 18:01:55 -04:00
Ben Newman
e35e9e0ef9 Update Node to version 8.11.2. 🎉
https://nodejs.org/en/blog/release/v8.11.2/
2018-05-15 18:01:55 -04:00
Ben Newman
927aa93bc4 Bump ddp-server package version to 2.2.0. 2018-05-15 16:48:39 -04:00
Lucas Hansen
b93ffce4dc Manually track number of crossbar listeners by collection (#9889) 2018-05-15 10:40:04 -04:00
Ben Newman
a646bdbbd4 Use only Meteor.absoluteUrl for dynamic import() requests, again.
https://github.com/meteor/meteor/issues/9747#issuecomment-388931828
https://github.com/meteor/meteor/issues/9888#issuecomment-388953091

cc @sebakerckhof @joaomframos
2018-05-15 10:34:21 -04:00
Ben Newman
b0db9f3387 Bump package versions for 1.7-rc.9 release. release/METEOR@1.7-rc.9 2018-05-14 14:31:46 -04:00
Ben Newman
76ece148ba Update meteor-babel to version 7.0.0-beta.46-5. 2018-05-14 14:20:11 -04:00
Ben Newman
8273eb84e3 Avoid calling files.readlink if target not a symbolic link. 2018-05-14 14:17:46 -04:00
Ben Newman
8566c2ce24 Do not assume location.host can be used for dynamic import(). 2018-05-14 11:35:20 -04:00
Ben Newman
c4b5707747 Allow dynamic import() requests from any origin.
Another way to fix #9888: properly handle OPTIONS requests by returning
permissive CORS headers, so that the dynamic import() server can respond
to requests from any origin.
2018-05-14 11:22:12 -04:00
Ben Newman
6c91a4f0c3 Revert "Use Meteor.absoluteUrl again in dynamic-import fetchMissing function."
This reverts commit 3b77bb5197.

Should fix #9888.

Sending dynamic import() requests to any origin other than location.host
causes some browsers to send a preflight CORS request ( method:OPTIONS) to
verify that the server allows the request, which was causing problems
because the dynamic import() server expects method:POST.
2018-05-14 11:21:00 -04:00
zodern
903cd3c8b9 Fix creating symlinks on Windows April 2018 Update (#9887) 2018-05-14 11:20:56 -04:00
Lucas Hansen
36abc1a0b6 Remove EJSON.clone from the onOplogEntry handler (#9886) 2018-05-14 09:36:18 -04:00
Ben Newman
1f46a2afc3 Bump package versions for 1.7-rc.8 release. release/METEOR@1.7-rc.8 2018-05-12 14:47:54 -04:00
Lukas Strassel
612ff48c8f Polyfill Array.prototype.{flatten,flatMap} in modern bundle (#9883)
With the split of modern/legacy bundles, we no longer polyfill native features.

While Array.prototype.includes is available in modern browsers, flatten and flatMap are not.

This PR re-adds those polyfills to the modern bundle, for consistency with the legacy bundle.
2018-05-12 14:45:46 -04:00
Ben Newman
5aab6d2a12 Avoid caching Resolver on PackageSourceBatch, but cache node_modules paths.
Now that getResolver takes options, it seems inappropriate to cache only
the first resolver created, since multiple resolvers might be created with
different options.

Fortunately, caching Resolver objects is not strictly necessary (even for
performance), since Resolver.getOrCreate already caches based on the
options it receives.

The only other meaningful work PackageSourceBatch#getResolver was doing
was computing the nodeModulesPaths option, so I've cached that.
2018-05-12 13:29:09 -04:00
Ben Newman
82ef207557 Bump package versions for 1.7-rc.7 release. release/METEOR@1.7-rc.7 2018-05-12 12:49:52 -04:00
Ben Newman
dbdadc1b11 Avoid using "browser" field of package.json for inputFile.resolve.
Fixes #9870.
2018-05-12 12:43:54 -04:00
Ben Newman
e25c2fbf45 Bump $BUNDLE_VERSION to 8.11.2.4 before rebuilding dev bundle. 2018-05-12 12:05:40 -04:00
Ben Newman
9b7231bdd4 Update npm to version 5.10.0.
Release notes: https://github.com/npm/npm/releases/tag/v5.10.0

No need to update our pacote fork this time, since pacote@7.6.1 is still
what's used by npm@5.10.0:
https://github.com/npm/npm/blob/v5.10.0/package.json#L105
2018-05-12 11:57:20 -04:00
Ben Newman
1b17025cd4 Tolerate missing files in Builder#_ensureDirectory.
Fixes #9882.
2018-05-12 11:40:01 -04:00
Ben Newman
3b77bb5197 Use Meteor.absoluteUrl again in dynamic-import fetchMissing function.
Previously:
4aeb453c7b
https://github.com/meteor/meteor/pull/9274#issuecomment-348080546
2018-05-12 11:40:01 -04:00
Ben Newman
a8a97016b7 Properly join url and path with / separator in Meteor.absoluteUrl. 2018-05-12 11:40:01 -04:00
Ben Newman
5f131ffe3b Set default Meteor.absoluteUrl ROOT_URL from window.location. 2018-05-12 11:30:13 -04:00
Ben Newman
dacedda571 Use HTTPS in Meteor.absoluteUrl by default if window.location uses HTTPS.
Another attempt to fix #9879.
2018-05-12 11:30:13 -04:00
Ben Newman
9bf35f60d2 Revert "Use wss:// WebSocket URL when location.protocol is https:"
This reverts commit 65115ddab7.

The root of the problem lies in the default value of options.secure used
by Meteor.absoluteUrl.
2018-05-12 11:29:20 -04:00
Ben Newman
65115ddab7 Use wss:// WebSocket URL when location.protocol is https:
Attempt to fix #9879.
2018-05-11 18:04:51 -04:00
Ben Newman
1892633dba Avoid unnecessary files.{rm_recursive,symlink} in symlinkWithOverwrite.
When we copy node_modules directories during rebuilds, we try to create
symlinks instead of doing a full recursive copy. Very often, however, the
symlinks already exist, and they point to the right location already, so
we can avoid recreating them for even better performance.

Another optimization identified by using the qualia:profile package
created by @veered: https://atmospherejs.com/qualia/profile
2018-05-10 14:27:44 -04:00
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