ocaml-crockford v1.0.0 is the first public release of this Crockford Base32 encoding library, which converts integers into short identifiers using an alphabet that avoids visually ambiguous characters. The release includes full interface documentation and a bundled command-line tool for generating identifiers.
Features
- Custom random source: The generate function now accepts an optional argument for supplying your own random source. This lets you produce deterministic or reproducible identifiers in tests or controlled environments.
- Bare identifier output: The bundled roguedoi command now prints a prefix/suffix identifier directly instead of embedding it in a hard-coded DOI URL. You can use the output in any context without stripping a URL prefix.
Compatibility
- MIT license: The package is now distributed under the MIT license, previously ISC. Downstream packaging metadata reflects the change.
- Widened test dependency: The alcotest requirement for running the test suite is relaxed from 1.9.0 to 1.5.0. This widens the range of build environments in which the tests can run.