Commit Graph

8877 Commits

Author SHA1 Message Date
Ben Newman
a436fde109 Bump package versions for the official 1.5.4.1 release. 2017-12-08 13:35:15 -05:00
Ben Newman
44ade416b1 Bump package versions for 1.5.4.1-rc.0 release. 2017-12-08 12:40:28 -05:00
Ben Newman
7d9ee28efc Bump package versions for 1.5.4.1-beta.0 release. 2017-12-07 20:16:44 -05:00
Ben Newman
58bdfe024d Shallow-clone inserted documents more reliably.
In a previous commit, I changed

  doc = _.extend({}, doc);

to avoid using underscore, thus:

  doc = { ...doc };

While this may seem harmless, it broke a few Mongo.Collection tests
because _.extend copies *all* properties, both own and inherited, whereas
object ...spread only copies own properties.

However, the correct way to fix this problem is *not* to revert to the old
behavior, since flattening the inherited properties of a document was
never actually what we wanted. The old behavior was subtly broken, too.

Instead, we need to create a new object with the same prototoype as the
provided document, then shallow-copy the own properties. Any properties or
methods inherited from the original prototype will then be available on
the new object, even though they didn't get copied over.

I've intentionally left some trivial formatting changes in this commit to
remind myself which broken tests were fixed by this change.
2017-12-07 19:20:22 -05:00
Jesse Rosenberger
66e1a780a6 Bump package versions for 1.5.4 release. 2017-11-08 22:22:39 +02:00
Jesse Rosenberger
6faa67be8f Bump package versions for 1.5.4-rc.0 release. 2017-11-07 21:35:37 +02:00
Jesse Rosenberger
5d8e5013fa Bump package versions for the official 1.5.3 release. 2017-11-04 10:13:20 +02:00
Jesse Rosenberger
9efe9e8b80 Bump package versions for 1.5.3-rc.1 release. 2017-10-31 11:21:02 -07:00
Jesse Rosenberger
e5211e4876 Bump package versions for 1.5.3-rc.0 release. 2017-10-27 11:39:02 -07: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
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
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
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
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
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
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
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
29f2509a46 Fix small typo in dynamic-import/cache.js. 2017-09-15 13:29:42 -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
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