Skip to content

Commit a949c84

Browse files
pdfowlermdarticfratzinger
authored
Update Library Dependencies and Code for Feathers 5 (Dove) (#210)
* refactor!: migrate to feathers dove (#196) * Upgrade feathers to dove * Add typings related for dove migration * First iteration on tests, need more work * Update dependencies to pre.30 * Transform hooks in a generic way for HookContext * Add @sinclair/typebox in dev dependency (need to be removed later) * Set node >= 14 for github CI and package.json as feathers dove supports node >= 14 * Fix tests and implementation * use NullableId for checkUnique * update hashPassword for reusing same context instead of new one (never transmitted) * replace typing for hooks as @fratzinger advice * Update to dove pre.31 * 5.0.0-pre.0 * Updating changelog * chore: update to release versions of @feathersjs/* and feathers-hooks-common * chore: refactor queries to use ES6 spread to fix type errors * chore: increase strictness of eslint rules --------- Co-authored-by: Mathieu DARTIGUES <mathieu@dartic.fr> Co-authored-by: fratzinger <22286818+fratzinger@users.noreply.github.com>
1 parent 47ae923 commit a949c84

39 files changed

+786
-8233
lines changed

.eslintrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"plugin:import/typescript"
1919
],
2020
"rules": {
21-
"semi": ["warn", "always"],
22-
"@typescript-eslint/semi": ["warn", "always"],
21+
"semi": ["error", "always"],
22+
"@typescript-eslint/semi": ["error", "always"],
2323
"@typescript-eslint/strict-boolean-expressions": ["off"],
2424
"spaced-comment": ["off"],
2525
"@typescript-eslint/consistent-type-imports": ["warn", { "prefer": "type-imports" }],
2626
// import
27-
"import/order": ["warn", { "groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"] }],
28-
"import/no-duplicates": ["warn"]
27+
"import/order": ["error", { "groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"] }],
28+
"import/no-duplicates": ["error"]
2929
},
3030
"overrides": [
3131
{

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [12.x, 14.x, 16.x, 18.x]
13+
node-version: [14.x, 16.x, 18.x]
1414
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1515

1616
steps:

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

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

5-
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-management/compare/v4.0.2...HEAD)
5+
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-management/compare/v5.0.0-pre.0...HEAD)
66

77
**Merged pull requests:**
88

9-
- chore: add tsconfig commonjs [\#193](https://github.com/feathersjs-ecosystem/feathers-authentication-management/pull/193) ([fratzinger](https://github.com/fratzinger))
9+
- ci: also check compile step [\#194](https://github.com/feathersjs-ecosystem/feathers-authentication-management/pull/194) ([fratzinger](https://github.com/fratzinger))
10+
11+
## [v5.0.0-pre.0](https://github.com/feathersjs-ecosystem/feathers-authentication-management/tree/v5.0.0-pre.0) (2022-10-13)
12+
13+
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-management/compare/v4.0.2...v5.0.0-pre.0)
14+
15+
**Closed issues:**
16+
17+
- Error when using with typescript app [\#192](https://github.com/feathersjs-ecosystem/feathers-authentication-management/issues/192)
1018

1119
## [v4.0.2](https://github.com/feathersjs-ecosystem/feathers-authentication-management/tree/v4.0.2) (2022-09-30)
1220

@@ -16,6 +24,10 @@
1624

1725
- SyntaxError: Cannot use import statement outside a module [\#191](https://github.com/feathersjs-ecosystem/feathers-authentication-management/issues/191)
1826

27+
**Merged pull requests:**
28+
29+
- chore: add tsconfig commonjs [\#193](https://github.com/feathersjs-ecosystem/feathers-authentication-management/pull/193) ([fratzinger](https://github.com/fratzinger))
30+
1931
## [v4.0.1](https://github.com/feathersjs-ecosystem/feathers-authentication-management/tree/v4.0.1) (2022-09-22)
2032

2133
[Full Changelog](https://github.com/feathersjs-ecosystem/feathers-authentication-management/compare/v4.0.0...v4.0.1)

examples/js/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@
3737
"ignore": []
3838
},
3939
"dependencies": {
40-
"@feathersjs/authentication": "^4.5.15",
41-
"@feathersjs/authentication-local": "^4.5.15",
42-
"@feathersjs/authentication-oauth": "^4.5.15",
43-
"@feathersjs/configuration": "^4.5.15",
44-
"@feathersjs/errors": "^4.5.15",
45-
"@feathersjs/express": "^4.5.15",
46-
"@feathersjs/feathers": "^4.5.15",
47-
"@feathersjs/socketio": "^4.5.15",
48-
"@feathersjs/transport-commons": "^4.5.15",
40+
"@feathersjs/authentication": "^5.0.0-pre.31",
41+
"@feathersjs/authentication-local": "^5.0.0-pre.31",
42+
"@feathersjs/authentication-oauth": "^5.0.0-pre.31",
43+
"@feathersjs/configuration": "^5.0.0-pre.31",
44+
"@feathersjs/errors": "^5.0.0-pre.31",
45+
"@feathersjs/express": "^5.0.0-pre.31",
46+
"@feathersjs/feathers": "^5.0.0-pre.31",
47+
"@feathersjs/socketio": "^5.0.0-pre.31",
48+
"@feathersjs/transport-commons": "^5.0.0-pre.31",
4949
"compression": "^1.7.4",
5050
"cors": "^2.8.5",
5151
"feathers-authentication-management": "^4.0.0",
52-
"feathers-hooks-common": "^6.1.5",
52+
"feathers-hooks-common": "^7.0.0-pre.1",
5353
"feathers-mailer": "^3.1.0",
5454
"feathers-sequelize": "^6.3.4",
5555
"helmet": "^6.0.0",

0 commit comments

Comments
 (0)