Skip to content

Commit ef27adf

Browse files
author
Nick Frasser
committed
v4.0.0-beta.1
1 parent a5f1f39 commit ef27adf

File tree

14 files changed

+536
-586
lines changed

14 files changed

+536
-586
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Linkify Changelog
22

3+
## v4.0.0
4+
5+
## Breaking Changes
6+
* Removed deprecated `linkifyjs/string`, `linkifyjs/html`, `linkifyjs/plugins/*` packages
7+
* Refactored scanner internals break plugins created with Linkify v3
8+
* Links that begin with `mailto:` now have type `url` instead of `email`
9+
10+
## Added
11+
* `linkify.find()` function accepts a third `options` argument for output formatting
12+
* Link token methods `toFormattedString(options)`, `toFormattedHref(options)` and `toFormattedObject(options)` that accept a `linkify.Options` object
13+
* New `render` option to override link rendering
14+
* More granular scanner tokens for improved plugin flexibility
15+
* Second `optionalSlashSlash` argument for `registerCustomProtocol` to allow links that don't require `//` after `scheme:`
16+
17+
## Fixed
18+
* Improved HTML entity parsing with `linkify-html`
19+
* Improved link detection with mixed languages
20+
* Consistent option availability across interfaces (including `truncate`)
21+
322
## v3.0.5
423

524
* Fix potential Cross-Site Scripting issue when using `linkify-html`

package-lock.json

Lines changed: 482 additions & 564 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify",
3-
"version": "3.0.5",
3+
"version": "4.0.0-beta.1",
44
"description": "Intelligent link recognition, made easy",
55
"repository": {
66
"type": "git",
@@ -40,7 +40,7 @@
4040
"copyfiles": "^2.4.1",
4141
"coveralls": "^3.1.0",
4242
"eslint": "^8.3.0",
43-
"eslint-plugin-mocha": "^9.0.0",
43+
"eslint-plugin-mocha": "^10.0.3",
4444
"glob": "^7.1.6",
4545
"jquery": "^3.6.0",
4646
"jsdom": "^11.12.0",
@@ -68,7 +68,7 @@
6868
},
6969
"workspaces": [
7070
"./packages/linkifyjs",
71-
"./packages/linkify-plugin-*/",
71+
"./packages/linkify-plugin-*",
7272
"./packages/*"
7373
]
7474
}

packages/linkify-element/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-element",
3-
"version": "3.0.4",
3+
"version": "4.0.0-beta.1",
44
"description": "Browser DOM element interface for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-element.module.js",
@@ -30,6 +30,6 @@
3030
},
3131
"homepage": "https://linkify.js.org",
3232
"peerDependencies": {
33-
"linkifyjs": "^3.0.0"
33+
"linkifyjs": "*"
3434
}
3535
}

packages/linkify-html/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-html",
3-
"version": "3.0.5",
3+
"version": "4.0.0-beta.1",
44
"description": "HTML String interface for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-html.module.js",
@@ -33,6 +33,6 @@
3333
"@nfrasser/simple-html-tokenizer": "==0.5.11-2"
3434
},
3535
"peerDependencies": {
36-
"linkifyjs": "^3.0.0"
36+
"linkifyjs": "*"
3737
}
3838
}

packages/linkify-jquery/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-jquery",
3-
"version": "3.0.4",
3+
"version": "4.0.0-beta.1",
44
"description": "jQuery interface for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-jquery.module.js",
@@ -32,9 +32,9 @@
3232
"homepage": "https://linkify.js.org",
3333
"peerDependencies": {
3434
"jquery": ">= 1.11.0",
35-
"linkifyjs": "^3.0.0"
35+
"linkifyjs": "*"
3636
},
3737
"devDependencies": {
38-
"linkify-element": "^3.0.0"
38+
"linkify-element": "*"
3939
}
4040
}

packages/linkify-plugin-hashtag/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-plugin-hashtag",
3-
"version": "3.0.4",
3+
"version": "4.0.0-beta.1",
44
"description": "Hashtag plugin for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-plugin-hashtag.module.js",
@@ -29,6 +29,6 @@
2929
},
3030
"homepage": "https://linkify.js.org",
3131
"peerDependencies": {
32-
"linkifyjs": "^3.0.0"
32+
"linkifyjs": "*"
3333
}
3434
}

packages/linkify-plugin-mention/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-plugin-mention",
3-
"version": "3.0.4",
3+
"version": "4.0.0-beta.1",
44
"description": "@mentions plugin for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-plugin-mention.module.js",
@@ -29,6 +29,6 @@
2929
},
3030
"homepage": "https://linkify.js.org",
3131
"peerDependencies": {
32-
"linkifyjs": "^3.0.0"
32+
"linkifyjs": "*"
3333
}
3434
}

packages/linkify-plugin-ticket/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-plugin-ticket",
3-
"version": "3.0.4",
3+
"version": "4.0.0-beta.1",
44
"description": "Numeric ticket plugin for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-plugin-ticket.module.js",
@@ -29,6 +29,6 @@
2929
},
3030
"homepage": "https://linkify.js.org",
3131
"peerDependencies": {
32-
"linkifyjs": "^3.0.0"
32+
"linkifyjs": "*"
3333
}
3434
}

packages/linkify-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linkify-react",
3-
"version": "3.0.4",
3+
"version": "4.0.0-beta.1",
44
"description": "React element interface for linkifyjs",
55
"main": "index.js",
66
"module": "dist/linkify-react.module.js",
@@ -30,7 +30,7 @@
3030
},
3131
"homepage": "https://linkify.js.org",
3232
"peerDependencies": {
33-
"linkifyjs": "^3.0.0",
33+
"linkifyjs": "*",
3434
"react": ">= 15.0.0"
3535
},
3636
"devDependencies": {

0 commit comments

Comments
 (0)