feathers-hooks-common
feathers-hooks-common copied to clipboard
Useful hooks for use with FeathersJS services.
Lets say you have a Teams Model with: `name: { type: String, required: true }, playerIds: { type: Array, required: true },` and you use "populate" to prepopulate with the...
I tried to use the new softDelete hooks with `deletedQuery` and `removeData` but something like `removeParams` is missing. My user does not have the rights to directly make these modifications,...
Hello guys, I'm submitting the basic idea here and once you approve it, I'll add the PR with types and tests et al. The current `every` and `some` hooks run...
I was not sure about where the issue located, but I have opened a ticket here: https://github.com/eddyystop/feathers-hooks-validate-joi/issues/16 The validation is not working with Feathers v4.
### Steps to reproduce Add `stashBefore()` to the hooks of a simple service. The code looks like: ``` const { stashBefore } = require("feathers-hooks-common"); module.exports = { before: { all:...
I spent quite a few hours looking into this, and after giving up, found the cause of the bug on accident. Not sure if this affects more than just `fastJoin`....
In-browser storage size is limited, so for offline-first PWAs you may end up needing some kind of data compression. A hook that handles compression transparently could be useful here. Possible...
https://github.com/feathers-plus/feathers-hooks-common/blob/5d860579da32be9da3bce0d55f5cbd135b2f50d2/lib/services/stash-before.js#L33 Why does stashBefore serialize the object? this destroys Date objects for apparently no reason, which is unlike what you would expect from something that does a get call and...
Bumps [rollup](https://github.com/rollup/rollup) from 4.18.1 to 4.22.4. Release notes Sourced from rollup's releases. v4.22.4 4.22.4 2024-09-21 Bug Fixes Fix a vulnerability in generated code that affects IIFE, UMD and CJS bundles...
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `body-parser` from 1.20.2 to 1.20.3 Release notes Sourced from body-parser's releases. 1.20.3 What's Changed Important deps: [email protected] add...