Skip to content

Comments

Remove deprecated trim package dependency#2726

Closed
FenPWysocki wants to merge 1 commit intoauth0:masterfrom
FenPWysocki:master
Closed

Remove deprecated trim package dependency#2726
FenPWysocki wants to merge 1 commit intoauth0:masterfrom
FenPWysocki:master

Conversation

@FenPWysocki
Copy link

Changes

Removes the deprecated trim@1.0.1 npm package and replaces all usages with the native String.prototype.trim() method.

  • Removed trim from dependencies in package.json
  • Replaced all trim() function calls with .trim() method across source files:
    • src/field/index.js
    • src/field/username.js
    • src/field/mfa_code.js
    • src/field/email.js
    • src/core/index.js
    • src/connection/database/index.js
    • src/avatar/gravatar_provider.js

References

Resolves npm deprecation warning: npm warn deprecated trim@1.0.1: Use String.prototype.trim() instead

Testing

  • All existing tests pass
  • No breaking changes - functionality remains identical as String.prototype.trim() is a native, widely-supported browser API

Checklist

@FenPWysocki FenPWysocki requested a review from a team as a code owner February 3, 2026 09:04
@FenPWysocki FenPWysocki closed this Feb 3, 2026
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