Commit Graph

88 Commits

Author SHA1 Message Date
hwillson
6cbb0bb30e Added in missing Meteor.isProduction. 2016-04-06 12:48:56 -04:00
hwillson
8b7668f19c Added in missing Meteor.isDevelopment. 2016-04-06 11:33:24 -04:00
Sashko Stubailo
bfc88706c4 Fix spacing 2016-04-03 23:53:13 -07:00
Michel Floyd
c788afa30d Converted example to use ES6 conventions (Method shorthand and arrow functions)
* Converted example to use ES6 conventions (fat-arrow functions)

* Removed arrow functions from onRendered/onDestroyed at Sashko's request

* Fixed spacing
2016-04-03 23:51:32 -07:00
Tom Coleman
18d4a9a42b Fix issue with templates section 2016-03-18 10:32:07 +11:00
Tom Coleman
4066bd81cf Moved READMEs from packages to docs 2016-03-17 16:35:02 +11:00
Tom Coleman
cc4f43bdad Threw down some references to the guide 2016-03-16 14:59:58 +11:00
David Glasser
6b7565cea1 Merge pull request #6468 from meteor/glasser/no-mother
docs: Remove references to free hosting service
2016-03-11 18:06:38 -08:00
David Glasser
cea4d07e22 docs: Remove references to free hosting service 2016-03-11 15:32:15 -08:00
Eric Dobbertin
134707be68 Add Assets.absoluteFilePath 2016-03-11 15:09:55 +11:00
Matt McCutchen
497927f818 Document how to use local dependencies for build plugins. 2016-02-26 12:57:08 -05:00
Sashko Stubailo
c96068ef6c Change docs to emphasize Match.Maybe 2016-02-16 00:08:47 -08:00
Lewis Wright
7a80a8c851 Add Match.Maybe
Fixes #3876
2016-02-16 00:01:17 -08:00
Mitar
abe2c5e011 Allow literal functions for Minimongo sorting.
Fixes #2730.
2016-02-10 11:02:04 -08:00
Brian Engelhardt
c80c741493 Create noRetry option on Connection.apply
Closes #6108
Pull request #6180

Test is included, as is updated documentation.
All tests in ddp-client package (including new test for #6108) pass.

Implemented as simply a noRetry flag on apply which triggers it to fail with a
Meteor.Error('invocation-failed') instead of retrying on reconnect.

Test passes, methods which are marked as noRetry get an error in case of reset,
only if they've sent at least once, and this happens before messageSent flag is
cleared.  This results in it getting it's callback as soon as quiescence
triggers, and the callback is called with an Error 'invocation-failed'.

[stubailo: changed error code, fixed docs, squashed commits]
2016-02-09 15:27:26 -08:00
Prayag Verma
7596e64e16 Fix typo in docs
Found a spelling mistake -
`responsiblity` > `responsibility`
2016-02-02 20:14:22 +05:30
Sashko Stubailo
d9abbc803f Fix double stache in docs about Template.dynamic 2016-01-19 11:07:59 -08:00
Sheel Patel
a28aa7f95c Fixed incorrect property name in documentation 2016-01-07 22:43:52 -08:00
Rahul
d83235a7d1 Tiny typo 2015-12-29 13:25:22 +01:00
Dan Dascalescu
72da78897e Clarify what Meteor.startup does, eps. on the server 2015-10-22 22:55:14 -07:00
Max Nowack
53a1c013c7 Make Template.dynamic work as a block helper
Fixes #4756
2015-10-12 22:03:46 -07:00
Cedla
4160dc2167 Add support for platform-specific preferences in mobile-config.js
Fixes #5200.
2015-09-21 13:19:25 +02:00
Sashko Stubailo
423c424e1d Remove link to Meteor manual 2015-09-15 13:42:52 -07:00
Sashko Stubailo
0bb7c7c0b2 New addAssets package.js API; same file can be source and asset
1. Add `addAssets` API to `package.js`
2. Rename `getSourcesFunc` to `getFiles` in internal code
3. Changed `PackageAPI#sources` to `PackageAPI#files` with a new structure that
   has separate objects for assets and sources
4. Added some tests for different error conditions
5. The same file can now be a source and an asset
2015-09-02 13:14:02 -07:00
David Greenspan
2b751b549b Merge branch 'devel' into release-1.2 2015-08-26 17:13:32 -07:00
Martijn Walraven
dac019fda8 Add case-insensitive accounts-password utility functions
Since we have added additional constraints to the database around case
sensitivity, we now want to discourage people from working with the Accounts
collection directly and provide an API for changing certain fields in a correct
way.

Methods that do database checks before and after the operation:
  Accounts.setUsername
  Accounts.addEmail
  Accounts.removeEmail

Methods that make sure to use a case-insensitive query to retrieve the user
  Accounts.findUserByUsername
  Accounts.findUserByEmail

PR #5024
2015-08-26 12:07:51 -07:00
Ben Newman
62ced17a9d Convert Accounts{Common,Client,Server} to ES2015 classes.
Now with proper documentation!

Closes #4930.
2015-08-19 17:20:58 -04:00
Dan Dascalescu
8a06985fd2 Mention the _id is included in the user arg to onCreateUser 2015-08-18 13:58:11 -07:00
David Greenspan
2cfd6a322a Merge branch 'master' into devel 2015-08-03 14:18:55 -07:00
Anubhav Jain
6a525fbea7 Updated DDPRateLimiter structure per Avi's suggestions and modified tests.
Updated documentation and default rate limit as well.
2015-07-22 09:52:10 -07:00
Anubhav Jain
759b9a2c19 Updating docs 2015-07-22 09:52:09 -07:00
Anubhav Jain
4cc907f7e4 Updating docs and fixing code review comments. 2015-07-22 09:52:09 -07:00
Anubhav Jain
50d3437da9 Updated comments and line sizes in markdown and rate limiter package 2015-07-22 09:52:09 -07:00
Anubhav Jain
9f9638e3a8 Added DDPRateLimiter to API docs 2015-07-22 09:52:08 -07:00
Anubhav Jain
567db5605a Changed email text to be optional in password_server.js 2015-07-21 15:22:58 -07:00
Patrick Moore
67270eecb3 Docs: Assets are not shared between packages
[stubailo: edits]
2015-07-14 15:38:27 -07:00
Slava Kim
3311c5df9c Point to released readme of Spacebars
Fixes #4729
2015-07-12 12:47:55 -07:00
Martijn Walraven
3790e0987b Add ability to login with a case insensitive username or email
Closes #550.

`loginWithPassword` now matches username or email in a case insensitive manner.
If there are multiple users with a username or email only differing in case, a
case sensitive match is required.

Although `createUser` won't let you create users with ambiguous usernames or
emails, this could happen with existing databases or if you modify the users
collection directly.

Because MongoDB does not support case insensitive indexes, we perform a case
insensitive query both before and after inserting a new user, removing the user
when we detect another matching user has been inserted in the meantime. This
leaves us with the theoretical possibility that a server crash could occur in
between the insert and the second query or remove. In that situation there
would be two accounts with a username or email only differing in case, so we
will require a case sensitive login.
2015-06-29 19:12:52 -07:00
ekatek
85a2a78e2a Squashed commit of the following:
commit 6d346097a3
Merge: 800ec27 2ce8171
Author: freiit <freiit@users.noreply.github.com>
Date:   Tue Jun 16 11:56:53 2015 +0200

    Merge pull request #1 from freiit/freiit-patch-1

    Trivial inconsistency in the docs fixed.

commit 2ce81712d6
Author: freiit <freiit@users.noreply.github.com>
Date:   Tue Jun 16 11:47:30 2015 +0200

    Trivial inconsistency in the docs fixed.
2015-06-16 14:12:04 -07:00
David Glasser
6395521041 Document valid template names
Fixes #4417.

See also #1602.
2015-06-10 15:12:56 -07:00
David Glasser
67e13306c6 Document rawCollection/rawDatabase
Fixes #4509.
2015-06-10 14:41:42 -07:00
Dan Dascalescu
9adcfd32dc Typo fix 2015-06-10 13:53:10 -07:00
Sashko Stubailo
5511298a13 Improve new template.subscribe example 2015-05-29 12:44:54 -04:00
Sashko Stubailo
fcc83be5bd Add another example for template.subscribe 2015-05-19 11:30:22 -07:00
David Glasser
91ce1561c3 tracker: implement Computation.onStop
Fixes #3915.
2015-04-29 00:18:13 -07:00
David Glasser
342a234e85 jsdoc update; fix api boxes broken by #4191 2015-04-29 00:17:01 -07:00
Slava Kim
c48dbfe477 Remove $ signs from docs 2015-04-28 16:01:21 -07:00
Eric Wyne
f25c3683a4 change docs to doc
This parameter name is misleading. A single document is passed to the Meteor.deny({update}) function, not an array of documents
2015-04-14 14:36:58 -07:00
David Glasser
af647f7e7e Tweaks 2015-04-14 14:08:27 -07:00
Henry Todd
93b3519ad7 Add notice about ROOT_URL to OAuth API docs
A possible pitfall when configuring OAuth is that after proxying the Meteor application behind (for instance) nginx, the ROOT_URL doesn't match the hostname/port combination expected.
2015-04-14 14:06:46 -07:00