-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial configuration update for v3.0 - Moving away from gulp - Standalone rollup and mocha config - Use rollup/terser dependencies * Internal refactors - Renamed state machine methods (these will likely be replaced very shortly) - Restructured core directory structure - Refactored tests so that calling the plugin after import is no longer required - New internal TLDs - simple-html-tokenizer may now be required from the node modules * Second pass OOP-free refactor with tests Not working yet, the parser tests are not running properly * Fastest working implementation without pre-build step Use class-based State struct, hash lookup states instead of array iteration. Still 30ms though for a correct implementation though :( * Update benchmarks * Working default regex scanner/token implementation Supports IDN and speeds up initialization! * Emoji IDN support !!! * Cleanup scanner and TLDs * Implement delayed initialization This further reduces plugin initial startup time, delaying the cost to when linkify is first executed on some text (though that cost has already been reduced 4x in previous commits; it's now ~5-7ms on my machine) Including delayed plugin initialization for hashtag * Fix plugin implementations Including auto-register * core-js based linkify polyfill * Interfaces and options fixes All mocha tests on node are now passing * Fixed public interface * Config updates * Initial v3 changelog * Update CHANGELOG.md * Additional lint fixes * Use self-published linkify-html * Tweak test runner * Fix Qunit tests * Bump version, update packages Including additional publish ignores and scripts * WIP README and CHANGELOG * chore: typo in CHANGELOG.md (#320) * Add start and end index for where tokens are found Fixes #234 * Oops fixed interface import statements * Update CHANGELOG.md * v3.0.0-beta.2 * Handle HTML with doctype Fixes #313 * Ensure doesn't crash on mixed-language input Fixes #293 * Don't recognize strings that start with // valid URLs * Support for custom protocols That was easy * Update changelog * v3.0.0-beta.3 * Fix punctuation/spelling * Support emails with apostrophe Fixes #250 * Expose additional printable characters as scanner tokens For easier integration with custom protocols' * Test fixes * Install request module Required by jsdom apparently * Oops fix incorrect test run flag * Additional CI script fixes * Change prepare script to prepack Don't need to build/publish on CI * Attempt coveralls fix * Do build when doing running test suite So that browser tests get properly run * Remove unnecessary copyfiles * Drop Node 8 support Dependencies no longer support it * Refactor linkify into multi-package monorepo To allow easier opt in/out for features you want. Especially for React, jQuery and future interfaces * Refactor String -> Array conversion to avoid need for polyfill * Fix typo in test run bash file * Fix linting rules * Fix test require issue * Manual workspace setup in CI * Special build command for CI That doesn't use workspaces * Remove now-unnecessary helper files * Remove additional polyfill references * Various typo and text fixes * Fix bug with heart emojis * Cache addition to .gitignore * Upgrade deps * Replace SauceLabs with BrowserStack Also update jQuery/React version matrices * Complete v3.0 testing fixes and integration Fix test run line Bump latest node version back to 16 Attempt different run test strategy Maybe this one won't fail CI test run fixes Fix incorrect npm script definition Another test fix attempt Attempt fix failing tests with sleep Fix conditional bash statements Should be final round of test fixes Add BrowserStack + Coverage Final fixes for coverage and browserstack Tweaked browser CI config Add status badges * Implement react component as regular function * Auto-generate typescript declarations * Fix react test * Bring back React span wrapper for React 15 Drop support for older versions * Final or near-final draft of README and CHANGELOG * README files for sub-packages * Add additional CHANGELOG item Co-authored-by: Jacek Karczmarczyk <[email protected]>
- Loading branch information
1 parent
f7c140a
commit 70c6e0e
Showing
187 changed files
with
17,627 additions
and
13,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*/lib/* | ||
*/dist/* | ||
|
||
# Usually auto-generated | ||
**/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended" | ||
"eslint:recommended", | ||
"plugin:mocha/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jquery": true, | ||
"es6": true, | ||
"amd": true | ||
"amd": true, | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"curly": 2, | ||
"eqeqeq": 2, | ||
"no-eq-null": 2, | ||
"quotes": [2, "single", "avoid-escape"], | ||
"semi": 2 | ||
"semi": 2, | ||
"no-unused-vars": [ "error", { "varsIgnorePattern": "should|expect" }], | ||
"mocha/no-mocha-arrows": 0 | ||
}, | ||
"plugins": [ | ||
"mocha", | ||
"@babel" | ||
], | ||
"globals": { | ||
"__base": false, | ||
"__TLDS__": false, | ||
"after": false, | ||
"afterEach": false, | ||
"before": false, | ||
"beforeEach": false, | ||
"expect": false, | ||
"describe": false, | ||
"it": false | ||
"expect": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Node.js CI | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
|
@@ -38,4 +38,13 @@ jobs: | |
|
||
- run: npm install | ||
- run: bash test/setup.sh ${{ matrix.node-version }} | ||
- run: bash run-tests.sh ${{ matrix.node-version }} | ||
- run: bash test/run.sh ${{ matrix.node-version }} | ||
env: | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | ||
|
||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require: '@babel/register' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.