File tree Expand file tree Collapse file tree 5 files changed +1002
-327
lines changed
Expand file tree Collapse file tree 5 files changed +1002
-327
lines changed Original file line number Diff line number Diff line change 7979 "eslint" : " ^8.49.0" ,
8080 "happy-dom" : " ^12.0.1" ,
8181 "mkdist" : " ^1.3.0" ,
82- "nanoid" : " ^5 .0.1 " ,
82+ "nanoid" : " 4 .0.2 " ,
8383 "pinia" : " ^2.1.6" ,
8484 "prettier" : " ^3.0.3" ,
8585 "size-limit" : " ^9.0.0" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ import type { ModelFields } from '../../../../src/model/Model'
33import { CastAttribute } from '../../../../src/model/casts/CastAttribute'
44import type { NanoidOptions } from '../../../../src/model/decorators/Contracts'
55
6+ /**
7+ * Create a cast nanoid/async.
8+ * @deprecated will be removed in v2 because nanoid v5 dropped it
9+ */
610export class UidCast extends CastAttribute {
711 static parameters ?: NanoidOptions
812
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { UidCast } from '../casts/AsyncCast'
33import type { NanoidOptions } from '../../../../src/model/decorators/Contracts'
44
55/**
6- * Create a cast for an attribute property decorator.
6+ * Creates an uuid based on nanoid/async.
7+ * @deprecated will be removed in v2 because nanoid v5 dropped it
78 */
89export function Uid ( options ?: NanoidOptions ) : PropertyDecorator {
910 return ( target , propertyKey ) => {
You can’t perform that action at this time.
0 commit comments