Skip to content

feat(NanoID) : Created a nanoid validator - #2607

Open
Durgeshwar-AI wants to merge 4 commits into
validatorjs:masterfrom
Durgeshwar-AI:master
Open

Durgeshwar-AI wants to merge 4 commits into
validatorjs:masterfrom
Durgeshwar-AI:master

Conversation

@Durgeshwar-AI

@Durgeshwar-AI Durgeshwar-AI commented Oct 14, 2025 •

Copy link
Copy Markdown

Created a validator for the nanoid which is notable for being fast, small, and having no external dependencies, making it a popular alternative to UUIDs and also added tests for nanoid and isDecimal(Which was absent previously)

https://github.com/ai/nanoid
https://www.mtechzilla.com/blogs/why-nano-id-is-better-than-uuid#:~:text=The%20collision%20probability%20analysis%20reveals,to%20UUID's%2036%2Dcharacter%20format.

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@codecov

codecov Bot commented Oct 14, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9ff3424) to head (ba00e6d).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2607   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       115    +1     
  Lines         2599      2615   +16     
  Branches       658       661    +3     
=========================================
+ Hits          2599      2615   +16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 16:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants