Commit Graph

496 Commits

Author SHA1 Message Date
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
Slava Kim
c396f990b4 Doc string saying you can pass a predicate to restrict creation of new users by email. 2013-10-01 17:29:26 -07:00
Slava Kim
bd77b172bd Rename Accounts option 'restrictCreationByEmail' to 'restrictCreationByEmailDomain' 2013-10-01 17:14:30 -07:00
Slava Kim
3a8fc57a24 Fix docs typo. 2013-09-30 18:11:47 -07:00
Slava Kim
60dd2c89ff Clarify minimongo fields docs. 2013-09-30 17:59:07 -07:00
Emily Stark
9d1e3dbd56 Enable CSP differently for tests.
Avoids sending header and using meteor_runtime_config.js on tests. Also tweak
wording on browser-policy docs.
2013-09-28 18:44:31 -07:00
Emily Stark
a102872a96 Rework browser-policy to make API more intuitive.
- Remove starter-browser-policy and replace it with
  BrowserPolicy.enableContentSecurityPolicy(), which gives you the starter
  policy and allows you to use the other BrowserPolicy functions to configure
  it. This is motivated by the fact that the API isn't very intuitive without a
  well-defined starting policy. ex: if the package starts off without a policy,
  and then the user calls allowAllContentSameOrigin(), that will result in
  turning off inline scripts, which is probably not what they wanted.
- AllContent functions do more of what you'd expect now;
  i.e. BrowserPolicy.disallowAllContent() actually disallows all content,
  instead of setting default-src to 'none', which will allow other types of
  content that have previously had srcs set for them.
- Add some tests
2013-09-28 18:44:04 -07:00
Emily Stark
e6300461b1 Reorganize browser-policy docs a bit.
Addressing Nick's suggestions. Haven't decided yet about combining
browser-policy and starter-browser-policy docs.
2013-09-28 18:44:04 -07:00
Emily Stark
4893fe048c Package for security-related http headers. 2013-09-28 18:44:04 -07:00
David Glasser
7f490a4081 Docs for ES5-style iteration. 2013-09-27 19:00:22 -05:00
Slava Kim
c6b8c651a4 Merge branch 'pr-1332' into devel 2013-09-26 14:51:23 -07:00
Slava Kim
d855e58f92 Implement Accounts.config({ restrictCreationByEmail: 'mit.edu' })
- Check email for users created with password or any social account's email
- Throw an error with explanation on bad email domain.
- Set `hd` param for Google Accounts authentication url
- Docs description
- Touch History.md

- Possibly should add it into QA process?
2013-09-26 14:50:55 -07:00
Matt DeBergalis
fcf6fdaa71 Clean up docs for collections managed by remote DDP server.
Fixes #875.
2013-09-25 23:28:15 -07:00
Matt DeBergalis
a6db08ce8d Improve the explanation of manual publisher functions.
Fixes #1018.
2013-09-25 23:00:32 -07:00
Emily Stark
2413a8d3ed Use cryptographic PRNGs when available.
This means node's crypto.randomBytes on the server, and
window.crypto.getRandomValues on the client. If node's crypto.randomBytes throws
an exception, we fall back to crypto.pseudoRandomBytes. If
window.crypto.getRandomValues isn't supported by the browser, we fall back to
the alea generator that we had been using previously.
2013-09-25 15:53:04 -07:00
David Glasser
6c1f92e891 Might as well use the version that just got released (0.10.19). 2013-09-24 23:31:47 -07:00
David Glasser
411c6cf8f4 Update to Node 0.10.18, bumping dev bundle version. Use caronte. 2013-09-24 17:13:37 -07:00
Slava Kim
eb5d426a7c Fix docs. $slice is not related to fields projection. 2013-09-13 01:51:25 -07:00
Slava Kim
b24066d477 Improve documentation on fields.
- You can mix incl/excl as long as it is `_id`
- Note unsupported `$` and `$slice` operators of minimongo
- Give an advanced example with reference to mongodb docs.
2013-09-13 01:51:24 -07:00
David Glasser
3665b31a82 Remove backwards-compatibility implementation of pre-0.6.5
Package.register_extension API.

It didn't even actually work for producing JavaScript files (eg a
coffeescript-like package): see #1410. Package maintainers should have upgraded
to the more powerful 0.6.5 API by now anyway.
2013-09-12 13:55:15 -07:00
Andrew Wilcox
ba34b2550b Chrome for iOS supports the appcache 2013-09-04 16:31:52 -07:00
Nick Martin
9c53643113 Merge branch 'master' into devel
Conflicts:
	History.md
	docs/client/docs.js
2013-08-28 14:16:31 -07:00
Nick Martin
5d4849d361 bump docs version too. eventually this won't be needed. 2013-08-27 20:28:56 -07:00
Emily Stark
cdb6f90b66 Bump docs version to latest galaxy 2013-08-27 20:28:09 -07:00
David Glasser
6a4216f16f Fix doc on how to get correct fibers. 2013-08-26 19:51:39 -07:00
Geoff Schmidt
f6b0bab517 Docs: CoffeeScript namespacing, other tweaks 2013-08-26 19:51:39 -07:00
Nick Martin
0e70184fd0 fix typo. 2013-08-26 19:51:39 -07:00
Emily Stark
bab5c1685d Fix docs typo.
Fixes #1297
2013-08-26 19:51:39 -07:00
Emily Stark
c4f52b7551 Update docs for Date types on createdAt fields. 2013-08-21 15:19:05 -07:00
Emily Stark
d567bbdaf3 Fix docs typo.
Fixes #1297
2013-08-20 10:52:45 -07:00
David Glasser
3d5c288b2b Remove newline from 'meteor add http'. 2013-08-19 16:24:32 -07:00
Slava Kim
ed9cb03ac1 Merge branch 'minimongo-fields' into devel
Support for 'fields' option in minimongo. Observe on the fields certain fields
will fire 'change' events only if one of watched fields changed.

Note: in minimongo observe, granularity of diff is one level. Meaning, watching
for changes at 'foo.bar' may fire even if 'foo.bar' didn't change.

Fixes #1287.
2013-08-15 14:38:20 -07:00
Emily Stark
f598d40c8b Bump docs version to latest galaxy 2013-08-14 17:03:45 -07:00
David Glasser
50e2f4c07c Fix doc on how to get correct fibers. 2013-08-14 16:52:39 -07:00
Nick Martin
f3b2063eb7 fix typo. 2013-08-14 13:57:02 -07:00
Geoff Schmidt
f350edeb7d Docs: CoffeeScript namespacing, other tweaks 2013-08-14 13:38:43 -07:00
David Glasser
f5531b41a6 Small doc cleanups:
- Fix order of ')' and '.' in a bunch of places

- Remove last reference to "smart packages"

- Fix an Atmosphere link

- Linkify a bunch of other things (CoffeeScript, npm, GitHub bug tracker, etc)

- Added a newline after the dot in "`meteor`. `meteor`".  It looked way more
  like `meteor.meteor` when rendered.

- Name `api.add_files` explicitly.

- Fix capitalization of GitHub

- Explain how weak deps check if the dep is there

- A few other typos
2013-08-13 09:25:47 -07:00
Geoff Schmidt
673b8462b1 Draft of doc updates for new packages system. 2013-08-13 01:32:23 -07:00
Nick Martin
2471dcba7e remove 'temporarily' in reference to Meteor.disconnect. It's not really temporary. 2013-08-12 23:40:32 -07:00
Nick Martin
6fffbec675 Doc tweak for connection:null in new Meteor.Collection. 2013-08-12 17:03:08 -07:00
Nick Martin
e2344a2a07 Fixup ids for Meteor.http -> HTTP transition. 2013-08-09 17:52:25 -07:00
Nick Martin
e47c14d481 Fixup DDP.connect docs. 2013-08-07 21:14:11 -07:00