@buka/nestjs-kit 4.3.0 → 4.3.1
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 +7 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.3.1](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.3.0...v4.3.1) (2026-05-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 因 Transient 装饰器未注册 Proptery 导致无法执行正确的转换 ([6a23663](https://github.com/buka-ltd/npm.nestjs-kit/commit/6a2366359bf62164e67909b2387672f8b7282cd9))
|
|
9
|
+
|
|
3
10
|
## [4.3.0](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.2.0...v4.3.0) (2026-05-24)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1728,6 +1728,7 @@ interface TransientOptions {
|
|
|
1728
1728
|
* 瞬态属性装饰器,标记属性不持久化到数据库。
|
|
1729
1729
|
*
|
|
1730
1730
|
* 等效于 MikroORM `@Property({ persist: false })`,适用于仅在运行时使用的计算属性。
|
|
1731
|
+
* 同时向 ModelRegister 注册,以便类型系统正确识别该属性。
|
|
1731
1732
|
*
|
|
1732
1733
|
* @param options - 必须通过 `type` 指定属性类型(MikroORM v7 要求)
|
|
1733
1734
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1728,6 +1728,7 @@ interface TransientOptions {
|
|
|
1728
1728
|
* 瞬态属性装饰器,标记属性不持久化到数据库。
|
|
1729
1729
|
*
|
|
1730
1730
|
* 等效于 MikroORM `@Property({ persist: false })`,适用于仅在运行时使用的计算属性。
|
|
1731
|
+
* 同时向 ModelRegister 注册,以便类型系统正确识别该属性。
|
|
1731
1732
|
*
|
|
1732
1733
|
* @param options - 必须通过 `type` 指定属性类型(MikroORM v7 要求)
|
|
1733
1734
|
*
|
package/dist/index.js
CHANGED
|
@@ -2636,6 +2636,7 @@ function Jsonb(options) {
|
|
|
2636
2636
|
* 瞬态属性装饰器,标记属性不持久化到数据库。
|
|
2637
2637
|
*
|
|
2638
2638
|
* 等效于 MikroORM `@Property({ persist: false })`,适用于仅在运行时使用的计算属性。
|
|
2639
|
+
* 同时向 ModelRegister 注册,以便类型系统正确识别该属性。
|
|
2639
2640
|
*
|
|
2640
2641
|
* @param options - 必须通过 `type` 指定属性类型(MikroORM v7 要求)
|
|
2641
2642
|
*
|
|
@@ -2649,10 +2650,17 @@ function Jsonb(options) {
|
|
|
2649
2650
|
* ```
|
|
2650
2651
|
*/
|
|
2651
2652
|
function Transient(options) {
|
|
2652
|
-
return (
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2653
|
+
return (target, propertyName) => {
|
|
2654
|
+
ModelRegister.addProperty(target.constructor, propertyName, {
|
|
2655
|
+
kind: "scalar",
|
|
2656
|
+
optional: false,
|
|
2657
|
+
lazy: false
|
|
2658
|
+
});
|
|
2659
|
+
return (0, _mikro_orm_decorators_legacy.Property)({
|
|
2660
|
+
persist: false,
|
|
2661
|
+
type: options.type
|
|
2662
|
+
})(target, propertyName);
|
|
2663
|
+
};
|
|
2656
2664
|
}
|
|
2657
2665
|
//#endregion
|
|
2658
2666
|
//#region src/modules/mikro-orm/decorators/columns/embedded.column.ts
|