Commit Graph

21719 Commits

Author SHA1 Message Date
Ben Newman
675b5a15e0 Bump package versions for 1.8.1-beta.2 release. release/METEOR@1.8.1-beta.2 2018-10-31 13:44:50 -04:00
Ben Newman
05a0eeffd7 Merge branch 'devel' into release-1.8.1 2018-10-31 13:43:24 -04:00
Jan Dvorak
c622e51cd8 Fix #10305 (#10310) 2018-10-31 11:33:49 -04:00
Ben Newman
0e983deb69 Update coffeescript-compiler constraint in coffeescript/package.js. 2018-10-31 11:14:59 -04:00
Ben Newman
d7339dd3db Bump oauth1 patch version to 1.2.2. 2018-10-31 11:12:39 -04:00
Ben Newman
b04485c777 Merge pull request #10312 from meteor/lazy-coffeescript-compilation
Bump CoffeeScript to version 2.3.2 and enable lazy compilation.
2018-10-31 11:10:02 -04:00
Thomas Spiesser
eb4ae8b8fa [oauth1] Add default value for whitelistedQueryParams. (#10301) 2018-10-31 11:03:53 -04:00
Ben Newman
c96278700d Fix compiler plugins self-tests by waiting for lazy compilation to finish. 2018-10-31 10:41:31 -04:00
Ben Newman
ea173640f2 Bump CoffeeScript to version 2.3.2 and enable lazy compilation.
The introduction of lazy compilation should help with #10298.
2018-10-30 14:24:40 -04:00
Nathan Muir
8f86f19cd0 ddp-client: fix usage of reload package (#10286)
- Return type of onMigrate callback should be an array.
- onMigrate callback can be invoked many times until all components
  are ready to migrate.
- DDP negotiation failures should always migrate immediately.
2018-10-23 10:38:08 -04:00
Jan Dvorak
2cc8db1dd8 Fix #10290 (#10295) 2018-10-23 10:32:28 -04:00
Ben Newman
18762f97a2 Update modules test app to Meteor 1.8. 2018-10-13 19:32:10 -04:00
Ben Newman
94771d233e Update dynamic-import test app to Meteor 1.8. 2018-10-13 19:27:48 -04:00
Ben Newman
8e302da10d Update install npm package to v0.12.2 to fix #10182.
Thanks to PR https://github.com/benjamn/install/pull/50 by @Gariest.
2018-10-13 19:22:49 -04:00
Frederick Stark
cc3d5e08ae Add jsdoc comments to reactive-dict to fix meteor/docs#52 (#10273) 2018-10-13 19:06:10 -04:00
Ben Newman
07b45f6dde Bump package versions for 1.8.1-beta.1 release. release/METEOR@1.8.1-beta.1 2018-10-11 12:59:34 -04:00
Ben Newman
e15dd0e19d Bump $BUNDLE_VERSION to 8.12.0.2 before rebuilding dev bundle. 2018-10-11 12:39:37 -04:00
Ben Newman
b84afccfa8 Merge branch 'devel' into release-1.8.1 2018-10-11 12:38:46 -04:00
Ben Newman
308b4f1306 Bump ecmascript package version to 0.12.1.
This is necessary whenever we bump the babel-compiler version.
2018-10-11 12:29:33 -04:00
Ben Newman
e2e215d702 Update meteor-babel npm package to version 7.1.3. (#10272)
This update should help with #10262, per @sebakerckhof's comment
https://github.com/meteor/meteor/issues/10262#issuecomment-428968441,
thanks to these commits:
a38835d3e2
a1778d8d71

Also updated the json5 dependency of babel-compiler to its latest version,
while I was at it.
2018-10-11 12:17:55 -04:00
Ben Newman
ed41dcd4a6 Flatten buildmessage.{enterJob,capture} stacks by not using withValue. (#10266)
Whenever you're looking at a stack trace generated by the command-line
tool, you see tons and tons of useless stack frames for withValue,
enterJob, and/or capture.

Each of these function calls has its own try-finally block, which is
probably the real reason this pattern is slow, though the excess of
unnecessary stack frames is subjectively gross as well.

Initial build times for the `meteor create --full` app on my machine are
about 4.4 seconds with Meteor 1.8, and just 2.8 seconds after this change,
which is a nice 36% improvement. Rebuild times are not noticeably
different, however.

Looking to the future, flattening this function call pyramid should make
it easier to introduce non-Fiber-based async/await into the buildmessage
system, so that we can start properly propagating promises up the stack.
2018-10-11 09:47:17 -04:00
Jan Dvorak
65064f40df Fix duplicate WebApp.connectHandlers.use - fix #10265 (#10268) 2018-10-11 09:46:26 -04:00
Ben Newman
ccb479f4e7 Merge pull request #10263 from meteor/fix-issue-10112-by-ignoring-inline-source-maps
Ignore inline source maps when minifying CSS files.
2018-10-10 17:04:36 -04:00
Ben Newman
3f30d2208f Bump standard-minifier-css patch version to 1.5.1. 2018-10-10 16:40:22 -04:00
Ben Newman
b7267b76a1 Use null for sourcesContent[i] if sources[i] unrecognized.
Should help with #10112.
2018-10-10 16:40:19 -04:00
Ben Newman
9290ea7a06 Ignore inline source maps when minifying CSS files.
https://github.com/meteor/meteor/issues/10112#issuecomment-428646872

Further down in the mergeCss function, when we call CssTools.stringifyCss,
we pass the following option:

  // don't try to read the referenced sourcemaps from the input
  inputSourcemaps: false

Apparently this isn't enough to avoid reading inline source maps from the
input file, so we should be a bit more aggressive about preventing postcss
from picking up inline source maps.

This change mostly affects .css files imported from node_modules, and
possibly raw .css files in the application that happen to have inline
sourceMappingURL= comments. For CSS output from compiler plugins like LESS
and SCSS, we have a totally different mechanism of handling source maps,
namely file.getSourceMap().

Should fix #10112.
2018-10-10 14:13:23 -04:00
Jan Dvorak
2df1930bb0 Update Roadmap.md (#10254)
For even more details about upcoming work, see the 1.8 release blog post:
https://blog.meteor.com/meteor-1-8-erases-the-debts-of-1-7-77af4c931fe3
2018-10-09 14:02:46 -04:00
Ben Newman
3903194cee Trivial: fix spacing in History.md. 2018-10-07 10:04:18 -04:00
Ben Newman
721bfcfe88 Bump package versions for 1.8.1-beta.0 release. release/METEOR@1.8.1-beta.0 2018-10-06 16:30:33 -04:00
Ben Newman
4a0bf12d0e Bump $BUNDLE_VERSION to 8.12.0.1 before rebuilding dev bundle. 2018-10-06 16:06:24 -04:00
Ben Newman
f16e76003c Update Node.js to version 8.12.0.
https://nodejs.org/en/blog/release/v8.12.0/

Closes #10117 and #10090.

We will continue to monitor issue #10216.
2018-10-06 16:05:09 -04:00
Ben Newman
3051150f2f Merge branch 'master' into devel 2018-10-05 18:06:30 -04:00
Ben Newman
88ce8341ff Merge pull request #9942 from meteor/release-1.7.1
Release 1.8 (formerly 1.7.1)
2018-10-05 18:05:34 -04:00
Ben Newman
37eb174612 Bump package versions for the official 1.8 release. :feelsgood: release/METEOR@1.8 2018-10-05 17:29:17 -04:00
Ben Newman
180d7f1938 Final History.md updates, including projected Meteor 1.8 release date. 2018-10-05 17:06:55 -04:00
Ben Newman
bbdf28544f Report Babel transform errors without crashing the build process.
As reported by @mariusrak here:
https://github.com/meteor/meteor/issues/10220#issuecomment-425244894

Only errors thrown by @babel/parser have the e.loc property. Other errors
thrown by Babel transforms do not have e.loc, but do (usually) have line
number information embedded in e.message. Either way, it's better to use
inputFile.error than to throw the error, since throwing here crashes the
build process.
2018-10-04 10:40:58 -04:00
Ben Newman
9dae1a0337 Update shrinkwrap for minifier-js package after terser update.
Follow-up to #10239 and #10244.
2018-10-04 10:39:36 -04:00
Ben Newman
8ddd2f3eae Bump package versions for 1.8-rc.17 release. release/METEOR@1.8-rc.17 2018-10-03 15:15:55 -04:00
Ben Newman
c5f6c270b7 Avoid modifying source files explicitly added by compiler plugins.
Should resolve #10233, reported by @klaussner.

Previously, if a compiler plugin called inputFile.addJavaScript multiple
times with different { path } strings, Meteor would allow importing all of
those modules at once by importing the original source module identifier,
by synthesizing a new source module containing a series of re-exports for
each of the generated modules.

Preserving this behavior is important for backwards compatibility, since
some compiler plugins still generate files like "module.ext.js" given an
input file named "module.ext", so Meteor tries to make those modules
interchangeable/synonymous.

However, if the compiler plugin explicitly calls inputFile.addJavaScript
with the original source path, then it would be a mistake to modify the
contents of that module, so Meteor will now leave the contents of that
explicit source module unmodified, rather than using it as a catch-all way
to import other generated modules.
2018-10-03 15:13:08 -04:00
Ben Newman
dd00c6b0c1 Warn about duplicate api.mainModule paths, like api.addFiles does.
This would have helped catch the underlying problem in #10234.
2018-10-03 15:13:08 -04:00
Ben Newman
8f8e2a01f6 Be more tolerant of missing err.stack in parse-stack.js.
Should help with #10083.
2018-10-03 15:13:08 -04:00
Jan Owsiany
c3309b123a Restore wrapCallback error parameter behavior in mongo package (#10246)
If the error is falsy, just pass it as the first param.
2018-10-03 10:03:33 -04:00
Lisa Huang
0e899c4091 Fix LGTM testing errors (issue #10240, PR #10241)
* fix issue 10240: add variable declaration

* fix issue 10240: add semicolons to avoid automated semicolon insertion

* fix issue 10240: add semicolons to avoid automated semicolon insertion

* fix issue 10240: variable declaration in for...in statement, add semicolons

* fix issue 10240: variable declaration

* fix issue 10240: variable declaration
2018-10-02 10:53:50 -04:00
Ben Newman
873349e635 Merge pull request #10242 from jamesmillerburgess/#10231-accounts-oauth-ecmascript
Add ecmascript to modernized packages
2018-10-02 10:52:07 -04:00
Seba Kerckhof
d90de0343f Update terser to 3.9.2 (includes safari patch) (#10244) 2018-10-02 10:51:03 -04:00
James Miller Burgess
292e279960 Add ecmascript package to oauth1 client 2018-10-01 08:26:20 +04:00
James Miller Burgess
7cf9dbb795 Add ecmascript to accounts-oauth package
Fixes #10231
2018-10-01 07:54:56 +04:00
Lukas Strassel
2759e95854 Update terser minifier to 3.9.1 (#10239) 2018-09-28 08:43:25 -04:00
Ben Newman
24e1c9f2e7 Bump package versions for 1.8-rc.16 release. release/METEOR@1.8-rc.16 2018-09-18 17:27:34 -04:00
Ben Newman
2a8dea8934 Silence deprecation warnings introduced in a mongodb patch update.
These deprecation warnings were introduced in mongodb@3.1.2:
https://github.com/mongodb/node-mongodb-native/commit/a5d0f1d7e1

Fortunately, the deprecated Collection methods still work, and the
deprecation relies on Node's require("util").deprecate API, which can be
silenced permanently for a given function by temporarily setting
`process.noDeprecation = true` while defining the function:
https://github.com/nodejs/node/blob/2ae98ce7cb/lib/internal/util.js#L23-L29

Fixing #10174 by updating mongodb seems more important than reverting the
update to silence these harmless deprecation warnings (which, it bears
repeating, were introduced in a patch update).

Thanks to @klaussner for raising this concern!
2018-09-18 15:53:34 -04:00