Commit Graph

282 Commits

Author SHA1 Message Date
Naomi Seyfer
69459b8c70 Add pre to the whitspace formatting of code 2012-12-12 12:53:39 -08:00
Naomi Seyfer
06a3e23730 The rest of the docs for Meteor.settings 2012-12-12 12:53:39 -08:00
Geoff Schmidt
da4699288d tweaks to Email.send example 2012-12-12 12:17:53 -08:00
Evan
e2743eeab0 Update docs/client/api.html
Added example to Email.send
2012-12-12 12:05:52 -08:00
Naomi Seyfer
16fff9ea48 Fixed documentation to talk about unsetting 2012-12-06 14:21:42 -08:00
Naomi Seyfer
57ff26497d Added explanation in docs for settings stickiness 2012-12-06 14:21:42 -08:00
Naomi Seyfer
836fd21a13 Docs for --settings in commandline.html 2012-12-06 14:21:42 -08:00
Avital Oliver
5efd9ff4b2 OAuth offline token docs improvement 2012-12-03 22:10:43 -08:00
Avital Oliver
240d6e64f7 Improve offline google oauth token support:
- Use an argument to Meteor.loginWithGoogle and Accounts.ui.config
  rather than a UI-powered configuration option
- Add documentation
- Some cleanup
2012-12-03 22:10:43 -08:00
David Glasser
3a3126568a docs: clarify that the 'fields' option to find/findOne is server-only
and the 'reactive' option is client-only.

Avoid using the term Minimongo to mean "client-only".

Fixes #492.
2012-11-28 13:27:20 -08:00
David Glasser
68db80f500 Update version number to 0.5.2. 2012-11-27 08:43:29 -08:00
Nick Martin
83386b23d9 Bump version number to 0.5.1. 2012-11-15 23:14:19 -08:00
David Glasser
f8c54c4046 Overhaul quiescence, method callback timing, and login methods on the client.
- Data streamed from the server is quiesced on a per-object basis, not a global
  basis. We track which documents a method stubs modifies, and create individual
  snapshots ("server documents") of those documents rather than whole-Collection
  snapshots. Data writes from the server to documents not modified by stubs are
  applied immediately to the local cache; other writes are applied to the
  "server document" snapshots. Server documents are flushed to the local cache
  when all method stubs that wrote to the document have sent their "data write"
  message.  (We still do "full database" quiescence after a reconnect.)

- Instead of calling method callbacks as soon as the result is received, we wait
  until all data that precedes their "data done" message is flushed to the local
  cache. This way, method callbacks can see all of their results locally. (This
  applies to Collection mutator callbacks as well.) If this delay is
  unacceptable, you can also specify the onResultReceived option to
  Meteor.apply; this callback is given the method result as soon as it comes in,
  and there's no guarantee that the local cache is up to date.
  (This is a client-only change: server-side callbacks do not block on the
  write fence.)

- Methods invoked with the "wait" option to Meteor.apply now wait until all
  preceding methods are fully finished to be *sent*, not just to call their
  callbacks. ie, previous calls block the "wait" method in the same way that
  "wait" methods block subsequent calls.

- Remove Meteor.userLoaded and {{currentUserLoaded}}.
  Meteor.userId() is now set only at the point where Meteor.user() is fully
      loaded.
  Current user data is published via an unnamed subscription, not via
      "meteor.currentUser".
  Replace them with Meteor.loggingIn() and {{loggingIn}}, which become true
      as soon as the login method is sent (instead of only once it succeeds).
  In accounts-ui, move the spinny into the dropdown, because it now shows up
      before error messages would.

- Previously, if we received the "result" message from a method but no "data"
  message, and then disconnected and reconnected, quiescence would be
  permanently blocked. Now, not only do we allow the app to continue working,
  but we even guarantee that the method's callback will be called at the
  "reconnect quiescence" point.

- Remove reset function from the Store API (the interface between
      _LivedataConnection and Collection), and add a boolean "reset" argument to
      beginUpdate instead.
  Add saveOriginals/retrieveOriginals functions to the Store API (pass-through
      to minimongo implementation).
  Allow "replace" messages to be passed to the Store API's update function
      (in addition to set/unset).
  Allow Store API implementations (eg tinytest_client) to not specify all
      functions.

- Server-side tinytest results now stream into the result page instead of
  appearing all at once at the end.

- Rename fields and methods of Meteor._LivedataConnection as camelCase, and
  prepend all internal fields with _.

- Different Meteor._LivedataConnection objects now have separate
  _userIdListeners _ContextSets.

- Remove snapshot/restore functionality from Minimongo collections. (Individual
  queries still have result snapshots.) The "server documents" in
  Meteor._LivedataConnection serve the equivalent purpose.

- Meteor.loginWithToken's callback is now a "call with error on error, call
  with no args on success" callback like the other login callbacks.

- The test-only Meteor._LivedataConnection.onQuiesce function is removed.
  Every single use of it is now supported by normal method callbacks.
2012-11-14 18:10:08 -08:00
Avital Oliver
ea3afdb35a Minor docs improvement around login service configuration 2012-11-14 13:41:57 -08:00
David Glasser
e4d237f59a docs: custom publish functions don't need to unset in onStop. 2012-11-05 19:01:58 -08:00
David Glasser
a5cc93ee55 Remove the 'sass' package, as warned in 0.5.0.
Meteor's sass package wraps the "sass" NPM module, which implements a version of
the Sass language much older than the .sass described at sass-lang.com (and
doesn't implement the current recommended .scss language at all). It also has
poor error handling, so it mostly just ends up confusing users.

The module is unmaintained, and its author now uses stylus/nib (which Meteor
supports: see the stylus package).

If many users want Sass support, we could add this back in wrapping the
"node-sass" package instead (which supports a more recent version of the Sass
language), but for now, just remove it. Meteor still supports Stylus and Less
out of the box.

Fixes #143.
2012-11-05 15:24:08 -08:00
David Glasser
c8a9bc9e5a Fix doc argument type formatting (fixes #432) 2012-11-05 14:55:55 -08:00
David Glasser
7d8f744f15 Some tweaks to dandv's doc cleanups. 2012-11-05 11:36:47 -08:00
Dan Dascalescu
5ccacd1fbd Doc cleanups. Fixes #430. 2012-11-05 11:19:23 -08:00
David Glasser
a432c243aa Update version of fibers referred to in the docs. 2012-11-02 09:12:22 -07:00
David Workman
70c5f07201 Update docs/client/concepts.html
Deployment section still specified that Node 0.6
was required for deploying on your own infrastructure,
rather than Node 0.8
2012-11-02 09:09:42 -07:00
Avital Oliver
ae68aa22e6 accounts-ui: Hide "Create account" link when signups are forbidden 2012-11-01 18:15:31 -07:00
Avital Oliver
953e509d8d Document {{currentUser}} and {{currentUserLoaded}} 2012-11-01 13:30:05 -07:00
David Glasser
dee48f736a Docs: In custom publish example, call complete(). 2012-10-29 11:56:14 -07:00
Avital Oliver
4c5a4acb02 Improve loginButtons docs 2012-10-23 15:52:31 -07:00
David Glasser
1c70dcef66 Fix a few typos in Meteor.uuid docs.
While we're at it, linkify RFC reference.
2012-10-23 10:57:05 -07:00
Geoff Schmidt
7c0da2c1b4 load order docs: clarify unclear wording 2012-10-20 01:26:03 -07:00
Geoff Schmidt
893e37f4d7 #387: Document Meteor.uuid. Thanks @dandv! 2012-10-20 00:56:42 -07:00
Geoff Schmidt
d40be780fb #381, #405: Document the load order of files in an application.
Thanks @dandv, @dybskiy, @heavyk!
2012-10-20 00:31:16 -07:00
Nick Martin
6e15cc1562 Linkify references to minimongo that happen outside the collection section. Fixes #388.
Would be good to have a more built out minimongo section someday.
2012-10-18 19:57:53 -07:00
Nick Martin
4ca931aed8 Fix quotes around login buttons example. Fixes #402. 2012-10-18 17:00:31 -07:00
Dan Dascalescu
c084e35282 API docs typo and formatting fixes 2012-10-17 16:22:20 -07:00
David Glasser
24ada7fecb More concepts updates. 2012-10-17 12:28:34 -07:00
David Glasser
d00f6e8bde Get rid of Concepts accounts section. Add to Data and Security instead. 2012-10-17 11:36:33 -07:00
David Glasser
62dc41f15a Add more names to the docs. 2012-10-16 13:09:15 -07:00
David Glasser
bf656fb5d6 Document the createdAt field of users. 2012-10-16 10:03:39 -07:00
Nick Martin
2238b42fb9 Rework last few XXXs in accounts api. 2012-10-16 01:05:46 -07:00
Matt DeBergalis
b936654bcd move accounts above packages 2012-10-16 00:27:08 -07:00
David Glasser
ba732370f7 M dashes! 2012-10-16 00:04:19 -07:00
David Glasser
14375f34b7 Fix concepts ToC. 2012-10-15 23:59:50 -07:00
Matt DeBergalis
55ed0c3ba4 data section
Conflicts:
	docs/client/concepts.html
2012-10-15 23:47:57 -07:00
David Glasser
9cc1caa8ca First shot at adding more information to external services doc. 2012-10-15 23:28:56 -07:00
Nick Martin
985baa5b69 Account intro section, along with other misc tweaks. 2012-10-15 22:32:29 -07:00
Nick Martin
bcab93c9d1 Tested in an app. 2012-10-15 20:58:43 -07:00
Nick Martin
630ba60a5d Accounts passwords header section. 2012-10-15 20:46:26 -07:00
David Glasser
bdd5c55666 Start of "Passwords" intro. 2012-10-15 18:39:29 -07:00
David Glasser
a3385ba9e0 Describe user fields in more detail. 2012-10-15 18:19:07 -07:00
David Glasser
523e7e9f98 Not documenting where the reset tokens go. 2012-10-15 17:55:21 -07:00
David Glasser
cd486910f3 Add missing article to example. 2012-10-15 17:52:04 -07:00
David Glasser
c5af2098da Add missing period. 2012-10-15 17:44:52 -07:00