Commit Graph

537 Commits

Author SHA1 Message Date
Slava Kim
9c1943c467 Adjust docs to waypoints 2.x and add a delay for deps flush to increase performance on scroll. 2014-01-13 11:51:21 -08:00
David Glasser
bab936eac9 Patch _.each to not treat {length: 5} as an array
Specifically, in all Underscore "collection" functions which treat their
arguments polymorphically as either "object-like" or "array-like", don't
treat arguments with `x.constructor === Object` as arrays (except for
the 'arguments' object).

Fixes #594. Fixes #1737.
2014-01-07 20:17:47 -08:00
David Glasser
8a3f24765b Add Oxford comma
http://www.washingtontimes.com/news/2013/dec/11/comma-twitter-erupts-over-obama-castro-marriage/
2014-01-07 17:23:49 -08:00
Maxime Quandalle
c6bea042b7 Update coffeescript.html 2014-01-07 17:23:34 -08:00
David Glasser
53de3f21ba Improve docs for server-to-server collections
Fixes #1723.
2014-01-07 17:15:06 -08:00
David Glasser
ce77adc22e Remove warning about update/$ 2014-01-07 17:00:18 -08:00
David Glasser
cc1d47b5c5 Wording tweak. 2014-01-07 16:34:25 -08:00
Denis Gorbachev
f7c3e7621c Update concepts.html 2014-01-07 16:29:49 -08:00
David Glasser
add4f6e015 Disallow {fields:{_id:0}} in observeChanges
This implies it is not allowed in `observe` either, or in cursors
returned from publish functions, or in cursors used in {{#each}}

Why? observeChanges and DDP publication use the ID as part of the
callback/message, and eliding it completely breaks them. Meteor UI uses
the ID with {{#each}} to properly move nodes around instead of
re-rendering. We could try to allow it for `observe` outside of
{{#each}}, but it would feel somewhat inconsistent.
2014-01-06 21:16:23 -08:00
Matt DeBergalis
412f89a352 document return value of Deps.nonreactive 2013-12-26 22:59:05 -08:00
David Glasser
36bad38aa0 Merge branch 'master' into devel
Conflicts:
	tools/mongo_runner.js
2013-12-20 14:26:27 -08:00
David Glasser
508ad66513 Support websockets on Node 0.10.24 too 2013-12-20 13:51:29 -08:00
Nick Martin
eeae8ad11e Reword docs around file load order to be more correct. Fixes #1675. 2013-12-19 15:14:16 -08:00
Dan Dascalescu
b556a474d3 Mention Meteor.bindEnvironment
Google searches for the error fail to find the Meteor docs, and there was no mention of bindEnvironment therein.
2013-12-06 14:12:18 -08:00
David Glasser
51b786c64c docs: Fix line break and punctuation 2013-12-06 13:40:59 -08:00
Denis Gorbachev
5a8fcee957 Fix docs paragraph 2013-12-06 13:39:07 -08:00
Nick Martin
8f05510b59 Make onClose fire immediately instead of never on already closed connection. 2013-12-05 13:14:11 -08:00
Nick Martin
496936d21a review part 1: docs, style, etc. 2013-12-05 13:14:10 -08:00
Andrew Wilcox
79f845f735 Clarify note on client reconnections. 2013-12-05 13:14:10 -08:00
Andrew Wilcox
e253ecd46a Another session -> connection renaming. 2013-12-05 13:14:10 -08:00
Nick Martin
a3bbb6dfa1 Update and tweak docs for new name. 2013-12-05 13:14:10 -08:00
Nick Martin
91ad6c0189 Remove trailing whitespace. 2013-12-05 13:14:10 -08:00
Andrew Wilcox
62fe9c62e5 Add a "this.session" entry for methods in the docs.
Pull out the session object into its own documentation section.
2013-12-05 13:11:40 -08:00
Andrew Wilcox
c1d97fde7c Also make the session available in publish functions. 2013-12-05 13:11:40 -08:00
Andrew Wilcox
26e9fad096 In the docs, refer to the public object as a "session" instead of a
"session handle".
2013-12-05 13:11:40 -08:00
Andrew Wilcox
819019f08f Mention that session id's are globally unique. 2013-12-05 13:11:40 -08:00
Andrew Wilcox
badb6e9d30 Documentation update.
Document `Meteor.onConnection` instead of `Meteor.server.onConnection`.

Condense sections about when there is a session reconnect into a
single {{note}}.

Document the `stop` handle returned by `onConnect`.

Document `this.session` in Meteor.methods section.
2013-12-05 13:11:39 -08:00
Andrew Wilcox
8644363f1a Meteor.server.onConnection documentation. 2013-12-05 13:11:39 -08:00
Emily Stark
18704dccaa Note in the docs that BrowserPolicy can only be used in server code 2013-12-04 10:40:49 -08:00
karayu
7372c4cd05 added meta description 2013-11-26 15:34:03 -08:00
Matt DeBergalis
8531977bc2 point to Contributing-to-Meteor wiki page 2013-11-20 16:06:19 -08:00
Matt DeBergalis
47e6f5e381 document METEOR_SETTINGS, fixes #967. 2013-11-05 00:53:07 -08:00
Matt DeBergalis
0d6922c901 document predicate signature in restrictCreationByEmailDomain 2013-10-24 11:18:59 -07:00
Nick Martin
ebfac861f1 Merge branch 'release-0.6.6.2' 2013-10-21 16:48:51 -07:00
Nick Martin
f4e21c0d37 Bump node version from 0.10.20 to 0.10.21 for Meteor 0.6.6.2 release. 2013-10-20 22:02:25 -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
David Glasser
664339fdb3 Yet another Node version bump: to 0.10.20. Fixes tls read bug. 2013-10-03 15:52:19 -07:00
Emily Stark
9609fa2313 Tweak browser-policy-framing docs 2013-10-03 13:56:03 -07:00
Emily Stark
b5286b941a Separate browser policy functions into two packages.
* browser-policy uses browser-policy-framing and browser-policy-content, both of
  which set default policies when they are used. This way you get a default
  policy when you add a browser policy package, but you can pick and choose
  different packages if you only want to think about one of them.
* The two packages use different namespaces: BrowserPolicy.framing and
  BrowserPolicy.content, which meant some functions got renamed (e.g. not using
  "framing" or "content in the function name when it's already in the
  namespace).
2013-10-03 13:56:03 -07:00
Emily Stark
d5159ae81b Rename BrowserPolicy framing functions.
Orient them around the default policy, which is app can be framed by any origin.
2013-10-03 13:56:03 -07:00
Emily Stark
82579293f3 Override docs release temporarily 2013-10-03 10:16:07 -07:00
Emily Stark
7f64c726f7 Merge branch 'mongo-upsert' into devel 2013-10-02 13:23:22 -07:00
Emily Stark
dec262b239 Document upsert (first draft) 2013-10-02 12:17:04 -07:00
Naomi Seyfer
67046601ea Merge branch 'cannonical' into devel 2013-10-02 12:11:37 -07:00
Naomi Seyfer
998e805993 more docs and history.md notes 2013-10-02 12:01:24 -07:00
Naomi Seyfer
937bce6e5d Fix docs 2013-10-02 12:01:24 -07:00
Andrew Wilcox
da6bc1d835 EJSON.stringify objects in sorted key order.
Thus if two objects are EJSON.equals, their serialization strings will
be equal also.

(This should mean that reactive-dict could now allow objects to be
used as the key for `equal`).

Note this change does not affect livedata because livedata uses the
EJSON adjust functions to convert between JSON and EJSON (not
stringify).

Adds a couple options to EJSON.stringify:

* keyOrderSensitive: in parallel with EJSON.equals, outputs objects in
  native key order (the old behavior).

* indent: pretty-prints the output.

The serialization code is based json2, which makes it easy to preserve
the indentation functionality provided by JSON.stringify.  Only enough
code is included to serialize arrays and objects; serializing
primitive values such as strings is delegated to the native
JSON.stringify to reduce code and in case the native implementation is
more efficient.

Include underscore as an explicit dependency in package.js.

Document options to EJSON.equals and EJSON.stringify.
2013-10-02 11:43:44 -07:00
Emily Stark
8d9f97f358 Use a hardcoded example for Meteor.release, for now. 2013-10-02 11:43:16 -07:00
Emily Stark
ae6ab2d775 Fix logoutOtherClients docs typos 2013-10-02 11:37:27 -07:00
Emily Stark
f67cf78b2d Add docs for loginExpirationInDays and logoutOtherClients() 2013-10-02 11:37:27 -07:00