kpermute

Changelog

Synced from GitHub Releases.

  1. v1.3.0

    Correctness and API cleanup release: permutation types are renamed by domain, domain boundaries and full-width ranges are handled correctly, and argument validation is consistent across all factories.

    Breaking changes

    • Renamed UIntPermutation/ULongPermutation to BoundedIntPermutation/BoundedLongPermutation, and ArrayIntPermutation/ArrayLongPermutation to SmallIntPermutation/SmallLongPermutation.
    • Removed HalfIntPermutation/HalfLongPermutation; use BoundedIntPermutation/BoundedLongPermutation instead.
    • Encoded outputs differ from v1.2.0 due to improved key derivation and implementation selection.
    • Java: intPermutation(int, long) and intPermutation(long) overloads removed.
    • List views reject offset ranges and throw IndexOutOfBoundsException.
    • Invalid offsets, sizes and rounds now throw IllegalArgumentException.

    Changes

    • feat: enable snapshot releases to Sonatype snapshots repo #8
    • chore: update kbuild to 1.3.6 (now from GitHub releases), Gradle to 9.7.1 and CI to JDK 25, provision toolchains with foojay, standardize GitHub workflows, and publish snapshots on every push to main #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #37, #38
    • fix: support range rebasing and validate unsigned inputs #24
    • fix: handle permutation domain boundaries correctly #25
    • refactor: replace Half permutations with Bounded and rename by domain #27
    • fix: use the top default round band for unsigned sizes #28
    • fix: validate offsets and constructor arguments consistently #29
    • fix: align Java factory overloads and range size errors #31
    • fix: reject offset range views and use IndexOutOfBounds in list views #32
    • fix: decorrelate seeded keys, widen table cutoff and accept full-width ranges #33
    • fix: report full-domain sizes in long range errors and add range view toString #36

    Full changelog: v1.2.0...v1.3.0

  2. v1.2.0

    Toolchain refresh: Kotlin 2.3.20, Gradle 9.5.1, kbuild 1.2.1.

    • chore: update Kotlin to 2.3.20, Gradle to 9.5.1, and kbuild to 1.2.1.

    Full Changelog: https://github.com/Eignex/kpermute/compare/v1.1.2...v1.2.0

  3. v1.1.2

    Patch release that fixes a broken publish in v1.1.1.

    • fix: bump the com.eignex.kmp plugin to 1.1.4 to fix the broken release.

    Full Changelog: https://github.com/Eignex/kpermute/compare/v1.1.1...v1.1.2

  4. v1.1.1

    Quality and tooling pass that splits interfaces into their own files, applies consistent formatting, and expands the set of published target platforms.

    • refactor: move each public interface into its own source file.
    • style: add an .editorconfig and apply project-wide formatting.
    • ci: add a linter step to the GitHub Actions workflow.
    • chore: update to the com.eignex.kmp plugin 1.1.1 and expand target platforms.
    • ci: remove a redundant clean step from the release workflow.

    Full Changelog: https://github.com/Eignex/kpermute/compare/v1.1.0...v1.1.1

  5. v1.1.0

    Restructures the project as a Kotlin Multiplatform library so the permutation APIs can be consumed beyond the JVM.

    • build: migrate the build from JVM-only to Kotlin Multiplatform.
    • docs: update the README and documentation links to reflect the KMP layout.

    Full Changelog: https://github.com/Eignex/kpermute/compare/v1.0.1...v1.1.0

  6. v1.0.1

    Maintenance release that updates the toolchain, tidies the release pipeline, and renames the publishing org from eigenity to eignex.

    • chore: update Kotlin and bump Gradle to 9.2.1.
    • refactor: rename the group/publisher from eigenity to eignex.
    • ci: simplify the release script and allow manual workflow runs.
    • ci: fix credential and environment variable handling in the release workflow.
    • docs: simplify README examples and refresh documentation.

    Full Changelog: https://github.com/Eignex/kpermute/compare/v1.0.0...v1.0.1

  7. v1.0.0

    First public release of kpermute, a small Kotlin library that provides reversible bijective permutations over the full 32-bit Int range and the full 64-bit Long range, suitable for shuffling, ID obfuscation, and deterministic iteration without storing the permutation.

    • feat: implement IntPermutation covering the full 2^32 range with encode/decode and an unchecked hot path.
    • feat: add LongPermutation with a half-long variant, long utilities, and a factory method mirroring the int API.
    • feat: add ArrayIntPermutation for small/degenerate sizes and shared range/list utilities.
    • test: include extensive unit tests plus a statistical fuzzing test covering both int and long permutations.
    • build: ship a Gradle build with signing, code coverage via Kover, and a GitHub Actions release workflow.

    Full Changelog: https://github.com/Eignex/kpermute/commits/v1.0.0