dolittle / JavaScript.SDK

Dolittle JavaScript SDK
https://dolittle.io
MIT License
5 stars 2 forks source link

Split setup connect #94

Closed jakhog closed 2 years ago

jakhog commented 2 years ago

Summary

A massive chunk of work with lots of changes (sorry). A lot of the changes have to do with trying to create a good structure with "interfaces", and trying to tame imports and exports to not do strange things. Otherwise, a lot of small fixes on documentations and overloads across the board.

On the bigger things, like in the next .NET SDK - we're changing up how the client is built from one step to two steps, to make it easier to integrate with other frameworks and allow us to do an initial asynchronous call to the Runtime while booting up to get some configuration going from the start. A lot of work has gone into the dependency inversion system, which internally is using InversifyJS (with some hacks), but should easily support a root container from any kind of DI package for TS. A little work on how we deal with decorators, also made it easy to create our own injection decorators that don't rely on reflect-metadata. It's not perfect but I think it's better than requiring users to import this special package once.

Added

Changed

Fixed

Removed