mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'devel' into release-2.9.1
This commit is contained in:
@@ -80,7 +80,7 @@ For making this great framework even better!
|
||||
by [henriquealbert](https://github.com/henriquealbert).
|
||||
|
||||
#### Breaking Changes
|
||||
N/A
|
||||
* `Accounts.createUserVerifyingEmail` is now async
|
||||
|
||||
#### Internal API changes
|
||||
* Internal methods from `OAuth` that are now async:
|
||||
|
||||
@@ -70,6 +70,43 @@ We now have async version of methods that you already use. They are:
|
||||
- [Meteor.userAsync()](https://github.com/meteor/meteor/pull/12274)
|
||||
- [CssTools.minifyCssAsync()](https://github.com/meteor/meteor/pull/12105)
|
||||
|
||||
<h3 id="breaking-async">Breaking async</h3>
|
||||
|
||||
`Accounts.createUserVerifyingEmail` is now completely async:
|
||||
|
||||
- [Accounts.createUserVerifyingEmail](https://github.com/meteor/meteor/issues/12398)
|
||||
|
||||
To upgrade change from
|
||||
```js
|
||||
Meteor.methods({
|
||||
createUserAccount (user) {
|
||||
/**
|
||||
* This seems to be the issue.
|
||||
* Using the other method `createUser` works as expected.
|
||||
*/
|
||||
Accounts.createUserVerifyingEmail({
|
||||
username: user.username,
|
||||
email: user.email,
|
||||
password: user.password,
|
||||
});
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
to
|
||||
|
||||
```js
|
||||
Meteor.methods({
|
||||
async createUserAccount (user) {
|
||||
await Accounts.createUserVerifyingEmail({
|
||||
username: user.username,
|
||||
email: user.email,
|
||||
password: user.password,
|
||||
});
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
<h3 id="accounts-base">Accounts-base without service-configuration</h3>
|
||||
|
||||
Now `accounts-base` is [no longer tied up](https://github.com/meteor/meteor/pull/12202) with `service-configuration`. So, if you don't use third-party login on your project, you don't need to add the package `service-configuration` anymore.
|
||||
|
||||
Reference in New Issue
Block a user