v2.0.0-beta.4
版本发布时间: 2024-04-24 22:27:10
MichalLytek/type-graphql最新发布版本:v2.0.0-rc.2(2024-06-07 20:27:54)
Features
-
Breaking Change: expose shim as a package entry point
type-graphql/shim
(and/node_modules/type-graphql/build/typings/shim.ts
) -
Breaking Change: update
graphql-js
peer dependency to^16.8.1
-
Breaking Change: use
@graphql-yoga
instead ofgraphql-subscriptions
as the subscriptions engine -
Breaking Change: require providing
PubSub
implementation intobuildSchema
option when using@Subscription
-
Breaking Change: remove
@PubSub
in favor of directly importing createdPubSub
implementation -
Breaking Change: remove
Publisher
andPubSubEngine
types -
Breaking Change: rename interface
ResolverFilterData
intoSubscriptionHandlerData
andResolverTopicData
intoSubscribeResolverData
- support defining directives on
@Field
of@Args
- support defining directives on inline
@Arg
- allow passing custom validation function as
validateFn
option of@Arg
and@Args
decorators - add support for dynamic topic id function in
@Subscription
decorator option