tsed

Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!

MIT License

Downloads
1.8M
Stars
2.7K
Committers
162

Bot releases are visible (Hide)

tsed - v6.130.0

Published by Romakita about 2 years ago

6.130.0 (2022-09-07)

Bug Fixes

  • socketio: revert changes to SocketHandlersBuilder, added new @SocketNsp decorator instead (790f747)

Features

  • socketio: allow dynamic namespaces for @SocketService and @Nsp/@Namespace (989b2c3)

See Socket.io pages for more details: https://tsed.io/tutorials/socket-io.html#dynamic-namespaces

tsed - v7.0.0-rc.5

Published by Romakita about 2 years ago

7.0.0-rc.5 (2022-08-29)

Bug Fixes

  • core: deepClone did not clone RegExp objects correctly (f862616)
  • json-mapper: fix issue with ReadOnly decorator (b36b23c)
  • oidc-provider: export Client and RefreshToken type (dae7721)

Features

  • di: allow registering multiple providers for the same token (5c21b57), closes #1693
  • ioredis: add new package @tsed/ioredis (b0406a6), closes #2060
tsed - v6.129.0

Published by Romakita about 2 years ago

6.129.0 (2022-08-29)

Bug Fixes

  • json-mapper: fix issue with ReadOnly decorator (78eced3)
  • oidc-provider: export Client and RefreshToken type (b0b4360)

Features

  • di: allow registering multiple providers for the same token (45bb9fc), closes #1693
  • ioredis: add new package @tsed/ioredis (223cd74), closes #2060
tsed - v6.128.10

Published by Romakita about 2 years ago

6.128.10 (2022-08-28)

Bug Fixes

  • core: deepClone did not clone RegExp objects correctly (067e0e6)
tsed - v7.0.0-rc.4

Published by Romakita about 2 years ago

7.0.0-rc.4 (2022-08-27)

Bug Fixes

  • adapters: add useAlias to store correctly the model in database (964508c)
  • adapters: fix validation issue when the data is inserted in redis (75269c8)
  • adapters: remove missing console log (719509c)
  • bump Ts.ED logger to v6.2.2 (ce90b22)
  • json-mapper: add option to disable unsecured constructor mapper (999abb5), closes #1942
  • json-mapper: change default value of jsonMapper.disableUnsecureConstructor to true (2c3d5f4)
  • oidc-provider: fix oidcCtx.getGrant() (adbd5a2), closes #1942
  • platform-cache: add more log details when the cache fail to be set in background (637ee03)
  • terminus: remove BeforeShutdown, OnSignal, OnShutdown, OnSendFailureDuringShutdown decorators (c30621e)

BREAKING CHANGES

  • terminus: remove BeforeShutdown, OnSignal, OnShutdown, OnSendFailureDuringShutdown decorators. Use hook instead.
  • json-mapper: default value of jsonMapper.disableUnsecureConstructor is true
tsed - v6.128.9

Published by Romakita about 2 years ago

6.128.9 (2022-08-26)

Bug Fixes

  • json-mapper: add option to disable unsecured constructor mapper (61fb554), closes #1942
  • oidc-provider: fix oidcCtx.getGrant() (fdab12b), closes #1942
tsed - v6.128.8

Published by Romakita about 2 years ago

6.128.8 (2022-08-26)

Bug Fixes

  • platform-cache: add more log details when the cache fail to be set in background (c048718)
tsed - v6.128.7

Published by Romakita about 2 years ago

6.128.7 (2022-08-25)

Bug Fixes

  • adapters: fix validation issue when the data is inserted in redis (4a0a482)
  • adapters: remove missing console log (68ed4a1)
tsed - v6.128.6

Published by Romakita about 2 years ago

6.128.6 (2022-08-25)

Bug Fixes

  • adapters: add useAlias to store correctly the model in database (d8f2057)
tsed - v6.128.5

Published by Romakita about 2 years ago

6.128.5 (2022-08-23)

Bug Fixes

  • common: bump Ts.ED logger to v6.2.2 (8316753)
tsed - v6.128.4

Published by Romakita about 2 years ago

6.128.4 (2022-08-23)

Bug Fixes

  • json-mapper: fix deserialize when property have default value and Partial is used (91d75d5)
  • json-mapper: fix potential security issue when a constructor is declared on a model (2cc8556)
tsed - v7.0.0-rc.3

Published by Romakita about 2 years ago

7.0.0-rc.3 (2022-08-23)

Bug Fixes

  • adapters: add useAlias flag on validate options (ad0bfb2)
  • json-mapper: fix deserialize when property have default value and Partial is used (7e71b6b)
  • json-mapper: fix potential security issue when a constructor is declared on a model (ccaed5f)
  • platform-express: restore missing request/response interface declaration (e4036ce)
tsed - v7.0.0-beta.20

Published by Romakita about 2 years ago

7.0.0-beta.20 (2022-08-23)

Bug Fixes

  • platform-express: restore missing request/response interface declaration (5fb4f8e)
tsed - v6.128.3

Published by Romakita about 2 years ago

6.128.3 (2022-08-22)

Bug Fixes

  • adapters: add useAlias flag on validate options (8eb4de1)
tsed - v7.0.0-rc.2

Published by Romakita about 2 years ago

7.0.0-rc.2 (2022-08-22)

Bug Fixes

  • formio: fix data saving in mongo db (c3f08e3)

chore

  • common: remove @tsed/platform-cache as dependencies from @tsed/common (ecff0b6)

Features

  • di: detect potential circular ref and throw an error to explain the issue (5cc85fa)

BREAKING CHANGES

  • common: use @tsed/platform-cache instead of @tsed/common for UseCache decorator
tsed - v7.0.0-rc.1

Published by Romakita about 2 years ago

7.0.0-rc.1 (2022-08-21)

Bug Fixes

  • common: fix UseAfter error middleware (d1fe017), closes #1793
  • common: Remove Location and Redirect decorators (ffd91fc)
  • common: Remove View decorator (a4d665f)
  • common: Remove EndpointFn (b67659f)
  • common: remove HttpServer decorator (5129d83)
  • common: remove HttpsServer decorator (292d01d)
  • common: restore logger.ignoreUrlPatterns (b6ffa18)
  • common: rollback "context first" implementation (1392ad8)
  • di: fix $ctx.id when the $ctx is already destroyed (3762503)
  • di: Remove injector.forkProvider (d9404d8)
  • di: remove cleaning hooks when DIContext is destroyed (287a2e7)
  • di: remove IProvider interface (0faa629)
  • di: Remove provider.instance (f49710d)
  • di: use async_hook directly on @tsed/di (206dcc6)
  • fix all copyright (3dc4b47)
  • koa: fix issue over async_hook with Koa platform (752faa4)
  • mikroOrm: remove @Connection decorator (42590a2)
  • mikroOrm: remove DBContext.getContext() (cc61186)
  • mikroOrm: remove MikroOrmRegistry.createConnection() (378227f)
  • mikroOrm: remove MikroOrmRegistry.createConnection() (1fd95f5)
  • mikroOrm: remove TransactionOptions.connectionName property (a30daca)
  • oidc-provider: fix undefined $ctx issue when the oidcCtx.findAccount is used (9733ddc)
  • oidc-provider: use async_hook instead ProviderScope.REQUEST on OidcInteractionContext (40d2fc1)
  • oidc: change default OIDC path (50e5588)
  • passport: remove IProtocol interface (8f308a9)
  • platform-express: prevent loosing context with express middleware (4612211)
  • platform-log-middlewares: prevent logging end event when start isn't triggered (da04728)
  • platform-response-filter: check availability of $ctx.endpoint before consumer it to build headers (4384194)
  • platform-views: remove consolidate dependencies (2d2a675)
  • schema: Remove Swagger/OS2 support (68eff3e)
  • seq: remove deprecated package @tsed/aws (eddd7ba)
  • seq: remove deprecated package @tsed/graphql (a7806ae)
  • seq: remove deprecated package @tsed/seq (1adaaec)

chore

  • ci: Add Node.js 16. (6a13608)
  • common: remove componentsScan option (d5090b2)
  • common: Remove EndpointInfo decorator. (751391e)
  • common: Remove GlobalAcceptMimesMiddleware and AcceptMimesMiddleware (de52bfe)
  • common: Remove PropertyMetadata (1ca3559)
  • common: Remove ResponseData decorator. (09f44d2)
  • common: Remove UseParam(type, options) signature (d96c5e1)
  • components-scan: remove importComponent (41ca281)
  • components-scan: remove importComponent (65e3a2b)
  • Configure v7 release (1f6b9d9)
  • core: Remove deepExtends util (6e5e91e)
  • di: Remove loadInjector utils (e6d07ae)
  • di: Remove registerFactory (3957690)
  • mongoose: Remove MongooseVirtualRefOptions.type (f74b6bc)
  • platform-middlewares: Remove IMiddleware interface. (cbc6486)
  • Remove ConverterService (34704bb)
  • remove unused express decorators (ceec965)
  • remove useCtxHandler function (5251249)
  • schema: Remove IAuth interface on AuthOptions decorator (59e1b09)

Features

  • oidc-provider: add interactionPrompt, checkClientId, checkInteractionName methods (eeeb574)
  • platform-router: add @tsed/platform-router package (166dede)
  • stripe: upgraded stripe to next major version to avoid conflict build errors (8d7548b)
  • testing-mongoose: add replicaSet option to use ReplicaSet mode (#2005) (18f0292)

BREAKING CHANGES

  • common: remove support of multiple endpoint that cause unexpected behavior
  • Remove CaseSensitive, MergeParams, RouterSettings and Strict decorators
  • remove useCtxHandler function. Use useContextHandler instead
  • platform-router: Ts.ED use a new abstracted router instead of Express.Router/KoaRouter.
  • components-scan: remove importComponent function.
  • components-scan: remove importComponent function.
  • common: remove componentsScan option. Import provider with an ES6 import
  • di: use async_hook directly on @tsed/di. Remove @tsed/async_hook_context. Use @tsed/di to inject context.
  • oidc: default value for oidc.path is /oidc
  • seq: @tsed/graphql have been removed. Use @tsed/typegraphql instead
  • seq: @tsed/aws have been removed. Use @tsed/serverless-http instead
  • seq: @tsed/seq have been removed. Use logger seq configuration instead
  • platform-views: remove consolidate dependency. Use @tsed/engines instead
  • common: remove HttpsServer. Use Https.Server as injectable type instead
  • common: remove HttpServer. Use Http.Server as injectable type instead
  • passport: remove IProtocol. Use ProtocolMethods instead
  • di: remove IProvider. Use ProviderOpts instead
  • mikroOrm: remove MikroOrmRegistry.closeConnections(). Use MikroOrmRegistry.clear() instead.
  • mikroOrm: remove MikroOrmRegistry.createConnection(). Use MikroOrmRegistry.register() instead.
  • mikroOrm: remove DBContext.getContext(). Use DBContext.entries() instead.
  • mikroOrm: remove TransactionOptions.connectionName property. Use TransactionOptions.contextName instead.
  • mikroOrm: remove @Connection decorator. Use @Orm instead.
  • schema: The support of OS2 has been removed. Use OS3 instead.
  • Use serialize/deserialize functions from @tsed/json-mapper
  • ci: Remove Node.js 12 support
  • common: Remove PropertyMetadata. Use JsonEntityStore instead
  • common: Remove UseParam(paramType, options) signature. Use UseParam{{paramType: 'BODY', ...}} signature instead
  • common: Remove ResponseData decorator. Use @Context() $ctx: Context then $ctx.data
  • common: Remove EndpointInfo decorator. Use @Context() then ctx.endpoint to retrieve endpoint information
  • mongoose: Remove MongooseVirtualRefOptions.type. Use Remove MongooseVirtualRefOptions.ref instead
  • di: Use registerProvider instead
  • common: Use PlatformAcceptMimesMiddleware instead
  • core: Use deepMerge instead
  • di: Use injector.load(container, module) instead
  • platform-middlewares: Remove IMiddleware. Use MiddlewareMethods instead.
  • schema: Drop IAuth.security and IAuth.responses on AuthOptions decorator

Use @Security() and @Returns() instead

  • Initiate v7
tsed - v7.0.0-beta.19

Published by Romakita about 2 years ago

7.0.0-beta.19 (2022-08-21)

Bug Fixes

  • common: fix UseAfter error middleware (d1fe017), closes #1793

BREAKING CHANGES

  • common: remove support of multiple endpoint that cause unexpected behavior
tsed - v7.0.0-beta.18

Published by Romakita about 2 years ago

7.0.0-beta.18 (2022-08-21)

Bug Fixes

  • code: use object instead map on hooks (652f371)
  • common: add $ctx.start and $ctx.finish methods (b598b9b)
  • di: init context on app bootstrap (c4d2f8b)
  • di: lazy load logger and cache (d42bfa0)
  • di: use Hooks class to trigger Ts.ED hooks from InjectorService (9b2f506)
  • json-mapper: don't assign value on readOnly field (9f546c9), closes #2031
  • koa: fix issue over async_hook with Koa platform (752faa4)
  • platform-cache: bump cache-manager to v4.1.0 (ef0408b)
  • platform-express: prevent loosing context with express middleware (4612211)
  • prisma: change fs by fs-extra to support node v14 (222ccb6), closes #1978
  • prisma: Fix peerDep of @prisma/client to match dependency (#2023) (957b2e4)
  • schema: optimize concat path algorithm (5451993)
  • serverless: refactoring ServerlessContext and simplify models (8a7dbca)
  • swagger: fix swagger rootPath (b72a404), closes #2019

Features

  • dynamic filter properties using Groups and AllowGroups (03c2240), closes #1995
  • oidc-provider: add AdapterOidc (01c0ca9)
  • terminus: rewrite @tsed/terminus plugin to be more dev friendly (039e94a)
tsed - v6.128.2

Published by Romakita about 2 years ago

6.128.2 (2022-08-21)

Bug Fixes

  • koa: fix issue over async_hook with Koa platform (80ee899)
  • koa: fix issue over async_hook with Koa platform (502d182)
  • platform-express: prevent loosing context with express middleware (4fd0ec3)
tsed - v6.128.1

Published by Romakita about 2 years ago

6.128.1 (2022-08-20)

Bug Fixes

  • code: use object instead map on hooks (652f371)
  • common: add $ctx.start and $ctx.finish methods (b598b9b)
  • di: init context on app bootstrap (c4d2f8b)
  • di: lazy load logger and cache (d42bfa0)
  • di: use Hooks class to trigger Ts.ED hooks from InjectorService (9b2f506)
  • serverless: refactoring ServerlessContext and simplify models (8a7dbca)
Package Rankings
Top 1.14% on Npmjs.org
Top 6.72% on Proxy.golang.org
Badges
Extracted from project README
Build & Release PR Welcome npm version semantic-release code style: prettier github opencollective