Skip to content

Commit

Permalink
fix: use @eggjs/ajv-keywords and @eggjs/ajv-formats (#204)
Browse files Browse the repository at this point in the history
-
eggjs/ajv-keywords@1ce38b6
-
eggjs/ajv-formats@8b82af1

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Chores**
- Updated the dependency for keyword validation in the plugin system to
improve stability and compatibility.
	- Added the `ajv` package as a new dev dependency in `package.json`.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
fengmk2 authored Apr 7, 2024
1 parent b550d59 commit 31b02a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"devDependencies": {
"@eggjs/tsconfig": "^1.0.0",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"ajv": "^8.12.0",
"eslint": "^8.0.0",
"eslint-config-egg": "^12.0.0",
"eslint-plugin-import": "^2.24.2",
Expand Down
4 changes: 2 additions & 2 deletions plugin/ajv/lib/Ajv.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ajv2019, { type Schema } from 'ajv/dist/2019';
import addFormats from 'ajv-formats';
import keyWords from 'ajv-keywords';
import addFormats from '@eggjs/ajv-formats';
import keyWords from '@eggjs/ajv-keywords';
import { type Ajv as IAjv, AjvInvalidParamError } from '@eggjs/tegg/ajv';
import { SingletonProto, AccessLevel, LifecycleInit } from '@eggjs/tegg';

Expand Down
4 changes: 2 additions & 2 deletions plugin/ajv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"@eggjs/tegg": "^3.36.0",
"@sinclair/typebox": "^0.32.20",
"ajv": "^8.12.0",
"ajv-formats": "^3.0.1",
"ajv-keywords": "^5.1.0"
"@eggjs/ajv-formats": "^3.0.1",
"@eggjs/ajv-keywords": "^5.1.0"
},
"devDependencies": {
"@eggjs/tegg-config": "^3.36.0",
Expand Down

0 comments on commit 31b02a0

Please sign in to comment.