Releases: bermi/password-generator
Releases · bermi/password-generator
v3.0
Breaking Changes
generatePassword()is now async and returns aPromise<string>.- ESM-only package output (
type: module); CommonJSrequire()is no longer supported. - Node 20+ is required.
- Defaults are now non-memorable with
length: 12. - Security recommendations enforce a minimum entropy threshold unless
ignoreSecurityRecommendations: trueis set. - Legacy UMD/global builds and Bower/Ender integrations were removed.
Migration (v2 -> v3)
- Update calls to
await generatePassword(...)or usegeneratePasswordWithOptionswithawait. - Switch CommonJS
require()to ESMimportand ensure Node 20+. - If you used short lengths, restrictive patterns, or memorable mode, handle new security recommendations by increasing length/pattern breadth or passing
ignoreSecurityRecommendations: true. - Update CLI expectations: defaults are non-memorable,
-muses a longer length, and-s/-sNgenerates passphrases.
Added
- TypeScript-first core with strict typing.
- WebCrypto-based randomness for Node and browser.
- Deterministic entropy option for tests and simulations.
- Passphrase mode via
words(memorable 3-7 letter words). - Bun build/test pipeline, type tests, and Playwright browser checks.
- Benchmark harness and documentation.
Changed
- CLI now calls the async API and supports secure defaults.
- CLI adds
-s/-sNfor passphrase generation. - Build output ships as ESM with explicit exports and declaration files.
What's Changed
- feat!: v3 modernization and migration notes by @bermi in #46
- Simplify v3, fix memorable mode efficiency by @bermi in #47
Full Changelog: 2.3.2...v3.0