Skip to content

Commit 0c21817

Browse files
authored
chore: remove web-encoding (#16)
TextEncoder and TextDecoder are supported everywhere, no need for the extra dep.
1 parent bf09df0 commit 0c21817

File tree

9 files changed

+81
-9216
lines changed

9 files changed

+81
-9216
lines changed

.aegir.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/** @type {import('aegir').PartialOptions} */
44
module.exports = {
55
build: {
6+
bundlesizeMax: '11KB',
67
config: {
78
entryPoints: ['index.js']
89
}

.github/workflows/main.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- run: npm install
16+
- run: npx aegir lint
17+
- uses: gozala/[email protected]
18+
- run: npx aegir build
19+
- run: npx aegir dep-check
20+
- uses: ipfs/aegir/actions/bundle-size@master
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
test-node:
24+
needs: check
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
matrix:
28+
os: [windows-latest, ubuntu-latest, macos-latest]
29+
node: [12, 14, 15]
30+
fail-fast: true
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: ${{ matrix.node }}
36+
- run: npm install
37+
- run: npx aegir test -t node --bail --cov
38+
- uses: codecov/codecov-action@v1
39+
test-chrome:
40+
needs: check
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: microsoft/playwright-github-action@v1
45+
- run: npm install
46+
- run: npx aegir test -t browser -t webworker --bail --cov
47+
- uses: codecov/codecov-action@v1
48+
test-firefox:
49+
needs: check
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v2
53+
- uses: microsoft/playwright-github-action@v1
54+
- run: npm install
55+
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
56+
test-webkit:
57+
needs: check
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: microsoft/playwright-github-action@v1
62+
- run: npm install
63+
- run: npx aegir test -t browser -t webworker --bail -- --browser webkit
64+
test-electron-main:
65+
needs: check
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v2
69+
- run: npm install
70+
- run: npx xvfb-maybe aegir test -t electron-main --bail
71+
test-electron-renderer:
72+
needs: check
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v2
76+
- run: npm install
77+
- run: npx xvfb-maybe aegir test -t electron-renderer --bail

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
docs
3+
docs
4+
package-lock.json

from-string.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

33
const { encoding: getCodec } = require('multibase')
4-
const { TextEncoder } = require('web-encoding')
54
const utf8Encoder = new TextEncoder()
65

76
/**

0 commit comments

Comments
 (0)