Skip to content

Releases: quiqueporta/simple-value-object

3.3.0

25 May 18:06
Compare
Choose a tag to compare
  • Fix hash for value objects
  • Remove the CannotBeChanged exception. It is not necessary anymore.

3.2.0

25 May 14:55
Compare
Choose a tag to compare

Add customs exceptions for invariants

3.0.1

10 May 11:30
Compare
Choose a tag to compare

Removed unused imports

3.0.0

13 Apr 21:27
Compare
Choose a tag to compare

This new version is a complete rewrite of the library, now it uses data classes to define the value objects.
With this change we can use type hints to define the fields and the library will take care of the rest.
Now you have autocomplete and type checking in your IDE. With the previous version, you did no autocomplete or type-checking.
You should be able to use this library with any version of Python 3.7 or higher.

2.0.0

27 Oct 21:55
9fb2986
Compare
Choose a tag to compare

We have improved the instantiation time by ~60% among other things.
Now creating a value object is faster.

  • Improve instantiation time
  • Rename CannotBeChangeException to CannotBeChanged
  • Rename InvariantReturnValueException to InvariantMustReturnBool
  • Rename NotDeclaredArgsException to ConstructorWithoutArguments
  • Rename ViolatedInvariantException to InvariantViolation
  • Simplifly invariants now receive self-attribute only
  • Fix replace_mutable_kwargs_with_immutable_types for set kwargs

1.5.0

07 Dec 10:38
Compare
Choose a tag to compare
Remove python 2.x compatibility

1.4.0

13 Jun 08:51
Compare
Choose a tag to compare
Bump version

1.3.0

29 Apr 15:04
Compare
Choose a tag to compare
Update README

1.2.0

15 Jan 12:33
Compare
Choose a tag to compare
Reduced the creation time

0.3.1

15 Jan 13:56
Compare
Choose a tag to compare
Increase version