Skip to content

0.3.0

Latest

Choose a tag to compare

@airmrcr airmrcr released this 04 Aug 19:30
  • Breaking Change: Remove start and end 2nd and 3rd optional parameters and always escape full range of input
    parameter
    • Caller is now responsible for slicing the input parameter beforehand, if desired
  • Breaking Change: Add optional options 2nd parameter to support the following:
    • filter - A function used to determine which Unicode code points should be converted to Unicode escapes
    • replacer - A function that returns a replacement string for an individual Unicode character represented by a
      specific Unicode code point, if any
  • Breaking Change: Return empty string if input parameter is either null or undefined
  • Explicitly add full support for converting characters within the Basic Multilingual Plane (BMP)
  • Rewrite the entire codebase in TypeScript and support both ESM and CJS usage
  • Improve documentation
  • Improve the developer experience for contributors with better tooling
  • Bump all dependencies to latest versions