Commit Graph

8287 Commits

Author SHA1 Message Date
Ben Newman
a780686098 Bump package versions for 1.4.4-rc.2 release.
We (@abernix and I) have decided to abandon 1.4.3.3 in favor of 1.4.4,
because the changes we wanted to include are slightly more significant
than seems appropriate for a "patch" update.
2017-03-27 18:26:49 -04:00
Ben Newman
0bc4e2e804 Make sure Module.prototype.import === M.p.importSync for now.
The latest version of Reify generates module.importSync calls instead of
module.import calls, but we're not using module.import for anything else
(yet), so we might as well handle older generated code gracefully.

https://github.com/benjamn/reify/pull/85
https://github.com/benjamn/reify/issues/84
2017-03-27 12:34:34 -04:00
Ben Newman
0d657ed24a Use UglifyJS when possible, but fall back to Babel.minify.
This gives us all the benefits of @sethmurphy18's great work without the
additional performance hit of using Babili for everything.

With this commit:

  % meteor create min-test
  % cd min-test
  % time meteor build ../min-build
  meteor build ../min-build  39.26s user 5.49s system 112% cpu 39.647 total

Without this commit:

  meteor build ../min-build  59.28s user 5.23s system 107% cpu 1:00.08 total

Keep in mind this is the best-case scenario for Babili (a very small app).
Larger apps take much longer for Babili to minify.

cc @abernix @glasser @sethmurphy18
2017-03-27 10:02:38 -04:00
Ben Newman
0eb52a1fd8 Upgrade meteor-babel to v0.19.1 and reify to v0.6.6. 2017-03-25 11:12:52 -04:00
Ben Newman
25a89b5887 Revamp .babelrc processing.
Key changes:

  1. Custom Babel plugins from .babelrc files (or "babel" sections of
     package.json files) are now treated as plugins rather than presets.

  2. Nested presets and plugins are now resolved, whereas previously only
     the top-level "plugins" and "presets" properties were examined.
2017-03-25 10:31:40 -04:00
Ben Newman
5ffccdc356 Decompose requireWithPrefix helper function. 2017-03-22 18:14:00 -04:00
Ben Newman
e8b5ae6730 Convert packages/ddp-client to use ecmascript. 2017-03-22 16:45:55 -04:00
Ben Newman
91ac26b4d7 Bump package versions for 1.4.3.3-rc.1 release. 2017-03-22 16:02:53 -04:00
Ahmed Akram
b54ec698c6 Fix #8457 by filtering exceptions when 'noRetry' flag is set. (#8496) 2017-03-22 12:50:28 -04:00
Ben Newman
ba635df14d Rebase packages/non-core/blaze submodule onto latest master. 2017-03-22 12:50:27 -04:00
Ben Newman
a6061bf4c7 Bump package versions for 1.4.3.3-rc.0 release. 2017-03-21 15:55:23 -04:00
Ben Newman
9a057f4e51 Upgrade meteor-babel to v0.18.2 and reify to v0.5.7. 2017-03-21 15:23:03 -04:00
Ben Newman
59fcf8d94d Revert "Upgrade the reify npm package to version 0.5.6."
This reverts commit 624187a23c.
2017-03-20 19:55:53 -04:00
Ben Newman
624187a23c Upgrade the reify npm package to version 0.5.6. 2017-03-20 11:10:08 -04:00
Ben Newman
e972fa3eb1 Bump meteor-babel to v0.18.1 to fix strict minification errors. 2017-03-17 21:26:15 -04:00
Ben Newman
10ded86338 Bump modules package version to 0.8.1-beta.4.
The 0.8.0 version line was colliding with release-1.5, causing the modules
package not to be published during the release-1.4.3.x release process,
similar to what was happening with the ecmascript package:
https://github.com/meteor/meteor/issues/8423#issuecomment-287332131
2017-03-17 19:15:45 -04:00
Ben Newman
5ab626cead Bump package versions for 1.4.3.3-beta.4 release. 2017-03-17 18:42:07 -04:00
Ben Newman
c8d69b2717 Bump ecmascript package version to 0.7.1-beta.3.
The 0.7.0 version line was colliding with release-1.4.3.x, causing
ecmascript not to be published during that release process:
https://github.com/meteor/meteor/issues/8423#issuecomment-287332131
2017-03-17 18:40:23 -04:00
Ben Newman
69cf204f88 Bump packages/ddp-server version to 1.3.14-beta.3. 2017-03-17 18:39:58 -04:00
Ben Newman
b8513774cb Bump package versions for 1.4.3.3-beta.3 release. 2017-03-16 18:57:40 -04:00
Ben Newman
6d11b05803 Rebase packages/non-core/blaze submodule against master.
This will include https://github.com/meteor/blaze/pull/243.
2017-03-16 18:57:32 -04:00
Ben Newman
718414d388 Reinstate @abernix's revert of Blaze HTML5 attribute tests.
These changes can be found on the minifier-babili branch:
https://github.com/meteor/blaze/tree/minifier-babili
2017-03-16 18:29:43 -04:00
Ben Newman
0cbd25111d Implement Promise-returning server-side Meteor.{call,apply}Async methods.
This is a partial revival of my old #5005 pull request. While we never
came up with a good idiom for Promise-based method stubs on the client,
the server-side changes in this commit should fix #8367.
2017-03-16 18:23:45 -04:00
Ben Newman
046b3f0e92 Bump package versions for 1.4.3.3-beta.2 release. 2017-03-16 17:40:44 -04:00
Ben Newman
9cb1881796 Bump markdown version to 1.0.12. 2017-03-16 17:39:17 -04:00
Ben Newman
198e8a9a78 Apply https://github.com/meteor/meteor/pull/8439 to blaze submodule. 2017-03-16 15:11:23 -04:00
Ben Newman
7df133e330 Bump package versions for 1.4.3.3-beta.1 release. 2017-03-16 13:08:19 -04:00
Ben Newman
1149849c8a Update standard-minifiers/package.js to capture new JS minifier. 2017-03-16 13:01:05 -04:00
Ben Newman
e3de42e989 Bump package versions for 1.4.3.3-beta.0 release. 2017-03-16 12:26:05 -04:00
Ben Newman
761f4c381a Shorten initial section of force-ssl/package.js to allow publishing. 2017-03-16 12:26:02 -04:00
Ben Newman
1332757655 Upgrade the reify npm package to version 0.5.1. 2017-03-16 12:18:17 -04:00
Ben Newman
06574b78a7 Update meteor-babel to version 0.18.0.
The most important change in this version is that the Reify compiler can
now compile these useful `export ... from ...` extensions:

  https://github.com/leebyron/ecmascript-export-ns-from
  https://github.com/leebyron/ecmascript-export-default-from

Fixes #8432 (`transform-export-extensions` no longer needed).
2017-03-16 11:28:43 -04:00
Ben Newman
9c306ded99 Merge branch 'devel' into release-1.4.3.x 2017-03-16 11:28:35 -04:00
Ben Newman
89e1814f2e Merge branch 'devel' into use-babili-instead-of-uglify 2017-03-15 11:52:50 -04:00
Hugh Willson
987b921f34 Adjusted force-ssl to work with the forwarded header (RFC 7239). (#8440)
* Adjusted force-ssl to work with the forwarded header (RFC 7239).

* Fixed invalid Object.assign call.
2017-03-15 11:47:12 -04:00
Ben Newman
7bc2b7ce5f Capitalize MeteorBabelMinifier. 2017-03-15 11:18:37 -04:00
Ben Newman
9d4d7488a7 Update meteor-babel to version 0.17.2.
The most important change in this version is that the Reify compiler is
now just another Babel plugin, so it's possible for other Babel presets
and plugins to run before it.

Fixes #8399.
Fixes #8422.
Fixes https://github.com/meteor/babel/issues/13.
2017-03-14 18:07:03 -04:00
Jesse Rosenberger
5f2039f1ff Bump package versions for the official 1.4.3.2 release. 2017-03-14 10:53:26 +02:00
Jesse Rosenberger
486ce486a7 Ensure errors the minifier encounters are easy to understand.
While Babili is much better about handling modern ECMAScript constructs
than its UglifyJS predecessor, it may still be possible for an error to
occur during minification.

To account for that unlikely situation, and to preserve the code already
written to assist in that situation, this implements an error re-throw
in a similar fashion to that of 1a380f5532.
2017-03-13 17:54:35 +02:00
Jesse Rosenberger
735cb17903 Prefer non-ES6 in order to avoid including ecmascript.
The `ecmascript` package, when `use`'d in a compiler, is included in the
build of the package, thus increasing the size.  For this simple package
I'm not sure the benefits will actually be worth it.
2017-03-13 16:04:44 +02:00
Jesse Rosenberger
34da752c7c Use 'minifier-babili' branch of 'blaze' repository.
This points the `blaze` submodule in the Meteor repository to:

https://github.com/meteor/blaze/tree/minifier-babili

This `minifier-babili` branch excludes new HTML5 tests which are failing
on PhantomJS, namely, the HTML5 tests which were added by:

04db0d40ce

While I believe the `VIDEO` tests are the most problematic, there is
nothing about the tests themselves which are lacking.  In fact, the
tests do run successfully on the Blaze repository and the changes have
actually been released for a number of months on Blaze itself, however
the submodule in Meteor hasn't been updated until now.

Meteor only uses `blaze` for generating templates in the
`boilerplate-generator` package and doesn't utilize the HTML5 in
question, nor is Meteor responsible for Blaze testing anymore.

Ultimately, our `test-in-console` needs to be updated to use
another option aside from PhantomJS, but I don't believe that should
hold up releasing this Babili minifier which solves a number of issues
in meteor/meteor#8378.
2017-03-13 15:55:50 +02:00
Jesse Rosenberger
ae458cce08 Bump package versions for 1.4.3.2-rc.0 release. 2017-03-13 15:00:52 +02:00
Jesse Rosenberger
55bdef485f Bump package version of npm-mongo for 1.4.3.2-beta.0 release. 2017-03-09 20:07:47 +02:00
Jesse Rosenberger
d3f9d4ef82 Removing -beta.n suffix as check was aleady published. 2017-03-09 19:39:52 +02:00
Jesse Rosenberger
6fd559fa1c Merge branch 'release-1.4.3.x' into release-1.4.3.2 2017-03-09 16:58:55 +02:00
dr.dimitru
a9cd336ed5 Fix Mongo Error Message Object (#8266)
The Mongo error property, `errmsg`, has been changed to `err` on newer versions of Mongo.  This commit adds support for the new property without dropping support for older Mongo versions.

Partially addresses https://github.com/meteor/meteor/issues/7758#issuecomment-253076694
Discussed in https://github.com/meteor/meteor/pull/8175#issuecomment-273441401
2017-03-09 16:54:38 +02:00
Jesse Rosenberger
b92c88fe5c Merge pull request #8453 from meteor/laosb-bump-mongodb-driver-2-2-24
Bump mongodb driver to 2.2.24
2017-03-09 16:45:13 +02:00
Jesse Rosenberger
9030faa57e Bump package versions for 1.4.3.2-beta.0 release. 2017-03-09 16:41:57 +02:00
Jesse Rosenberger
1ebd907804 Remove version constraint from ecmascript in shell-server.
We only need version constraints on core packages in some cases.  For
example, when referring to "core" package wrappers (like `npm-mongo`)
which uses an API outside the Meteor build system.
2017-03-09 13:51:35 +02:00
Seth Murphy
8f041369ae Updated babel-compiler to use meteor-babel from npm 2017-03-08 18:01:25 -05:00