Skip to content

Conversation

@webdeveric
Copy link
Owner

  • Updated toPascalCase() to better handle uppercase words
  • Updated dependencies
  • Updated pnpm version

@webdeveric webdeveric requested a review from Copilot October 26, 2025 16:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the toPascalCase() function to properly preserve uppercase words (like "DLQ" or "UPPERCASE") when converting strings to PascalCase format. The implementation optimizes type checking by replacing a custom getType() call with a native typeof operator, and updates project dependencies including pnpm, TypeScript, and various development tools.

  • Added regex pattern to detect and preserve consecutive uppercase letters
  • Replaced custom type check with native typeof operator
  • Updated development dependencies to latest versions

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/toPascalCase.test.ts Added test cases to verify uppercase word handling (DLQ, UPPERCASE words, mixed alphanumeric)
src/toPascalCase.ts Updated regex pattern to capture uppercase sequences and simplified type checking logic
package.json Updated pnpm package manager and multiple dev dependencies to newer versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@webdeveric webdeveric merged commit d57aa00 into master Oct 26, 2025
4 checks passed
@webdeveric webdeveric deleted the dev branch October 26, 2025 20:01
@github-actions
Copy link

🎉 This PR is included in version 0.74.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants