You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrating-from-feathers-hooks-common.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,20 @@ It is now replaced by the new utilities [`getDataIsArray`](#new-util-getdataisar
139
139
140
140
Also see [#replace-items](#replace-items).
141
141
142
+
## `every`
143
+
144
+
The `every` predicate has been renamed to [`and`](/predicates/and.html). `every` is still available as an alias.
145
+
146
+
```ts
147
+
// old
148
+
import { every } from"feathers-hooks-common";
149
+
150
+
// new
151
+
import { and } from"feathers-utils/predicates";
152
+
// or use the alias
153
+
import { every } from"feathers-utils/predicates";
154
+
```
155
+
142
156
## `isNot`
143
157
144
158
The `isNot` predicate has been renamed to [`not`](/predicates/not.html).
@@ -294,6 +308,20 @@ The `sifter` hook has been removed. If you need it please reach out to us in thi
294
308
295
309
The `softDelete` hook has been updated to require a `deletedQuery` and `removeData` option. This change improves clarity and consistency in how soft deletion is handled in your application.
296
310
311
+
## `some`
312
+
313
+
The `some` predicate has been renamed to [`or`](/predicates/or.html). `some` is still available as an alias.
314
+
315
+
```ts
316
+
// old
317
+
import { some } from"feathers-hooks-common";
318
+
319
+
// new
320
+
import { or } from"feathers-utils/predicates";
321
+
// or use the alias
322
+
import { some } from"feathers-utils/predicates";
323
+
```
324
+
297
325
## `stashBefore`
298
326
299
327
The `stashBefore` hook has been renamed to [`stashable`](/hooks/stashable.html). Instead of eagerly fetching and storing the result directly on `context.params.before`, it now exposes a memoized function that returns a promise. The fetch starts immediately but multiple calls to `stashed()` only hit the database once.
0 commit comments