A new, simplified major version, with breaking changes.
- New methods
FromString,FromReaderandFromBytes, which are renames ofNewSegmenter,NewScanner, etc. The thing you’re passing is more interesting than the iterator type. - Removed
Filter,TransformandAll. These were convenience methods, not offering any particular value that a Go programmer could not do themselves. Focus on this library’s purpose. - Kept
Joiners, where I do believe we can do things better than the caller.
Requires Go 1.20 or later (though I could negotiate that).
Full Changelog: https://github.com/clipperhouse/uax29/compare/v1.16.0...v2.0.0