Commit Graph

76 Commits

Author SHA1 Message Date
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
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
Avital Oliver
953e509d8d Document {{currentUser}} and {{currentUserLoaded}} 2012-11-01 13:30:05 -07:00
Geoff Schmidt
893e37f4d7 #387: Document Meteor.uuid. Thanks @dandv! 2012-10-20 00:56:42 -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
Matt DeBergalis
b936654bcd move accounts above packages 2012-10-16 00:27:08 -07:00
Matt DeBergalis
55ed0c3ba4 data section
Conflicts:
	docs/client/concepts.html
2012-10-15 23:47:57 -07:00
Matt DeBergalis
ad1656b2cf D3.js package 2012-10-15 16:48:23 -07:00
Nick Martin
8460c028b9 Break password-only stuff into a separate section. Reorder a bit. 2012-10-15 16:33:29 -07:00
David Glasser
2e7697e9a0 Fix back button in docs. 2012-10-15 16:15:58 -07:00
Avital Oliver
e3a1f7f428 Refer to OAuth less in docs. Small improvements to accounts-ui docs 2012-10-15 16:12:09 -07:00
David Glasser
b53e2dcbb9 Don't add target=_blank to internal links. 2012-10-15 15:46:49 -07:00
David Glasser
b9a3f34377 Put Accounts API section before Template API. 2012-10-15 15:03:25 -07:00
Nick Martin
b6d7d7817c Re-order TOC to match document. 2012-10-15 13:52:44 -07:00
David Glasser
2a1754f69c Docs: Add "field specifiers" to TOC. 2012-10-15 12:19:35 -07:00
David Glasser
72731ddda0 Use jQuery to force all non-#internal links to use target=_blank.
Rewrite <a href> links to use Markdown syntax now that they don't need the <a
href> to get target=_blank.
2012-10-15 11:16:53 -07:00
Nick Martin
6dfb976104 Bump version number for 0.5.0. 2012-10-12 21:17:18 -07:00
Nick Martin
c7b5f51420 Re-order autorun and flush. 2012-10-12 14:55:32 -07:00
David Glasser
bae1a59af6 Publicize Meteor._autorun as Meteor.autorun (with docs and tests). 2012-10-12 00:50:35 -07:00
Nick Martin
3b0732fc1d Add accounts-ui package. 2012-10-11 15:01:39 -07:00
Nick Martin
ec54838d95 Add accounts concepts section. 2012-10-11 15:01:39 -07:00
Nick Martin
78b262741f Another pass through the docs. Almost all XXXs removed. 2012-10-11 15:01:38 -07:00
Nick Martin
99e1ed82c7 Catch up to new APIs. 2012-10-11 15:01:31 -07:00
Nick Martin
e2023399aa First pass: a place for everything and everything in its place.
We really need to make this easier.
2012-10-11 15:01:15 -07:00
David Glasser
5eb81e920d Increment version to 0.4.2. 2012-10-01 18:25:18 -07:00
Avital Oliver
de413efe50 Fold the absolute-url package into the meteor package 2012-09-19 16:19:54 -07:00
David Glasser
f40b7b03c0 Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-18 10:49:40 -07:00
David Glasser
d1467c983d Revert "Update version number for 0.4.1."
This reverts commit 8ddcc21a0e.

More changes are necessary to History.md.
2012-09-18 10:21:26 -07:00
David Glasser
8ddcc21a0e Update version number for 0.4.1.
This will be the commit that 0.4.1 is released from. If the initial release
candidate fails QA, this commit will be reverted.
2012-09-17 23:38:51 -07:00
David Glasser
5e622215ba Change all publicly documented APIs to use camelCase.
For now, the old names still work as well.

This includes:
  - Meteor.isServer/isClient
  - this.isSimulation in methods
  - Context.onInvalidate
  - Meteor.status().retryCount/retryTime

Remove old backwards-compatibility "Sky" alias for "Meteor".

Update all examples in the docs to use camelCase.

Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00
David Glasser
f46dfc2717 Follow-up to 0ed8555 (no-op, different structure). 2012-09-14 22:43:35 -07:00
David Glasser
f340c35c02 Basic email support. 2012-09-14 18:38:29 -07:00
David Glasser
0ed8555690 Fix {{#dtdd}} handler in docs for 0.3.8 changes. 2012-09-14 17:09:37 -07:00
Nick Martin
8f4045c1b9 Bump version number for release. 2012-08-30 21:00:42 -07:00
David Greenspan
5d34cdf1d2 tmpldecl => template in URL fragments 2012-08-30 15:05:41 -07:00
Nick Martin
ee3bd696fe Move flush to deps. Not the best place for it, but better than core. 2012-08-29 18:00:17 -07:00
Nick Martin
df7a24b6cc Make document structure match navbar, adding needed api boxes, etc. 2012-08-29 16:37:26 -07:00
David Greenspan
d1e56cd94f good nav 2012-08-29 15:38:49 -07:00
David Greenspan
c42070451f more template docs 2012-08-29 14:47:08 -07:00
David Greenspan
2fd4e4c5c1 more Template work 2012-08-28 13:11:07 -07:00
David Greenspan
bdb89d8c55 Create "Templates" section 2012-08-28 13:11:07 -07:00
David Greenspan
c758bbb164 Move Meteor.flush to Core 2012-08-28 13:11:07 -07:00
David Greenspan
76984e87ac Further hack docs Markdown for Spark 2012-08-28 13:11:07 -07:00
Nick Martin
b3ada2cf4f Document absolute-url package. 2012-08-15 23:28:51 -07:00
Nick Martin
92b848fe1a Update version for release 0.3.9. 2012-08-07 23:02:12 -07:00
Nick Martin
78c47533b5 Initial documentation. 2012-08-02 22:21:13 -07:00
Nick Martin
7510b8430e Bump version number for release! 2012-07-12 22:10:40 -07:00
Nick Martin
32206de243 Update docs for new features. 2012-07-12 22:07:27 -07:00
Nick Martin
eca3b91375 Bump version number. 2012-06-06 21:26:20 -07:00