Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for Node v10+ and browsers
- Loading branch information
1 parent
1b9a6ed
commit dcf7103
Showing
16 changed files
with
2,145 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Browsers that we support | ||
|
||
> 1% | ||
last 2 versions |
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,10 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"browsers": [ "> 1%", "last 2 versions" ] | ||
} | ||
}] | ||
], | ||
"plugins": ["@babel/plugin-transform-runtime"], | ||
} |
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,36 @@ | ||
{ | ||
"extends": ["eslint:recommended"], | ||
"env": { | ||
"node": false, | ||
"browser": true, | ||
"amd": true, | ||
"es6": true, | ||
"commonjs": true | ||
}, | ||
"plugins": ["compat"], | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"no-func-assign": "off", | ||
"no-unsafe-finally": "off", | ||
"no-empty": "off", | ||
"no-undef": "off", | ||
"no-constant-condition": "off", | ||
"no-cond-assign": "off", | ||
"no-control-regex": "off", | ||
"no-fallthrough": "off", | ||
"no-global-assign": "off", | ||
"no-misleading-character-class": "off", | ||
"no-prototype-builtins": "off", | ||
"no-sparse-arrays": "off", | ||
"no-useless-escape": "off", | ||
"no-extra-semi": "off", | ||
"no-unreachable": "off", | ||
"no-redeclare": "off" | ||
}, | ||
"globals": { | ||
}, | ||
"settings": { | ||
"polyfills": [ | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -22,3 +22,5 @@ coverage | |
# Files # | ||
################### | ||
*.log | ||
lib | ||
dist |
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,12 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"node": "10", | ||
"browsers": [ "> 1%", "last 2 versions" ] | ||
} | ||
}] | ||
], | ||
"plugins": ["@babel/plugin-transform-runtime"], | ||
"sourceMaps": "both" | ||
} |
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,12 @@ | ||
{ | ||
"extends": ["eslint:recommended", "plugin:node/recommended"], | ||
"env": { "browser": true" }, | ||
"plugins": ["compat"], | ||
"rules": { | ||
"no-unsafe-finally": "off", | ||
"no-func-assign": "off" | ||
}, | ||
"settings": { | ||
"polyfills": [] | ||
} | ||
} |
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,6 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- 'lts/*' | ||
- 10 | ||
- 12 | ||
script: | ||
- npm run test-coverage | ||
after_success: | ||
|
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
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
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,3 +1,3 @@ | ||
const { parentPort, workerData } = require('worker_threads'); | ||
const { parentPort, workerData } = require('bthreads'); | ||
|
||
if (parentPort) parentPort.postMessage(workerData); |
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,3 +1,3 @@ | ||
const { parentPort } = require('worker_threads'); | ||
const { parentPort } = require('bthreads'); | ||
|
||
if (parentPort) parentPort.postMessage(process.argv[2]); |
Oops, something went wrong.