Skip to content

Conversation

@FenPWysocki
Copy link

Changes

Removes the deprecated [email protected] 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 [email protected]: 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 January 12, 2026 07:58
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