Skip to content

Releases: nfrasser/linkifyjs

v3.0.3

14 Oct 01:59
be87c9c
Compare
Choose a tag to compare

v3.0.2

11 Oct 03:08
5e41e69
Compare
Choose a tag to compare
  • Correctly detect hashtags with underscores
  • Fix plugin import bug
  • Fix linkify-string and linkify-html type declarations

v3.0.1

16 Sep 23:26
b8a6eef
Compare
Choose a tag to compare
  • Fix React component type declarations
  • Include LICENSE file in all published packages

v3.0.0

15 Sep 03:11
2cb7211
Compare
Choose a tag to compare

BREAKING CHANGES

  • React, jQuery and Element interfaces moved to dedicated packages at linkify-react,linkify-jquery and linkify-element respectively:
  • Remove default class="linkified" from all discovered links. Opt back in by setting the className option:
    linkifyStr(str, { className: 'linkified' })
  • Remove default target="_blank" attribute for discovered URLs. Opt back in by setting the target option:
    linkifyHtml(str, {
      target: (href, type) => type === 'url' && '_blank'
    })
  • React component: Remove outer <span> tag wrapper in favour of tag-less React.Fragment for React >=16. To opt back-in, set tagName='span':
    <Linkify tagName='span'>{content}</Linkify>
  • AMD module interface is no longer provided. Use an ESM bundler instead.
  • Plugins imported after linkify is called on a string for the first time will not longer work. Import all plugins before calling a linkify core or interface function.
  • Custom plugin API is not compatible with previous API in Linkify v2
  • Dropped support for Internet Explorer versions 9 and 10. IE11 is still supported
  • Dropped support for React versions <15

Deprecations

  • Use dedicated packages linkify-string and linkify-html instead of linkifyjs/string and linkifyjs/html. The embedded packages will be removed in v4.0
  • Use dedicated plugin packages linkify-plugin-[PLUGIN] instead of linkifyjs/plugin/[PLUGIN]. The embedded packages will be removed in v4.0

All Changes

  • Full Internationalized Domain (IDN) and Emoji domain support 🇺🇳🌍✈️🎉💃! Detect URLs, #hashtags and @mentions in any language
  • ~10x faster startup; ~4x faster combined startup + first run
  • Custom protocols with linkify.registerCustomProtocol('protocol')
  • Modernized codebase and build system
  • Add new rel option at top level as an alternate way of including it in attributes
  • New and improved plugin API
  • TypeScript definitions included in published packages
  • linkify.find() output includes start and end indexes for where in the string a link was found
  • Plugins no longer need to be called on linkify after import
    // Before
    import * as linkify from 'linkifyjs'
    import hashtag from 'linkifyjs/plugins/hashtag'
    hashtag(linkify)
    
    // After
    import * as linkify from 'linkifyjs'
    import 'linkifyjs/plugins/hashtag'

v2.1.9

08 Mar 03:44
9294b0f
Compare
Choose a tag to compare
  • Move optional dependencies to peerdependencies (#282)
  • Fix npm install displays vulnerabilities. (#265)
  • Fix typo (#275)

v2.1.8

29 Jan 23:36
6dda156
Compare
Choose a tag to compare
  • Allow mentions with inner @ sign for federated mentions - thanks @juliushaertl!
  • Drop official support for Internet Explorer 8 and Node.js 6 (still supported unofficially but may break in future releases)
  • Update dev dependencies

v2.1.6

03 Mar 19:26
Compare
Choose a tag to compare
  • Fix a bug where unique element IDs aren't unique (#215)
  • Update tlds.js (#213)
  • Automated browser test fixes (#224)
  • Add partialProtocolMailtoStates to domainStates (#210)
  • Use Object.defineProperty to extend String prototype so that 'linkify' function is not enumerable (#197)
  • Allow null overrides in options for target and className (#189)

v2.1.5

20 Sep 00:28
Compare
Choose a tag to compare
  • React plugin compatibility updates

v2.1.4

05 Jan 22:51
6e4b1ed
Compare
Choose a tag to compare
  • Add explicit support for mailto: addresses (#186)
  • Add support for mentions containing dots (#185)
  • URL followed by &nbsp; now works as expected in linkify-html (#184)
  • Small dependency updates (#183)
  • Drop deprecated babel-preset-es2015-loose dependency (#172) - Thanks @saivann
  • Web workers support (#168) - Thanks @sklyukin

v2.1.3

30 Sep 19:02
Compare
Choose a tag to compare
  • Links in angle brackets (#166) - Thanks @dbkr!