2616 Commits

Author SHA1 Message Date
Naomi Seyfer
7b1bf062b9 Hopefully fix slow tests. Shallow copy on types we swizzle in&out of mongo v0.5.7 2013-02-21 14:58:24 -08:00
Nick Martin
00cc07cc75 Mention madewith incompatibility. 2013-02-21 12:45:20 -08:00
Nick Martin
307d38e689 Reword and reformat History.md to be more readable. 2013-02-21 01:08:34 -08:00
Nick Martin
e6d7278927 Avoid reconnect storms when old clients connect to new servers. 2013-02-20 18:17:42 -08:00
Naomi Seyfer
dba23bd29c Session.setDefault, and updating todos to use it. #698 2013-02-20 17:56:39 -08:00
Naomi Seyfer
2f803607c1 add a bit more extra headroom at the top of the test runner 2013-02-20 16:55:50 -08:00
michaelglenadams
fbb4e03f5e Update docs/client/concepts.html
Fixes typo in docs.
2013-02-20 16:48:10 -08:00
Naomi Seyfer
a920d568ec Added an E to the JSON where we support it, in the docs 2013-02-20 16:33:27 -08:00
Naomi Seyfer
036c471b2d Fixed #690: inconsistant use of fields in api docs
Also messed with spacing so that the end of a sentence could be less
easily confused with the dot operator in a particular place.
2013-02-20 15:32:17 -08:00
Naomi Seyfer
c911cd9ef4 Greenspan comments on ddp-pre1 diff 2013-02-20 14:52:28 -08:00
Matt DeBergalis
f3c3d5cc29 observeChanges calls addedBefore, not addedAt 2013-02-19 17:41:56 -08:00
Naomi Seyfer
5876bc6910 Upgraded dev bundle version numbers 2013-02-19 16:42:59 -08:00
Naomi Seyfer
cb22989d2c Upgrade bootstrap in dev bundle. Still need to bump versions 2013-02-19 16:31:13 -08:00
Naomi Seyfer
fb65a1ea54 Stop having errors from bootstrap; m_l_t on tests 2013-02-19 16:30:37 -08:00
Naomi Seyfer
462f989c2e Addition to History.md about using pre-existing Mongo 2013-02-19 10:57:11 -08:00
Naomi Seyfer
f741531c01 Fixed inaccurate/old api for publish removed 2013-02-19 10:18:29 -08:00
Naomi Seyfer
f932d63443 Updated History.md draft 2013-02-18 14:31:25 -08:00
Naomi Seyfer
a2c9561ce2 Incrementing versions 2013-02-18 14:23:11 -08:00
David Glasser
76162f9b06 Improve id-invalidation test to explicitly be about "how many times did polling
happen?" rather than "how many things changed"?
2013-02-15 18:23:18 -08:00
David Glasser
74921182b5 Reduce unnecessary Mongo polling in more cases.
Specifically, we can now detect if a selector matches at most a fixed set of
IDs (instead of just "at most one ID"), both for queries and for writes. This
includes every write made from the client on a restricted collection!
2013-02-15 18:23:17 -08:00
David Glasser
a8fb7b4316 Reduce unnecessary Mongo polling.
Specifically, updates and removes that specify a specific _id, and all inserts,
should not require live queries that specify a specific different _id to poll.

This involves changing the InvalidationCrossbar matching semantics. I suspect
that a future version of the InvalidationCrossbar may want the old semantics, if
the notifications it is receiving are more oplog-driven than command-driven, but
this will work for now.

Also, make the O(1) optimization on minimongo remove("id") actually work.
Previously it was declawed by the fact that Meteor.Collection.remove normalizes
to {_id: "id"}.
2013-02-15 18:20:17 -08:00
Naomi Seyfer
2983419e5f Better UI for in-browser test runner 2013-02-15 16:59:42 -08:00
David Greenspan
9fd43419fa Fix #604: input with name="id" in form 2013-02-15 12:05:09 -08:00
Naomi Seyfer
657c101b2b Merging master to devel for 0.5.6 2013-02-15 11:16:52 -08:00
Naomi Seyfer
405cd9e86c Merge branch 'release-0.5.6' 2013-02-15 11:06:51 -08:00
Nick Martin
a7cc8a9277 Merge branch 'pr-680' into devel 2013-02-14 21:52:24 -08:00
Nick Martin
33a4cd617b Add a bunch of comments. 2013-02-14 21:50:17 -08:00
Andrew Wilcox
148670cfc6 add ##HTML_ATTRIBUTES## to app.html.in 2013-02-14 20:14:49 -08:00
Andrew Wilcox
cc27c50339 Browser identification and html attributes hook
This commit is theoretically independent of the route policy PR, but
had multiple merge conflicts with it.  This PR branch thus is based on
the route policy PR.  (That is you should only merge this PR if you've
already merged the route policy PR).

Adds an html attribute hook, used by the appcache package to insert the
manifest attribute into the app HTML.

However, to use the hook the appcache package needs to be able to
identify the browser (to decide whether to include the attribute or
not for that browser).

We now have multiple places that want to identify the browser: the
unsupported browser page, the appcache package, and, if we eventually
implement not delivering large polyfills to browsers that don't need
them, in app HTML generation code as well.

To avoid detecting the browser in multiple places ad-hoc, this commit
creates a Meteor "browser" object, intended to be a standard way of
identifying the browser server-side.  It uses but does not expose the
npm useragent module (we could choose a different mechanism to
identify the browser in the future if we wanted to).  The browser
object contains

* `name`: the name of the browser in camel case
* `major`, `minor`, `patch`: integers describing the browser version

In addition to the html attribute hook, the appcache package also
needs a way to get from the connect `req` object to the identified
browser (browsers *start* caching when they see the manifest
attribute, but only *stop* caching when they get a 404 for the
manifest...)

Eventually though we'd like smart packages to be able to serve content
without having to plug directly into connect.

This commit thus also introduces an early version of a Meteor
`request` object, intended to be a high-level description of the
request without exposing details of connect's low-level `req`.
Currently it contains:

* `browser`: browser identification object described above
* `url`: parsed url, including parsed query params

To get started, as a temporary measure I've added a
`categorizeRequest` function to __meteor_bootstrap__ which converts a
connect `req` to a Meteor `request`.  (Suggestions for a better name
are welcome).  This can go away once smart packages such as appcache
are being passed a `request` object directly when they serve content.

This allows `request` to be used uniformly: it is passed to the html
attributes hook, and the appcache package can use it when deciding
whether to generate a 404 for the manifest.
2013-02-14 20:14:49 -08:00
Naomi Seyfer
039fdf3f5d Merge branch 'ddp-pre1' into devel 2013-02-14 19:11:37 -08:00
Naomi Seyfer
a832d274cb Few more things in History.md 2013-02-14 19:08:06 -08:00
Naomi Seyfer
5235bbac2b Wordsmithing History.md 2013-02-14 19:03:37 -08:00
Naomi Seyfer
6da6cb4e7e vNEXT History.md changes for when ddp-pre1 is released 2013-02-14 18:52:58 -08:00
Naomi Seyfer
9f22ca14fd Merge branch 'devel' into ddp-pre1 2013-02-14 18:31:10 -08:00
David Glasser
88b88e4947 spec changes:
- clients need to take a new connection

- note URLs for sockjs and websocket

- wrapping
2013-02-14 18:18:35 -08:00
Naomi Seyfer
f11271dd4b IE8 Compatibility fixes 2013-02-14 17:05:51 -08:00
Geoff Schmidt
3698c640b8 DDP.md: add a bit more about version negotiation 2013-02-14 17:04:26 -08:00
Benjamin Chelli
aaa86c3e2d Fix override for icon-white
CSS Selector was not matching => wrong image loaded in certain cases
v0.5.6
2013-02-14 16:51:26 -08:00
David Glasser
ec852121ff Fix selectors matching against arrays containing subdocuments.
This is a 0.5.5 regression (with the new selector compiler): the new compiler
handled selectors with "a.b.c" reasonably well if the "c" level contained an
array but not if the "a" or "b" levels did.

This also implements mostly-Mongo-compatible behavior for sorting when arrays
are involved; this is not an 0.5.5 regression, since the old compiler did not
get this right.
2013-02-14 16:49:39 -08:00
David Glasser
1535fe3437 Bump version number and add release notes. 2013-02-14 16:49:06 -08:00
David Glasser
18035641f5 Fix selectors matching against arrays containing subdocuments.
This is a 0.5.5 regression (with the new selector compiler): the new compiler
handled selectors with "a.b.c" reasonably well if the "c" level contained an
array but not if the "a" or "b" levels did.

This also implements mostly-Mongo-compatible behavior for sorting when arrays
are involved; this is not an 0.5.5 regression, since the old compiler did not
get this right.
2013-02-14 16:38:44 -08:00
Naomi Seyfer
b4984368bd Added note about future ordered DDP 2013-02-14 15:49:23 -08:00
Naomi Seyfer
6e40ecfc8e Edits to DDP-pre1 informal spec 2013-02-14 15:46:05 -08:00
Naomi Seyfer
07656a249e Initial draft of DDP informal spec 2013-02-14 15:34:53 -08:00
Naomi Seyfer
5c48f097c5 Fix css selector for white icons in bootstrap
Merge branch 'pr-683' into devel
2013-02-14 14:36:07 -08:00
Naomi Seyfer
b2738e2346 Switch to using the right URI and comment what we are doing 2013-02-14 14:29:05 -08:00
Benjamin Chelli
1e22db062d Fix override for icon-white
CSS Selector was not matching => wrong image loaded in certain cases
2013-02-14 14:21:08 -08:00
Nick Martin
8896281b05 Merge remote-tracking branch 'remotes/origin/pr/679' into devel. Fixes #679. 2013-02-13 21:10:59 -08:00
David Glasser
8a69e74a5d Regexps that match "undefined" should not match nonexistent fields. 2013-02-13 19:04:50 -08:00
David Glasser
cc53ff3ac0 Implement $type and sorting for ObjectID, Date, and Binary. 2013-02-13 18:56:20 -08:00