Skip to content

Commit f69a7a1

Browse files
authored
fix(xxhash): Xxh3 type defination (#550)
1 parent cb4118e commit f69a7a1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ jobs:
8282
target: 'aarch64-unknown-linux-musl'
8383
downloadTarget: 'aarch64-unknown-linux-musl'
8484
docker: |
85-
docker pull ghcr.io/brooooooklyn/canvas/musl-builder:lts
86-
docker tag ghcr.io/brooooooklyn/canvas/musl-builder:lts builder
87-
build: docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd):/node-rs -w /node-rs builder sh -c "rustup toolchain install $(cat ./rust-toolchain) && rustup target add aarch64-unknown-linux-musl && npx lerna exec \"yarn build --target aarch64-unknown-linux-musl\" --concurrency 1 --stream --no-prefix"
85+
docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
86+
docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
87+
build: docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd):/node-rs -w /node-rs builder sh -c "rustup toolchain install $(cat ./rust-toolchain) && rustup target add aarch64-unknown-linux-musl && yarn global add lerna && lerna exec \"yarn build --target aarch64-unknown-linux-musl\" --concurrency 1 --stream --no-prefix"
8888
- host: windows-latest
8989
target: 'aarch64-pc-windows-msvc'
9090
build: npx lerna exec "yarn build --target aarch64-pc-windows-msvc" --concurrency 1 --stream --no-prefix
9191

92-
name: stable - ${{ matrix.settings.target }} - node@14
92+
name: stable - ${{ matrix.settings.target }} - node@16
9393
runs-on: ${{ matrix.settings.host }}
9494

9595
steps:
@@ -98,7 +98,7 @@ jobs:
9898
- name: Setup node
9999
uses: actions/setup-node@v2
100100
with:
101-
node-version: 14
101+
node-version: 16
102102
check-latest: true
103103

104104
- name: Install
@@ -117,19 +117,19 @@ jobs:
117117
uses: actions/cache@v2
118118
with:
119119
path: ~/.cargo/registry
120-
key: ${{ matrix.settings.target }}-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
120+
key: ${{ matrix.settings.target }}-node@16-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
121121

122122
- name: Cache cargo index
123123
uses: actions/cache@v2
124124
with:
125125
path: ~/.cargo/git
126-
key: ${{ matrix.settings.target }}-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
126+
key: ${{ matrix.settings.target }}-node@16-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
127127

128128
- name: Cache NPM dependencies
129129
uses: actions/cache@v2
130130
with:
131131
path: node_modules
132-
key: npm-cache-${{ matrix.settings.target }}-node@14-${{ hashFiles('yarn.lock') }}
132+
key: npm-cache-${{ matrix.settings.target }}-node@16-${{ hashFiles('yarn.lock') }}
133133

134134
- name: Pull latest image
135135
run: ${{ matrix.settings.docker }}

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup node
1919
uses: actions/setup-node@v1
2020
with:
21-
node-version: 14
21+
node-version: 16
2222

2323
- name: Install
2424
uses: actions-rs/toolchain@v1

packages/xxhash/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class Xxh64 {
2727
export class Xxh3 {
2828
static withSeed(seed?: BigInt): Xxh3
2929
static withSecret(secret: BufferLike): Xxh3
30-
private constructor() {}
30+
private constructor()
3131
update(input: BufferLike): this
3232
digest(): BigInt
3333
reset(): void

0 commit comments

Comments
 (0)