test for affectedByModifier for $elemMatch
Initial stab at fixing the sort/selector issue
more tests for sort/select, and fix a silly bug
support regexps in sort key filter

also in EJSON.clone
support non-initial keys in sort selector filter
Improve ELEMENT_OPERATORS comment.

Make there be one consistent syntax for element operators.
Refactor a test to remove magic numbers
Pass Matcher to Sorter constructor
make LocalCollection.Cursor easier to read

and whitespace cleanup
history update
Merge branch 'sort-selector' into devel
Make some white-box tests less flaky

If we want the *internal* state of the oplog driver to be consistent, we
need to make sure that we start our observes at a consistent point in
the oplog.  (ie, initial inserts need to have been fully processed, so
that we don't process them during the original QUERYING phase, which can
give us a different unpublished buffer.)

Note that only the white-box tests (looked at _unpublishedBuffer, eg)
appeared to be flaky: the actual docs published seemed to be correct in
all cases.
Make some white-box tests less flaky

If we want the *internal* state of the oplog driver to be consistent, we
need to make sure that we start our observes at a consistent point in
the oplog.  (ie, initial inserts need to have been fully processed, so
that we don't process them during the original QUERYING phase, which can
give us a different unpublished buffer.)

Note that only the white-box tests (looked at _unpublishedBuffer, eg)
appeared to be flaky: the actual docs published seemed to be correct in
all cases.
Merge branch 'devel' into release-0.7.2
Ensure that hook.each is called from a Fiber

That gives us enough guarantees that we can simplify the error-handling
code.

We also ensure that the "new connection" handler in livedata_server runs
in a Fiber, which fixes a bug introduced in d049bf7506 where connections
from pre-pre1 clients would crash (due to Meteor.setTimeout which only
works in a Fiber).
Eliminate Deps.isolateValue

Unfortunately, using it always led to reactive functions
firing twice. Instead, we now use emboxValue in the two
cases we originally had Deps.isolateValue.
Test that helpers are called only once when invalidated.

(This was fixed by the recent commit eliminating Deps.isolateValue)
Ensure that hook.each is called from a Fiber

That gives us enough guarantees that we can simplify the error-handling
code.

We also ensure that the "new connection" handler in livedata_server runs
in a Fiber, which fixes a bug introduced in d049bf7506 where connections
from pre-pre1 clients would crash (due to Meteor.setTimeout which only
works in a Fiber).
Merge branch 'devel' into shark
Remove all other tokens when a connection calls `changePassword`