Skip to content

typings: remove deprecated and unused string methods from primordials

This Pull Request (PR) aims to clean up the primordials module by removing methods that are deprecated and no longer used within the Node.js codebase. This update follows the latest JavaScript standards and helps to maintain consistency and improve the maintainability of the codebase.

Changes

The following methods have been removed from the primordials.d.ts file:

  • StringPrototypeTrimLeft
  • StringPrototypeTrimRight
  • StringPrototypeSup
  • StringPrototypeStrike
  • StringPrototypeSub
  • StringPrototypeSubstr
  • StringPrototypeSmall
  • StringPrototypeFontcolor
  • StringPrototypeFontsize
  • StringPrototypeFixed
  • StringPrototypeItalics
  • StringPrototypeAnchor
  • StringPrototypeBig
  • StringPrototypeBlink
  • StringPrototypeBold
  • RegExpPrototypeCompile

Reasons for Changes

Deprecated Status:

  • These methods are deprecated and replaced by more modern and standardized alternatives.
  • Examples include trimLeft and trimRight, which are replaced by trimStart and trimEnd respectively.

Codebase Cleanup:

  • Removing unused and deprecated methods simplifies the codebase, making it easier to maintain and less error-prone.

Compatibility Issues:

  • Deprecated methods may no longer be supported in future versions of JavaScript engines and browsers, potentially causing compatibility issues.

Merge request reports

Loading