Commit Graph

1009 Commits

Author SHA1 Message Date
Ben Newman
ff4b00c774 Mention release-based core package version constraints in History.md. 2017-02-07 17:55:31 -05:00
Ben Newman
59124681bc Preserve true "main" and "browser" fields of package.json modules.
This reverts commit 32140c8707, restoring
commit 6c643a4763.
2017-02-07 10:43:20 -05:00
Ben Newman
3801349437 Merge branch 'master' into devel 2017-02-07 10:36:49 -05:00
Jesse Rosenberger
e32bc7cdd6 Formatting fixes for History.md regarding 1.4.2.5 release 2017-02-03 10:47:54 -08:00
Jesse Rosenberger
7fc3627cd5 Updated History.md to explain differences between 1.4.2.4 and 1.4.2.5 2017-02-03 01:22:36 -08:00
Jesse Rosenberger
32140c8707 Revert "Preserve true "main" and "browser" fields of package.json modules."
This reverts commit 6c643a4763.
2017-02-02 20:26:54 -08:00
Ben Newman
a6049eb1ae Fix History.md formatting due to line break ambiguity.
Starting the line with `#` caused it to parse as <h1> rather than <a>.
2017-02-02 16:26:00 -05:00
Ben Newman
cc8734ddca Merge branch 'master' into devel 2017-02-02 15:18:48 -05:00
Ben Newman
52d93d0f01 Mention more fixed issues in History.md. 2017-02-02 10:25:07 -05:00
Ben Newman
6c643a4763 Preserve true "main" and "browser" fields of package.json modules.
Previously, when building a JavaScript bundle for the client, if a
package.json file had a string-valued "browser" field, we would replace
the value of the "main" field of the bundled package.json module with the
value of the "browser" field. This trick was important because it allowed
an npm package to have a different entry point on the client than it had
on the server.

However, that approach became inconsistent if the package.json file was
also explicitly imported as a module, because the package.json stub used
for module resolution prevented the real contents of package.json from
getting bundled, and disagreed with the original package.json module about
the value of the "main" field.

To resolve that inconsistency, it seems better to avoid modifying the
"main" field of package.json modules, and instead rely on the runtime
module system to make sense of the "browser" field, regardless of whether
the package.json module is a stub used only for module resolution or
contains the full contents of the original package.json file.

The ability to understand "browser" fields of package.json modules was
introduced in install@0.8.3:
377d1a3b51

This is potentially a backwards-incompatible change for developers using
this version of `ImportScanner` and `Resolver` who have not yet upgraded
their `modules-runtime` package to at least version 0.7.8. The solution is
to upgrade `modules-runtime`, though it would be nice to enforce that
better somehow.
2017-02-01 10:34:52 -05:00
Ben Newman
4ed387161f Mention 7-zip upgrade in History.md. 2017-02-01 10:22:01 -05:00
Ben Newman
be0c8c3ee0 Upgrade the npm npm package to version 4.1.2. 2017-02-01 10:11:19 -05:00
Ben Newman
c1a25f4af1 Ugrade Node to version 4.7.3. 2017-02-01 10:05:18 -05:00
Ben Newman
19b3a65b56 Mention #8136 in History.md for Meteor 1.4.2.4. 2017-02-01 10:02:03 -05:00
Ben Newman
2eab0b2bf4 Preserve true "main" and "browser" fields of package.json modules.
Previously, when building a JavaScript bundle for the client, if a
package.json file had a string-valued "browser" field, we would replace
the value of the "main" field of the bundled package.json module with the
value of the "browser" field. This trick was important because it allowed
an npm package to have a different entry point on the client than it had
on the server.

However, that approach became inconsistent if the package.json file was
also explicitly imported as a module, because the package.json stub used
for module resolution prevented the real contents of package.json from
getting bundled, and disagreed with the original package.json module about
the value of the "main" field.

To resolve that inconsistency, it seems better to avoid modifying the
"main" field of package.json modules, and instead rely on the runtime
module system to make sense of the "browser" field, regardless of whether
the package.json module is a stub used only for module resolution or
contains the full contents of the original package.json file.

The ability to understand "browser" fields of package.json modules was
introduced in install@0.8.3:
377d1a3b51

This is potentially a backwards-incompatible change for developers using
this version of `ImportScanner` and `Resolver` who have not yet upgraded
their `modules-runtime` package to at least version 0.7.8. The solution is
to upgrade `modules-runtime`, though it would be nice to enforce that
better somehow.
2017-01-04 11:54:17 -05:00
Ben Newman
c076276a11 Merge branch 'devel' into release-1.4.3 2016-12-07 14:11:52 -05:00
Tom Coleman
63c890738d Change log for #7727 2016-12-07 10:15:24 +11:00
Ben Newman
f434383c02 Upgrade the npm npm package to version 4.0.2. 2016-12-01 17:53:53 -05:00
Ben Newman
7c148b2a4e Merge branch 'devel' into run-reify-before-babel 2016-11-30 19:51:05 -05:00
Ben Newman
8577c9a233 Upgrade the meteor-babel npm package to version 0.14.3. 2016-11-30 13:40:24 -05:00
Jesse Rosenberger
06a1805cf7 Fix history and add history for #7970
As a correction to 8e228180e6 which inadvertently removed 1.4 from existence.

Good catch by @mitar.  8e228180e6 (commitcomment-20013960)
2016-11-30 15:06:37 +02:00
Jesse Rosenberger
330a5afebc Revert "History entry for #7970"
This reverts commit 8e228180e6.
2016-11-30 14:54:59 +02:00
Zoltan Olah
8e228180e6 History entry for #7970 2016-11-29 15:41:39 -08:00
Ben Newman
bd0a7be6e2 Upgrade the meteor-babel npm package to version 0.14.2. 2016-11-26 13:29:33 -05:00
Ben Newman
f4abbccf45 Merge branch 'master' into devel 2016-11-17 16:23:04 -05:00
Ben Newman
063d2513a3 History.md entry for 1.4.2.3. 2016-11-17 13:43:14 -05:00
Ben Newman
911f25bbf4 Allow lazy api.mainModule modules.
If you call api.mainModule(path, where, { lazy: true }), that main
module will not be evaluated until other code imports it at runtime, and
won't even be bundled if no other code imports it.

Closes #6132.
2016-11-14 12:51:00 -05:00
Ben Newman
4f4ab1b68f Ugrade Node to version 4.6.2. 2016-11-14 11:50:19 -05:00
Tom Coleman
7b8ef48db6 Changelog for 7968 2016-11-14 11:49:51 -05:00
Tom Coleman
47255dfaa2 Changelog entry for #7858 2016-11-14 11:49:50 -05:00
Tom Coleman
8d06a16994 Add changelog entry for #7807 2016-11-14 11:49:48 -05:00
Ben Newman
bf7417ff92 Merge branch 'release-1.4.2.1' into devel 2016-11-09 01:35:41 -05:00
Tom Coleman
7bd2c57b1d Changelog for 7968 2016-11-09 10:58:13 +11:00
Tom Coleman
472a46b42a Changelog entry for #7858 2016-11-09 10:52:21 +11:00
Tom Coleman
fbd4b06085 Add changelog entry for #7807 2016-11-09 10:47:57 +11:00
Ben Newman
8f07a87bd5 Give package test modules access to Npm.depends dependencies.
Similar in spirit to bbac272530.

Fixes #7999.
2016-11-08 15:36:36 -05:00
Ben Newman
e1e3c89c6a Link to a few more fixed bugs in History.md. 2016-11-08 14:32:29 -05:00
Tom Coleman
2576bf7e89 Rebase 2016-11-06 15:19:48 +08:00
Ben Newman
e7a8320ef9 Update History.md with changes in Meteor 1.4.2.1. 2016-11-03 12:18:42 -04:00
Ben Newman
64e40df9c3 Add note to History.md about METEOR_PROFILE server startup data. 2016-10-23 18:08:32 -04:00
Ben Newman
e2be0bbc8a Upgrade the npm npm package to version 3.10.9. 2016-10-21 22:16:29 -04:00
Ben Newman
0308e38d51 Merge branch 'release-1.4.1.3' into release-1.4.2 2016-10-21 22:03:54 -04:00
Ben Newman
c6975d8eb7 Upgrade mongodb npm package to version 2.2.11. 2016-10-21 12:28:34 -04:00
Ben Newman
545493b34a Report an error when HTTP request body is incomplete.
When a download aborts prematurely, the status code is often 200 OK, even
though we probably should not proceed with any further processing of the
downloaded information.

This silent failure leads to problems like the dreaded "Error: ENOENT: no
such file or directory, open... os.json" (#7806 and others), which were
hard to diagnose properly because the failure occurred only later, when
extracting a buffer that downloaded incompletely.

The getUrlWithResuming helper should be able to retry after this error is
thrown, which will result in a more helpful warning, even if in the most
common case, i.e. MaxCDN failure, it will never actually succeed.

Note that this change will not help until Meteor 1.4.2 is officially
released and becomes the implementation used to download later releases.

Mitigates #7806.
2016-10-21 11:25:17 -04:00
Ben Newman
c167309e7f Support meteor <command> for any dev_bundle/bin/<command> executable.
This will make it easier to use tools like https://yarnpkg.com/ with the
right version of Node, etc.

With this commit, here's all you have to do:

  meteor npm install -g yarnpkg

Then test that it works:

  meteor yarn info

Note that any commands registered by Meteor itself will not be honored.
2016-10-21 11:12:55 -04:00
Ben Newman
738f7560b4 Add note about killing mongod on shutdown to History.md. 2016-10-21 11:12:50 -04:00
Ben Newman
b8d872fa77 Automatically reconfigure Mongo replication set when --port differs.
Fixes #7563.
2016-10-21 11:12:26 -04:00
Ben Newman
9ff66d11c7 Ugrade the meteor-promise npm package to version 0.8.0.
Most notably, this update provides error stack traces that include context
from Promise.await calls and await expressions, so (for example) you can
tell where a certain yielding files.* method was originally called,
instead of only getting a useless native stack trace.
2016-10-20 17:51:03 -04:00
Ben Newman
6b06f440f1 Upgrade the fibers npm package to version 1.0.15.
This should hopefully improve performance in the rare event that a large
number of fibers get created simultaneously.
2016-10-20 17:19:55 -04:00
Ben Newman
982853e727 Update Node to version 4.6.1.
https://nodejs.org/en/blog/release/v4.6.1/
2016-10-20 13:38:48 -04:00