Commit Graph

8963 Commits

Author SHA1 Message Date
Ben Newman
6e09542ead Bump package versions for 1.6-beta.31 release. 2017-09-22 18:51:30 -04:00
Ben Newman
38b5ac9ed3 Revert core package upgrades to Babel 7 for now.
While Babel 7 seems to work perfectly well, and the process of upgrading
has been useful, the upgrade is going to require Meteor developers to
update the babel-runtime npm package and their .babelrc plugins, a chore
with which Meteor can't help very much.

On top of that, Babel 7 is still in early beta. I don't want to ship
Meteor 1.6 with a critical component that could change in unexpected ways,
and I don't want to wait for Babel 7 to be finalized to ship Meteor 1.6.

Note that the Meteor command-line tool is still implemented using Babel 7,
which has historically been a great way to gain confidence in
Babel-related changes before pushing them out to all Meteor developers.

@GeoffreyBooth This should take some pressure off the CoffeeScript upgrade
for now. Let's aim for Meteor 1.6.1 for Babel 7 and CoffeeScript 2.0.
2017-09-22 17:19:26 -04:00
Ben Newman
3632128258 Upgrade reify to version 0.12.3. 2017-09-20 16:48:01 -04:00
Ben Newman
a817ffd483 Upgrade meteor-babel to version 7.0.0-beta.1-1. 2017-09-20 16:44:29 -04:00
Ben Newman
3a5a52e869 Merge branch 'devel' into release-1.6 2017-09-20 16:36:41 -04:00
Hugh Willson
d854a4b9ba Add DDP.onReconnect(), deprecate conn.onReconnect (#9092)
* Fix bug #5665: add DDP.onReconnect(), deprecate conn.onReconnect

Deprecate use of `connection.onReconnect = func`. Instead, a new
`DDP.onReconnect(callback)` method should be used to register callbacks to call
when a connection reconnects. The connection that is reconnecting is passed as
the only argument to `callback`. This is used by the accounts system to relogin
on reconnects without interfering with other code which uses
`connection.onReconnect`.

* Adjust History entry, package versions, code cleanup
2017-09-20 14:49:34 -04:00
Hugh Willson
a549448e54 Fix issues with Infinity based login token lifetimes (#9113)
* Fix issues with Infinity based login token lifetimes

Several areas of the Accounts system are using the current
login token expiration millisecond limit for different
`Date` based calculations. When `loginExpirationInDays` is set
to `null`, and the Accounts system uses an expiration limit of
`Infinity`, these `Date` based operations fail, since
`Infinity` can't be converted to a `Date`.

These changes replace the use of `Infinity` with a far future
fixed date representation, that's used when
`loginExpirationInDays` is set to `null`.

Fixes #9066.

* Small comment typo

* Remove unnecessary comment
2017-09-20 11:44:59 -04:00
Ben Newman
b2df97b786 Beta versions of coffeescript packages compatible with 1.6-beta.30.
New coffeescript* versions are necessary because we've bumped the major
versions of babel-compiler and babel-runtime.

To verify that these new versions work, create a new app with

  meteor create --release 1.6-beta.30 new-app

and then add coffeescript to it:

  cd new-app
  meteor add coffeescript@1.12.7-2-beta.30

If everything works, you should get -beta.30 versions of coffeescript and
coffeescript-compiler, instead of something earlier.

cc @GeoffreyBooth
2017-09-18 19:37:42 -04:00
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