Skip to content

Latest commit

 

History

History
1582 lines (461 loc) · 44.7 KB

File metadata and controls

1582 lines (461 loc) · 44.7 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

41.0.1 (2025-01-24)

Note: Version bump only for package midway-components

41.0.0 (2024-11-21)

Bug Fixes

  • otel: arrow function detecting (472675f)

Features

  • otel: DecoratorTraceData['endSpanAfterTraceLog'] supports Span[] (1e8e26c)

40.1.1 (2024-11-12)

Bug Fixes

  • otel: afterReturnSync(), afterReturnAsync() of TraceLog() missing trace context (b1e8c3f)

40.1.0 (2024-11-10)

Features

  • otel: do not validate scope during create new span (3702536)

40.0.0 (2024-11-10)

Features

  • otel: breaking changes for using context.active() inner method or function (8403238)
  • otel: rename OtelComponent.getGlobalCurrentContext() to getActiveContext() (c8e5463)
  • otel: rename OtelComponent.getGlobalCurrentSpan() to getActiveSpan() (1d3a6f9)
  • otel: update TraceServiceSpan.startScopeActiveSpan() (666f11a)
  • remove TraceServiceSpan.setAttributesLater() (90ed626)
  • share: update DecoratorExecutorParamBase add property scheme: string (0e19aca)

39.3.0 (2024-11-06)

Features

  • share: update enum RpcMethodType (93e0399)

39.2.0 (2024-11-04)

Features

  • share: enum RpcMethodType (7b71442)

39.1.2 (2024-10-31)

Note: Version bump only for package midway-components

39.1.1 (2024-10-30)

Note: Version bump only for package midway-components

39.1.0 (2024-10-30)

Bug Fixes

  • otel: middlewares using order (ed07659)

Features

  • otel: addSpanEventWithIncomingRequestData() skip log if none (73b536c)

39.0.2 (2024-10-29)

Bug Fixes

  • otel: fix src/configuration.ts using middleware (e965166)
  • otel: order of using TraceMiddlewareInnerGRpc (3e56a14)

39.0.1 (2024-10-29)

Note: Version bump only for package midway-components

39.0.0 (2024-10-29)

Features

  • otel: add property of parameter of AssertsRootOptions() (9897828)
  • otel: addSpanEventWithIncomingRequestData() always log AttrNames.Incoming_Request_data (cd120b9)
  • otel: supports RPC request by @midwayjs/grpc (c4e1333)
  • otel: TraceServiceSpan.getTraceId() accepts optional param scope (bb05a60)

38.4.0 (2024-10-28)

Features

  • share: add property GrpcContext.status (3085d78)

38.3.0 (2024-10-28)

Features

38.2.3 (2024-10-25)

Note: Version bump only for package midway-components

38.2.2 (2024-10-05)

Note: Version bump only for package midway-components

38.2.1 (2024-09-15)

Bug Fixes

  • otel: assertJaegerTagItem(), assertJaegerLogField() (e981248)

38.2.0 (2024-09-15)

Features

  • otel: assertJaegerTagItem(), assertJaegerLogField() (cb941c5)
  • otel: update ExpectAttributes support RegExp value for assertsSpan() (31a2e4e)

38.1.0 (2024-09-15)

Features

  • otel: update type AssertsRootOp for assertRootSpan() (382e6a3)

38.0.0 (2024-09-14)

Features

  • otel: breaking change DecoratorHandlerTraceBase.getWebContext() eat error (8b8c509)

37.4.1 (2024-09-10)

Note: Version bump only for package midway-components

37.4.0 (2024-09-07)

Bug Fixes

  • otel: assign traceContext for Trace() (fa00c3b)

Features

  • otel: add properties of DecoratorTraceData for TraceLog() (ba26cc6)
  • otel: TraceServiceSpan.getActiveTraceInfo() (5802b1c)

37.3.0 (2024-09-04)

Features

  • otel: TraceService.retrieveContextBySpanId() (55bbe5b)
  • otel: TraceService.retrieveParentTraceInfoBySpan() and retrieveTraceInfoBySpanId() (e96ea2f)
  • otel: type TraceInfo (5690552)

37.2.4 (2024-09-04)

Note: Version bump only for package midway-components

37.2.3 (2024-09-04)

Note: Version bump only for package midway-components

37.2.2 (2024-09-04)

Note: Version bump only for package midway-components

37.2.1 (2024-08-29)

Note: Version bump only for package midway-components

37.2.0 (2024-08-17)

Features

  • share: update commonValidSchemas (69387fe)
  • share: update commonValidSchemas.name50 (1f42b39)

37.1.0 (2024-08-16)

Features

  • share: update commonValidSchemas (b79932a)

37.0.0 (2024-08-12)

Bug Fixes

  • otel: wrong type of afterReturnSync() (0006dfd)

Features

  • otel: add TraceService methods (e7c3346)
  • otel: breaking change return type of startSpan() (0f3943d)
  • otel: DecoratorTraceData['spanStatusOptions'] (cb6d479)
  • otel: DecoratorTraceDataResp accepts null (9c54840)
  • otel: getRootSpan() (93372b3)
  • otel: remove TraceService.rootSpanMap and TraceService.setRootSpan() (0c10347)
  • otel: rename OtelComponent.delScopeActiveContext() to emptyScopeActiveContext() (8286b2b)
  • otel: TraceLog supports end span (0978a0c)
  • otel: update TraceService.getActiveContext() (6124291)

36.1.3 (2024-08-06)

Note: Version bump only for package midway-components

36.1.2 (2024-08-06)

Note: Version bump only for package midway-components

36.1.1 (2024-08-06)

Bug Fixes

36.1.0 (2024-08-03)

Features

  • share: add getWebContext() (1af7c20)

36.0.0 (2024-08-02)

Note: Version bump only for package midway-components

35.2.1 (2024-08-02)

Bug Fixes

  • otel: param inner DecoratorHandlerTraceBase.traceError() (30a26fd)

35.2.0 (2024-08-01)

Features

  • share: update decorator error process (ddc7d6e)

35.1.0 (2024-08-01)

Features

35.0.1 (2024-07-30)

Bug Fixes

  • share: prepareOptions() (5f44e47)

35.0.0 (2024-07-30)

Features

  • share: update custom decorator (2f06741)

34.0.1 (2024-07-30)

Note: Version bump only for package midway-components

34.0.0 (2024-07-30)

Features

  • share: re-design AOP error catching strategy (896e3f5)
  • share: re-design customDecoratorFactory() AOP error catching strategy (ce556fd)

33.0.0 (2024-07-28)

Features

  • cache: change this of decorator methods from WebContext to the class decorated (f8d69a8)

32.0.0 (2024-07-24)

Note: Version bump only for package midway-components

31.0.0 (2024-07-22)

Note: Version bump only for package midway-components

30.21.0 (2024-07-22)

Features

  • otel: add util function (df8b66e)

30.20.0 (2024-07-15)

Features

  • share: update return type of DTO functions (f099f49)

30.19.0 (2024-07-14)

Features

30.18.0 (2024-07-12)

Features

  • otel: decorator method spanName(), scope() support this param (a438d22)

30.17.1 (2024-07-12)

Note: Version bump only for package midway-components

30.17.0 (2024-07-06)

Features

  • otel: add HeadersKey.TRACE_PARENT_HEADER and TRACE_STATE_HEADER (bdd1016)
  • otel: retrieveTraceparentFromHeader() (e63eca2)

30.16.1 (2024-07-05)

Note: Version bump only for package midway-components

30.16.0 (2024-07-04)

Features

  • otel: TraceLog accepts afterThrow callback via TraceDecoratorOptions['afterThrow'] (3e38a51)

30.15.2 (2024-07-03)

Note: Version bump only for package midway-components

30.15.1 (2024-07-02)

Note: Version bump only for package midway-components

30.15.0 (2024-07-02)

Features

  • share: add type MiddlewareResolve (8d712ef)

30.14.0 (2024-06-12)

Features

  • otel: move test.helper.ts to src/util/common.ts (077e92c)

30.13.0 (2024-06-12)

Features

  • otel: add generics MThis of TraceOptions (72c59a4)
  • otel: use ClzInstance isntead of InstanceWithDecorator (0758993)
  • share: ClzInstance (2a8f9a4)

30.12.1 (2024-06-12)

Note: Version bump only for package midway-components

30.12.0 (2024-06-12)

Features

  • otel: pass decorated instance as decorator before/after callback this param (d9f99a7)

30.11.2 (2024-06-11)

Note: Version bump only for package midway-components

30.11.1 (2024-06-11)

Bug Fixes

  • otel: key of span event name (3071ea0)

30.11.0 (2024-06-11)

Features

  • otel: expose DecoratorContext (d7953e9)

30.10.2 (2024-06-11)

Bug Fixes

  • otel: ctx.status assignment within handleTopExceptionAndNext() in middleware/helper.middleware.ts (60ce644)

30.10.1 (2024-06-09)

Note: Version bump only for package midway-components

30.10.0 (2024-06-09)

Bug Fixes

  • otel: isSpanEnded() in util.ts (ba40cca)

Features

  • otel: retrieve traceScope from methodArgs automatically (644732d)

30.9.1 (2024-06-08)

Bug Fixes

  • share: webContext assignment within genExecutorOptionsCommon() (4569d48)

30.9.0 (2024-06-08)

Features

  • otel: update AttrNames (a9c92fd)
  • share: retrieve WebContext from MethodArgs for decorator on Singleton Class (af5d678)

30.8.0 (2024-06-07)

Features

  • otel: decorator TraceLog() (e427604)
  • otel: update DecoratorTraceDataResp, DecoratorTraceDataRespAsync (b604ca9)

30.7.2 (2024-06-07)

Bug Fixes

  • otel: DecoratorHandlerTraceInit.traceError() (ab6f201)

30.7.1 (2024-06-07)

Bug Fixes

  • otel: DecoratorHandlerTraceBase.traceError() (9872643)

30.7.0 (2024-06-06)

Features

  • otel: add properties of type DecoratorContextBase (049d0de)

30.6.1 (2024-06-06)

Note: Version bump only for package midway-components

30.6.0 (2024-06-05)

Features

  • otel: expose genTraceScope() (74cfd8d)

30.5.0 (2024-06-05)

Features

  • otel: Trace decorator accepts scope (865bf31)
  • share: expose types InstanceWithDecorator, ClassWithDecorator (1bed479)

30.4.0 (2024-06-04)

Bug Fixes

  • otel: check span ended within OtelComponent.getActiveContextFromArray() (2c4d83f)

Features

30.3.0 (2024-06-04)

Features

  • otel: add TraceService.startScopeActiveSpan() (08c4534)

30.2.0 (2024-06-04)

Features

  • otel: add TraceService.delActiveContext() (bbf3d3b)
  • otel: TraceService.getActiveContext() accepts optional param scope (5d8d235)
  • otel: TraceService.getActiveSpan()/startSpan()/startActiveSpan() accepts optional param scope (5013d60)
  • otel: TraceService.setActiveContext() accepts 2nd param scope (3c13781)

30.1.1 (2024-06-04)

Note: Version bump only for package midway-components

30.1.0 (2024-06-03)

Features

  • otel: manage trace Context on OtelComponent (dc55f8e)

30.0.0 (2024-06-02)

Features

  • cache: breaking change key generation strategy genCacheKey() (4ecdc61)

29.3.1 (2024-05-31)

Note: Version bump only for package midway-components

29.3.0 (2024-05-31)

Features

  • jwt: decorator Public() to skip JWT Authentication (7f72eb1)
  • share: add routerInfoConfig.enable to controller use of router-info.middleware.ts (181b809)
  • share: expose type DecoratorMetaData (9d8cc31)
  • share: expose type MiddlewarePathPattern (def72ea)

29.2.0 (2024-05-30)

Features

  • share: retrieve and append routerInfo on ctx._routerINfo via router-info.middleware.ts (f2b301d)

29.1.0 (2024-05-29)

Note: Version bump only for package midway-components

29.0.1 (2024-05-28)

Note: Version bump only for package midway-components

29.0.0 (2024-05-27)

Features

  • share: breaking change decorator types and implementation (289eee3)

28.2.0 (2024-05-24)

Features

  • share: add 3rd param of getRouterInfo() limit, default 1000 (cebbc89)

28.1.1 (2024-05-24)

Note: Version bump only for package midway-components

28.1.0 (2024-05-23)

Features

  • otel: set enableMiddleware to true in config.default.ts (a5f34a3)

28.0.0 (2024-05-23)

Features

  • otel: breaking change parameters order and return type of decorator before()/after() (f8eb988)
  • share: breaking change properties name of CustomDecoratorFactoryOptions (1d0f70e)

27.0.1 (2024-05-22)

Note: Version bump only for package midway-components

27.0.0 (2024-05-21)

Features

  • otel: breaking change functions (a6d5459)
  • otel: process span name correctly (6773857)
  • share: getRouterInfo() (3a1108f)

26.5.3 (2024-05-21)

Bug Fixes

  • otel: tracing event if ctx.path matched otelMiddlewareConfig.ignore lists (4c1d55c)

26.5.2 (2024-05-09)

Note: Version bump only for package midway-components

26.5.1 (2024-04-25)

Bug Fixes

  • otel: import assert {type} to import with {type} (c788e6b)

26.5.0 (2024-04-24)

Features

  • share: change value of bypassDecoratorHandlerExecutor unique (84381e2)

26.4.0 (2024-04-24)

Features

  • share: use constant bypassDecoratorHandlerExecutor to skip the decorator executor (4e91957)

26.3.2 (2024-04-24)

Bug Fixes

  • share: retrieveMetadataPayloadsOnMethod() (ce8b204)

26.3.1 (2024-04-23)

Note: Version bump only for package midway-components

26.3.0 (2024-04-23)

Features

  • share: add and export registerDecoratorHandlers() (367e4be)

26.2.1 (2024-04-22)

Note: Version bump only for package midway-components

26.2.0 (2024-04-22)

Features

  • cache: remove METHOD_KEY_Transactional usage from cacheableMethodIgnoreIfMethodDecoratorKeys (6723e01)

26.1.0 (2024-04-22)

Features

  • otel: update TraceInit span name for MidwayJs lifeCycle (541c47c)

26.0.2 (2024-04-22)

Note: Version bump only for package midway-components

26.0.1 (2024-04-21)

Note: Version bump only for package midway-components

26.0.0 (2024-04-21)

Features

  • share: breaking change customDecoratorFactory with autoRegisterDecoratorHandlers (8272580)

25.2.3 (2024-04-14)

Note: Version bump only for package midway-components

25.2.2 (2024-04-09)

Bug Fixes

  • share: regMethodDecorator() got error "Cannot redefine property: decoratedType" (da6625d)

25.2.1 (2024-04-09)

Note: Version bump only for package midway-components

25.2.0 (2024-04-09)

Features

  • share: update shouldEnableMiddleware() (a1d2fc6)

25.1.0 (2024-04-09)

Features

  • share: RegisterDecoratorHandlerParam['fnDecoratorExecutorAsync'] accepts 'bypass' value (b6dc402)

25.0.2 (2024-04-08)

Bug Fixes

  • share: setImplToFalseIfDecoratedWithBothClassAndMethod() (b7a3e31)

25.0.1 (2024-04-08)

Note: Version bump only for package midway-components

25.0.0 (2024-04-08)

Bug Fixes

  • share: wrong parameter of prepareOptions() (1c13ee5)

24.2.4 (2024-04-08)

Bug Fixes

  • share: wrong rule calculation of requestPathMatched() (59c61aa)

24.2.3 (2024-04-08)

Note: Version bump only for package midway-components

24.2.2 (2024-04-07)

Note: Version bump only for package midway-components

24.2.1 (2024-04-05)

Note: Version bump only for package midway-components

24.2.0 (2024-04-05)

Features

  • share: export Config as MConfig from '@midwayjs/core' (618af3e)

24.1.0 (2024-04-05)

Features

24.0.0 (2024-04-03)

Features

  • cache: breaking change types and strategy of caching read and write (59de5b3)

23.2.0 (2024-04-03)

Features

  • cache: retrieveCacheMetaFrom() (8d2a74d)

23.1.0 (2024-04-02)

Features

  • cache: return type of genCacheKey() accept false (13ed5f4)

23.0.0 (2024-03-27)

Note: Version bump only for package midway-components

22.1.2 (2024-03-08)

Note: Version bump only for package midway-components

22.1.1 (2024-03-06)

Bug Fixes

  • cache: return of @PUT invalid (91f0080)

22.1.0 (2024-03-05)

Features

  • core: update commonValidSchemas (eaa5a93)
  • share: export function and options (03d6e7c)

22.0.1 (2024-02-26)

Note: Version bump only for package midway-components

22.0.0 (2024-02-25)

Bug Fixes

  • cache: breaking change var type ..Decortaor.. to ..Decorator from @mwcp/share (55ed64b)
  • otel: breaking change var type ..Decortaor.. to ..Decorator from @mwcp/share (0984de2)
  • share: breaking change var type ..Decortaor.. to ..Decorator (059da38)

21.1.0 (2024-02-25)

Features

  • cache: export from @midwayjs/cache-manager (ca7e61c)

21.0.0 (2024-02-25)

Features

  • cache: breaking change use @midwayjs/cache-manager instead of @midwayjs/cache (7fb786c)

20.12.0 (2024-02-25)

Features

  • share: remove min(1) from commonValidSchemas.string (e5dc556)

20.11.1 (2024-02-22)

Note: Version bump only for package midway-components

20.11.0 (2024-02-22)

Features

  • share: update commonValidSchemas (85e3572)

20.10.1 (2024-02-03)

Note: Version bump only for package midway-components

20.10.0 (2024-02-02)

Features

  • share: export functions (9fabdf0)
  • share: update commonValidSchemas (7a6171f)
  • share: update type PageOrderByRule (aac4e3e)

20.9.0 (2024-01-27)

Note: Version bump only for package midway-components

20.8.1 (2024-01-26)

Bug Fixes

  • cache: comment assert.deepEqual(config, this.cacheConfig) out (9ad80d8)

20.8.0 (2024-01-26)

Features

  • deleteRouter if enableDefaultRoute false (bc4027e)

20.7.0 (2024-01-26)

Features

  • share: add deleteRouter() (16c53af)

20.6.0 (2024-01-26)

Features

  • cache: add genCacheKeyFromPagingDTO() (c72ac3b)
  • share: add types for page query (f173308)

20.5.0 (2024-01-26)

Features

  • share: add common.schema.ts (1e08a06)

20.4.0 (2024-01-26)

Features

  • boot: export types from @mwcp/koid (1a1982f)

20.3.0 (2024-01-25)

Features

  • share: define type PagingResult (ffb7674)

20.2.0 (2024-01-24)

Features

  • jwt: update ignore list (16dbe85)

20.1.0 (2024-01-24)

Features

  • boot: declare jsonRespMiddlewareConfig (88c6c52)

20.0.2 (2024-01-23)

Note: Version bump only for package midway-components

20.0.1 (2024-01-21)

Note: Version bump only for package midway-components

20.0.0 (2024-01-21)

Note: Version bump only for package midway-components