Commit Graph

9648 Commits

Author SHA1 Message Date
Ben Newman
0ca6202aab Bump package versions for 1.7.1-beta.2 release. 2018-06-13 19:53:48 -04:00
Ben Newman
23fd4158ef Bump package versions for 1.7.1-beta.1 release. 2018-06-13 16:48:49 -04:00
Ben Newman
8fa1dbe45d Merge branch 'devel' into release-1.7.1 2018-06-13 15:52:30 -04:00
Ben Newman
85a66caa89 Merge branch 'master' into devel 2018-06-13 15:30:10 -04:00
Ben Newman
4324c90b25 Bump package versions for the official 1.7.0.2 release.
https://github.com/meteor/meteor/pull/9990
2018-06-13 14:21:23 -04:00
Ben Newman
923949c7eb Bump package versions for 1.7.0.2-rc.0 release. 2018-06-13 12:57:53 -04:00
Ben Newman
41c2dd02f6 Bump ecmascript patch version to 0.11.1.
This is necessary when we bump the babel-compiler package, since the
compile-ecmascript plugin is registered by the ecmascript package.
2018-06-13 12:43:36 -04:00
Ben Newman
5eeb81a32d Update meteor-babel to version 7.0.0-beta.51. 2018-06-13 12:33:35 -04:00
Ben Newman
e5e35804b9 Merge pull request #9983 from meteor/inputFile.addJavaScript-lazyFinalizer-thunk
Support lazy inputFile.addJavaScript for substantial (re)build time savings.
2018-06-13 11:08:34 -04:00
Ben Newman
f373219e42 Statically import SockJS in both modern and legacy bundles. (#9985)
Not including SockJS in the modern JS bundle was a nice bundle size
savings (28KB before gzip), but SockJS works better than a native
WebSocket for clients that are stuck in unusual networking situations, and
the fallback of using dynamic import() to load SockJS when the native
WebSocket failed was much slower than simply including SockJS in the
bundle and using it from the start.

Moreover, the new `meteor create --minimal` starter app does not use
socket-stream-client (nor DDP), so going back to including SockJS in both
the modern and the legacy bundles should have no impact on the minimal
modern bundle size.

If you want to continue using a native WebSocket instead of SockJS, you
can always pin the older version of the socket-stream-client package:

  meteor add socket-stream-client@0.2.1
2018-06-12 17:30:01 -04:00
Ben Newman
7a68a0d9ca Push inputFile.getFileOptions() call down to single usage site. 2018-06-12 11:41:33 -04:00
Ben Newman
479e505d71 Avoid calling compileOneFileLater during compiler plugin self-tests. 2018-06-11 19:51:51 -04:00
Ben Newman
d791447411 Use async compileOneFile to avoid Future usage in LESS plugin. 2018-06-11 19:40:47 -04:00
Ben Newman
64e86b54b2 Allow compileOneFile and compileOneFileLater to return Promises. 2018-06-11 19:39:44 -04:00
Ben Newman
f1f5451517 Stop checking isRoot before calling compileOneFileLater.
Now that compilation of compile-to-CSS files in imports/ and node_modules/
is actually lazy, we can safely call compileOneFileLater for all
inputFiles without worrying about accidental compilation.
2018-06-11 17:18:08 -04:00
Ben Newman
7ec5d446d1 Bump minor version of less package to 2.8.0.
We should really update to the latest version of the less npm package
(3.0.4 at the time this commit message was written).
2018-06-11 11:02:19 -04:00
Ben Newman
7cfba6e002 Bump minor version of babel-compiler package to 7.2.0. 2018-06-11 11:02:19 -04:00
Ben Newman
98d853551f Bump minor version of caching-compiler package to 1.2.0. 2018-06-11 11:02:19 -04:00
Ben Newman
a5751003a7 Use lazyFinalizer function when calling addJavaScript in BabelCompiler. 2018-06-11 11:02:19 -04:00
Ben Newman
c28065aedc Let CachingCompiler subclasses implement compileOneFileLater.
If you're subclassing `CachingCompiler` or `MultiFileCachingCompiler`, you
can now implement a `compileOneFileLater` (emphasis on `Later`) to opt into
the new lazy compilation strategy.

If you implement this method, and `inputFile.supportsLazyCompilation` is
true, then the `addCompileResult` will not be called, though it is
probably a good idea to keep any existing `addCompileResult` methods, just
in case `inputFile.supportsLazyCompilation` is not truthy.

This will be an important part of a proper solution to the issues I
described (but failed to fix) in my broken PR #9968.
2018-06-11 11:02:19 -04:00
Ben Newman
2bd67f334f Use the lru-cache package from dev_bundle in caching-compiler. 2018-06-11 11:02:18 -04:00
Ben Newman
ff82847cd6 Replace async.eachLimit usage in caching-compiler with Promises. 2018-06-11 11:02:18 -04:00
Ben Newman
0a336175c4 Let any client request any static resource. (#9965)
Fixes #9953.
2018-06-07 16:20:38 -04:00
Ben Newman
ab87f48f1b Bump dynamic-import package version before republishing. 2018-06-07 11:38:44 -04:00
Ben Newman
43211a0526 Style tweaks for access-control-request-headers echoing. 2018-06-07 11:11:48 -04:00
Adriaan Callaerts
0244680131 Allow dynamic import() requests from any origin on any device. (#9954)
A tweak to the change introduced in c4b5707747 to fix #9952.

This will allow clients that don't support the * value in `Access-Control-Allow-Headers`,
but do specify the `Access-Control-Request-Headers` (such as electron 2.0.2) to use dynamic import.
2018-06-07 09:41:21 -04:00
Ben Newman
6725b7046e Bump package versions for 1.7.1-beta.0 release. 2018-06-05 13:27:52 -04:00
Ben Newman
e595bae374 Fix jsdoc for Mongo.Collection#raw{Collection,Database}. 2018-06-04 10:21:55 -04:00
Ben Newman
d78a17d7e9 Bump package versions for the official 1.7.0.1 release.
https://github.com/meteor/meteor/pull/9917
2018-05-30 10:03:34 -04:00
Ben Newman
f41e3f17ce Bump package versions for 1.7.0.1-rc.0 release. 2018-05-29 18:13:22 -04:00
James Burgess
0a61dae68d Docs typo (#9898) 2018-05-28 14:06:53 -04:00
Ben Newman
39295cc136 Support both mobile_safari and mobileSafari for isModern testing.
https://github.com/meteor/meteor/issues/9717#issuecomment-392521536
2018-05-28 12:22:19 -04:00
Ben Newman
274e2b1ed2 Make chrome{,Mobile{,IOS}} synonymous for isModern testing. 2018-05-28 12:19:05 -04:00
Ben Newman
4a76fe3fe6 Bump package versions for the official 1.7 release. 2018-05-27 19:29:46 -04:00
Ben Newman
240855777a Bump package versions for 1.7-rc.14 release. 2018-05-27 18:01:51 -04:00
Ben Newman
a126cf5641 Update reify to version 0.16.2. 2018-05-27 18:00:48 -04:00
Ben Newman
dab025e514 Stop passing babelOptions.sourceMap when compiling meteor shell commands. 2018-05-25 20:10:39 -04:00
Ben Newman
d87239931d Bump package versions for 1.7-rc.13 release. 2018-05-25 18:49:38 -04:00
Ben Newman
6407e4dafb Update meteor-babel to version 7.0.0-beta.49-1.
Also switching from babelOptions.sourceMap to babelOptions.sourceMaps,
finally: https://babeljs.io/docs/usage/api/#options
2018-05-25 18:43:13 -04:00
Ben Newman
35da297e02 Bump package versions for 1.7-rc.12 release. 2018-05-24 23:19:54 -04:00
Ben Newman
71b9241611 Revert "Use legacy workaround for @babel/runtime/helpers/inheritsLoose."
This reverts commit 8bfdea712a.

As clever as this IE10 hack may have been, it should no longer be
necessary, thanks to https://github.com/babel/babel/pull/7969.

cc @abernix @hwillson
2018-05-24 23:01:08 -04:00
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
9313e683d5 Bump package versions for 1.7-rc.11 release. 2018-05-16 17:53:20 -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
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. 2018-05-15 18:03:10 -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