Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@Arttse Arttse released this 09 Mar 11:40
v2.0.0
5bda95d

install size Coverage Status

  • Rewritten without punycode package. Now using WHATWG URL.
  • Package domains moved to optionalDependencies. Now you can install without domains package:
    # NPM
    $ npm install is-url-relative-without-domain --no-optional
    
    # Yarn
    $ yarn add is-url-relative-without-domain --ignore-optional
  • Added second argument for script. Now you can specify your own list of domains:
    isUrlRelativeWithoutDomain('site.com/foo/bar', ['com', 'рф', '世界']);
  • Added TypeScript declaration file.
  • Drop support for old Node.js versions. Requires Node.js >= 6.13.