Skip to content

Commit 1d16e84

Browse files
committed
chore: clean up readme, package scripts, and benchmark action
1 parent b9e6e0e commit 1d16e84

3 files changed

Lines changed: 23 additions & 58 deletions

File tree

.github/workflows/benchmark.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@ jobs:
2222
node-version: 16
2323
- name: Run benchmark
2424
run: yarn && yarn bench
25-
- name: Push benchmark result to gh-pages
26-
uses: benchmark-action/github-action-benchmark@3d3bca03e83647895ef4f911fa57de3c7a391aaf
27-
with:
28-
name: Benchmark.js Benchmark
29-
tool: 'benchmarkjs'
30-
output-file-path: bench.log
31-
github-token: ${{ secrets.GITHUB_TOKEN }}
32-
auto-push: true
33-
# Show alert with commit comment on detecting possible performance regression
34-
alert-threshold: '200%'
35-
comment-on-alert: true
36-
fail-on-alert: true
37-
alert-comment-cc-users: '@bitjson'
25+
26+
# TODO: Libauth-only benchmarks: test for performance regressions in Libauth functionality, format results to work with the below configuration
27+
28+
# - name: Push benchmark result to gh-pages
29+
# uses: benchmark-action/github-action-benchmark@3d3bca03e83647895ef4f911fa57de3c7a391aaf
30+
# with:
31+
# name: Benchmark.js Benchmark
32+
# tool: 'benchmarkjs'
33+
# output-file-path: bench.log
34+
# github-token: ${{ secrets.GITHUB_TOKEN }}
35+
# auto-push: true
36+
# # Show alert with commit comment on detecting possible performance regression
37+
# alert-threshold: '200%'
38+
# comment-on-alert: true
39+
# fail-on-alert: true
40+
# alert-comment-cc-users: '@bitjson'

README.md

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -93,36 +93,7 @@ console.log(hexToBin('beef'));
9393

9494
Libauth uses [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt), [`WebAssembly`](https://developer.mozilla.org/en-US/docs/WebAssembly), and `es2017` features for some functionality. To type-check this library in you application (without [`skipLibCheck`](https://www.typescriptlang.org/tsconfig#skipLibCheck)), your `tsconfig.json` will need a minimum `target` of `es2020` or `lib` must include `es2017` and `esnext.bigint`. If your application is not already importing types for `WebAssembly`, you may also need to add `dom` to `lib`.
9595

96-
## Stable API
97-
98-
The following APIs are considered stable, and will only include breaking changes in major version upgrades.
99-
100-
### WebAssembly ECDSA & Schnorr
101-
102-
- [instantiateSecp256k1](https://libauth.org/globals.html#instantiatesecp256k1)
103-
- [Secp256k1 Interface](https://libauth.org/interfaces/secp256k1.html)
104-
105-
### WebAssembly Hashing Functions
106-
107-
- [instantiateRipemd160](https://libauth.org/globals.html#instantiateripemd160)
108-
- [Ripemd160 Interface](https://libauth.org/interfaces/ripemd160.html)
109-
- [instantiateSha1](https://libauth.org/globals.html#instantiatesha1)
110-
- [Sha1 Interface](https://libauth.org/interfaces/sha1.html)
111-
- [instantiateSha256](https://libauth.org/globals.html#instantiatesha256)
112-
- [Sha256 Interface](https://libauth.org/interfaces/sha256.html)
113-
- [instantiateSha512](https://libauth.org/globals.html#instantiatesha512)
114-
- [Sha512 Interface](https://libauth.org/interfaces/sha512.html)
115-
116-
### Unstable APIs
117-
118-
Libauth also exports new, potentially unstable APIs. As these APIs stabilize, they will be included in the above reference.
119-
120-
[**Full API Documentation →**](https://libauth.org/)
121-
122-
---
123-
124-
<details>
125-
<summary><strong>Contributing</strong></summary>
96+
## Contributing
12697

12798
Pull Requests welcome! Please see [`CONTRIBUTING.md`](.github/CONTRIBUTING.md) for details.
12899

@@ -149,18 +120,11 @@ You can also run the benchmarks (this will take a while):
149120
yarn bench
150121
```
151122

152-
During development, you may find it helpful to use the testing `watch` tasks:
123+
During development, you may find it helpful to use the `watch` tasks:
153124

154125
```sh
155-
yarn watch # rebuild everything on save
156-
yarn watch:test # run only the fast tests
157-
yarn watch:test-slow # test everything
126+
# rebuild everything on save:
127+
yarn watch
128+
# run a subset of tests:
129+
yarn watch:test --match='*encode*' --match='*decode*' --match='!*[script_tests]*' --match='!*[vmb_tests]*'
158130
```
159-
160-
For more information about the available package scripts, run:
161-
162-
```sh
163-
yarn run info
164-
```
165-
166-
</details>

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@
6767
"bench:test": "ava --config .ava.bench.config.js --serial --timeout=2m 2>&1 | tee bench.log",
6868
"bench:browser-deps": "cpy '.yarn/artifacts/*.js' build/bench",
6969
"watch": "yarn build -w",
70-
"watch:single": "echo 'Usage: yarn watch:single --match=\"*pattern*\"' && ava -v --watch",
71-
"watch:test": "yarn test:unit:fast -- --watch -v",
72-
"watch:test-slow": "yarn test:unit -- --watch -v",
70+
"watch:test": "echo 'Usage: yarn watch:test --match=\"*pattern*\"' && ava -v --watch",
7371
"cov": "yarn build && yarn test:unit && yarn cov:html && yarn cov:lcov && open-cli coverage/index.html",
7472
"cov:html": "c8 report --reporter=html",
7573
"cov:lcov": "c8 report --reporter=lcov",

0 commit comments

Comments
 (0)