Skip to content

Commit

Permalink
v4.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Frasser committed Jan 21, 2022
1 parent a5f1f39 commit ef27adf
Show file tree
Hide file tree
Showing 14 changed files with 536 additions and 586 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Linkify Changelog

## v4.0.0

## Breaking Changes
* Removed deprecated `linkifyjs/string`, `linkifyjs/html`, `linkifyjs/plugins/*` packages
* Refactored scanner internals break plugins created with Linkify v3
* Links that begin with `mailto:` now have type `url` instead of `email`

## Added
* `linkify.find()` function accepts a third `options` argument for output formatting
* Link token methods `toFormattedString(options)`, `toFormattedHref(options)` and `toFormattedObject(options)` that accept a `linkify.Options` object
* New `render` option to override link rendering
* More granular scanner tokens for improved plugin flexibility
* Second `optionalSlashSlash` argument for `registerCustomProtocol` to allow links that don't require `//` after `scheme:`

## Fixed
* Improved HTML entity parsing with `linkify-html`
* Improved link detection with mixed languages
* Consistent option availability across interfaces (including `truncate`)

## v3.0.5

* Fix potential Cross-Site Scripting issue when using `linkify-html`
Expand Down
1,046 changes: 482 additions & 564 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify",
"version": "3.0.5",
"version": "4.0.0-beta.1",
"description": "Intelligent link recognition, made easy",
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,7 @@
"copyfiles": "^2.4.1",
"coveralls": "^3.1.0",
"eslint": "^8.3.0",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-mocha": "^10.0.3",
"glob": "^7.1.6",
"jquery": "^3.6.0",
"jsdom": "^11.12.0",
Expand Down Expand Up @@ -68,7 +68,7 @@
},
"workspaces": [
"./packages/linkifyjs",
"./packages/linkify-plugin-*/",
"./packages/linkify-plugin-*",
"./packages/*"
]
}
4 changes: 2 additions & 2 deletions packages/linkify-element/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-element",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "Browser DOM element interface for linkifyjs",
"main": "index.js",
"module": "dist/linkify-element.module.js",
Expand Down Expand Up @@ -30,6 +30,6 @@
},
"homepage": "https://linkify.js.org",
"peerDependencies": {
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
}
}
4 changes: 2 additions & 2 deletions packages/linkify-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-html",
"version": "3.0.5",
"version": "4.0.0-beta.1",
"description": "HTML String interface for linkifyjs",
"main": "index.js",
"module": "dist/linkify-html.module.js",
Expand Down Expand Up @@ -33,6 +33,6 @@
"@nfrasser/simple-html-tokenizer": "==0.5.11-2"
},
"peerDependencies": {
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
}
}
6 changes: 3 additions & 3 deletions packages/linkify-jquery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-jquery",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "jQuery interface for linkifyjs",
"main": "index.js",
"module": "dist/linkify-jquery.module.js",
Expand Down Expand Up @@ -32,9 +32,9 @@
"homepage": "https://linkify.js.org",
"peerDependencies": {
"jquery": ">= 1.11.0",
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
},
"devDependencies": {
"linkify-element": "^3.0.0"
"linkify-element": "*"
}
}
4 changes: 2 additions & 2 deletions packages/linkify-plugin-hashtag/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-plugin-hashtag",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "Hashtag plugin for linkifyjs",
"main": "index.js",
"module": "dist/linkify-plugin-hashtag.module.js",
Expand Down Expand Up @@ -29,6 +29,6 @@
},
"homepage": "https://linkify.js.org",
"peerDependencies": {
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
}
}
4 changes: 2 additions & 2 deletions packages/linkify-plugin-mention/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-plugin-mention",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "@mentions plugin for linkifyjs",
"main": "index.js",
"module": "dist/linkify-plugin-mention.module.js",
Expand Down Expand Up @@ -29,6 +29,6 @@
},
"homepage": "https://linkify.js.org",
"peerDependencies": {
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
}
}
4 changes: 2 additions & 2 deletions packages/linkify-plugin-ticket/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-plugin-ticket",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "Numeric ticket plugin for linkifyjs",
"main": "index.js",
"module": "dist/linkify-plugin-ticket.module.js",
Expand Down Expand Up @@ -29,6 +29,6 @@
},
"homepage": "https://linkify.js.org",
"peerDependencies": {
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
}
}
4 changes: 2 additions & 2 deletions packages/linkify-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-react",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "React element interface for linkifyjs",
"main": "index.js",
"module": "dist/linkify-react.module.js",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://linkify.js.org",
"peerDependencies": {
"linkifyjs": "^3.0.0",
"linkifyjs": "*",
"react": ">= 15.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/linkify-string/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkify-string",
"version": "3.0.4",
"version": "4.0.0-beta.1",
"description": "String interface for linkifyjs",
"main": "index.js",
"module": "dist/linkify-string.module.js",
Expand Down Expand Up @@ -29,6 +29,6 @@
},
"homepage": "https://linkify.js.org",
"peerDependencies": {
"linkifyjs": "^3.0.0"
"linkifyjs": "*"
}
}
13 changes: 13 additions & 0 deletions packages/linkifyjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/linkifyjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkifyjs",
"version": "3.0.5",
"version": "4.0.0-beta.1",
"description": "Find URLs, email addresses, #hashtags and @mentions in plain-text strings, then convert them into HTML <a> links.",
"main": "index.js",
"module": "dist/linkify.module.js",
Expand Down
2 changes: 1 addition & 1 deletion test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
# Run complete test suite only these conditions hold
if [[ "$1" == "--dist" ]]; then
echo "Running complete test suite..."
npm run lint
# npm run lint # Causes segfault, pause for now
npm run test:coverage
npm run build:ci
npm run copy
Expand Down

0 comments on commit ef27adf

Please sign in to comment.