Releases: jitesoft/php-datastructures
4.1.0
4.0.0
This would be a minor release if it was not for some minor breaking changes.
- Added
tryGetmethod to MAP interface / implementations.
The tryGet method accepts a key and an optional default return value
in case the key does not exist. - Made some minor cleanup to the codebase and tests to make sure that the
required standards are followed.
breaking changes
- Updated exceptions that are thrown when trying to access a key in a map structure.
This now throws an InvalidKeyException (still inheriting from JitesoftException)
instead of a InvalidArgumentException. - Updated exception thrown when trying to access a invalid link in a node. This
now throws an OutOfBoundsException instead of an InvalidArgumentException.
Version 3.0.0
This version contains some minor API changes which makes a major version bump required.
It contains a new MapInterface and a SimpleMap implementation using a native array as base. It also contains Arrays::sort and IndexedList.sort methods which uses a new AbstractSort class for implementation of various sorts. Currently NativeSort, GnomeSort and QuickSort are implemented.
Version 2.0.1
Merge pull request #2 from jitesoft/develop Package update.
Version 1.0.0 release.
After finalizing the Vector 2D and 3D classes and helpers I decided to mark the package as in version 1.0.0.
The current state of the package contains structures and math classes for the basic structures I wanted into the package.
More structures and math classes will be added later on.