@aomex/core
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -6,2 +6,24 @@ # Change Log | ||
# 3.0.0 (2024-08-10) | ||
### Bug Fixes | ||
* **core:** rule.allOf返回了联合类型 ([fff9edf](https://github.com/aomex/aomex/commit/fff9edf11d3da7b60b286a194e86f7ffb67c39aa)) | ||
* **core:** rule.oneOf验证器匹配超过一个规则未报错 ([a0e2fe1](https://github.com/aomex/aomex/commit/a0e2fe1e9837464ba3e7042ff12b001c2c064486)) | ||
### Features | ||
* **core:** uuid增加6/7/8三个版本 ([d37c2b0](https://github.com/aomex/aomex/commit/d37c2b09744a747c692b8c48dd2968e1315cbfb4)) | ||
* **core:** 删除中间件链条概念 ([48d50cc](https://github.com/aomex/aomex/commit/48d50cc0dc892859b6467344f03a38c111325fc0)) | ||
* **core:** 增加allOf验证器 ([ff9df59](https://github.com/aomex/aomex/commit/ff9df5986fc13e975abc8b0a79f3b7cc61216e3c)) | ||
* **core:** 增加allOf验证器 ([d44538d](https://github.com/aomex/aomex/commit/d44538dec8db6f7fc1563e8a1f1eca417d46b50d)) | ||
* **core:** 数字验证器增加precision方法 ([946a52d](https://github.com/aomex/aomex/commit/946a52db8514ca1e0e899ec6433075ccab594c0b)) | ||
* 初始化 ([a370720](https://github.com/aomex/aomex/commit/a37072001cf19f09687623add2442236ab19d7ed)) | ||
# [2.2.0](https://github.com/aomex/aomex/compare/v2.1.0...v2.2.0) (2024-08-05) | ||
@@ -8,0 +30,0 @@ |
@@ -903,3 +903,3 @@ import { OpenAPIV3 } from 'openapi-types'; | ||
declare class UuidValidator<T = string> extends BaseStringValidator<T> { | ||
static versions: readonly ["v1", "v2", "v3", "v4", "v5"]; | ||
static versions: readonly ["v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8"]; | ||
static patterns: { | ||
@@ -1031,2 +1031,3 @@ [key in UuidValidator.Version | 'all']: RegExp; | ||
*/ | ||
uuid(): UuidValidator<string>; | ||
uuid(version: UuidValidator.Version): UuidValidator<string>; | ||
@@ -1033,0 +1034,0 @@ uuid(versions: [UuidValidator.Version, ...UuidValidator.Version[]]): UuidValidator<string>; |
@@ -1400,3 +1400,3 @@ // src/i18n/i18n-message.ts | ||
var UuidValidator = class _UuidValidator extends BaseStringValidator { | ||
static versions = ["v1", "v2", "v3", "v4", "v5"]; | ||
static versions = ["v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8"]; | ||
static patterns = { | ||
@@ -1408,2 +1408,5 @@ v1: createRegexp(1), | ||
v5: createRegexp(5), | ||
v6: createRegexp(6), | ||
v7: createRegexp(7), | ||
v8: createRegexp(8), | ||
all: createRegexp("all") | ||
@@ -1583,3 +1586,3 @@ }; | ||
uuid(versions) { | ||
return new UuidValidator(toArray(versions)); | ||
return new UuidValidator(toArray(versions || UuidValidator.versions)); | ||
} | ||
@@ -1586,0 +1589,0 @@ }; |
{ | ||
"name": "@aomex/core", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"description": "aomex核心库", | ||
@@ -38,5 +38,5 @@ "type": "module", | ||
"openapi-types": "^12.1.3", | ||
"@aomex/internal-tools": "^2.2.0" | ||
"@aomex/internal-tools": "^3.0.0" | ||
}, | ||
"scripts": {} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
215338
2684
+ Added@aomex/internal-tools@3.12.0(transitive)
+ Added@i18nx/core@0.2.1(transitive)
+ Added@i18nx/node@0.2.1(transitive)
+ Addedtopic@3.0.2(transitive)
- Removed@aomex/internal-tools@2.2.0(transitive)
Updated@aomex/internal-tools@^3.0.0