Commit Graph

509 Commits

Author SHA1 Message Date
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
Nick Martin
21df324a1d bump version numbers. 2013-08-14 13:30:46 -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
Slava Kim
dab1d19e61 Docs and typos in minimongo. 2013-08-07 12:54:37 -07:00
Nick Martin
7e9eb48a9f Merge branch 'devel' into release-0.6.5 2013-08-06 16:41:44 -07:00
Slava Kim
e16738e920 Better docs for Match.Optional. 2013-08-05 16:14:59 -07:00
Slava Kim
580de65f62 Grammar corrections. Comments moving. 2013-08-05 13:26:43 -07:00
David Glasser
cd5044b6f3 Update docs to 0.6.5-rc12. Link to EJSON binary. 2013-08-02 18:17:38 -07:00
David Glasser
70883fdc42 Remove "write to the global" coffeescript instructions.
As part of a docs pass we will explain the new way to use coffeescript globals.

(In short: in a package, anything declared with `api.export` becomes
package-level and exported. If you want something package-level and not
exported, or app-level, there's an object `share` and you can assign to fields
on it.)
2013-08-02 17:13:49 -07:00
Slava Kim
ffc31748f5 Make docs for Match.Optional more truthy about undefined in an object. 2013-08-02 14:25:03 -07:00
Slava Kim
86022fb06e Docs for Match.Integer 2013-08-02 14:25:03 -07:00
David Glasser
1297034201 Update docs to 0.6.5-rc2. 2013-07-29 12:38:49 -07:00
David Glasser
4e222d8e26 The standard app packages are brought in explicitly now.
.meteor/packages in new apps now contains "standard-app-packages", which implies
the standard set of packages like mongo-livedata. There is no special-casing in
initFromAppDir.  This line has been added to all the examples, etc.

There's a new concept of "upgraders".  "meteor run-upgrader app-packages" will
add standard-app-packages to the app, as well as all of the package in the app's
packages/ directory (an unrelated change since 0.6.4). This will be integrated
soon with "meteor update"; run-upgrader is essentially for testing.

project.add_package no longer adds packages that are already there.
2013-07-26 19:02:12 -07:00
David Glasser
a5c061ecde Rename Meteor.http to HTTP. Backwards compatible. 2013-07-25 18:54:42 -07:00
David Glasser
ce16794cbb Push through on the Meteor.connect -> DDP.connect rename. 2013-07-25 18:54:42 -07:00