Skip to content

Commit ad7e49b

Browse files
committed
WIP
1 parent 36090bb commit ad7e49b

File tree

147 files changed

+7512
-7406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+7512
-7406
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.15.1
1+
v22.14.0

.nycrc

Lines changed: 0 additions & 21 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Feathers
3+
Copyright (c) 2025 Feathers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,27 @@
22

33
#### hooks
44

5-
- added alterData, alterResult, rm alterItems
5+
- added transformData, transformResult, rm alterItems
66
- added discardData, discardResult, rm discard
77
- moved to omitData, omitResult, rm omit
8+
- MaybeArray
89
- added keepData, keepResult, rm keep
910
- moved to pickData, pickResult, rm pick
11+
- MaybeArray
1012
- added lowercaseData, lowercaseResult, rm lowercase
13+
- MaybeArray
1114
- added setNowData, setNowResult, rm setNow
1215

1316
- removed several checks that are handled by typescript
1417
- removed check for `preventChanges(true, ...fieldNames)`
1518

19+
- switch `true` to second argument
20+
1621
- renamed 'keepQuery' to 'pickQuery', added alias
1722
- renamed 'required' to 'checkRequired', added alias
1823

24+
- removed 'actOn', 'actOnDefault', 'actOnDispatch'
25+
1926
- added throwIf
2027
- added throwIfIsProvider
2128
- added throwIfIsMulti
@@ -27,6 +34,8 @@
2734

2835
- softDelete: added 'transformParams' & added 'key' option
2936

37+
- disallow: MaybeArray
38+
3039
- rm support for spread argument
3140

3241
- rm 'actOnDispatch' & 'actOnDefault'
@@ -44,6 +53,7 @@
4453
- added replaceData, replaceResult, deprecated replaceItems
4554
- added util getPaginate
4655
- added util skipResult
56+
- rm 'runHook'
4757

4858
### Hooks to discuss
4959

docs/.vitepress/config.mts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { defineConfig } from 'vitepress';
2-
import { name, description, ogUrl, ogImage } from './meta';
3-
import { version } from '../../package.json';
1+
import { defineConfig } from 'vitepress'
2+
import { name, description, ogUrl, ogImage } from './meta'
3+
import { version } from '../../package.json'
44

55
export default defineConfig({
6-
title: 'feathers-hooks-common',
6+
title: 'feathers-hooks-common/index.js',
77
lastUpdated: true,
88
description: '',
99
head: [
@@ -19,7 +19,7 @@ export default defineConfig({
1919
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
2020
],
2121
themeConfig: {
22-
siteTitle: 'feathers-hooks-common',
22+
siteTitle: 'feathers-hooks-common/index.js',
2323
editLink: {
2424
pattern:
2525
'https://github.com/feathersjs-ecosystem/feathers-hooks-common/edit/master/docs/:path',
@@ -36,7 +36,7 @@ export default defineConfig({
3636
},
3737
{
3838
icon: 'github',
39-
link: 'https://github.com/feathersjs-ecosystem/feathers-hooks-common',
39+
link: 'https://github.com/feathersjs-ecosystem/feathers-hooks-common/index.js',
4040
},
4141
],
4242
logo: '/feathers-hooks-common-logo.png',
@@ -45,7 +45,7 @@ export default defineConfig({
4545
text: 'Guide',
4646
items: [
4747
{ text: 'Overview', link: '/overview' },
48-
{ text: 'Hooks', link: '/hooks' },
48+
{ text: 'Hooks', link: '/hooks/index.js' },
4949
{ text: 'Utilities', link: '/utilities' },
5050
{ text: 'Migrating', link: '/migrating' },
5151
{ text: 'Guides', link: '/guides' },
@@ -77,4 +77,4 @@ export default defineConfig({
7777
indexName: 'feathers-hooks',
7878
},
7979
},
80-
});
80+
})

docs/.vitepress/meta.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const name = 'feathers-hooks-common';
2-
export const description = 'Common hooks and utils for FeathersJS apps';
1+
export const name = 'feathers-hooks-common/index.js'
2+
export const description = 'Common hooks and utils for FeathersJS apps'
33

4-
export const ogUrl = 'https://hooks-common.feathersjs.com/';
5-
export const ogImage = 'https://hooks-common.feathersjs.com/feathers-hooks-common-logo.png';
4+
export const ogUrl = 'https://hooks-common.feathersjs.com/'
5+
export const ogImage = 'https://hooks-common.feathersjs.com/feathers-hooks-common-logo.png'

docs/.vitepress/theme/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Theme from 'vitepress/theme';
2-
import '../style/main.css';
1+
import Theme from 'vitepress/theme'
2+
import '../style/main.css'
33

44
export default {
55
...Theme,
6-
};
6+
}

0 commit comments

Comments
 (0)