Commit Graph

4799 Commits

Author SHA1 Message Date
Emily Stark
5afd0d5fb1 Use object equality for closing connections for tokens.
Fixes #1540.
release/fix-issue-1553
2013-10-29 11:11:05 -07:00
Matt DeBergalis
0d6922c901 document predicate signature in restrictCreationByEmailDomain 2013-10-24 11:18:59 -07:00
Avital Oliver
21afac1e2d Add comments in deps linking to the docs 2013-10-23 09:47:32 -07:00
David Glasser
679100f1ba More history updates. 2013-10-22 22:36:53 -07:00
David Glasser
dd47801e2a facts: proof-of-concept server-side statistics.
Publishes statistics from the server to a Minimongo collection,
Facts.server. (On the server side, Facts is *not* backed by MongoDB.) By
default, this is available to all users if autopublish is on, or no
users if it is not on, but you can configure this with
Facts.setUserIdFilter.

You can add an ugly view on the stats to your app with {{> serverFacts }}.

Current stats, by package:

- mongo-livedata:
  - observe-handles
  - live-results-sets (when this is less than observe-handles,
    cursor de-dup is helping you)
- livedata
  - subscriptions
  - crossbar-listeners
  - sessions
2013-10-22 22:36:47 -07:00
David Glasser
9b58e3a21c Fix test added in dcfd00f.
The client version was running non-existent methods (because the
collection didn't exist server-side); because no callbacks were provided
to insert or update, this resulted in a Meteor._debug, but no failure.
2013-10-22 22:00:24 -07:00
David Glasser
5884d0b2d1 Update fibers instructions in README.
Now it matches the instructions in the docs.

Fixes #1519.

(All of this is a mess; we should stop using the dev bundle in
deployments entirely.)
2013-10-22 18:23:35 -07:00
David Glasser
9e7b4bd213 Fix error on this.removed during session shutdown.
Followup to 4f4e5342 which removed session resumption. That commit
deferred the _deactivateAllSubscriptions call on session shutdown, but
left around the immediate deletion of the merge box
state (collectionViews). This meant that if any publish callbacks were
called before the _deactivateAllSubscriptions call, they would operate
on the invalid collectionViews state.

This change ensures that the subscriptions are considered deactivated as
soon as we decide to deactivate them, even before we actually deactivate
them (and call their possibly-yielding stop callbacks).
2013-10-22 17:58:07 -07:00
David Glasser
9ab15d4c29 Bundler failures should cause non-zero exit code.
Fixes #1515.
2013-10-22 16:59:06 -07:00
David Glasser
daf0a4801a Ensure 500 ms of directory watch downtime.
Should help with #1506.

Fingers crossed for an eventual usable fs.watch.
2013-10-22 16:10:57 -07:00
Nick Martin
2b4fb9b37d Merge branch 'master' into devel
Conflicts:
	History.md
	meteor
2013-10-21 16:51:16 -07:00
Nick Martin
ebfac861f1 Merge branch 'release-0.6.6.2' 2013-10-21 16:48:51 -07:00
Nick Martin
11a10421f7 bump version number on example and docs 2013-10-21 16:48:38 -07:00
Nick Martin
d687d974a0 banner and notices for 0.6.6.2 2013-10-21 15:25:34 -07:00
Nick Martin
f4e21c0d37 Bump node version from 0.10.20 to 0.10.21 for Meteor 0.6.6.2 release. release/0.6.6.2-rc1 release/0.6.6.2 2013-10-20 22:02:25 -07:00
David Glasser
219056f0e8 History updates. 2013-10-19 01:09:49 -07:00
David Glasser
67a7c2786b Don't hash settings file during deploy. 2013-10-19 01:03:50 -07:00
David Glasser
606a94b41d Calculate settings file hash properly. Fixes #1497.
Previously we were hashing the Unicode string, not the bytes.

This also removes a race condition. Now there is only one use of
watchSet.addFile which does not go through
watch.readAndWatchFile (adding package.js hashes to multiple watch sets
at once), and that use does correctly hash the bytes.
2013-10-18 16:18:24 -07:00
Nick Martin
ad64ec17b0 remove duplicated sleep function in tests. Fixes #1496. 2013-10-18 16:00:41 -07:00
David Glasser
dcfd00fe2f Tests for update/upsert with $push/$each.
Test adapted by mcbain's test from #1492.
2013-10-18 15:39:47 -07:00
David Glasser
5a8ab31f43 Clone Meteor.Errors properly. Fixes #1482.
This fixes #1482 because EJSON.stringify clones its argument; this
change ensures that when it does that, it gets a Meteor.Error rather
than just an Object with some fields from the old Meteor.Error (which,
if the Meteor.Error was passed through a Future, will not include all
the fields we expect because they are not all enumerable).
2013-10-18 14:59:27 -07:00
Nick Martin
fbfcb4859b Increase buffer size for phantomjs in spiderable. Our docs were too big. 2013-10-18 13:28:25 -07:00
Nick Martin
4f79054b83 Merge branch 'master' into devel 2013-10-18 11:52:22 -07:00
Emily Stark
8e2cd47c38 Bump docs meteor release
Conflicts:
	docs/.meteor/release
2013-10-18 11:50:52 -07:00
Avital Oliver
de37574806 Update History.md 2013-10-17 23:17:07 -07:00
Avital Oliver
2c8422e441 Fail explicitly when publishing non-cursors 2013-10-17 22:48:07 -07:00
Avital Oliver
b242f20ffe Fix docs on http package
The recent change to throw errors wasn't done to completion.
Update the examples and some of the prose.
2013-10-17 16:36:13 -07:00
Nick Martin
4329071334 use a non-default port in tests so we don't fail if someone is running an app at the same time. 2013-10-16 14:59:38 -07:00
David Glasser
71ea032cd9 Update History and LICENSE. 2013-10-14 18:26:20 -07:00
David Glasser
3aca36aac4 Implement $each, $slice, and $sort for $push. 2013-10-14 18:22:02 -07:00
David Glasser
0151b3188d minimongo: clone objects inserted with $addToSet 2013-10-14 18:22:02 -07:00
Nick Martin
8f23f54248 comment on 0.3.20 already being made and burned. 2013-10-14 12:33:16 -07:00
David Glasser
86b978b0f3 Upgrade to SockJS 0.3.8.
This includes an upgrade to the underlying websocket driver, and our
base_url in /info patch.
2013-10-12 10:35:33 -07:00
Nick Martin
ddb6262d97 Merge branch 'master' into devel 2013-10-11 18:45:29 -07:00
Nick Martin
e2fd3fcad3 Merge branch 'release-0.6.6' 2013-10-11 18:44:40 -07:00
Nick Martin
958a547513 update examples to 0.6.6.1 2013-10-11 18:43:13 -07:00
Nick Martin
ca0e7c3c07 Docs version bump. 2013-10-11 18:20:06 -07:00
Nick Martin
cb1d30c7e8 History for 0.6.6.1 2013-10-11 17:19:27 -07:00
Nick Martin
47babd170f banner and notices for 0.6.6.1 2013-10-11 17:12:10 -07:00
Nick Martin
d05560d12f Don't us fs.watch. Cherry pick and squash 2b8e4a2975 release/0.6.6.1 release/0.6.6.1-rc1 2013-10-11 16:31:40 -07:00
Nick Martin
2b8e4a2975 Merge branch 'node-no-fswatch' into devel 2013-10-11 16:25:56 -07:00
David Glasser
6c0f7dff02 Yield during background directory watches. release/node-no-fsevents-7 2013-10-11 14:18:05 -07:00
Nick Martin
085b9bb0e5 Remove now unneeded double check. 2013-10-11 13:11:22 -07:00
Nick Martin
135de89282 Rip out fs.watch entirely. 2013-10-11 13:09:27 -07:00
Nick Martin
287d43bd99 Don't use fs.watch. Poll directory contents instead. release/node-no-fsevents-6 2013-10-11 10:01:29 -07:00
Emily Stark
995ccae967 Bump docs meteor release 2013-10-10 16:16:43 -07:00
Nick Martin
687f989f18 Merge branch 'master' into devel 2013-10-10 13:25:50 -07:00
Nick Martin
be1a55adb4 Merge branch 'release-0.6.6' 2013-10-10 13:25:27 -07:00
Nick Martin
3733ab1c72 fix bless release script for update getUrl function. 2013-10-10 12:58:05 -07:00
Nick Martin
06b9beab3a upgrade docs and examples to 0.6.6
this is premature, as it isn't out yet, but it will be by the time this hits devel
2013-10-10 12:45:40 -07:00