Commit Graph

7001 Commits

Author SHA1 Message Date
David Greenspan
3d6cb90d51 bump versions for RC 7 2015-08-27 15:54:37 -07:00
David Greenspan
d5d7d33bd6 bump for RC 6 2015-08-27 10:58:47 -07:00
David Greenspan
20db245ace crosswalk has documentation:null 2015-08-26 17:46:04 -07:00
David Greenspan
2e2a573d40 version bumps 2015-08-26 17:39:55 -07:00
David Greenspan
2b751b549b Merge branch 'devel' into release-1.2 2015-08-26 17:13:32 -07:00
Avital Oliver
f47cf27b27 Revert "Let Meteor.call within observe call server methods."
This reverts commit 1aaea772f2.

Apparently tests fail after this commit. Not sure how that happened.
2015-08-26 14:24:16 -07:00
Avital Oliver
5bf8885534 Revert "Let Meteor.call within observe call server methods."
This reverts commit 1aaea772f2.

Apparently tests fail after this commit. Not sure how that happened.
2015-08-26 14:23:49 -07:00
Avital Oliver
d9fe23bc60 Let Meteor.call within observe call server methods.
Since `observe` callbacks fire synchronously, before this change,
if you run a method on the client that leads to an observe
callback firing, and in that observe callback you call `Meteor.call`,
it would act the same as when you call `Meteor.call` within a method
stub -- that is, it would call the method stub but not send the
method invocation to the server.
2015-08-26 12:38:49 -07:00
Avital Oliver
1aaea772f2 Let Meteor.call within observe call server methods.
Since `observe` callbacks fire synchronously, before this change,
if you run a method on the client that leads to an observe
callback firing, and in that observe callback you call `Meteor.call`,
it would act the same as when you call `Meteor.call` within a method
stub -- that is, it would call the method stub but not send the
method invocation to the server.
2015-08-26 12:38:12 -07:00
Avital Oliver
2efd196d91 Revert "Let Meteor.call within observe call server methods."
This reverts commit b2cb10ef20.

Going to squash and re-commit
2015-08-26 12:35:40 -07:00
Avital Oliver
a80185846a Revert "Glasser code review comments"
This reverts commit a4a92b3f8f.

Going to squash and re-commit
2015-08-26 12:35:19 -07:00
Avital Oliver
a4a92b3f8f Glasser code review comments 2015-08-26 12:32:35 -07:00
Avital Oliver
b2cb10ef20 Let Meteor.call within observe call server methods.
Since `observe` callbacks fire synchronously, before this change,
if you run a method on the client that leads to an observe
callback firing, and in that observe callback you call `Meteor.call`,
it would act the same as when you call `Meteor.call` within a method
stub -- that is, it would call the method stub but not send the
method invocation to the server.
2015-08-26 12:32:35 -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
Martijn Walraven
a259834026 Add webapp dependency to test-in-browser
This ensures the app created for test-packages will have the default
Cordova plugins installed.
2015-08-26 19:26:55 +02:00
Martijn Walraven
9af83ebe3c Add Crosswalk package for Android 2015-08-26 19:26:54 +02:00
Martijn Walraven
af70287656 Remove cordova package and put cordova-lib and ios-sim back into the dev bundle 2015-08-26 19:26:51 +02:00
Martijn Walraven
c3238b2ba9 Combine installed plugins with fetched plugins metadata 2015-08-26 19:26:50 +02:00
Martijn Walraven
2165a6b6eb Let Cordova install plugins from Git instead of downloading tarballs
This also fixes a problem where we were reinstalling all plugins on
every build.
2015-08-26 19:26:49 +02:00
Martijn Walraven
b618de8cd1 Only depend on ios-sim on OS X 2015-08-26 19:26:47 +02:00
Martijn Walraven
74b5f7bcea Move cordova-lib and ios-sim from dev bundle to package 2015-08-26 19:26:47 +02:00
Martijn Walraven
c33bd25139 Update Cordova plugin versions in packages and bump versions 2015-08-26 19:26:44 +02:00
Dean Brettle
675349f988 Stop onLogin handler even if test fails. 2015-08-25 14:42:22 -07:00
Dean Brettle
64a6661c51 Fix #4970 - Login fail while logged in breaks reconnect autologin
Change callLoginMethod to leave self.connection.onReconnect alone if the
login fails, and add test for same.
2015-08-25 14:42:22 -07:00
Ben Newman
6f188e923b Upgrade ecmascript-collections NPM package to 0.1.5. 2015-08-21 18:22:08 -04:00
Ben Newman
5636c43e85 Test that core-js does not interfere with check(..., Number).
See https://github.com/grigio/meteor-babel/issues/5 for the kind of issue
that this test should help prevent.
2015-08-21 18:10:32 -04:00
Ben Newman
2353a69eee Upgrade meteor-promise to version 0.4.8.
This release of meteor-promise includes some important bug fixes for
environment binding on the client.
2015-08-20 13:19:59 -04:00
rebolon
d6427c4150 Fix issue #4929 by calling toString on HTTP content
Closes PR #4940

[stubailo: squashed commits, edited commit message, code style]
2015-08-20 09:16:53 -07:00
Ben Newman
95d7212edc Fix @class name for AccountsCommon. 2015-08-19 17:29:02 -04: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
gsuess
e02bf0fb30 Fixes #4522: Mongo upsert with dotted keys
Break down dotted key-value pairs into an object when simulating
the way Mongo generates an object from a selector in upsert.
2015-08-19 13:24:36 -07:00
Rahul
0a29e7614e Correct double negative
Was this intentional? If so, I don't get it
2015-08-18 15:17:23 -07:00
Anubhav Jain
01853070b4 Improving error output to process messages in autoupdate. 2015-08-17 11:22:15 -07:00
Ben Newman
f5821c88ee Allow server-side method implementations to return a Promise.
This does not mean that Meteor.call or Meteor.apply now return a Promise.
Completion of the method call is merely delayed until the Promise is
resolved or rejected, at which point the calling code asynchronously
receives the resulting value or exception.

These changes were inspired by this forum thread:
https://forums.meteor.com/t/fibers-and-meteor-promise-npm-pacakge/6531/7
2015-08-17 14:05:21 -04:00
David Glasser
69509bae9a Don't cache an error that is served as 200 2015-08-17 11:03:23 -07:00
Ben Newman
3504319d1b Upgrade meteor-{babel,promise} dependencies in tool and package code. 2015-08-17 13:07:30 -04:00
Anubhav Jain
09cf52d0c0 Improving error output in tool code.
We used to show `[ReferenceError ...]` without a stack trace but now we show a more targeted message along with trace.
2015-08-17 09:35:19 -07:00
Ben Newman
8d291365f0 Export some ECMAScript utilities on the server. 2015-08-13 20:01:01 -04:00
David Greenspan
38c236f4e5 bump version numbers 2015-08-13 16:48:07 -07:00
David Greenspan
d11b1a9861 Merge branch 'devel' into release-1.2 2015-08-13 16:39:49 -07:00
David Greenspan
de8aad8cd0 Fix oauth package dependencies 2015-08-13 15:27:39 -07:00
David Greenspan
3006bc72c6 Fix HTML.isConstructedObject and comment
The comments are not related to the fix, they are just for future
reference.

The fix is that having an "own" property named `constructor` should
not disqualify an object from being considered an "instance of some
class."  Instead, we should detect that an object like
`{constructor: ...}` is a plain object by noting that
`!(x instanceof x.constructor)`.
2015-08-13 12:52:46 -07:00
David Glasser
7d6e759954 Don't try to interact with fences that have fired
This bug was introduced by #4694 which switched OplogObserveDriver's
listener from using beginWrite to the new onBeforeFire.  beginWrite
doesn't throw an error when called on a retired fence; onBeforeFire
does.  So don't try to interact with fired fences. (I'm not sure if
there is an importance to the distinction between retired and fired
introduced by dcd26415f, but this code should be fine.)

While we're at it, make the error in question (which shouldn't happen)
be delivered to Mongo write callbacks (or thrown), if for no other
reason than that it allows us to test this fix.

Fixes #4839.
2015-08-12 17:50:05 -07:00
Anubhav Jain
ee1cba5b97 Revert "Improved error reporting by adding stack trace to output"
This reverts commit be81dbdc3d.
Need to create a better way to improve error output to include a stack
trace if available
2015-08-12 17:47:05 -07:00
Anubhav Jain
be81dbdc3d Improved error reporting by adding stack trace to output 2015-08-12 17:22:59 -07:00
David Glasser
82e3edf27f Fix jshint cache 2015-08-11 19:55:55 -07:00
David Greenspan
1176c334d6 bump more versions 2015-08-11 12:18:03 -07:00
David Greenspan
ce1e6b5c27 more version bumps (caused by promise) 2015-08-11 12:09:33 -07:00
David Greenspan
83c7890807 Bump versions for RC 3 2015-08-11 11:46:15 -07:00
David Greenspan
520673f1c1 Merge branch 'devel' into release-1.2 2015-08-11 11:45:09 -07:00