Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linkifyjs

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkifyjs - npm Package Versions

1345

4.0.0-beta.3

Diff

nfrasser
published 4.0.0-beta.2 •

nfrasser
published 4.0.0-beta.1 •

nfrasser
published 3.0.5 •

Changelog

Source

v3.0.5

  • Fix potential Cross-Site Scripting issue when using linkify-html
nfrasser
published 3.0.4 •

Changelog

Source

v3.0.4

  • Expose ES6 modules with "module" field in package.json
nfrasser
published 3.0.3 •

Changelog

Source

v3.0.3

  • Add linkifyjs ES6 module build
nfrasser
published 3.0.2 •

Changelog

Source

v3.0.2

  • Correctly detect hashtags with underscores
  • Fix plugin import bug
  • Fix linkify-string and linkify-html type declarations
nfrasser
published 3.0.1 •

Changelog

Source

v3.0.1

  • Fix React component type declarations
  • Include LICENSE file in all published packages
nfrasser
published 3.0.0 •

Changelog

Source

v3.0.0

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";
    
nfrasser
published 3.0.0-beta.3 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc