Skip to content

v0.5.0

Compare
Choose a tag to compare
@PsychoLlama PsychoLlama released this 12 Aug 16:49
· 317 commits to main since this release

Changed

  • Wardens is now published with ESM (type=module). It should be backwards compatible.
  • Now destroy(...) throws if you pass an object that wasn't constructed with create(...).

Fixed

  • If a resource fails while initializing, now all intermediate child resources are destroyed as well.
  • If a resource fails while being destroyed, now its child resources are destroyed as well.
  • Resources can no longer provision child resources after teardown. This closes a loophole where resources could escape destruction.

Added

  • New ResourceHandle<T> utility type represents the value returned when creating a resource.