The 2 constructors for the Novu class are now Novu(apiKey) and Novu(novuConfig) (instead of Novu(apiKey, novuConfig)). That means the NovuConfig class now has apiKey as one of the fields. With this approach, we can easily introduce more parameters into the NovuConfig class in the future
Also, for separation of concerns, the Event functions were extracted into a dedicated class
The 2 constructors for the Novu class are now Novu(apiKey) and Novu(novuConfig) (instead of Novu(apiKey, novuConfig)). That means the NovuConfig class now has apiKey as one of the fields. With this approach, we can easily introduce more parameters into the NovuConfig class in the future
Also, for separation of concerns, the Event functions were extracted into a dedicated class