Skip to content

Releases: philips-software/odin

v2.1.0

19 Oct 17:51
Compare
Choose a tag to compare

2.1.0 (2023-10-19)

Features

  • rename package to @philips-software/odin (2365850)

This release is also available on:

v3.0.0

04 Oct 20:53
Compare
Choose a tag to compare

3.0.0 (2023-10-04)

  • refactor!: migrate to typescript (9a7a32d)

Features

  • add deprecation warnings and improve error messages (b9412b4)
  • allow custom injectable name (fbd702d)
  • allow manual constructors with optional injects (9fa92ae)
  • deps: update dependencies and node engine version (27bf5b3)
  • reuse singleton odin instance (b172fe1)

BREAKING CHANGES

  • The @OdinConfig decorator is now @Configuration.
  • The @PostConstruct decorator is now @Initializer.
  • The @Singleton decorator is now @Injectable({ singleton: true }).
  • Bundle.get now returns undefined instead of null.
  • Container.get now returns undefined instead of null.
  • Container.provide now returns undefined instead of null.
  • CustomProvider.resolve now returns undefined instead of null.
  • Registry.get now returns undefined instead of null.
  • Renamed InjectableDef to Descriptor.
  • Renamed InjectableDef.args to Descriptor.options.
  • Renamed InjectableDef.definition to Descriptor.injectable.
  • Renamed Bundle.checkHas to Bundle.validateRegistration.
  • Renamed Registry.checkHas to Registry.validateRegistration.
  • Renamed Secrets.getPostContruct to Secrets.getInitializer.
  • Renamed Secrets.setPostContruct to Secrets.setInitializer.
  • Removed Bundle.getId. The user should not have to decide which identifier to use, all of them should be accepted everywhere.
  • Removed Registry.getId. The user should not have to decide which identifier to use, all of them should be accepted everywhere.
  • Removed Registry.hasName. It has been covered by the new has implementation.
  • Removed Secrets.getNamed, Secrets.isNamed and Secrets.setNamed. It was the wrong solution for a simple problem, which has now been resolved. Feel free to implement/manage your own secrets.
  • Removed Secrets.getWrapper, Secrets.isWrapper and Secrets.setWrapper. The wrapper had no purpose within odin itself. Feel free to implement/manage your own secrets.
  • Removed Secrets.isCustom and Secrets.setCustom. The custom flag had no purpose within odin itself. Feel free to implement/manage your own secrets.

This release is also available on:

v2.0.0

20 Jun 01:51
Compare
Choose a tag to compare

2.0.0 (2023-06-20)

Code Refactoring

  • remove auto binding (2ec080c)
  • rename unregister to deregister of Bundle and Registry (b7355f4)

Features

  • support injectable wrappers for composing decorators (8cdefea)

BREAKING CHANGES

  • Removed the auto binding of action, state and any other methods that start with on.
    Binding must be done by the user, as odin should not be responsible for choosing which methods should be bound.

  • Renamed unregister to deregister of the Bundle and Registry classes.
    The removal is now done using the definition itself, so the args argument has been removed.


This release is also available on:

v1.5.4

29 Jun 17:19
Compare
Choose a tag to compare
1.5.4

v1.5.3

29 Jun 17:08
Compare
Choose a tag to compare
1.5.3

v1.5.2

28 Jun 20:35
Compare
Choose a tag to compare
1.5.2

v1.5.1

28 Jun 20:30
Compare
Choose a tag to compare
1.5.1

v1.4.2

02 Mar 17:23
Compare
Choose a tag to compare
v1.4.2

First open source release

01 Mar 09:39
4ef98ae
Compare
Choose a tag to compare
v1.3.0

Explicitly state this is a public package in package.json