Skip to content

0.4.0

Compare
Choose a tag to compare
@tox-p tox-p released this 17 Apr 08:30

Features

  • Added two new methods to Encoding: encode(String, int) and encodeOrdinary(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) and encodeOrdinary(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