@buka/nestjs-kit 4.4.6 → 4.4.7
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- 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.4.7](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.6...v4.4.7) (2026-07-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 修复Slice未正确处理Cursor泛型的问题 ([85414ee](https://github.com/buka-ltd/npm.nestjs-kit/commit/85414eee102f309bdcc91325d98be5b9ff93bdda))
|
|
9
|
+
|
|
3
10
|
## [4.4.6](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.5...v4.4.6) (2026-06-30)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _$_nestjs_common0 from "@nestjs/common";
|
|
2
2
|
import { ArgumentMetadata, ArgumentsHost, DynamicModule, ExceptionFilter, HttpStatus, OnApplicationBootstrap, OnModuleDestroy, OnModuleInit, PipeTransform, Type, ValidationPipe, ValidationPipeOptions } from "@nestjs/common";
|
|
3
|
-
import { AnyEntity, Collection, Config, Cursor, DefineConfig, EmbeddedOptions, EntityManager, EntityName, EnumOptions, Hidden, HiddenProps, ManyToManyOptions, ManyToOneOptions, MikroORM, OneToManyOptions, OneToOneOptions, Opt, OptionalProps, Options, Primary, PrimaryKeyProp, PrimaryProperty, PropertyOptions, QueryOrderMap, Ref } from "@mikro-orm/core";
|
|
3
|
+
import { AnyEntity, Collection, Config, Cursor, DefineConfig, EmbeddedOptions, EntityManager, EntityName, EnumOptions, Hidden, HiddenProps, Loaded, ManyToManyOptions, ManyToOneOptions, MikroORM, OneToManyOptions, OneToOneOptions, Opt, OptionalProps, Options, Primary, PrimaryKeyProp, PrimaryProperty, PropertyOptions, QueryOrderMap, Ref } from "@mikro-orm/core";
|
|
4
4
|
import { ValidationOptions } from "class-validator";
|
|
5
5
|
import { ApiPropertyOptions, OpenAPIObject } from "@nestjs/swagger";
|
|
6
6
|
import { Keq, KeqMiddleware, KeqOperation, KeqPathParameterInit, KeqQueryInit, KeqRequest, RequestException } from "keq";
|
|
@@ -998,7 +998,7 @@ declare class Slice<T extends object> {
|
|
|
998
998
|
constructor(data: Array<T>, pagination: OffsetPagination | CursorPagination);
|
|
999
999
|
[Symbol.iterator](): Iterator<T>;
|
|
1000
1000
|
static fromOffset<T extends object>(data: Array<T>, total: number, parameters: IOffsetPageParameters): Slice<T>;
|
|
1001
|
-
static fromCursor<T extends object>(cursor: Cursor<T>): Slice<T
|
|
1001
|
+
static fromCursor<T extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never>(cursor: Cursor<T, Hint, Fields, Excludes>): Slice<Loaded<T, Hint, Fields, Excludes>>;
|
|
1002
1002
|
map<R extends object>(fn: (item: T, index: number) => R): Slice<R>;
|
|
1003
1003
|
}
|
|
1004
1004
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Class, JsonValue, ValueOf } from "type-fest";
|
|
|
4
4
|
import * as _$_nestjs_common0 from "@nestjs/common";
|
|
5
5
|
import { ArgumentMetadata, ArgumentsHost, DynamicModule, ExceptionFilter, HttpStatus, OnApplicationBootstrap, OnModuleDestroy, OnModuleInit, PipeTransform, Type, ValidationPipe, ValidationPipeOptions } from "@nestjs/common";
|
|
6
6
|
import { ValidationOptions } from "class-validator";
|
|
7
|
-
import { AnyEntity, Collection, Config, Cursor, DefineConfig, EmbeddedOptions, EntityManager, EntityName, EnumOptions, Hidden, HiddenProps, ManyToManyOptions, ManyToOneOptions, MikroORM, OneToManyOptions, OneToOneOptions, Opt, OptionalProps, Options, Primary, PrimaryKeyProp, PrimaryProperty, PropertyOptions, QueryOrderMap, Ref } from "@mikro-orm/core";
|
|
7
|
+
import { AnyEntity, Collection, Config, Cursor, DefineConfig, EmbeddedOptions, EntityManager, EntityName, EnumOptions, Hidden, HiddenProps, Loaded, ManyToManyOptions, ManyToOneOptions, MikroORM, OneToManyOptions, OneToOneOptions, Opt, OptionalProps, Options, Primary, PrimaryKeyProp, PrimaryProperty, PropertyOptions, QueryOrderMap, Ref } from "@mikro-orm/core";
|
|
8
8
|
import { KeqConsumer, KeqModuleOptions } from "@keq-request/nestjs";
|
|
9
9
|
import { Keq, KeqMiddleware, KeqOperation, KeqPathParameterInit, KeqQueryInit, KeqRequest, RequestException } from "keq";
|
|
10
10
|
import { Base32, ErrorCategory, ErrorCategory as ErrorCategory$1, ErrorCode, ErrorCode as ErrorCode$1, ErrorCodeOptions } from "@buka/error-codes";
|
|
@@ -998,7 +998,7 @@ declare class Slice<T extends object> {
|
|
|
998
998
|
constructor(data: Array<T>, pagination: OffsetPagination | CursorPagination);
|
|
999
999
|
[Symbol.iterator](): Iterator<T>;
|
|
1000
1000
|
static fromOffset<T extends object>(data: Array<T>, total: number, parameters: IOffsetPageParameters): Slice<T>;
|
|
1001
|
-
static fromCursor<T extends object>(cursor: Cursor<T>): Slice<T
|
|
1001
|
+
static fromCursor<T extends object, Hint extends string = never, Fields extends string = never, Excludes extends string = never>(cursor: Cursor<T, Hint, Fields, Excludes>): Slice<Loaded<T, Hint, Fields, Excludes>>;
|
|
1002
1002
|
map<R extends object>(fn: (item: T, index: number) => R): Slice<R>;
|
|
1003
1003
|
}
|
|
1004
1004
|
//#endregion
|