Commit Graph

18537 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.
release/METEOR@1.4.4-rc.2
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
10127cea1f Fix modules test app now that exports.__esModule is non-enumerable.
3973bbad7f
2017-03-25 12:00:18 -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. release/METEOR@1.4.3.3-rc.1 2017-03-22 16:02:53 -04:00
Jesse Rosenberger
8cc3233b19 Leave note for the next BUNDLE_VERSION bumper to avoid 4.7.19.
It's been used on `devel` via b145c7ed4e.

Normally this isn't a problem, but just to avoid issues, this reminder
should help.  Can be removed, of course.
2017-03-22 20:58:26 +02:00
Jesse Rosenberger
6b4a4ccca1 Aggressively prevent CircleCI from using the wrong cache.
https://discuss.circleci.com/t/git-submodule-url-isnt-playing-nice-with-the-cache/549/3
2017-03-22 20:35:59 +02:00
Jesse Rosenberger
6bbd432081 Be more understanding of Windows' filesystem limitations.
Presently, the renaming of directories that are in-use will fail on
Windows.  This is already compensated for when `process.platform` is
set to `win32`.  However, within BashOnWindows/WSL (Windows Subsystem
for Linux), `process.platform` is equal to `linux`, though the
underlying filesystem is still the same.

Microsoft has stated that it is unlikely that they will remove
`Microsoft` from the `os.release()` value so we check for that.
2017-03-22 20:35:43 +02:00
Jesse Rosenberger
41cef97664 Automatically trim DEPLOY_HOSTNAME of leading/trailing spaces. (#8508)
This simple fix prevents the disappointment of trying to deploy your app
but failing because there's a space on the end of the `DEPLOY_HOSTNAME`
environment variable.

`process.env` always contains string values and assigning a property on
`process.env` implicitly converts the value to a string so it should not
be necessary to check if `typeof` is a `string`.

Fixes Dev Experience.
2017-03-22 12:50:28 -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
d0f179b2f5 Merge pull request #8502 from hwillson/issue-6945
Updated the builder whitelist to allow "@" in filenames.
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
Jesse Rosenberger
56ce0edf05 Update History.md.
For #8503 and #8505.
2017-03-22 14:08:30 +02:00
Ben Newman
a6061bf4c7 Bump package versions for 1.4.3.3-rc.0 release. release/METEOR@1.4.3.3-rc.0 2017-03-21 15:55:23 -04:00
Ben Newman
980da2f396 Bump $BUNDLE_VERSION to 4.7.18 before rebuilding dev bundle. 2017-03-21 15:23:47 -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
Jesse Rosenberger
da763c74fa Change Windows "Generate Dev Bundle" script to use common globals.
This change allows the Windows "Generate Dev Bundle" script to
automatically get the versions of major bundled versions from the same
script which the Unix script uses, thus preventing different versions of
Node.js, npm, Mongo, etc. from being built into different versions of
Meteor, such as what happened when I published Meteor 1.4.3.2 and failed
to notice the duplication of variables across different scripts.

This behavior now works in a similar way as the 'BUNDLE_VERSION' variable, which
is retrieved from the global `meteor` script except this change uses the
package versions from the `build-dev-bundle-common.sh` script in the
`scripts` directory.
2017-03-21 12:21:14 -04:00
Jesse Rosenberger
17a786eb36 Ensure that .bin files maintain executable bits in Windows bundles.
Windows has no concept of the executable bit so it is not applied by the
`fstream` `Reader` when building the tarball which is used in both
`meteor build` and `meteor deploy`.  For Windows users, this causes
important scripts (such as `node-pre-gyp`) to not be executable when
the bundles are deployed to Unix platforms (such as Galaxy).

To avoid giving every file executable bits, this applies an executable
bit to the file only if it has read permission (something Windows _is_
aware of) and if it is in a location that Node bin links are typically
placed, the `/node_modules/.bin/` directories.
2017-03-21 12:19:08 -04:00
Jesse Rosenberger
dc3c760a59 Bump $BUNDLE_VERSION to 4.7.17 before rebuilding dev bundle. 2017-03-21 13:19:53 +02:00
Jesse Rosenberger
358af021a4 Bump versions of Node.js, npm and MongoDB for the Windows dev_bundle.
In a similar fashion as:

* f51c6822ae (Node.js)
* 8ea41588ea (npm)
* 3470516f93 (MongoDB)

I overlooked the multiplicity of these version variables when updating the major package versions during the release of Meteor 1.4.3.2.

While I intend on never making this mistake again, I've also opened meteor/meteor#8505 which consolidates these variables to a single location (in `build-dev-bundle-common.sh`) to hopefully prevent this from happening to anyone else!
2017-03-21 13:14:57 +02:00
Ben Newman
92e949975a Update History.md after reverting reify to v0.5.1. 2017-03-20 19:57:12 -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
be6014ca8d Tweak History.md to include recent minor changes. 2017-03-20 11:14:57 -04:00
Ben Newman
6098f6ed02 Bump $BUNDLE_VERSION to 4.7.16 before rebuilding dev bundle. 2017-03-20 11:11:05 -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
334a89b78e Update History.md to reflect the fix for #8367. 2017-03-17 19:48:01 -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. release/METEOR@1.4.3.3-beta.4 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. release/METEOR@1.4.3.3-beta.3 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. release/METEOR@1.4.3.3-beta.2 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. release/METEOR@1.4.3.3-beta.1 2017-03-16 13:08:19 -04:00
Ben Newman
da57ab69a8 Remove version constraints from modules test app.
This would have prevented this Circle CI self-test failure:
https://circleci.com/gh/meteor/meteor/3595#tests/containers/3
2017-03-16 13:08:06 -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. release/METEOR@1.4.3.3-beta.0 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
ee87045c10 Update History.md to reflect initial changes for 1.4.3.3. 2017-03-16 11:59:35 -04:00
Ben Newman
07707cea4c Bump $BUNDLE_VERSION to 4.7.15 before rebuilding dev bundle. 2017-03-16 11:30:12 -04:00