# Change Log

## [v1.0.1](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v1.0.1) (2019-10-17)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v1.0.0...v1.0.1)

**Merged pull requests:**

- Add types mapping [\#75](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/75) ([daffl](https://github.com/daffl))

## [v1.0.0](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v1.0.0) (2019-10-01)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.3.1...v1.0.0)

**Closed issues:**

- Broken link in documentation [\#69](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/69)
- Migration guide for restrictToRoles functionality [\#63](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/63)
- An in-range update of debug is breaking the build 🚨 [\#60](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/60)

**Merged pull requests:**

- Add TypeScript definitions [\#74](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/74) ([daffl](https://github.com/daffl))
- Refactor into single setField hook for Feathers 4 [\#73](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/73) ([daffl](https://github.com/daffl))
- Update @feathersjs/errors to the latest version 🚀 [\#72](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/72) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update mocha to the latest version 🚀 [\#67](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/67) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update sinon to the latest version 🚀 [\#66](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/66) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Greenkeeper/semistandard 13.0.1 [\#65](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/65) ([daffl](https://github.com/daffl))
- Update debug to the latest version 🚀 [\#61](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/61) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v0.3.1](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.3.1) (2018-08-21)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.3.0...v0.3.1)

**Closed issues:**

-  Error: There is no current user to associate. [\#49](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/49)
- queryWithCurrentUser Generating the following error There is no current user to associate. [\#43](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/43)

**Merged pull requests:**

- remove the hard coded "user"  [\#59](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/59) ([abalad](https://github.com/abalad))
- Update sinon to the latest version 🚀 [\#57](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/57) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update restrict-to-owner.js [\#56](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/56) ([bertho-zero](https://github.com/bertho-zero))

## [v0.3.0](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.3.0) (2018-05-29)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.2.0...v0.3.0)

**Closed issues:**

- restrictToRoles not returning current user's resources [\#53](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/53)

**Merged pull requests:**

- Remove documentation and deprecated restrictToAuthenticated [\#55](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/55) ([daffl](https://github.com/daffl))
- Remove role related hooks, use feathers-permissions instead [\#54](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/54) ([daffl](https://github.com/daffl))

## [v0.2.0](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.2.0) (2018-04-20)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.7...v0.2.0)

**Closed issues:**

- feathers-errors package is deprecated [\#46](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/46)
- hasRoleOrRestrict throwing "Too many arguments for 'find' method on Buzzard [\#41](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/41)
- weird error   :  import get from 'lodash.get'; [\#32](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/32)
- Nested id fields populates incorrect query [\#22](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/22)
- Bring back ownerOrRestrict hook [\#11](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/11)

**Merged pull requests:**

- Update all dependencies and use latest Lodash [\#51](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/51) ([daffl](https://github.com/daffl))
- Update to new plugin infrastructure, drop Node 4 support [\#50](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/50) ([daffl](https://github.com/daffl))
- update `feathers-errors` package to `@feathersjs/errors` \(\#46\) [\#47](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/47) ([mlippert](https://github.com/mlippert))
- Update sinon to the latest version 🚀 [\#45](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/45) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update sinon-chai to the latest version 🚀 [\#44](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/44) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- fix\(hasRoleOrRestrict\): usage w/ get method returns correct result [\#28](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/28) ([meatwallace](https://github.com/meatwallace))

## [v0.1.7](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.7) (2018-02-22)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.6...v0.1.7)

**Closed issues:**

- \[feature request\] `restrictToRole` can support `ownerField` as array, just like `restrictToOwner` [\#39](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/39)

**Merged pull requests:**

- hasRoleOrRestrict should call find with a single, merged parameter [\#42](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/42) ([gsavoie](https://github.com/gsavoie))
- RestrictToRoles support ownerField value as array [\#40](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/40) ([beeplin](https://github.com/beeplin))
- Update mocha to the latest version 🚀 [\#38](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/38) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update semistandard to the latest version 🚀 [\#37](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/37) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v0.1.6](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.6) (2017-12-19)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.5...v0.1.6)

**Merged pull requests:**

- Add restrictToAuthenticated deprecation warning and remove from docs [\#36](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/36) ([daffl](https://github.com/daffl))
- Move documentation from docs into the repo [\#35](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/35) ([daffl](https://github.com/daffl))
- Update nsp to the latest version 🚀 [\#33](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/33) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v0.1.5](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.5) (2017-10-17)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.4...v0.1.5)

**Closed issues:**

- restricToOwner doesn't seem work... [\#24](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/24)
- restrictToRoles with custom id field [\#20](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/20)

**Merged pull requests:**

- Update mocha to the latest version 🚀 [\#31](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/31) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Add `expandPaths` option to en/disable `options.as` path expansion [\#30](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/30) ([jus101](https://github.com/jus101))
- Update sinon to the latest version 🚀 [\#29](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/29) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update debug to the latest version 🚀 [\#25](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/25) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update sinon to the latest version 🚀 [\#23](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/23) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
- Update chai to the latest version 🚀 [\#21](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/21) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v0.1.4](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.4) (2017-06-01)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.3...v0.1.4)

**Closed issues:**

- Hook "restrictToOwner" looses context \(this\) when wrapped [\#17](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/17)
- hook.app.get\('authentication'\) might be a problem. [\#15](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/15)

**Merged pull requests:**

- Changed hooks to use `hook.service` instead of `this` [\#18](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/18) ([3bola](https://github.com/3bola))

## [v0.1.3](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.3) (2017-05-09)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.2...v0.1.3)

**Closed issues:**

- 'authentication' or 'auth' [\#13](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/13)

**Merged pull requests:**

- Use 'authentication' instead of 'auth' when setting options [\#14](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/14) ([3bola](https://github.com/3bola))
- Update semistandard to the latest version 🚀 [\#12](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/12) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v0.1.2](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.2) (2017-04-14)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.1...v0.1.2)

**Merged pull requests:**

- Add an error message when id is null [\#10](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/10) ([daffl](https://github.com/daffl))
- Add Greenkeeper badge 🌴 [\#9](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/9) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))

## [v0.1.1](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.1) (2017-04-12)
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/compare/v0.1.0...v0.1.1)

**Closed issues:**

- restrictToOwner 'as' option  [\#7](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/7)
- The documentation link on the README is broken [\#6](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/issues/6)

**Merged pull requests:**

- Pass ownerField from restrictToOwner as as in queryWithCurrentUser [\#8](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/8) ([daffl](https://github.com/daffl))

## [v0.1.0](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/tree/v0.1.0) (2017-04-08)
**Merged pull requests:**

- Update all dependencies 🌴 [\#5](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/5) ([greenkeeperio-bot](https://github.com/greenkeeperio-bot))
- Remove obsolete hooks and update remaining [\#4](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/4) ([daffl](https://github.com/daffl))
- Rename to feathers-authentication-hooks [\#3](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/3) ([daffl](https://github.com/daffl))
- Adds ownerOrRestrictChanges. [\#2](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/2) ([codingfriend1](https://github.com/codingfriend1))
- initial commit [\#1](https://github.com/feathersjs-ecosystem/feathers-authentication-hooks/pull/1) ([marshallswain](https://github.com/marshallswain))



\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*