Useful hooks for use with Feathers services.
Use feathers-hooks-common v3.10.0 with FeathersJS v2 (Auk).
Use feathers-hooks-common v4.x.x with FeathersJS v3 (Buzzard).
-
Docs moved to feathers-plus web site.
-
v4.x.x now supports FeathersJS v3 (Buzzard). Continue using v3.10.0 for FeathersJS v2 (Auk).
-
Removed:
- Removed support for the deprecated legacy syntax in
populate
. - Removed the deprecated
remove
hook in favor ofdiscard
.
- Removed support for the deprecated legacy syntax in
-
Deprecated. These will be removed in FeathersJS v3 (Crow).
- Deprecated
pluck
in favor ofiff(isProvider('external'),
keep(...fieldNames))
. Be careful! - Deprecated the
client
in favor of theparamsFromClient
.
- Deprecated
-
Added modules. They work with both FeathersJS v2 and v3.
fastJoin
hook - Very fast alternative topopulate
.makeCallingParams
utility - Help constructcontext.params
when calling services.
-
Refer to Feathers-Plus web site..
Run npm install feathers-hooks-common --save
in your project folder (installs the latest v4 release).
npm test
to run tests.
See LICENSE.