Releases: accounts-js/accounts
Releases · accounts-js/accounts
v0.22.0
0.22.0 (2020-02-13)
⚠ BREAKING CHANGES
- server: unify ConnectionInformations arguments (#887)
Features
Code Refactoring
- server: unify ConnectionInformations arguments (#887) 011331e
- types: changes types folder structure (#888) 7a6b6b0
Documentation
- improve mongo and redis documentation (#890) 3993ba5
- api: improve documentation navigation (#889) 7fbfad5
- client: create client page (#885) 99d6032
- password-client: add use cases category (#884) 6d5599c
Miscellaneous Chores
v0.21.1
v0.21.0
The REST example has been updated to show the features of accounts-js and to demonstrate how you can use it in your codebase.
Features
Examples
v0.20.1
Features
- feat(accounts-password): send verification email after signup (#828) @sakulstra
Bug fixes
- Fix broken docs links (#862) @gezquinndesign
- fix: avoid deprecation warnings by explicitly importing createHash (#855) @sakulstra
v0.20.0
Features
- accounts-server token creator (#774) @ozsay
- Add force refreshTokens (#794) @ozsay
- Verify authentication (#801) @ozsay
- Update TokenStorage to support non async storage (#810) @pradel
- Add a link in the console pointing to the email documentation if emails are not setup (#838) @pradel
- graphql-toolkit version bump to 0.5.17 to fix
await
issue (#837) @stolinski - Impersonation fixes (#841) @NickBolles
- chore(graphql-api): upgrade code-gen to 1.x (#797) @NickBolles
Docs
- Separate Rest documentation to Express and Client (#779) @pradel
- Update the documentation from the corresponding microservice example (#817) @bbenoist
- [Docs] upgrade docusaurus to 2.0.0-alpha.34 (#851)
Examples
- Update the graphql example to show how to get the user from the context (#830) @pradel
- Show how to use login hooks on the graphql example (#833) @pradel
- Update rest server example to show how to use some accounts-js options (#834) @pradel
Internal
- 🐛 FIX: fixed outdated peer dependencies (#793) @MoritzGruber
- chore: 🤖 Added docker-compose.yml for running tests locally (#799) @TimMikeladze
- Setup github actions (#805) @pradel
- Migrate from tslint to eslint (#809) @pradel
- Upgrade dependencies (#852) @pradel
v0.19.0
⚠️ Breaking change
We decided to remove the client side hashing of the password by default. It does not provide more security if you use https, and is leading to some confusion.
In order to migrate to not break the login and registering of your existing user you will need to follow this migration:
First you will need to install the crypto-js
npm library:
# With yarn
yarn add crypto-js
# Or if you use npm
npm install crypto-js --save
Then setup the hashPassword
option:
import { SHA256 } from 'crypto-js';
import { AccountsClient } from '@accounts/client';
import { AccountsClientPassword } from '@accounts/client-password';
const accountsClient = new AccountsClient({});
const accountsPassword = new AccountsClientPassword(accountsClient, {
hashPassword: password => {
// Here we hash the password on the client before it's sent to the server
const hashedPassword = SHA256(password);
return hashedPassword.toString();
},
});
Features
Internal
v0.18.0
Features
- [@accounts/password] Add
invalidateAllSessionsAfterPasswordReset
andinvalidateAllSessionsAfterPasswordChanged
options (#773) @NazarYablonskiy
Docs
v0.17.0
Features
- [@accounts/apollo-link] Feature apollo link refresh token (#756) @elie222
- [@accounts/passowrd] ResetPasswordSuccess and ChangePasswordSuccess server hooks have been added #754 @NazarYablonskiy
- [@accounts/passowrd] Call
validatePassword
options whenchangePassword
is executed (#750) @pradel
Docs
- Improve password strategy docs (#749) @pradel
- [@accounts/password] Add description to the
validateUsername
option (#751) @pradel - Add a notice to the redis docs (#752) @pradel
- Chore readme grammar fix (#757) @elie222
Examples
Internal
v0.16.0
Features
- Allow GET request for /user & Handle path option being a slash (#708) @stevokk
Docs
- Adding TypeORM to docs (#697) @agustif
- Migrate to docusaurus v2 (#746) @pradel
- chore: fix typo (#699) @hongarc
- Create FUNDING.yml @TimMikeladze
- Added spectrum link @davidyaha
Examples
- Typeorm with Postgres Example (#689) @agustif
- Fix react rest demo (#709) @stevokk
- Update rest example (#744) @pradel