Commit Graph

9674 Commits

Author SHA1 Message Date
Ben Newman
b920f6fe15 Bump package versions for 1.7.1-beta.8 release. 2018-06-28 19:08:08 -04:00
Ben Newman
e53c74c2cb Merge branch 'devel' into release-1.7.1 2018-06-28 19:04:15 -04:00
Ben Newman
9abd2ce4c8 Add another basic fetch() test. 2018-06-28 18:52:58 -04:00
James Burgess
a20f4e74d8 Replace http with fetch in bundle-visualizer (#10031) 2018-06-28 18:33:44 -04:00
Ben Newman
a024544b45 Switch appcache tests from HTTP to fetch(). 2018-06-28 18:32:31 -04:00
Ben Newman
4363c4d0ec Removed unused http dependency from ddp-client. 2018-06-28 18:32:31 -04:00
Ben Newman
6e4b7b4d3d Remove unused http and random dependencies from autoupdate. 2018-06-28 18:32:30 -04:00
Ben Newman
2be9902a1e Switch dynamic-import from HTTP to fetch. 2018-06-28 18:32:30 -04:00
Ben Newman
06ea07d14b Provide isomorphic implementation of WHATWG fetch() API. 2018-06-28 18:25:14 -04:00
Ben Newman
6b572c6ad3 Bump package versions for 1.7.1-beta.7 release. 2018-06-26 15:48:08 -04:00
Ben Newman
eee2557a44 Update meteor-babel to version 7.0.0-beta.51-1. 2018-06-26 15:45:45 -04:00
Ben Newman
de3fef17ca Stop eagerly forcing compilation of lazy CssOutputResources.
This should be a better fix for the problem I tried to fix with
479e505d71.

If we're going to be using compileOneFileLater by default, that's what we
should be testing in the compiler plugins self-tests.
2018-06-26 13:09:28 -04:00
Ben Newman
f7f3d34181 Mark non-isRoot files lazy in MultiFileCachingCompiler.
The concept of a "root" file is specific to MultiFileCachingCompiler, so
we need to normalize it into a representation that makes sense to the rest
of the compiler plugin system.

Should help with #10014.
2018-06-26 13:09:14 -04:00
Ben Newman
2d4019ddd9 Bump package versions for 1.7.1-beta.6 release. 2018-06-25 16:47:33 -04:00
Ben Newman
156f167d52 Merge branch 'devel' into release-1.7.1 2018-06-25 16:45:30 -04:00
Ben Newman
24865b28a0 Wrap Module.prototype.require instead of using options.wrapRequire.
a630b5c2ac
7a9abeca88
2018-06-25 16:43:46 -04:00
Ben Newman
445fd3714a Update install package used by modules-runtime to version 0.11.1.
This enables using index.* modules with non-.js file extensions to make
the containing directory importable (cc @justinanastos):
c417044421

Since this is a core package patch update, you can update to this version
of the modules-runtime package by running

  meteor update modules-runtime

This should give you modules-runtime@0.10.1.
2018-06-25 13:25:15 -04:00
Ben Newman
f804132d7b Bump package versions for 1.7.1-beta.5 release. 2018-06-23 10:22:28 -04:00
James Burgess
fbea42ca7c Replace generic bundle names with arch names in bundle-visualizer (#10021) 2018-06-22 16:46:34 -04:00
Ben Newman
211d0b25fa Stop eagerly forcing compilation of lazy CssOutputResources.
This should be a better fix for the problem I tried to fix with
479e505d71.

If we're going to be using compileOneFileLater by default, that's what we
should be testing in the compiler plugins self-tests.
2018-06-22 16:43:55 -04:00
Ben Newman
fb8bcf44b0 Mark non-isRoot files lazy in MultiFileCachingCompiler.
The concept of a "root" file is specific to MultiFileCachingCompiler, so
we need to normalize it into a representation that makes sense to the rest
of the compiler plugin system.

Should help with #10014.
2018-06-22 16:43:54 -04:00
Ben Newman
62c6917f8d Bump package versions for 1.7.1-beta.4 release. 2018-06-16 11:04:21 -04:00
Ben Newman
fd7cb50c7a Bump package versions for 1.7.1-beta.3 release. 2018-06-15 16:12:11 -04:00
Ben Newman
0ca6202aab Bump package versions for 1.7.1-beta.2 release. 2018-06-13 19:53:48 -04:00
Ben Newman
a1f4e94c59 Merge branch 'master' into devel 2018-06-13 19:51:26 -04:00
Ben Newman
d3b1847c03 Bump package versions for the official 1.7.0.3 release.
https://github.com/meteor/meteor/pull/9994
2018-06-13 19:00:18 -04:00
Ben Newman
3c4944479d Bump package versions for 1.7.0.3-rc.0 release. 2018-06-13 18:03:21 -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