@innoways/ajv 3.0.0
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.
- package/CHANGELOG.md +93 -0
- package/README.md +35 -0
- package/build-info/index.stats.html +2648 -0
- package/dist/cjs/index.js +939 -0
- package/dist/esm/index.js +925 -0
- package/package.json +45 -0
- package/rollup.config.js +13 -0
- package/tsconfig.dist.json +7 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Initial version
|
|
8
|
+
|
|
9
|
+
## 2.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- Initial changelog
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @jdfed/drip-form-plugin-keywords@2.0.0
|
|
19
|
+
- @jdfed/drip-form-plugin-formats@2.0.0
|
|
20
|
+
|
|
21
|
+
## 1.0.0
|
|
22
|
+
|
|
23
|
+
### Major Changes
|
|
24
|
+
|
|
25
|
+
- Initial changelog
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- @jdfed/drip-form-plugin-formats@1.0.0
|
|
31
|
+
- @jdfed/drip-form-plugin-keywords@1.0.0
|
|
32
|
+
|
|
33
|
+
All notable changes to this project will be documented in this file.
|
|
34
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
35
|
+
|
|
36
|
+
### [0.8.2](https://github.com/jdfed/drip-form/compare/v0.8.1...v0.8.2) (2022-07-15)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
39
|
+
|
|
40
|
+
## [0.8.0](https://github.com/jdfed/drip-form/compare/v0.7.0...v0.8.0) (2022-06-01)
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
- combine method supports configuring the configuration to transform fieldkeys ([f3fef68](https://github.com/jdfed/drip-form/commit/f3fef681cccc7f5b900e65fa796e995090d316b2))
|
|
45
|
+
|
|
46
|
+
## [0.7.0](https://github.com/jdfed/drip-form/compare/v0.6.0...v0.7.0) (2022-03-14)
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
- add ajvOptions prop to customize ajv configurationn ([#148](https://github.com/jdfed/drip-form/issues/148)) ([cfe27e9](https://github.com/jdfed/drip-form/commit/cfe27e9f9a1be5a183e4810200020caba77f7c3a))
|
|
51
|
+
- unitedSchema JSON add requiredMode configuration ([#150](https://github.com/jdfed/drip-form/issues/150)) ([7e717ef](https://github.com/jdfed/drip-form/commit/7e717ef9431228809fd5f2d3908a274f181225ec))
|
|
52
|
+
|
|
53
|
+
## [0.6.0](https://github.com/jdfed/drip-form/compare/v0.5.0...v0.6.0) (2022-01-24)
|
|
54
|
+
|
|
55
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
56
|
+
|
|
57
|
+
## [0.5.0](https://github.com/jdfed/drip-form/compare/v0.4.0...v0.5.0) (2022-01-13)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
60
|
+
|
|
61
|
+
## 0.4.0 (2022-01-11)
|
|
62
|
+
|
|
63
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
64
|
+
|
|
65
|
+
## 0.3.0 (2022-01-11)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
68
|
+
|
|
69
|
+
## 0.2.0 (2022-01-07)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @jdfed/ajv
|
|
74
|
+
|
|
75
|
+
## 0.1.0 (2021-11-24)
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- **generator:** 支持校验 ([93367c5](https://github.com/jdfed/drip-form/commit/93367c5d965007638b51653459f1faeff9d637c5))
|
|
80
|
+
- 核心拖拽能力直接操作 uischema 和 dataschema,不使用 recoil 维护 ([ec08bb2](https://github.com/jdfed/drip-form/commit/ec08bb22da89084b19d1e621c7a241c169abdb04))
|
|
81
|
+
- 添加右侧栏基础属性 ([a61fe23](https://github.com/jdfed/drip-form/commit/a61fe23a3b3a2b02ce5f46d6448a374cbabab723))
|
|
82
|
+
- 新增@drip/ajv,支持 node 端调用,保持校验格式一致 ([f5919b4](https://github.com/jdfed/drip-form/commit/f5919b47dfa55d39b4b31176b7cf788f9e63c523))
|
|
83
|
+
- 新增@drip/ajv,支持 node 端调用,保持校验格式一致 ([425b33f](https://github.com/jdfed/drip-form/commit/425b33f517460728919806e3da60fd0f5045ae14))
|
|
84
|
+
- container 外部封装高阶拖拽组件 ([45f8427](https://github.com/jdfed/drip-form/commit/45f842764601aaa44b267a39f3530827be11c0a3))
|
|
85
|
+
- generator 可视化拖拽区域进度 80% ([b999cfd](https://github.com/jdfed/drip-form/commit/b999cfde748d98ee6cac457636893a7a7f74ee02))
|
|
86
|
+
- generator 可视化拖拽区域进度 80% ([fa10a9d](https://github.com/jdfed/drip-form/commit/fa10a9dfc050b56b2e30b4169e3715912c7df0fa))
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
- **v1:** 修复满天星使用 v1 transformToObject 提示报错 ([3757b24](https://github.com/jdfed/drip-form/commit/3757b24d7214498777f89922a34ae6417e65877b))
|
|
91
|
+
- **v1:** 修复满天星使用 v1 transformToObject 提示报错 ([128ac9d](https://github.com/jdfed/drip-form/commit/128ac9d2078498bed152dfc6b9ff6e9b839670ba))
|
|
92
|
+
- 修复在 node 中使用 draft7 报错 id 已被注册的问题 ([5f94349](https://github.com/jdfed/drip-form/commit/5f94349d0d1e528c3d583895f19369a9810d75df))
|
|
93
|
+
- schema with key or id already exists ([508d9db](https://github.com/jdfed/drip-form/commit/508d9db0a558ac82b8211be56bb0cd3d78a3f6d6))
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @drip/ajv
|
|
2
|
+
|
|
3
|
+
Drip生态下的统一AJV校验包,支持node和浏览器环境。
|
|
4
|
+
|
|
5
|
+
## 可用方法
|
|
6
|
+
|
|
7
|
+
### registerAjv
|
|
8
|
+
注册ajv
|
|
9
|
+
|
|
10
|
+
### loadAjvPlugins
|
|
11
|
+
导入ajv自定义插件
|
|
12
|
+
> 目前官方已内置了两个通用包 @jdfed/drip-form-plugin-formats 和 @jdfed/drip-form-plugin-keywords
|
|
13
|
+
|
|
14
|
+
## 如何使用
|
|
15
|
+
|
|
16
|
+
### node
|
|
17
|
+
```
|
|
18
|
+
const dripAjv = require('@drip/ajv')
|
|
19
|
+
const ajv = dripAjv.registerAjv()
|
|
20
|
+
|
|
21
|
+
//加载外部ajv插件,第二个参数支持传入自定义的ajv插件包
|
|
22
|
+
loadAjvPlugins(ajv, [])
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### 浏览器
|
|
27
|
+
```
|
|
28
|
+
import dripAjv from '@drip/ajv'
|
|
29
|
+
const { registerAjv, loadAjvPlugins } = dripAjv
|
|
30
|
+
|
|
31
|
+
const ajv = dripAjv.registerAjv()
|
|
32
|
+
|
|
33
|
+
//加载外部ajv插件,第二个参数支持传入自定义的ajv插件包
|
|
34
|
+
loadAjvPlugins(ajv, [])
|
|
35
|
+
```
|