@eggjs/ajv-plugin 4.0.0-beta.0 → 4.0.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
- # @eggjs/tegg-ajv-plugin
1
+ # @eggjs/ajv-plugin
2
2
 
3
3
  [![NPM version][npm-image]][npm-url]
4
4
  [![Known Vulnerabilities][snyk-image]][snyk-url]
5
5
  [![npm download][download-image]][download-url]
6
- [![Node.js Version](https://img.shields.io/node/v/@eggjs/tegg-ajv-plugin.svg?style=flat)](https://nodejs.org/en/download/)
6
+ [![Node.js Version](https://img.shields.io/node/v/@eggjs/ajv-plugin.svg?style=flat)](https://nodejs.org/en/download/)
7
7
 
8
- [npm-image]: https://img.shields.io/npm/v/@eggjs/tegg-ajv-plugin.svg?style=flat-square
9
- [npm-url]: https://npmjs.org/package/@eggjs/tegg-ajv-plugin
10
- [snyk-image]: https://snyk.io/test/npm/@eggjs/tegg-ajv-plugin/badge.svg?style=flat-square
11
- [snyk-url]: https://snyk.io/test/npm/@eggjs/tegg-ajv-plugin
12
- [download-image]: https://img.shields.io/npm/dm/@eggjs/tegg-ajv-plugin.svg?style=flat-square
13
- [download-url]: https://npmjs.org/package/@eggjs/tegg-ajv-plugin
8
+ [npm-image]: https://img.shields.io/npm/v/@eggjs/ajv-plugin.svg?style=flat-square
9
+ [npm-url]: https://npmjs.org/package/@eggjs/ajv-plugin
10
+ [snyk-image]: https://snyk.io/test/npm/@eggjs/ajv-plugin/badge.svg?style-square
11
+ [snyk-url]: https://snyk.io/test/npm/@eggjs/ajv-plugin
12
+ [download-image]: https://img.shields.io/npm/dm/@eggjs/ajv-plugin.svg?style-square
13
+ [download-url]: https://npmjs.org/package/@eggjs/ajv-plugin
14
14
 
15
15
  参考 [@eggjs/typebox-validate](https://github.com/eggjs/egg/tree/next/plugins/typebox-validate) 的最佳实践,结合 ajv + typebox,只需要定义一次参数类型和规则,就能同时拥有参数校验和类型定义(完整的 ts 类型提示)。
16
16
 
@@ -24,7 +24,7 @@ npm i --save @eggjs/tegg
24
24
  # tegg 插件
25
25
  npm i --save @eggjs/tegg-plugin
26
26
  # tegg ajv 插件
27
- npm i --save @eggjs/tegg-ajv-plugin
27
+ npm i --save @eggjs/ajv-plugin
28
28
  ```
29
29
 
30
30
  ### Prepare
@@ -46,7 +46,7 @@ exports.tegg = {
46
46
  };
47
47
 
48
48
  exports.teggAjv = {
49
- package: '@eggjs/tegg-ajv-plugin',
49
+ package: '@eggjs/ajv-plugin',
50
50
  enable: true,
51
51
  };
52
52
  ```
@@ -59,7 +59,7 @@ exports.teggAjv = {
59
59
  # tegg 注解
60
60
  npm i --save @eggjs/tegg
61
61
  # tegg ajv 插件
62
- npm i --save @eggjs/tegg-ajv-plugin
62
+ npm i --save @eggjs/ajv-plugin
63
63
  ```
64
64
 
65
65
  ### Prepare
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "eggModule": {
11
11
  "name": "teggAjv"
12
12
  },
13
- "version": "4.0.0-beta.0",
13
+ "version": "4.0.0-beta.31",
14
14
  "description": "ajv plugin for egg and tegg",
15
15
  "keywords": [
16
16
  "egg",
@@ -46,24 +46,24 @@
46
46
  "@eggjs/ajv-formats": "^3.0.1",
47
47
  "@eggjs/ajv-keywords": "^5.1.0",
48
48
  "ajv": "^8.8.2",
49
- "@eggjs/ajv-decorator": "4.0.0-beta.29",
50
- "@eggjs/core-decorator": "4.0.0-beta.29",
51
- "@eggjs/lifecycle": "4.0.0-beta.29"
49
+ "@eggjs/core-decorator": "4.0.0-beta.31",
50
+ "@eggjs/lifecycle": "4.0.0-beta.31",
51
+ "@eggjs/ajv-decorator": "4.0.0-beta.31"
52
52
  },
53
53
  "peerDependencies": {
54
- "egg": "4.1.0-beta.29"
54
+ "egg": "4.1.0-beta.31"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^24.9.1",
58
- "tsdown": "0.15.9",
58
+ "tsdown": "0.15.10",
59
59
  "typescript": "^5.9.3",
60
60
  "unplugin-unused": "^0.5.4",
61
- "@eggjs/tegg": "4.0.0-beta.29",
62
- "@eggjs/tegg-config": "4.0.0-beta.29",
63
- "@eggjs/tegg-controller-plugin": "4.0.0-beta.29",
64
- "@eggjs/mock": "7.0.0-beta.29",
65
- "@eggjs/tegg-plugin": "4.0.0-beta.29",
66
- "egg": "4.1.0-beta.29"
61
+ "@eggjs/mock": "7.0.0-beta.31",
62
+ "@eggjs/controller-plugin": "4.0.0-beta.31",
63
+ "@eggjs/tegg-config": "4.0.0-beta.31",
64
+ "@eggjs/tegg": "4.0.0-beta.31",
65
+ "@eggjs/tegg-plugin": "4.0.0-beta.31",
66
+ "egg": "4.1.0-beta.31"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"