Skip to content

Fix outdated info and links in README#566

Merged
ai merged 1 commit into
ai:mainfrom
mahmoodhamdi:docs/fix-readme-issues
Mar 15, 2026
Merged

Fix outdated info and links in README#566
ai merged 1 commit into
ai:mainfrom
mahmoodhamdi:docs/fix-readme-issues

Conversation

@mahmoodhamdi

Copy link
Copy Markdown
Contributor

A few corrections in the main README:

  • Size comparison: Updated "130 bytes" to "118 bytes" to match the actual size-limit config and the headline claim
  • Duplicate link reference: Removed the second [ID collision probability] definition (line 277) which pointed to the old alex7kom.github.io URL — the correct zelark.github.io definition on line 229 already covers it
  • ESM import: Changed require('nanoid') to import ... from 'nanoid' in the Custom Random Bytes Generator section since nanoid v5 is ESM-only
  • React docs link: Updated useId link from legacy reactjs.org to react.dev

- Update size comparison from 130 to 118 bytes (matches actual size-limit)
- Remove duplicate collision calculator link with outdated URL
- Use ESM import instead of require() in customRandom example
- Update React useId link to react.dev (reactjs.org is legacy)
@ai ai merged commit c7ca9e9 into ai:main Mar 15, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants