-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Updated build system and removed legacy browsers compatibility. * feat: Update to Node 17.9.0. * feat: Updated to Node 18.0.0 and simplified errors and primordials. * test: Drop SauceLabs in favor of Playwright. * feat: Restore compatibility with Node 12.x. * fix: Fixed dependencies. * feat: Do not modify globalThis. * fix: Fix path on Windows. * fix: Fixed examples. * feat: Test bundlers. * fix: Fixed node bundle on older versions. * test: Test against browserify. * test: Test against webpack. * test: Improve build scripts. * test: Test against esbuild. * test: Fixed CI. * test: Do not use node: prefix. * test: Fix CI on Windows. * test: Fix ESBuild.
- Loading branch information
1 parent
97fd94f
commit 81c5264
Showing
418 changed files
with
35,195 additions
and
23,692 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 'latest' | ||
}, | ||
extends: ['standard'], | ||
rules: { | ||
/* | ||
This is inserted to make this compatible with prettier. | ||
Once https://github.com/prettier/prettier/issues/3845 and https://github.com/prettier/prettier/issues/3847 are solved this might be not needed any more. | ||
*/ | ||
'space-before-function-paren': 0, | ||
curly: [2, 'all'] | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.mjs'], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
} | ||
} | ||
] | ||
} |
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,39 @@ | ||
name: Browsers | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Browsers | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] | ||
browser: ['chrome', 'firefox', 'safari', 'edge'] | ||
bundler: ['browserify', 'esbuild', 'rollup', 'webpack'] | ||
exclude: | ||
- os: ubuntu-latest | ||
browser: safari | ||
- os: windows-latest | ||
browser: safari | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Restore cached dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: node-modules-${{ matrix.os }}-${{ hashFiles('package.json') }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Install Browser | ||
run: ./node_modules/.bin/playwright install ${{ fromJSON('{"chrome":"chromium","edge":"msedge","firefox":"firefox","safari":"webkit"}')[matrix.browser] }} | ||
- name: Bundle code | ||
run: npm run test:prepare ${{ matrix.bundler }} | ||
- name: Run Tests on Browsers | ||
run: npm run test:browsers ${{ matrix.browser }} ${{ matrix.bundler }} |
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,32 @@ | ||
name: Bundlers | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Bundlers | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node-version: [12.x, 14.x, 16.x, 18.x] | ||
bundler: ['browserify', 'esbuild', 'rollup', 'webpack'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Restore cached dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: node-modules-${{ matrix.os }}-${{ hashFiles('package.json') }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Bundle code | ||
run: npm run test:prepare ${{ matrix.bundler }} | ||
- name: Run Tests on Browsers | ||
run: npm run test:bundlers ${{ matrix.bundler }} |
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
name: Node.js | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Node.js | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node-version: [12.x, 14.x, 16.x, 18.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Restore cached dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: node-modules-${{ hashFiles('package.json') }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run Tests | ||
run: npm run coverage |
This file was deleted.
Oops, something went wrong.
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,8 +1,5 @@ | ||
coverage/ | ||
node_modules/ | ||
.zuul.yml | ||
.nyc_output | ||
coverage | ||
node-*.tar.gz | ||
package-lock.json | ||
*.tap | ||
.airtaprc | ||
yarn.lock | ||
tmp/ |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
module.exports = { | ||
plugins: ['@babel/proposal-nullish-coalescing-operator', '@babel/proposal-optional-chaining'] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.