Commit Graph

8955 Commits

Author SHA1 Message Date
Ben Newman
bfea51815a Bump package versions for 1.6-beta.30 release. 2017-09-18 17:31:25 -04:00
Ben Newman
b6f5d5c136 Update bundle-visualizer shrinkwrap to npm 5 format. 2017-09-18 17:30:40 -04:00
Ben Newman
eec8a1f8e9 Merge branch 'devel' into release-1.6 2017-09-18 17:25:11 -04:00
Ben Newman
4f43008aa0 Explicitly depend on d3-collection in bundle-visualizer.
The visualizer seems to have stopped working recently if you reinstall its
npm dependencies without using the existing npm-shrinkwrap.json file,
likely due to changes in indirect dependencies.

The good news is that the package now has far fewer npm dependencies.
However, since the sunburst.js module imports d3-collection explicitly, we
should definitely be depending directly on that package.

cc @abernix
2017-09-18 17:19:53 -04:00
Ben Newman
b84a322ceb Update packages/non-core/blaze submodule to latest master revision. 2017-09-18 16:34:47 -04:00
Ben Newman
917b01ac5f Bump standard-minifier-css package version to republish.
Since all Meteor packages implicitly depend on the meteor package, it
appears packages that register compiler plugins may need to be republished
in order to benefit from f34c5ec926, or else
the `Cannot find module "fibers\\future"` error may occur on Windows.
2017-09-18 16:25:18 -04:00
Ben Newman
c5e2bc3ca1 Bump package versions for 1.6-beta.29 release. 2017-09-18 15:01:07 -04:00
Ben Newman
c7612c18e7 Merge branch 'devel' into release-1.6 2017-09-18 14:27:11 -04:00
Ben Newman
1bdc3fc94a Bump versions of packages affected by fibers/future changes. 2017-09-18 14:22:16 -04:00
Ben Newman
f34c5ec926 Stop using path.join to require fiber/futures.
This misunderstanding of CommonJS module identifiers goes back to 2012:
8f83b2c32e

In Node, CommonJS module identifiers are always delimited by forward
slashes, even on Windows. Using path.join to abstract away the choice of
platform-specific delimiter is therefore pointless.

While this usage of path.join was always pointless, it was also mostly
harmless until #9095, when we stopped falling back to Node's native
`require` function to handle e.g. `Npm.require("fibers\\future")`. That PR
made the misuse problematic on Windows, so this commit fixes that.
2017-09-18 14:14:14 -04:00
Ben Newman
f9c566fbc6 Bump package versions for 1.6-beta.28 release. 2017-09-18 12:45:53 -04:00
Ben Newman
7ebf9b3497 Merge branch 'devel' into release-1.6 2017-09-18 12:45:34 -04:00
Ben Newman
a8cb0835b4 Bump dynamic-import package version to 0.1.3. 2017-09-18 12:36:00 -04:00
Ben Newman
7cbb2bb579 Tolerate : or _ in dynamic version identifiers, and add tests.
Follow-up to #9103.
2017-09-18 12:34:47 -04:00
Daniel C
2dfb8a2208 dynamic-import: fix modules version recognition to fix caching (#9103)
A fix to the dynamic-import code to correctly detect modules version.

Without this fix dynamic-import can't detect correctly modules versions
which breaks the dynamic-import cache functionality.
2017-09-18 12:34:23 -04:00
Ben Newman
971d2b1272 Standardize Npm.require exceptions and limit lookup paths. (#9095)
Ever since Meteor 1.3 first introduced a module system based on something
other than `Npm.require`, we've continued throwing missing module
exceptions that refer to `Npm.depends` and/or `Npm.require`, even if the
developer called `require` or used an `import` declaration. This commit
fixes that, so that all missing module exceptions look like 'Cannot find
module "module/name"'.

I also noticed recently that `Npm.require` is capable of returning modules
installed in `node_modules` directories completely outside the app, which
is bad news for development/production reproducibility. Fixed that too.

CC @hwillson who has spoken of deprecating `Npm.require` entirely, and
just using `require` everywhere, instead.
2017-09-18 11:39:45 -04:00
Ben Newman
4f4b25e62b Adjust coffeescript version constraints again. 2017-09-15 15:29:10 -04:00
Ben Newman
29f2509a46 Fix small typo in dynamic-import/cache.js. 2017-09-15 13:29:42 -04:00
Ben Newman
4f09556bae Warn in babel-runtime Meteor package if babel-runtime npm package outdated. 2017-09-14 18:47:38 -04:00
Ben Newman
013ee0d779 Upgrade meteor-babel to version 7.0.0-beta.0-2. 2017-09-14 18:20:00 -04:00
Ben Newman
f221a2f502 Reinstall babel-compiler dependencies to upgrade Reify. 2017-09-14 18:20:00 -04:00
Ben Newman
cea8695b89 Bump ecmascript constraint in coffeescript packages, too. 2017-09-14 18:20:00 -04:00
Ben Newman
e1ccc22330 Bump babel-compiler constraint in coffeescript-compiler package.
We should add a -beta16.n suffix to this version before publishing, since
babel-compiler@7.0.0 is also still in beta.

cc @GeoffreyBooth
2017-09-14 18:20:00 -04:00
Ben Newman
2b8199c76b Upgrade babel-compiler and ecmascript to Babel 7.
Specifically, as of this commit, Babel 7.0.0-beta.0.
2017-09-14 18:20:00 -04:00
Ben Newman
7d98df9ee6 Bump package versions for 1.6-beta.27 release. 2017-09-14 17:57:22 -04:00
Ben Newman
66e8dcf43c Merge branch 'devel' into release-1.6 2017-09-14 17:46:36 -04:00
Jesse Rosenberger
a4bc3f50b6 Merge branch 'guard-ddp-current-invoc-and-underscore-too' into devel 2017-09-14 23:56:06 +03:00
Jesse Rosenberger
a8084d3f76 Bump ddp package patch version. 2017-09-14 23:42:02 +03:00
Jesse Rosenberger
227ac694ff Bump allow-deny package patch version. 2017-09-14 15:36:13 +03:00
Jesse Rosenberger
6e42505860 Avoid Array.prototype.includes.
Array.prototype.includes was not available in older implementations
and this avoids tighter version contraints and maximum compatibility.
2017-09-14 15:07:02 +03:00
Jesse Rosenberger
d1c3a99b9b Bump allow-deny package patch version. 2017-09-14 13:46:16 +03:00
Ben Newman
7bc4d7704b Avoid Array.from, Set, and spread elements when computing union. 2017-09-14 13:08:58 +03:00
Jesse Rosenberger
29a3fbda6a Replace Underscore methods with native ECMAScript.
This removes `underscore` entirely from `allow-deny`.
2017-09-14 13:08:58 +03:00
Jesse Rosenberger
8983eeae87 Guard against nonexistent Package.ddp.DDP._CurrentMethodInvocation.
In the same way as was done in 88824ca04d
and as suggested in https://github.com/meteor/meteor/issues/8947.
2017-09-14 13:08:58 +03:00
Jesse Rosenberger
079cd5c0e3 Bump mongo package patch version. 2017-09-13 23:53:16 +03:00
Jesse Rosenberger
e5184325f8 Merge pull request #9062 from klaussner/issue-9060
Fix falsy `_id` in selector object not being treated as ID
2017-09-13 22:03:56 +03:00
Jesse Rosenberger
29e0a46b25 Bump minimongo package patch version. 2017-09-13 22:02:40 +03:00
Ben Newman
0d26adfee5 Merge branch 'devel' into release-1.6 2017-09-13 12:27:45 -04:00
Ben Newman
78f3242f26 Bump permessage-deflate to latest version in ddp-client, too. 2017-09-13 12:20:58 -04:00
Ben Newman
1bd966ad66 Bump ddp-{client,server} package patch versions. 2017-09-13 12:03:52 -04:00
Ben Newman
0f2a0f0d66 Bump permessage-deflate and sockjs patch versions. 2017-09-13 12:03:50 -04:00
Hugh Willson
32dabef9fc Remove ddp-client's direct websocket-driver dependency
A new version of the `websocket-driver` package has been released,
(0.7.0) that includes the fix discussed in
https://github.com/faye/websocket-driver-node/issues/21, so the
direct `websocket-driver` dependency is no longer needed.

Relates to
43ba3c9de5.
2017-09-13 11:52:18 -04:00
Ben Newman
62038c45f4 Merge pull request #9077 from hwillson/issue-9072
Adjust force-ssl localhost regex to handle IPv4 in IPv6 addresses
2017-09-13 11:39:17 -04:00
Hugh Willson
b840a12762 Bump package versions 2017-09-13 11:38:18 -04:00
Ben Newman
e7c6e2bb29 Merge pull request #9083 from klaussner/webapp-server-fix
Fix host IP fallback for `webapp` server
2017-09-13 11:38:15 -04:00
Ben Newman
955faf8ebf Bump webapp package version to 1.3.19. 2017-09-13 11:37:27 -04:00
Hugh Willson
00e5d591a3 Adjust websocket endpoint testing to avoid CORS issues (#9065)
When running the `ddp-client` package tests with
`meteor test-packages`, and accessing the test runner
via http://127.0.0.1:3000, the websocket endpoint test
fails due to a CORS error. This PR replaces the use of
`Meteor.absoluteUrl` with `Meteor._relativeToSiteRootUrl`
to make sure test HTTP requests are kept within CORS
restrictions.

Fixes #8094.
2017-09-13 11:32:26 -04:00
Christian Klaussner
ba0403c193 Fix host IP fallback for webapp server
The `localIp` constant was never used, so the HTTP server was started with an `undefined` host instead of "0.0.0.0" if `process.env.BIND_IP` was `undefined`.
2017-09-12 12:46:16 +02:00
Hugh Willson
b80e71fa15 Adjust force-ssl localhost regex to handle IPv4 in IPv6 addresses
`force-ssl`'s current `isLocalConnection` regex does not handle
IPv4-mapped and/or IPv4-compatible IPv6 addresses, when checking
if the connection is local. This means a local address of
`::ffff:127.0.0.1` is being marked as non-local. These changes
adjust the `isLocalConnection` regex to handle a wider range of
localhost address representations.

Fixes #9072.
2017-09-11 11:44:15 -04:00
Christian Klaussner
bc7cce887a Throw more meaningful error if .babelrc is not a valid JSON file (#9052) 2017-09-07 17:17:27 -04:00