Skip to content

Commit 25347cf

Browse files
fratzingerforgot
andauthored
feat!: Dove (#707)
* refactor!: init dove (#691) * Updated @feathersjs dependencies to ^5.0.0-pre.3 * Added @feathersjs/adapter-commons to import `Paginated` * Updated Typescript to 4.2.4 * Set minimum Typescript to 4.0 for dslint * Re-import Paginated * Updated `combine` to work with Dove Re-implemented `processHooks` inside, since that’s all it was calling. * Updated dslint tests - all project tests passing Changed `feathers` import Added required properties for `HookContext` Updated typeexpectations for dslint since `Hook` is now an alias * Updated @feathersjs dependencies to ^5.0.0-pre.4 * Re-import Paginated * Removed @feathersjs/adapter-commons from dependencies * Updated @feathersjs dependencies to ^5.0.0-pre.9 All tests passing * refactor!: move to feathers v5 * chore: update package-lock * fix: use generics for hooks - @see docs link - correct utils docs link - export * from - move types to individual files - use prettier * refactor: move to generic HookContext * refactor: make tests run again * refactor: pass tests * chore: add prettier Co-authored-by: Jesse Cox <[email protected]> * chore: add premajor script * 7.0.0-pre.0 * Updating changelog * fix: use generic for iff predicate * 7.0.0-pre.1 * Updating changelog * chore: update dependencies * chore: update dependencies * 7.0.0-pre.2 * Updating changelog * chore: update dependencies * chore: update dependencies --------- Co-authored-by: Jesse Cox <[email protected]>
1 parent 2ca7e45 commit 25347cf

File tree

126 files changed

+12503
-9887
lines changed

Some content is hidden

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

126 files changed

+12503
-9887
lines changed

.eslintrc

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
},
88
"extends": [
99
"plugin:@typescript-eslint/recommended",
10-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
10+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
11+
"plugin:prettier/recommended"
1112
],
1213
"parser": "@typescript-eslint/parser",
1314
"parserOptions": {
@@ -17,10 +18,11 @@
1718
"plugins": [
1819
"eslint-plugin-import",
1920
"eslint-plugin-prefer-arrow",
20-
"@typescript-eslint"
21+
"@typescript-eslint",
22+
"prettier"
2123
],
2224
"rules": {
23-
"indent": ["warn", 2],
25+
// "indent": ["warn", 2],
2426
"prefer-rest-params": "off",
2527
"prefer-spread": "off",
2628
"@typescript-eslint/no-unsafe-member-access": "off",
@@ -52,7 +54,7 @@
5254
"@typescript-eslint/explicit-member-accessibility": [
5355
"error",
5456
{
55-
"accessibility": "no-public"
57+
"accessibility": "no-public"
5658
}
5759
],
5860
"@typescript-eslint/naming-convention": "off",
@@ -68,10 +70,6 @@
6870
"@typescript-eslint/prefer-for-of": "error",
6971
"@typescript-eslint/prefer-function-type": "error",
7072
"@typescript-eslint/prefer-namespace-keyword": "error",
71-
"@typescript-eslint/quotes": [
72-
"error",
73-
"single"
74-
],
7573
"@typescript-eslint/triple-slash-reference": [
7674
"error",
7775
{
@@ -82,28 +80,16 @@
8280
],
8381
"@typescript-eslint/unified-signatures": "error",
8482
"@typescript-eslint/consistent-type-imports": ["warn", { "prefer": "type-imports" }],
85-
"@typescript-eslint/object-curly-spacing": ["warn", "always"],
86-
"arrow-parens": [
87-
"off",
88-
"always"
89-
],
90-
"comma-dangle": "error",
83+
"arrow-parens": ["off", "always"],
9184
"complexity": "off",
9285
"constructor-super": "error",
93-
"eqeqeq": [
94-
"error",
95-
"smart"
96-
],
86+
"eqeqeq": ["error", "smart"],
9787
"guard-for-in": "error",
9888
"id-blacklist": "off",
9989
"id-match": "off",
10090
"import/order": "off",
101-
// "jsdoc/check-alignment": "error",
102-
// "jsdoc/check-indentation": "error",
103-
// "jsdoc/newline-after-description": "error",
10491
"max-classes-per-file": "off",
10592
"max-len": "off",
106-
"new-parens": "error",
10793
"no-bitwise": "error",
10894
"no-caller": "error",
10995
"no-cond-assign": "error",
@@ -121,28 +107,21 @@
121107
}
122108
],
123109
"no-throw-literal": "error",
124-
"no-trailing-spaces": "error",
125110
"no-undef-init": "error",
126111
"no-underscore-dangle": "off",
127112
"no-unsafe-finally": "error",
128113
"no-unused-labels": "error",
129114
"no-var": "error",
130115
"object-shorthand": "error",
131-
"one-var": [
132-
"error",
133-
"never"
134-
],
116+
"one-var": ["error", "never"],
135117
"prefer-arrow/prefer-arrow-functions": "off",
136118
"prefer-const": "error",
137119
"radix": "error",
138-
"space-before-function-paren": "error",
139120
"spaced-comment": [
140121
"error",
141122
"always",
142123
{
143-
"markers": [
144-
"/"
145-
]
124+
"markers": ["/"]
146125
}
147126
],
148127
"use-isnan": "error",

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"arrowParens": "avoid",
4+
"bracketSpacing": true,
5+
"printWidth": 100,
6+
"semi": true,
7+
"singleQuote": true,
8+
"tabWidth": 2,
9+
"bracketSameLine": false,
10+
"htmlWhitespaceSensitivity": "ignore"
11+
}

CHANGELOG.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,41 @@
22

33
## [Unreleased](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/HEAD)
44

5-
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v6.1.5...HEAD)
5+
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v7.0.0-pre.2...HEAD)
66

77
**Merged pull requests:**
88

9-
- fix: add js extension to lodash imports [\#684](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/684) ([fratzinger](https://github.com/fratzinger))
10-
- Update hooks documentation - setField [\#683](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/683) ([arnoldtkl](https://github.com/arnoldtkl))
9+
- Broken github link on Homepage [\#699](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/699) ([FossPrime](https://github.com/FossPrime))
10+
- docs: add version to navbar [\#690](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/690) ([fratzinger](https://github.com/fratzinger))
11+
- docs: add socialLinks [\#689](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/689) ([fratzinger](https://github.com/fratzinger))
12+
- docs: move to vitepress [\#688](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/688) ([fratzinger](https://github.com/fratzinger))
13+
- chore\(dependencies\): Update all dependencies [\#686](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/686) ([daffl](https://github.com/daffl))
14+
- chore\(dependencies\): Update all dependencies [\#685](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/685) ([daffl](https://github.com/daffl))
15+
16+
## [v7.0.0-pre.2](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v7.0.0-pre.2) (2023-02-23)
17+
18+
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v7.0.0-pre.1...v7.0.0-pre.2)
19+
20+
**Closed issues:**
21+
22+
- \[dove\] TypeScript issue when using hooks \(iff, isProvider, ...\) [\#693](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/693)
23+
24+
## [v7.0.0-pre.1](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v7.0.0-pre.1) (2022-09-28)
25+
26+
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v7.0.0-pre.0...v7.0.0-pre.1)
27+
28+
**Closed issues:**
29+
30+
- Types for populate don't account for the function param [\#629](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/629)
31+
- Babel compile error [\#582](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/582)
32+
33+
## [v7.0.0-pre.0](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v7.0.0-pre.0) (2022-09-27)
34+
35+
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v6.1.5...v7.0.0-pre.0)
36+
37+
**Closed issues:**
38+
39+
- Compatibility with future v5 \(aka Dove\) [\#687](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/687)
1140

1241
## [v6.1.5](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v6.1.5) (2022-07-31)
1342

@@ -17,6 +46,11 @@
1746

1847
- Wrong lodash imports [\#674](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/674)
1948

49+
**Merged pull requests:**
50+
51+
- fix: add js extension to lodash imports [\#684](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/684) ([fratzinger](https://github.com/fratzinger))
52+
- Update hooks documentation - setField [\#683](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/683) ([arnoldtkl](https://github.com/arnoldtkl))
53+
2054
## [v6.1.4](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v6.1.4) (2022-07-24)
2155

2256
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v6.1.3...v6.1.4)
@@ -213,10 +247,6 @@
213247

214248
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v5.0.0...v5.0.1)
215249

216-
**Implemented enhancements:**
217-
218-
- Doument fgraphql [\#466](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/466)
219-
220250
**Closed issues:**
221251

222252
- TypeScript definition for fastJoin don't reflect examples for recursive resolvers [\#521](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/521)
@@ -363,7 +393,6 @@
363393

364394
- @feathersjs/commons dependency [\#492](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/492)
365395
- Validation hook for restful api [\#491](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/491)
366-
- TS for keep fgraphql [\#467](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/467)
367396

368397
**Merged pull requests:**
369398

@@ -382,18 +411,11 @@
382411
- add asynciterable to tsconfig and bump ts version [\#484](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/484) ([j2L4e](https://github.com/j2L4e))
383412
- update names and fix the options property [\#481](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/481) ([NickBolles](https://github.com/NickBolles))
384413
- add typings for dialablePhoneNumber hook, add libphonenumber-js as a dependency [\#477](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/477) ([j2L4e](https://github.com/j2L4e))
385-
- Add initial types for fgraphql [\#469](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/469) ([NickBolles](https://github.com/NickBolles))
386-
- remove dtslint workaround in favor of npx [\#463](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/463) ([j2L4e](https://github.com/j2L4e))
387414

388415
## [v4.19.5](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.19.5) (2018-12-13)
389416

390417
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.19.4...v4.19.5)
391418

392-
**Closed issues:**
393-
394-
- TS for keepQueryInArray [\#468](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/468)
395-
- dtslint-build folder in installed package? [\#461](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/461)
396-
397419
## [v4.19.4](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.19.4) (2018-11-29)
398420

399421
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.19.3...v4.19.4)
@@ -425,7 +447,6 @@
425447
**Merged pull requests:**
426448

427449
- Fixed cache to ignore find calls with [\#473](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/473) ([eddyystop](https://github.com/eddyystop))
428-
- required\(\) of value false throws fieldname is null [\#470](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/470) ([antarasi](https://github.com/antarasi))
429450

430451
## [v4.19.0](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.19.0) (2018-11-17)
431452

@@ -435,15 +456,6 @@
435456

436457
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.17.14...v4.18.0)
437458

438-
**Implemented enhancements:**
439-
440-
- Document KeepQueryInarray [\#465](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/465)
441-
442-
**Closed issues:**
443-
444-
- Difference between serialize and alterItems [\#464](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/464)
445-
- softDelete2 returns error on delete [\#462](https://github.com/feathersjs-ecosystem/feathers-hooks-common/issues/462)
446-
447459
## [v4.17.14](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.17.14) (2018-11-01)
448460

449461
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.17.13...v4.17.14)
@@ -452,26 +464,14 @@
452464

453465
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.17.12...v4.17.13)
454466

455-
**Merged pull requests:**
456-
457-
- Added support for dePopulate to fgraphql hook. [\#459](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/459) ([eddyystop](https://github.com/eddyystop))
458-
459467
## [v4.17.12](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.17.12) (2018-10-29)
460468

461469
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.17.11...v4.17.12)
462470

463-
**Merged pull requests:**
464-
465-
- Added custom dePopulate func to dePopulate hook.' [\#458](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/458) ([eddyystop](https://github.com/eddyystop))
466-
467471
## [v4.17.11](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.17.11) (2018-10-26)
468472

469473
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.17.10...v4.17.11)
470474

471-
**Merged pull requests:**
472-
473-
- Added fgraphql hook. [\#457](https://github.com/feathersjs-ecosystem/feathers-hooks-common/pull/457) ([eddyystop](https://github.com/eddyystop))
474-
475475
## [v4.17.10](https://github.com/feathersjs-ecosystem/feathers-hooks-common/tree/v4.17.10) (2018-09-26)
476476

477477
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-hooks-common/compare/v4.17.9...v4.17.10)

0 commit comments

Comments
 (0)