Skip to content

Commit d6a94d2

Browse files
authored
chore(dependencies): Update all dependencies (#3227)
1 parent 8f29a02 commit d6a94d2

File tree

42 files changed

+4059
-3707
lines changed

Some content is hidden

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

42 files changed

+4059
-3707
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [14.x, 18.x]
11+
node-version: [16.x, 20.x]
1212

1313
services:
1414
postgres:

package-lock.json

Lines changed: 3841 additions & 3528 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
"test": "npm run lint && npm run compile && c8 lerna run test --ignore @feathersjs/tests"
4343
},
4444
"devDependencies": {
45-
"@typescript-eslint/eslint-plugin": "^5.59.11",
46-
"@typescript-eslint/parser": "^5.59.11",
45+
"@typescript-eslint/eslint-plugin": "^6.0.0",
46+
"@typescript-eslint/parser": "^6.0.0",
4747
"c8": "^8.0.0",
48-
"eslint": "^8.42.0",
48+
"eslint": "^8.44.0",
4949
"eslint-config-prettier": "^8.8.0",
50-
"eslint-plugin-prettier": "^4.2.1",
51-
"lerna": "^7.0.1",
52-
"npm-check-updates": "^16.10.12",
53-
"prettier": "^2.8.8",
54-
"typescript": "^5.1.3"
50+
"eslint-plugin-prettier": "^5.0.0",
51+
"lerna": "^7.1.3",
52+
"npm-check-updates": "^16.10.15",
53+
"prettier": "^3.0.0",
54+
"typescript": "^5.1.6"
5555
}
5656
}

packages/adapter-commons/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
"devDependencies": {
5858
"@types/mocha": "^10.0.1",
5959
"@types/mongodb": "^4.0.6",
60-
"@types/node": "^20.3.1",
60+
"@types/node": "^20.4.2",
6161
"mocha": "^10.2.0",
62-
"mongodb": "^5.6.0",
62+
"mongodb": "^5.7.0",
6363
"shx": "^0.3.4",
6464
"ts-node": "^10.9.1",
65-
"typescript": "^5.1.3"
65+
"typescript": "^5.1.6"
6666
},
6767
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
6868
}

packages/adapter-commons/src/query.ts

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,23 @@ const validateQueryProperty = (query: any, operators: string[] = []): Query => {
3232
const getFilters = (query: Query, settings: FilterQueryOptions) => {
3333
const filterNames = Object.keys(settings.filters)
3434

35-
return filterNames.reduce((current, key) => {
36-
const queryValue = query[key]
37-
const filter = settings.filters[key]
35+
return filterNames.reduce(
36+
(current, key) => {
37+
const queryValue = query[key]
38+
const filter = settings.filters[key]
3839

39-
if (filter) {
40-
const value = typeof filter === 'function' ? filter(queryValue, settings) : queryValue
40+
if (filter) {
41+
const value = typeof filter === 'function' ? filter(queryValue, settings) : queryValue
4142

42-
if (value !== undefined) {
43-
current[key] = value
43+
if (value !== undefined) {
44+
current[key] = value
45+
}
4446
}
45-
}
4647

47-
return current
48-
}, {} as { [key: string]: any })
48+
return current
49+
},
50+
{} as { [key: string]: any }
51+
)
4952
}
5053

5154
const getQuery = (query: Query, settings: FilterQueryOptions) => {
@@ -93,11 +96,14 @@ export const FILTERS: FilterSettings = {
9396
return sort
9497
}
9598

96-
return Object.keys(sort).reduce((result, key) => {
97-
result[key] = typeof sort[key] === 'object' ? sort[key] : parse(sort[key])
99+
return Object.keys(sort).reduce(
100+
(result, key) => {
101+
result[key] = typeof sort[key] === 'object' ? sort[key] : parse(sort[key])
98102

99-
return result
100-
}, {} as { [key: string]: number })
103+
return result
104+
},
105+
{} as { [key: string]: number }
106+
)
101107
},
102108
$limit: (_limit: any, { paginate }: FilterQueryOptions) => getLimit(_limit, paginate),
103109
$select: (select: any) => {

packages/adapter-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
},
5252
"devDependencies": {
5353
"@types/mocha": "^10.0.1",
54-
"@types/node": "^20.3.1",
54+
"@types/node": "^20.4.2",
5555
"mocha": "^10.2.0",
5656
"shx": "^0.3.4",
5757
"ts-node": "^10.9.1",
58-
"typescript": "^5.1.3"
58+
"typescript": "^5.1.6"
5959
},
6060
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
6161
}

packages/authentication-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666
"@feathersjs/socketio": "^5.0.6",
6767
"@feathersjs/socketio-client": "^5.0.6",
6868
"@types/mocha": "^10.0.1",
69-
"@types/node": "^20.3.1",
69+
"@types/node": "^20.4.2",
7070
"axios": "^1.4.0",
7171
"mocha": "^10.2.0",
7272
"shx": "^0.3.4",
7373
"ts-node": "^10.9.1",
74-
"typescript": "^5.1.3"
74+
"typescript": "^5.1.6"
7575
},
7676
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
7777
}

packages/authentication-local/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
"@types/bcryptjs": "^2.4.2",
6767
"@types/lodash": "^4.14.195",
6868
"@types/mocha": "^10.0.1",
69-
"@types/node": "^20.3.1",
69+
"@types/node": "^20.4.2",
7070
"mocha": "^10.2.0",
7171
"shx": "^0.3.4",
7272
"ts-node": "^10.9.1",
73-
"typescript": "^5.1.3"
73+
"typescript": "^5.1.6"
7474
},
7575
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
7676
}

packages/authentication-oauth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@
7474
"@types/koa-session": "^6.4.1",
7575
"@types/lodash": "^4.14.195",
7676
"@types/mocha": "^10.0.1",
77-
"@types/node": "^20.3.1",
77+
"@types/node": "^20.4.2",
7878
"@types/tough-cookie": "^4.0.2",
7979
"axios": "^1.4.0",
8080
"mocha": "^10.2.0",
8181
"shx": "^0.3.4",
8282
"tough-cookie": "^4.1.3",
8383
"ts-node": "^10.9.1",
84-
"typescript": "^5.1.3"
84+
"typescript": "^5.1.6"
8585
},
8686
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
8787
}

packages/authentication-oauth/src/service.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export type OAuthParams = Omit<Params, 'route'> & {
2525
}
2626

2727
export class OAuthError extends FeathersError {
28-
constructor(message: string, data: any, public location: string) {
28+
constructor(
29+
message: string,
30+
data: any,
31+
public location: string
32+
) {
2933
super(message, 'NotAuthenticated', 401, 'not-authenticated', data)
3034
}
3135
}
@@ -60,7 +64,10 @@ export const redirectHook = () => async (context: HookContext, next: NextFunctio
6064
export class OAuthService {
6165
grant: any
6266

63-
constructor(public service: AuthenticationService, public settings: OauthSetupSettings) {
67+
constructor(
68+
public service: AuthenticationService,
69+
public settings: OauthSetupSettings
70+
) {
6471
const config = getGrantConfig(service)
6572

6673
this.grant = Grant({ config })

packages/authentication/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@feathersjs/schema": "^5.0.6",
6161
"@feathersjs/transport-commons": "^5.0.6",
6262
"@types/jsonwebtoken": "^9.0.2",
63-
"jsonwebtoken": "^9.0.0",
63+
"jsonwebtoken": "^9.0.1",
6464
"lodash": "^4.17.21",
6565
"long-timeout": "^0.1.1",
6666
"uuid": "^9.0.0"
@@ -69,12 +69,12 @@
6969
"@feathersjs/memory": "^5.0.6",
7070
"@types/lodash": "^4.14.195",
7171
"@types/mocha": "^10.0.1",
72-
"@types/node": "^20.3.1",
72+
"@types/node": "^20.4.2",
7373
"@types/uuid": "^9.0.2",
7474
"mocha": "^10.2.0",
7575
"shx": "^0.3.4",
7676
"ts-node": "^10.9.1",
77-
"typescript": "^5.1.3"
77+
"typescript": "^5.1.6"
7878
},
7979
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
8080
}

packages/authentication/src/service.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ import merge from 'lodash/merge'
22
import { NotAuthenticated } from '@feathersjs/errors'
33
import '@feathersjs/transport-commons'
44
import { createDebug } from '@feathersjs/commons'
5-
import { ServiceMethods, ServiceAddons } from '@feathersjs/feathers'
5+
import { ServiceMethods } from '@feathersjs/feathers'
66
import { resolveDispatch } from '@feathersjs/schema'
77
import jsonwebtoken from 'jsonwebtoken'
88
import { hooks } from '@feathersjs/hooks'
99

1010
import { AuthenticationBase, AuthenticationResult, AuthenticationRequest, AuthenticationParams } from './core'
1111
import { connection, event } from './hooks'
12+
import { RealTimeConnection } from '@feathersjs/feathers'
1213

1314
const debug = createDebug('@feathersjs/authentication/service')
1415

@@ -31,9 +32,6 @@ declare module '@feathersjs/feathers/lib/declarations' {
3132
}
3233
}
3334

34-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
35-
export interface AuthenticationService extends ServiceAddons<AuthenticationResult, AuthenticationResult> {}
36-
3735
export class AuthenticationService
3836
extends AuthenticationBase
3937
implements Partial<ServiceMethods<AuthenticationResult, AuthenticationRequest, AuthenticationParams>>
@@ -46,7 +44,7 @@ export class AuthenticationService
4644
remove: [resolveDispatch(), event('logout'), connection('logout')]
4745
})
4846

49-
this.app.on('disconnect', async (connection) => {
47+
this.app.on('disconnect', async (connection: RealTimeConnection) => {
5048
await this.handleConnection('disconnect', connection)
5149
})
5250

@@ -196,8 +194,10 @@ export class AuthenticationService
196194
}
197195
}
198196

199-
if (typeof this.publish === 'function') {
200-
this.publish(() => null)
197+
const publishable = this as any
198+
199+
if (typeof publishable.publish === 'function') {
200+
publishable.publish((): any => null)
201201
}
202202
}
203203
}

packages/cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"dependencies": {
5555
"@feathersjs/generators": "^5.0.6",
5656
"chalk": "^4.0.1",
57-
"commander": "^10.0.1"
57+
"commander": "^11.0.0"
5858
},
5959
"devDependencies": {
6060
"@feathersjs/adapter-commons": "^5.0.6",
@@ -75,14 +75,14 @@
7575
"@feathersjs/transport-commons": "^5.0.6",
7676
"@feathersjs/typebox": "^5.0.6",
7777
"@types/mocha": "^10.0.1",
78-
"@types/node": "^20.3.1",
78+
"@types/node": "^20.4.2",
7979
"@types/prettier": "^2.7.3",
8080
"axios": "^1.4.0",
8181
"mocha": "^10.2.0",
8282
"shx": "^0.3.4",
8383
"ts-node": "^10.9.1",
84-
"type-fest": "^3.12.0",
85-
"typescript": "^5.1.3"
84+
"type-fest": "^3.13.0",
85+
"typescript": "^5.1.6"
8686
},
8787
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
8888
}

packages/client/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@
5656
"@feathersjs/socketio-client": "^5.0.6"
5757
},
5858
"devDependencies": {
59-
"@babel/core": "^7.22.5",
60-
"@babel/preset-env": "^7.22.5",
59+
"@babel/core": "^7.22.9",
60+
"@babel/preset-env": "^7.22.9",
6161
"@feathersjs/express": "^5.0.6",
6262
"@feathersjs/memory": "^5.0.6",
6363
"@feathersjs/socketio": "^5.0.6",
6464
"@feathersjs/tests": "^5.0.6",
65-
"babel-loader": "^9.1.2",
65+
"babel-loader": "^9.1.3",
6666
"mocha": "^10.2.0",
6767
"mocha-puppeteer": "^0.14.0",
6868
"node-fetch": "^2.6.1",
6969
"shx": "^0.3.4",
70-
"socket.io-client": "^4.6.2",
70+
"socket.io-client": "^4.7.1",
7171
"superagent": "^8.0.9",
72-
"ts-loader": "^9.4.3",
73-
"typescript": "^5.1.3",
74-
"webpack": "^5.87.0",
72+
"ts-loader": "^9.4.4",
73+
"typescript": "^5.1.6",
74+
"webpack": "^5.88.1",
7575
"webpack-cli": "^5.1.4",
7676
"webpack-merge": "^5.9.0"
7777
},

packages/commons/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
},
5454
"devDependencies": {
5555
"@types/mocha": "^10.0.1",
56-
"@types/node": "^20.3.1",
56+
"@types/node": "^20.4.2",
5757
"mocha": "^10.2.0",
5858
"shx": "^0.3.4",
5959
"ts-node": "^10.9.1",
60-
"typescript": "^5.1.3"
60+
"typescript": "^5.1.6"
6161
},
6262
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
6363
}

packages/configuration/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
},
6767
"devDependencies": {
6868
"@types/mocha": "^10.0.1",
69-
"@types/node": "^20.3.1",
69+
"@types/node": "^20.4.2",
7070
"mocha": "^10.2.0",
7171
"shx": "^0.3.4",
7272
"ts-node": "^10.9.1",
73-
"typescript": "^5.1.3"
73+
"typescript": "^5.1.6"
7474
},
7575
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
7676
}

packages/errors/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
"devDependencies": {
5252
"@feathersjs/feathers": "^5.0.6",
5353
"@types/mocha": "^10.0.1",
54-
"@types/node": "^20.3.1",
54+
"@types/node": "^20.4.2",
5555
"mocha": "^10.2.0",
5656
"shx": "^0.3.4",
5757
"ts-node": "^10.9.1",
58-
"typescript": "^5.1.3"
58+
"typescript": "^5.1.6"
5959
},
6060
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
6161
}

packages/express/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969
"@feathersjs/tests": "^5.0.6",
7070
"@types/lodash": "^4.14.195",
7171
"@types/mocha": "^10.0.1",
72-
"@types/node": "^20.3.1",
72+
"@types/node": "^20.4.2",
7373
"axios": "^1.4.0",
7474
"lodash": "^4.17.21",
7575
"mocha": "^10.2.0",
7676
"shx": "^0.3.4",
7777
"ts-node": "^10.9.1",
78-
"typescript": "^5.1.3"
78+
"typescript": "^5.1.6"
7979
},
8080
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
8181
}

packages/feathers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
},
6565
"devDependencies": {
6666
"@types/mocha": "^10.0.1",
67-
"@types/node": "^20.3.1",
67+
"@types/node": "^20.4.2",
6868
"mocha": "^10.2.0",
6969
"shx": "^0.3.4",
7070
"ts-node": "^10.9.1",
71-
"typescript": "^5.1.3"
71+
"typescript": "^5.1.6"
7272
},
7373
"gitHead": "90caf635aec850550b9d37bea2762af959d9e8d5"
7474
}

packages/feathers/src/hooks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ export function createContext(service: Service, method: string, data: HookContex
148148
}
149149

150150
export class FeathersHookManager<A> extends HookManager {
151-
constructor(public app: A, public method: string) {
151+
constructor(
152+
public app: A,
153+
public method: string
154+
) {
152155
super()
153156
this._middleware = []
154157
}

0 commit comments

Comments
 (0)