Useful hooks for use with Feathersjs services.
JavaScript
Latest commit 3dcb4ec Jan 19, 2017 @eddyystop eddyystop committed on GitHub Merge pull request #114 from feathersjs/deps-1
Bump dependencies; Use shx

README.md

feathers-hooks-common

Build Status Code Climate Coverage Status Dependency Status Download Status Slack Status

Useful hooks for use with Feathers services.

Migration to v3 from v2

Breaking changes:

  • All hooks and utilities are obtained from feathers-hooks-common rather than some from, say, feathers-hooks-common/promisify.
  • Some functions supported a deprecated predicate as their last param. This feature has been removed.
  • The populate hook now ignores pagination on joined services by default.

Deprecated:

  • The legacy populate hook -- with signtaure (string, ...) -- will be removed next version. Use the new populate hook.
  • Use deleteByDot rather than setByDot(obj, path, value, true).
  • The delete hook should be used instead of remove. You will need to wrap delete it in an conditional if you want it to work like remove does.
  • The stop hook may be used instead of disable. The disable hook when false instead of the documented true.

Documentation

Refer to Feathersjs documentation for the coming Auk (preferable) or the current releases.

Installation

Run npm install feathers-hooks-common --save in your project folder.

Tests

npm test to run tests.

License

MIT. See LICENSE.