Skip to content

feat(micro-utilities): add lower-case-first to replacements - #1311

Open
rickysinghmba wants to merge 1 commit into
e18e:mainfrom
rickysinghmba:feat/micro-lower-case-first
Open

rickysinghmba wants to merge 1 commit into
e18e:mainfrom
rickysinghmba:feat/micro-lower-case-first

Conversation

@rickysinghmba

Copy link
Copy Markdown

Closes #1307

Adds lower-case-first to the micro-utilities manifest with a new snippet::lowercase-first-character replacement, mirroring the existing upper-case-first / snippet::uppercase-first-character entries.

lower-case-first is deprecated on npm with the message "Use input.charAt(0).toLowerCase() + input.slice(1)", which is the snippet used here.

pnpm lint (Prettier, schema and manifest checks) passes locally, and pnpm sort-manifests makes no changes.

🤖 Generated with Claude Code

Closes e18e#1307

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maksimgm

Copy link
Copy Markdown
Contributor

checked the snippet against lower-case-first 2.x and 3.0.0 with empty strings, unicode and astral chars, same output, and all of them throw on null/undefined

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.

[Replacement]: lower-case-first

2 participants