Marble.js v3.4.0 Release Notes

Release Date: 2020-09-03 // about 1 year ago
  • What's new?

    • all - Support for TypeScript v4.0.x #294
    • @marblejs/core - derived context (more details: #288) (more details about this feature in docs soon!)

    A Reader can register its own context that doesn't influence/mutate the derived parent context

    Context:
     |- [DerivedContextToken]: DerivedContext
     | |- [DerivedDependencyToken_1]: DerivedDependency_1
     | |- [DerivedDependencyToken_2]: DerivedDependency_2
     |             
     |- [FooToken]: Foo
     |- [BarToken]: Bar
    
    • @marblejs/messaging - allow to pass timeout option to EventBus config #291 #292
    • @marblejs/messaging - refactored EventBus context creation #288
    • @marblejs/messaging - Local transport layer (EventBus) is initialized per context (not globally) #292
    • @marblejs/messaging - restricted binding order for event bus and its corresponding client - first eventBus reader then eventBusClient #292
    • @marblejs/messaging - contextFactory registers default LoggerToken if derived context doesn't have it bound #293
    • @marblejs/messaging - EventBus - expose resolved Context #293
    • @marblejs/messaging - outputLogger$ - outputs detailed logs for event validation errors #293

    🛠 Fixed

    • @marblejs/messaging - outputErrorEncoder$ won't crash when event.payload === null