Commit Graph

21235 Commits

Author SHA1 Message Date
Ben Newman
0ca6202aab Bump package versions for 1.7.1-beta.2 release. release/METEOR@1.7.1-beta.2 2018-06-13 19:53:48 -04:00
Ben Newman
a664ff220c Merge branch 'devel' into release-1.7.1 2018-06-13 19:52:23 -04:00
Ben Newman
a1f4e94c59 Merge branch 'master' into devel 2018-06-13 19:51:26 -04:00
Ben Newman
14c135668d Merge pull request #9994 from meteor/release-1.7.0.3
Release 1.7.0.3
2018-06-13 19:50:33 -04:00
Ben Newman
d3b1847c03 Bump package versions for the official 1.7.0.3 release.
https://github.com/meteor/meteor/pull/9994
release/METEOR@1.7.0.3
2018-06-13 19:00:18 -04:00
Ben Newman
ec5c356d0d Update History.md for Meteor 1.7.0.3. 2018-06-13 18:42:27 -04:00
Ben Newman
3c4944479d Bump package versions for 1.7.0.3-rc.0 release. release/METEOR@1.7.0.3-rc.0 2018-06-13 18:03:21 -04:00
Ben Newman
ea394be6e8 Don't ignore tests/ directory if meteor.testModule defined.
According to traditional Meteor file loading rules, tests/ directories are
completely ignored: https://guide.meteor.com/structure.html#special-directories

However, if you specify a meteor.testModule in your package.json that
refers to a file inside a tests/ directory, Meteor should permit modules
to be loaded from tests/, as well as any modules that are imported by the
meteor.testModule entry point.

Fixes #9991.
2018-06-13 17:59:40 -04:00
Ben Newman
23fd4158ef Bump package versions for 1.7.1-beta.1 release. release/METEOR@1.7.1-beta.1 2018-06-13 16:48:49 -04:00
Ben Newman
dcc5756604 Bump $BUNDLE_VERSION to 8.11.3.2 before rebuilding dev bundle. 2018-06-13 16:26:24 -04:00
Ben Newman
8fa1dbe45d Merge branch 'devel' into release-1.7.1 2018-06-13 15:52:30 -04:00
Ben Newman
e2c9e95663 Bump $BUNDLE_VERSION to 8.11.3.1 before rebuilding dev bundle. 2018-06-13 15:49:51 -04:00
Ben Newman
85a66caa89 Merge branch 'master' into devel 2018-06-13 15:30:10 -04:00
Ben Newman
1c4536072a Merge pull request #9990 from meteor/release-1.7.0.2
Release 1.7.0.2
2018-06-13 15:28:28 -04:00
Ben Newman
4324c90b25 Bump package versions for the official 1.7.0.2 release.
https://github.com/meteor/meteor/pull/9990
release/METEOR@1.7.0.2
2018-06-13 14:21:23 -04:00
Ben Newman
9b28ece2ba Bump @babel/runtime version in starter application skeletons. 2018-06-13 14:21:20 -04:00
Ben Newman
2297807516 Mention PR #9977 in History.md. 2018-06-13 13:30:10 -04:00
Rob Fallows
a9af151df9 Update default and --minimal app skeletons. Fixes #9961 (#9977) 2018-06-13 13:22:39 -04:00
Ben Newman
923949c7eb Bump package versions for 1.7.0.2-rc.0 release. release/METEOR@1.7.0.2-rc.0 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
56a04f83c9 Bump $BUNDLE_VERSION to 8.11.3.0 before rebuilding dev bundle. 2018-06-13 12:39:19 -04:00
Ben Newman
655cd9a7ca Update Node to version 8.11.3. 2018-06-13 12:38:01 -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
2b505936b4 Tolerate async lazyFinalizer functions when immediately invoked. 2018-06-12 11:02:37 -04:00
Ben Newman
baa6108f0c Stop representing JS compilation errors as file objects. 2018-06-11 21:55:50 -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
df712b6b7a Allow lazyFinalizer functions to return Promises. 2018-06-11 19:35:42 -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
79cb14afbe Avoid accessing .data in ImportScanner until files get scanned. 2018-06-11 17:18:08 -04:00
Ben Newman
6f93bd1def Use custom CssOutputResource class in ResourceSlot#addStylesheet. 2018-06-11 17:18:08 -04:00
Ben Newman
98ed767522 Use custom JsOutputResource class in ResourceSlot#addJavaScript. 2018-06-11 16:45:32 -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
9cc739078c Support lazy compilation of inputFile.add{JavaScript,Stylesheet,...} resources.
One limitation of Meteor's current compiler plugins system is that every
file we *might* use must be compiled before we know whether it *will* be
used by the application (which is something we only find out when we later
run the `ImportScanner`). More specifically, when inputFile.addJavaScript
is called, any information relevant to the current file must already have
been computed, even if the file will never be used.

This commit begins the process of supporting a lazy version of the
`inputFile.addJavaScript` method. For consistency, this interface is
supported by other methods like `inputFile.addStylesheet`, though it may
not make as much sense for non-JavaScript resources.

In this very basic initial implementation, the `lazyFinalizer` function is
called immediately, so that subsequent code can keep pretending that all
relevant information was eagerly provided.

The next step will be waiting to call `lazyFinalizer` until the last
possible moment, so that we can skip a potentially huge amount of
unnecessary compilation time.
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
Rob Fallows
a52b462f55 Update default and --minimal app skeletons. Fixes #9961 (#9977) 2018-06-11 09:15:39 -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
f0e04facd2 Update dynamic-import test app to Meteor 1.7.0.1. 2018-06-07 11:36:34 -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