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 hidden (Show)

tsed - v7.2.4

Published by Romakita almost 2 years ago

7.2.4 (2022-10-30)

Bug Fixes

  • prisma: replace @prisma/sdk with @prisma/internals (#2139) (0028017)
tsed - v7.2.3

Published by Romakita almost 2 years ago

7.2.3 (2022-10-21)

Bug Fixes

  • platform-params: improve documentation around validator/json-mapper when input param decorator is used (1a74515), closes #2130
  • use Prompt priority (ccacb94)
tsed - v7.2.2

Published by Romakita about 2 years ago

7.2.2 (2022-10-20)

Bug Fixes

  • mongoose: remove protected key _id in createSchema and allow custom _id type definition (ade25b4)
tsed - v7.2.1

Published by Romakita about 2 years ago

7.2.1 (2022-10-18)

Bug Fixes

  • oidc-provider: fix prompt mapping between methods and decorators parameters (500c3f4)
tsed - v7.2.0

Published by Romakita about 2 years ago

7.2.0 (2022-10-18)

Bug Fixes

  • oidc-provider: replace interaction name in oidc.prompt details object (36ba65d)

Features

  • oidc-provider: add optional details/checks methods for custom interaction (ce36387)
tsed - v7.1.1

Published by Romakita about 2 years ago

7.1.1 (2022-10-15)

Bug Fixes

  • oidc-provider: fix documentation to create and route custom interaction (224f865)
tsed - v7.1.0

Published by Romakita about 2 years ago

7.1.0 (2022-10-15)

Features

tsed - v7.0.2

Published by Romakita about 2 years ago

7.0.2 (2022-10-15)

Bug Fixes

  • prisma: fix prisma @tsED.Ignore() parsing (8a736b6)
tsed - v7.0.1

Published by Romakita about 2 years ago

7.0.1 (2022-10-10)

Bug Fixes

  • terminus: fix $logRoutes issue (1999f40)
tsed - v7.0.0

Published by Romakita about 2 years ago

7.0.0 (2022-10-08)

Bug Fixes

  • adapters: add useAlias flag on validate options (ad0bfb2)
  • 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)
  • common: fix UseAfter error middleware (d1fe017), closes #1793
  • common: move normalizePath to Ts.ED core (94d2549)
  • 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: remove import @tsed/components-scan in common (9c09860)
  • common: restore logger.ignoreUrlPatterns (b6ffa18)
  • common: rollback "context first" implementation (1392ad8)
  • core: deepClone did not clone RegExp objects correctly (f862616)
  • 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)
  • formio: fix data saving in mongo db (c3f08e3)
  • json-mapper: add option to disable unsecured constructor mapper (999abb5), closes #1942
  • json-mapper: change default value of jsonMapper.disableUnsecureConstructor to true (2c3d5f4)
  • json-mapper: fix deserialize when property have default value and Partial is used (7e71b6b)
  • json-mapper: fix issue with ReadOnly decorator (b36b23c)
  • json-mapper: fix potential security issue when a constructor is declared on a model (ccaed5f)
  • 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: export Client and RefreshToken type (dae7721)
  • oidc-provider: fix oidcCtx.getGrant() (adbd5a2), closes #1942
  • 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-cache: add more log details when the cache fail to be set in background (637ee03)
  • platform-express: prevent loosing context with express middleware (4612211)
  • platform-express: restore missing request/response interface declaration (e4036ce)
  • 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)
  • terminus: remove BeforeShutdown, OnSignal, OnShutdown, OnSendFailureDuringShutdown decorators (c30621e)

chore

  • ci: Add Node.js 16. (6a13608)
  • common: remove @tsed/platform-cache as dependencies from @tsed/common (ecff0b6)
  • 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

  • di: allow registering multiple providers for the same token (5c21b57), closes #1693
  • di: detect potential circular ref and throw an error to explain the issue (5cc85fa)
  • ioredis: add new package @tsed/ioredis (b0406a6), closes #2060
  • 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

  • terminus: remove BeforeShutdown, OnSignal, OnShutdown, OnSendFailureDuringShutdown decorators. Use hook instead.
  • json-mapper: default value of jsonMapper.disableUnsecureConstructor is true
  • common: use @tsed/platform-cache instead of @tsed/common for UseCache decorator
  • 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-rc.7

Published by Romakita about 2 years ago

7.0.0-rc.7 (2022-10-04)

Bug Fixes

  • json-mapper: support BigInt type (1fa19cc), closes #2099
  • terminus: fix events emitted by terminus (7cdc748), closes #2086

Features

  • objection: add UUID PK column support (8808d6c)
tsed - v6.133.1

Published by Romakita about 2 years ago

6.133.1 (2022-09-27)

Bug Fixes

tsed - v5.67.2

Published by Romakita about 2 years ago

5.67.2 (2022-09-27)

Bug Fixes

  • common: update json schema for common package from 0.2.0 to 0.4.0 (#2102) (fd01994)
tsed - v5.67.1

Published by Romakita about 2 years ago

5.67.1 (2022-09-27)

Bug Fixes

tsed - v6.133.0

Published by Romakita about 2 years ago

6.133.0 (2022-09-19)

Features

  • objection: add UUID PK column support (8808d6c)
tsed - v7.0.0-rc.6

Published by Romakita about 2 years ago

7.0.0-rc.6 (2022-09-16)

Bug Fixes

  • adapters: add useAlias flag on validate options (8eb4de1)
  • adapters: add useAlias to store correctly the model in database (d8f2057)
  • adapters: fix validation issue when the data is inserted in redis (4a0a482)
  • adapters: remove missing console log (68ed4a1)
  • common: bump Ts.ED logger to v6.2.2 (8316753)
  • common: move normalizePath to Ts.ED core (94d2549)
  • common: remove import @tsed/components-scan in common (9c09860)
  • core: deepClone did not clone RegExp objects correctly (067e0e6)
  • json-mapper: add option to disable unsecured constructor mapper (61fb554), closes #1942
  • json-mapper: fix deserialize when property have default value and Partial is used (91d75d5)
  • json-mapper: fix issue with ReadOnly decorator (78eced3)
  • json-mapper: fix potential security issue when a constructor is declared on a model (2cc8556)
  • koa: fix issue over async_hook with Koa platform (80ee899)
  • koa: fix issue over async_hook with Koa platform (502d182)
  • oidc-provider: export Client and RefreshToken type (b0b4360)
  • oidc-provider: fix oidcCtx.getGrant() (fdab12b), closes #1942
  • platform-cache: add more log details when the cache fail to be set in background (c048718)
  • platform-express: prevent loosing context with express middleware (4fd0ec3)
  • schema: fix Examples decorator used on parameters for RequestBody (f006be7)
  • schema: fix imports (ab4c092)
  • socketio: revert changes to SocketHandlersBuilder, added new @SocketNsp decorator instead (790f747)

Features

  • di: allow registering multiple providers for the same token (45bb9fc), closes #1693
  • ioredis: add new package @tsed/ioredis (223cd74), closes #2060
  • objection: add model relationship decorators (91d9542)
  • schema: add deprecated decorator for params and props (177b6c9)
  • schema: add test for unsupported decorator types (56f3452)
  • schema: add tests for deprecated param and prop (d94c1db)
  • socketio: allow dynamic namespaces for @SocketService and @Nsp/@Namespace (989b2c3)
tsed - v6.132.1

Published by Romakita about 2 years ago

6.132.1 (2022-09-15)

Bug Fixes

  • terminus: fix events emitted by terminus (7cdc748), closes #2086
tsed - v6.132.0

Published by Romakita about 2 years ago

6.132.0 (2022-09-08)

Bug Fixes

Features

  • schema: add deprecated decorator for params and props (177b6c9)
  • schema: add test for unsupported decorator types (56f3452)
  • schema: add tests for deprecated param and prop (d94c1db)
tsed - v6.131.1

Published by Romakita about 2 years ago

6.131.1 (2022-09-08)

Bug Fixes

  • schema: fix Examples decorator used on parameters for RequestBody (f006be7)
tsed - v6.131.0

Published by Romakita about 2 years ago

6.131.0 (2022-09-08)

Features

  • objection: add model relationship decorators (91d9542)
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