Releases: TeaCoder52/patcode
v1.0.1
This release introduces several improvements across the code generation engine, documentation, and module compatibility.
It also resolves a critical issue preventing Patcode from loading correctly in CommonJS environments.
What’s new
Analyze API
A new analyze() function was added, providing structural insights into numeric codes:
- entropy estimation
- memorability scoring
- collision risk classification
- sequential pattern detection
- repeated-group analysis
This enables developers to evaluate human-friendliness and code quality programmatically.
Universal RNG Engine
A new cross-platform random generator abstraction was implemented:
- supports browser crypto
- supports Node.js crypto (secure fallback)
- supports custom RNG profiles
- can be extended via
rng.register()
This lays the foundation for future adaptive generation profiles.
Documentation Improvements
A top-level documentation index (docs/index.md) was added to structure and prepare extended library documentation.
Fixes
CJS Export Path Fixed
A critical issue was resolved where the package incorrectly referenced dist/index.cjs, causing MODULE_NOT_FOUND errors in CommonJS environments.
The correct CJS entrypoint is now dist/index.js.
v1.0.0 - First stable release
First stable release of Patcode - a human-friendly numeric code generator based on memorable patterns.