Skip to content

v6.1.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 19:56
· 30 commits to master since this release
968e10c

Changes

  • feat(value-object): ✨ Allow disabling automatic NullObject creation

Release details

Pull request notes

Summary

Allow applications to disable automatic NullObject creation globally.

  • Add ValueObject.disableNullObjectCreation() and ValueObject.enableNullObjectCreation().
  • Throw NullObjectCreationDisabledError for nullish construction when automatic creation is disabled.
  • Preserve automatic NullObject creation by default.
  • Add the error export, tests, and documentation.

One commit based directly on current master, which already includes #53 and #56. The diff contains only NullObject creation control; package-format changes are excluded.

Semver

Additive / minor. Existing behavior remains the default.

Validation

Locally validated: 562 tests, ESLint, and TypeScript checking pass.