Skip to content

v8.0.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@Romakita Romakita released this 30 Oct 18:20
· 29 commits to rc since this release

8.0.0-rc.1 (2024-10-30)

Bug Fixes

  • adapters: update lowdb to v7 (163e68e)
  • common: re-export schema decorators from @tsed/common to maintain compatibility with v7 (65507cb)
  • common: remove export schema decorator from @tsed/common (3e07044)
  • common: remove platform-log-middleware import in source code (6372319)
  • common: remove PlatformBuilder.addComponents() method which isn't used method (5cd2e3c)
  • core: remove Configurable, Deprecated,Enumerable, ReadOnly, Writable decorators (528c710)
  • di: fix DI.invoke when inject() is used on nested class (82019db)
  • di: prevent null instance exception on DITest (5ccaf57)
  • di: remove unused DIContext.runInContext and emit methods (19ee58b)
  • fix minors typings issue (d6f9fc7)
  • formio: update formio to v4.2.5 (e84876f)
  • formio: update mongoose to v8.7.0 (2a419da)
  • merge pull request #2859 from tsedio/fix-remove-reexport-symbol-common (217e6a5)
  • oidc-provider: remove OIDC_PROVIDER_NODE_MODULE symbol (35e1b08)
  • platform-cache: remove getInterceptorOptions which is directly available from @tsed/di (956b34b)
  • platform-koa: update @koa/router to v13.1.0 (44e9c1b)
  • platform-log-middleware: deprecate platform-log-middleware module (c74e252)
  • platform-serverless: remove aws-lambda dependencies (f689407)
  • prisma: fix circular reference when column is optional (56e0b31), closes #2863
  • prisma: remove commonJs support (ebe57c5)
  • prisma: replace imports to fix esm issue (4d12350)
  • prisma: update prisma to v5 (836090e)
  • prisma: update prisma to v5 (c89aa16)
  • remove @tsed/testing-mongoose (6111459)
  • remove @tsed/typeorm package (c0040c8)
  • remove @tsed/vite-ssr-plugin (f3414c0)
  • remove dirname in source files (4e4f4e2)
  • remove nyc dependencies (99ec03a)
  • typegraphql: fix typings since injector isn't compatible with the type signature of container typegraphql definition (b905d78)
  • update @swc/core (906c6f1)
  • update minor dependencies (491fc5c)
  • update some dependencies (5b3d2e4)
  • update vitepress theme dependency (7e54413)

chore

  • remove CJS Support and bump AJV dependency (941e734)

Code Refactoring

  • common: remove deprecated PlatformLoggerSettings interface (59a680b)
  • mongoose: remove deprecated MongooseModelOptions.discriminatorValue (0e9a3b1)
  • platform-cache: remove deprecated PlatformCacheLegacyStoreFactory interface (c8bf779)
  • platform-router: remove deprecated OperationMethods constant (c859cab)
  • schema: remove deprecated BullMQConfig.defaultJobOptions (8f52777)
  • schema: remove Route alias decorator (9c599b1)

Features

  • adapters: add adapter() function to inject configured adapter (9a82771)
  • add @tsed/platform-log-request (9dc4abb)
  • apollo: migrate package on Apollo 4 (4e84844)
  • core: add AbstractType interface (3919da3)
  • di: add $injector/injector to create on the fly or get the injector every where (1d10ac5)
  • di: add configuration fn api (6c43b1a)
  • di: add events function to emit event (bea2874)
  • di: add inject(), constant(), value() function to inject service or value in injectable property (343713d)
  • di: add transform parameter (InjectContext) to inject value in property from $ctx (596b261)
  • di: export injectable,controller,interceptor functions (ef18457)
  • mikro-orm: add entityManager() and orm() functions to inject respectively ORM and EM instance (ba68086)
  • platform-http: the PlatformTest is now exportable from @tsed/platform-http/testing (4fcf708)
  • schema: add sortPaths option to sort swagger paths by alphabetical order (2e73e8c)
  • testcontainers-mongo: use mongodb to clean collection instead of @tsed/mongoose (2a390dd)
  • typegraphql: update code to use typegraphql 2.0.0 (89e0015)
  • typegraphql: update code to use typegraphql 2.0.0 (af6f2fe)

BREAKING CHANGES

  • di: DIContext.runInContext and DIContext.emit methods are removed. Use runInContext and $emit function instead.
  • core: Configurable, Deprecated,Enumerable, ReadOnly, Writable decorators are removed from @tsed/core
  • di: registerValue and registerController are removed in favor of injectable/controller functions
  • oidc-provider: remove OIDC_PROVIDER_NODE_MODULE symbol. Use import Provider from "oidc-provider" instead
  • prisma: prisma v4 client isn't supported anymore
  • common: AcceptMime, All, Delete, Get, Head, Location, Options, Patch, Post, Put, Redirect, View must be imported from @tsed/schema.
  • common: you have to import explicitly @tsed/platform-log-middleware as middleware in the server configuration.
  • CJS isn't supported anymore. You have to migrate your project on ESM syntax.
  • typegraphql: @tsed/typegraphql use new @tsed/apollo package and support Apollo v4
  • typegraphql: @tsed/typegraphql use new @tsed/apollo package and support Apollo v4
  • apollo: all implementation and configuration of @tsed/apollo have changed.
  • schema: remove deprecated BullMQConfig.defaultJobOptions. Use BullMQConfig.defaultQueueOptions instead
  • schema: remove Route alias decorator. Use Operation instead
  • platform-router: remove deprecated OperationMethods constant. Use OperationVerbs instead
  • platform-cache: remove deprecated PlatformCacheLegacyStoreFactory interface. Use FactoryStore instead
  • common: remove deprecated PlatformLoggerSettings interface. Use DILoggerOptions instead
  • mongoose: remove deprecated MongooseModelOptions.discriminatorValue. Use @DiscriminatorValue instead
  • remove @tsed/testing-mongoose. Use @tsed/testcontainers-mongo instead
  • remove @tsed/vite-ssr-plugin use @tsed/vike instead
  • common: remove PlatformBuilder.addComponents() method which isn't used method
  • di: This change require to set "useDefineForClassFields": false in your tsconfig
    Some DI methods are removed like bindInjectableProperties() which is not necessary.