0.4.0
Features
- Added two new methods to
Encoding
:encode(String, int)
andencodeOrdinary(String, int)
. Both methods allow you to pass a maxTokens integer parameter that stops encoding after the given maximum amount of tokens is reached. Thanks @radosdesign for raising this feature request and implementing it 😊
Breaking Changes
- The
Encoding
interface got two new methods:encode(String, int)
andencodeOrdinary(String, int)
. If you implemented this interface yourself, you have to update your implementations when upgrading.
New Contributors
- @radosdesign made their first contribution in #12
Full Changelog: 0.3.0...0.4.0