Comparing version 2.1.7 to 2.1.8
# Linkify Changelog | ||
### v2.1.8 | ||
* 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.7 | ||
@@ -4,0 +10,0 @@ |
@@ -27,2 +27,3 @@ define('linkify/plugins/mention', ['module', 'exports'], function (module, exports) { | ||
var TT_DOT = TT.DOT; | ||
var TT_AT = TT.AT; | ||
@@ -62,3 +63,3 @@ function MENTION(value) { | ||
// Mention with a divider | ||
S_MENTION.on(TT_SLASH, S_MENTION_DIVIDER).on(TT_DOT, S_MENTION_DIVIDER); | ||
S_MENTION.on(TT_SLASH, S_MENTION_DIVIDER).on(TT_DOT, S_MENTION_DIVIDER).on(TT_AT, S_MENTION_DIVIDER); | ||
@@ -65,0 +66,0 @@ // Mention _ trailing stash plus syms |
@@ -1,1 +0,1 @@ | ||
define("linkify/plugins/mention",["module","exports"],function(n,o){"use strict";function e(n){function o(n){this.v=n}var e=n.scanner.TOKENS,t=n.parser,i=t.TOKENS,r=t.State,s=i.Base,u=n.parser.start,a=e.DOMAIN,f=e.LOCALHOST,c=e.NUM,l=e.SLASH,p=e.TLD,d=e.UNDERSCORE,O=e.DOT;n.inherits(s,o,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var S=u.jump(e.AT),y=new r,T=new r(o),_=new r,h=new r;S.on(d,y),y.on(d,y).on(O,y),S.on(a,T).on(f,T).on(p,T).on(c,T),y.on(a,T).on(f,T).on(p,T).on(c,T),T.on(a,T).on(f,T).on(p,T).on(c,T).on(d,T),T.on(l,_).on(O,_),_.on(d,h),h.on(d,h),_.on(a,T).on(f,T).on(p,T).on(c,T),h.on(a,T).on(f,T).on(p,T).on(c,T)}try{try{Object.defineProperty(o,"__esModule",{value:!0})}catch(t){o.__esModule=!0}}catch(t){o.__esModule=!0}o["default"]=e,n.exports=o["default"]}),require(["linkify","linkify/plugins/mention"],function(n,o){o(n)}); | ||
define("linkify/plugins/mention",["module","exports"],function(n,o){"use strict";function e(n){function o(n){this.v=n}var e=n.scanner.TOKENS,t=n.parser,i=t.TOKENS,r=t.State,s=i.Base,u=n.parser.start,a=e.DOMAIN,f=e.LOCALHOST,c=e.NUM,l=e.SLASH,p=e.TLD,d=e.UNDERSCORE,O=e.DOT,S=e.AT;n.inherits(s,o,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var y=u.jump(e.AT),T=new r,_=new r(o),h=new r,m=new r;y.on(d,T),T.on(d,T).on(O,T),y.on(a,_).on(f,_).on(p,_).on(c,_),T.on(a,_).on(f,_).on(p,_).on(c,_),_.on(a,_).on(f,_).on(p,_).on(c,_).on(d,_),_.on(l,h).on(O,h).on(S,h),h.on(d,m),m.on(d,m),h.on(a,_).on(f,_).on(p,_).on(c,_),m.on(a,_).on(f,_).on(p,_).on(c,_)}try{try{Object.defineProperty(o,"__esModule",{value:!0})}catch(t){o.__esModule=!0}}catch(t){o.__esModule=!0}o["default"]=e,n.exports=o["default"]}),require(["linkify","linkify/plugins/mention"],function(n,o){o(n)}); |
@@ -27,2 +27,3 @@ 'use strict'; | ||
var TT_DOT = TT.DOT; | ||
var TT_AT = TT.AT; | ||
@@ -62,3 +63,3 @@ function MENTION(value) { | ||
// Mention with a divider | ||
S_MENTION.on(TT_SLASH, S_MENTION_DIVIDER).on(TT_DOT, S_MENTION_DIVIDER); | ||
S_MENTION.on(TT_SLASH, S_MENTION_DIVIDER).on(TT_DOT, S_MENTION_DIVIDER).on(TT_AT, S_MENTION_DIVIDER); | ||
@@ -65,0 +66,0 @@ // Mention _ trailing stash plus syms |
@@ -1,1 +0,1 @@ | ||
"use strict";!function(n){var o=function(){function n(n){function o(n){this.v=n}var t=n.scanner.TOKENS,r=n.parser,i=r.TOKENS,e=r.State,s=i.Base,u=n.parser.start,a=t.DOMAIN,S=t.LOCALHOST,c=t.NUM,f=t.SLASH,O=t.TLD,w=t.UNDERSCORE,T=t.DOT;n.inherits(s,o,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var L=u.jump(t.AT),N=new e,p=new e(o),v=new e,A=new e;L.on(w,N),N.on(w,N).on(T,N),L.on(a,p).on(S,p).on(O,p).on(c,p),N.on(a,p).on(S,p).on(O,p).on(c,p),p.on(a,p).on(S,p).on(O,p).on(c,p).on(w,p),p.on(f,v).on(T,v),v.on(w,A),A.on(w,A),v.on(a,p).on(S,p).on(O,p).on(c,p),A.on(a,p).on(S,p).on(O,p).on(c,p)}return n}();o(n)}(window.linkify); | ||
"use strict";!function(n){var o=function(){function n(n){function o(n){this.v=n}var t=n.scanner.TOKENS,r=n.parser,i=r.TOKENS,e=r.State,s=i.Base,u=n.parser.start,a=t.DOMAIN,S=t.LOCALHOST,c=t.NUM,f=t.SLASH,O=t.TLD,T=t.UNDERSCORE,w=t.DOT,A=t.AT;n.inherits(s,o,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var L=u.jump(t.AT),N=new e,p=new e(o),v=new e,D=new e;L.on(T,N),N.on(T,N).on(w,N),L.on(a,p).on(S,p).on(O,p).on(c,p),N.on(a,p).on(S,p).on(O,p).on(c,p),p.on(a,p).on(S,p).on(O,p).on(c,p).on(T,p),p.on(f,v).on(w,v).on(A,v),v.on(T,D),D.on(T,D),v.on(a,p).on(S,p).on(O,p).on(c,p),D.on(a,p).on(S,p).on(O,p).on(c,p)}return n}();o(n)}(window.linkify); |
@@ -24,2 +24,3 @@ 'use strict'; | ||
var TT_DOT = TT.DOT; | ||
var TT_AT = TT.AT; | ||
@@ -59,3 +60,3 @@ function MENTION(value) { | ||
// Mention with a divider | ||
S_MENTION.on(TT_SLASH, S_MENTION_DIVIDER).on(TT_DOT, S_MENTION_DIVIDER); | ||
S_MENTION.on(TT_SLASH, S_MENTION_DIVIDER).on(TT_DOT, S_MENTION_DIVIDER).on(TT_AT, S_MENTION_DIVIDER); | ||
@@ -62,0 +63,0 @@ // Mention _ trailing stash plus syms |
{ | ||
"name": "linkifyjs", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "Intelligent link recognition, made easy", | ||
@@ -35,3 +35,3 @@ "repository": { | ||
"babel-preset-es2015": "^6.24.1", | ||
"chai": "^4.1.2", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.2", | ||
@@ -52,3 +52,3 @@ "glob": "^7.1.3", | ||
"jsdom": "^11.12.0", | ||
"karma": "^3.0.0", | ||
"karma": "^3.1.4", | ||
"karma-chrome-launcher": "^2.2.0", | ||
@@ -58,5 +58,5 @@ "karma-firefox-launcher": "^1.0.1", | ||
"karma-qunit": "^1.0.0", | ||
"karma-sauce-launcher": "^1.2.0", | ||
"lazypipe": "^1.0.1", | ||
"lodash": "^4.17.10", | ||
"karma-sauce-launcher": "^2.0.2", | ||
"lazypipe": "^1.0.2", | ||
"lodash": "^4.17.11", | ||
"merge-stream": "^1.0.0", | ||
@@ -70,3 +70,3 @@ "mocha": "^5.2.0", | ||
"simple-html-tokenizer": "git+https://github.com/nfrasser/simple-html-tokenizer.git#04799f4638ec5ed903a4e5aa6e832269fa59be6b", | ||
"through2": "^2.0.1" | ||
"through2": "^2.0.5" | ||
}, | ||
@@ -73,0 +73,0 @@ "optionalDependencies": { |
@@ -38,3 +38,3 @@ # Linkify | ||
* **Modern implementation**<br>Linkify is written in ECMAScript6 and compiles to ES5 for modern JavaScript runtimes. | ||
* Linkify is compatible with all modern browsers, as well as Browser Support 8 and up. | ||
* Linkify is compatible with all modern browsers, as well as Internet Explorer 9 and up. | ||
@@ -183,3 +183,3 @@ ## Demo | ||
Linkify natively supports Internet Explorer 9 and above. Internet Explorer 8 is supported with a polyfill. | ||
Linkify natively supports Internet Explorer 9 and above. Internet Explorer 8 is unofficially supported with a polyfill. | ||
@@ -200,3 +200,3 @@ You can use either [es5-shim](https://github.com/es-shims/es5-shim) (sham also required) or the provided `linkify-polyfill.js`: | ||
Linkify is tested on Node.js 6 and up. Older versions are unofficially supported. | ||
Linkify is tested on Node.js 8 and up. Older versions are unofficially supported. | ||
@@ -203,0 +203,0 @@ ## Downloads |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
744476
9514