Switch from deprecated jQuery.trim to String.prototype.trim

Created on 14 September 2024, 3 months ago
Updated 15 September 2024, 3 months ago

Problem/Motivation

jQuery.trim()

Note: This API has been deprecated in jQuery 3.5; please use the native String.prototype.trim method instead. Unlike jQuery.trim, String.prototype.trim does not work with types other than strings (null, undefined, Number). Make sure that your code is compatible when migrating.

Proposed resolution

Switch to String.prototype.trim()

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ✅ Code review by maintainers
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release notes snippet
  • ✅ Release autocomplete_deluxe-2.0.4

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3474428 : Switched from deprecated jQuery.trim to String.prototype.trim
📌 Task
Status

Fixed

Version

2.0

Component

Code (miscellaneous)

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024