Skip to content

1.0.0

Compare
Choose a tag to compare
@ptitjes ptitjes released this 18 Dec 23:32
· 54 commits to master since this release

We are proud to release version 1.0.0 of PouchDB Authentication.

New APIs

New functions are available:

  • deleteUser: to delete a user,
  • signUpAdmin: to create an admin,
  • deleteAdmin: to delete an admin.

NodeJS compatibility

PouchDB Authentication is now compatible with NodeJS.

CI and test infrastructure enhancements

PouchDB Authentication now uses SauceLabs to provide extensive browser testing in addition to testing the new support for NodeJS.

Full changelog

Bug Fixes

  • ajax: correctly handle Basic authentication (19f547b), closes #109
  • browser: plugin registration bug introduced in ES6 move (cd12d06)
  • nodejs: correctly set ajax request's body for login (5b61b00), closes #127 #130 #141
  • package: update pouchdb to version ~6.4.0 (f0c45b5)
  • putUser: ensure reserved words are enforced in metadata (b1ea26a)
  • urls: replace base URL regex with url-parse (7472135), closes #150 #160
  • urls: respect DB prefix for base URL if set (d600426), closes #158

Features

  • admins: add signUpAdmin and deleteAdmin (cb8991d)
  • package: move to ES6 with rollup build (b420ad4)
  • putUser: take roles in account (7f44c9e), closes #114
  • users: add deleteUser (8e187e7)

BREAKING CHANGES

  • putUser: In both signUp and putUser, '_id', '_rev', 'name',
    'type', 'roles', 'password', 'password_scheme', 'iterations',
    'derived_key', 'salt' are now all reserved words, and 'metadata' is
    not a reserved word anymore.