Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade linkifyjs from 2.1.9 to 3.0.5 #500

Open
wants to merge 1 commit into
base: future
Choose a base branch
from

Conversation

DerekNonGeneric
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade linkifyjs from 2.1.9 to 3.0.5.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 9 versions ahead of your current version.
  • The recommended version was released 7 months ago, on 2022-01-03.
Release notes
Package name: linkifyjs
  • 3.0.5 - 2022-01-03
    • Fix potential Cross-Site Scripting issue when using linkify-html
  • 3.0.4 - 2021-11-24
    • Expose ES6 modules with "module" field in package.json (#363 - thanks @ palash2601)
  • 3.0.3 - 2021-10-14
  • 3.0.2 - 2021-10-11
    • Correctly detect hashtags with underscores
    • Fix plugin import bug
    • Fix linkify-string and linkify-html type declarations
  • 3.0.1 - 2021-09-16
    • Fix React component type declarations
    • Include LICENSE file in all published packages
  • 3.0.0 - 2021-09-15

    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'

  • 3.0.0-beta.3 - 2021-03-11

    v3.0.0-beta.3

  • 3.0.0-beta.2 - 2021-03-11

    Fixes #293

  • 3.0.0-beta.1 - 2021-03-08

    WIP README and CHANGELOG

  • 2.1.9 - 2020-01-30
    • Move optional dependencies to peerdependencies (#282)
    • Fix npm install displays vulnerabilities. (#265)
    • Fix typo (#275)
from linkifyjs GitHub release notes
Commit messages
Package name: linkifyjs

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants