Skip to content

Commit 32dc833

Browse files
chore: update remaining deps except typescript (#2396)
* chore: update all deps except typescript * chore: bump config to 0.5.0
1 parent f4a4c8e commit 32dc833

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

lib/compile/validate/dataType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export function getSchemaTypes(schema: AnySchemaObject): JSONType[] {
3030
return types
3131
}
3232

33+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
3334
export function getJSONTypes(ts: unknown | unknown[]): JSONType[] {
3435
const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : []
3536
if (types.every(isJSONType)) return types

lib/core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,17 @@ export default class Ajv {
343343
validate<T>(schema: JTDSchemaType<T>, data: unknown): data is T
344344
// This overload is only intended for typescript inference, the first
345345
// argument prevents manual type annotation from matching this overload
346+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
346347
validate<N extends never, T extends SomeJTDSchemaType>(
347348
schema: T,
348349
data: unknown
349350
): data is JTDDataType<T>
351+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
350352
validate<T>(schema: AsyncSchema, data: unknown | T): Promise<T>
351353
validate<T>(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise<T>
352354
validate<T>(
353355
schemaKeyRef: AnySchema | string, // key, ref or schema object
356+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
354357
data: unknown | T // to be validated
355358
): boolean | Promise<T> {
356359
let v: AnyValidateFunction | undefined
@@ -374,6 +377,7 @@ export default class Ajv {
374377
compile<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): ValidateFunction<T>
375378
// This overload is only intended for typescript inference, the first
376379
// argument prevents manual type annotation from matching this overload
380+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
377381
compile<N extends never, T extends SomeJTDSchemaType>(
378382
schema: T,
379383
_meta?: boolean

lib/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export interface DataValidationCxt<T extends string | number = string | number>
4848
}
4949

5050
export interface ValidateFunction<T = unknown> {
51+
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
5152
(this: Ajv | any, data: any, dataCxt?: DataValidationCxt): data is T
5253
errors?: null | ErrorObject[]
5354
evaluated?: Evaluated

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,25 @@
6464
"uri-js": "^4.4.1"
6565
},
6666
"devDependencies": {
67-
"@ajv-validator/config": "^0.4.0",
67+
"@ajv-validator/config": "^0.5.0",
6868
"@rollup/plugin-commonjs": "^25.0.7",
6969
"@rollup/plugin-json": "^6.1.0",
7070
"@rollup/plugin-node-resolve": "^15.2.3",
7171
"@rollup/plugin-typescript": "^11.1.6",
7272
"@types/chai": "^4.3.11",
7373
"@types/mocha": "^10.0.6",
74-
"@types/node": "^20.11.19",
74+
"@types/node": "^20.11.30",
7575
"@types/require-from-string": "^1.2.3",
76-
"@typescript-eslint/eslint-plugin": "^3.10.1",
77-
"@typescript-eslint/parser": "^3.10.1",
76+
"@typescript-eslint/eslint-plugin": "^7.3.1",
77+
"@typescript-eslint/parser": "^7.3.1",
7878
"ajv-formats": "^3.0.0-rc.0",
7979
"browserify": "^17.0.0",
8080
"chai": "^4.4.1",
8181
"cross-env": "^7.0.3",
8282
"dayjs": "^1.11.10",
8383
"dayjs-plugin-utc": "^0.1.2",
84-
"eslint": "^7.32.0",
85-
"eslint-config-prettier": "^7.2.0",
84+
"eslint": "^8.57.0",
85+
"eslint-config-prettier": "^9.1.0",
8686
"fast-uri": "^2.3.0",
8787
"glob": "^10.3.10",
8888
"husky": "^9.0.11",

0 commit comments

Comments
 (0)