Commit Graph

8986 Commits

Author SHA1 Message Date
Ben Newman
3be6913c4d Bump package versions for 1.6-rc.1 release. 2017-09-29 18:17:09 -04:00
Ben Newman
dc95428ecb Merge branch 'devel' into release-1.6 2017-09-29 18:07:21 -04:00
Ben Newman
807bfa560c Bump package versions for the official 1.5.2.2 release. 2017-09-29 17:14:38 -04:00
Ben Newman
ee43eba7b3 Bump package versions for 1.5.2.2-rc.1 release. 2017-09-29 14:09:16 -04:00
Ben Newman
d07ea5e288 Bump package versions for 1.6-rc.0 release. 🎉 2017-09-28 14:43:50 -04:00
Jesse Rosenberger
e1180c0377 Bump package versions for 1.5.2.2-rc.0 release. 2017-09-28 20:53:08 +03:00
Jesse Rosenberger
56b3706432 Bump package versions for 1.5.2.2-rc.0 release. 2017-09-28 19:15:22 +03:00
Hugh Willson
c5f642cb86 Make sure Accounts login only sets 1 onReconnect callback
The changes added in
d854a4b9ba
fixed a long standing issue where the Accounts system was
overwriting other DDP `connection.onReconnect` callbacks,
that were potentially set by developers (and vice-versa -
developers could overwrite the `onReconnect` callback registered
by the Accounts system, which impacted logging back in after
reconnecting). Unfortunately these changes are also registering a
new duplicate `onReconnect` callback to be called, after every
login. These duplicate callbacks pile up and are all called when
reconnecting, which eventually breaks user logins.

The changes in this commit make sure that any previously set
Accounts login `onReconnect` callback is first removed, before
adding a new callback. This ensures the Accounts system is only
ever setting one `onReconnect` callback after logging in.

Fixes #9140.
2017-09-28 08:55:16 -04:00
Ben Newman
fd3ea1b9e1 Bump package versions for 1.6-beta.32 release. 2017-09-26 14:47:57 -04:00
Ben Newman
e62a7de612 Remove beta suffix from mobile-experience package version.
This will fix tests broken by the version solver complaining that the (now
released) mobile-experience@1.0.5 conflicted with 1.0.5-beta.31.
2017-09-26 13:08:32 -04:00
Ben Newman
8ed3d333f9 Merge branch 'devel' into release-1.6 2017-09-26 12:31:40 -04:00
Ben Newman
9184ed2dc8 Merge branch 'master' into devel 2017-09-26 12:26:28 -04:00
Ben Newman
369afe74a6 Bump ecmascript patch version to republish compile-ecmascript plugin.
When the ecmascript package version was last bumped in
18e4c172f2, it appears that
babel-compiler@6.20.0 had not yet been published, so ecmascript was
published with a copy of that compiler plugin that did not support the
"env" property of .babelrc files (#8963).

Bumping again and republishing in hopes of fixing that problem.
2017-09-26 11:46:09 -04:00
Ben Newman
ef3ad82a04 Bump minimongo patch version to 1.3.2. 2017-09-26 10:50:57 -04:00
Hugh Willson
f0931d740f Add missing let statment to the $elemMatch subMatcher function (#9134)
The `subMatcher` function `let` statment was missing
(dropped during the latest minimongo refactoring - see
fe576f60ce).
This turned `subMatcher` into a global function, which caused
several minimongo issues.

Fixes #9111.
2017-09-26 10:30:47 -04:00
Ben Newman
a92fd202dc Bump package versions for the official 1.5.2.1 release. 2017-09-25 18:18:40 -04:00
Ben Newman
a0cf07e604 Bump package versions for 1.5.2.1-rc.2 release. 2017-09-25 16:57:01 -04:00
Ben Newman
80c25c1547 Update minifier-js shrinkwrap file after uglify-{es,js} change.
Follow-up to d1c984aa61.

cc @abernix
2017-09-25 12:54:29 -04:00
Ben Newman
c6bc8e2118 Bump package versions for 1.5.2.1-rc.1 release. 2017-09-25 12:35:22 -04:00
Jesse Rosenberger
2c25055aec Bump package versions for 1.5.2.1-rc.0 release. 2017-09-25 16:20:32 +03:00
Jesse Rosenberger
fcaff0bca3 Re-introduce uglify-es into the release-1.6 branch.
Which I reverted in d1c984aa61
in order to keep it off the active `devel` branch, which should should
remain on uglify-js (not uglify-ES) at this time.
2017-09-25 13:12:23 +03:00
Jesse Rosenberger
5c711d2566 Merge branch 'devel' into release-1.6 2017-09-25 13:11:51 +03:00
Jesse Rosenberger
d1c984aa61 Revert "Redo the change to uglify-es, which got lost in a merge."
This reverts commit 6b80cdaea4.

I'll re-introduce this commit to the release-1.6 branch so it doesn't
interfere with 1.5.x releases on the active `devel` branch.  The PR
should have likely targeted the 1.6 branch anyhow.
2017-09-25 13:08:37 +03:00
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