Skip to content

Commit fbb07eb

Browse files
giarc3skeet70leeroy-travis
authored
Upgrade dependencies (#74)
* Update to latest of all deps * Recrypt 0.12 * Try Node 16 as well * Reduce cardinality * Bump MSRV to 1.51 * Update documentation. * Upgrade JS dependencies too. * Replace Node 10 with 16 in the matrix * Apply patch * Update recrypt * And changelog * Rust 2021 so we can use recrypt 0.13 * Checkpointing migration to NAPI * Try different coverage switch command * Rust fmt * Neon packaging (#75) Removed the native directory. Made the tests run expecting the same structure as what we distribute. That same structure is created by either running `yarn compile` or `node-pre-gyp install` (the second being how and end user gets the binary). The publish structure is the same other than the new entry point, so that should continue working. * Add NAPI to changelog, would be good to remember * bump-version: Set release version 0.8.0-pre.1 * Add a comment to clarify where changes happen Limited jest `maxWorkers` to dodge the weird GH issue tracked by jestjs/jest#10662 but won't impact local machine runs as much Co-authored-by: Leeroy Travis <ops@ironcorelabs.com> Co-authored-by: Murph Murphy <murph@clurictec.com> Co-authored-by: Leeroy Travis <ops@ironcorelabs.com>
1 parent ca6feb3 commit fbb07eb

36 files changed

+2238
-3859
lines changed

.github/rust-ci-patch.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,3 @@
33
path: /jobs/cargo-test
44
- op: remove
55
path: /jobs/coverage
6-
7-
# Everything needs to run in the native directory.
8-
- op: add
9-
path: /defaults
10-
value:
11-
run:
12-
working-directory: native

.github/rust-daily-patch.yaml

-6
This file was deleted.

.github/typescript-ci-patch.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
path: /jobs/test/strategy/matrix
44
value:
55
node_version:
6-
- "10"
76
- "12"
87
- "14"
8+
- "16"
99
rust_version:
10-
- 1.48.0
10+
- 1.56.0
1111
- stable
1212
- beta
1313
os:
@@ -44,7 +44,7 @@
4444
# Only check coverage in one of the matrix job instances.
4545
- op: add
4646
path: /jobs/test/steps/6/if
47-
value: ${{ contains(matrix.os, 'ubuntu') && matrix.node_version == '10' && matrix.rust_version == 'stable' && github.base_ref != '' }}
47+
value: ${{ contains(matrix.os, 'ubuntu') && matrix.node_version == '16' && matrix.rust_version == 'stable' && github.base_ref != '' }}
4848

4949
# Also run on musl. That means we need to run it in a Docker container. To do that, we copy the entire job and modify its
5050
# strategy/matrix.
@@ -54,7 +54,7 @@
5454
- op: replace
5555
path: /jobs/test-docker/strategy/matrix/os
5656
value:
57-
- ubuntu-18.04
57+
- ubuntu-20.04
5858
- op: add
5959
path: /jobs/test-docker/container
6060
value:
@@ -76,3 +76,7 @@
7676
# No need to check test coverage here, since we do it in the first matrix build.
7777
- op: remove
7878
path: /jobs/test-docker/steps/7
79+
80+
- op: replace
81+
path: /jobs/test/steps/6/with/afterSwitchCommand
82+
value: yarn install --ignore-scripts && yarn run compile

.github/workflows/publish.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
node_version:
24-
- '10'
2524
- '12'
2625
- '14'
26+
- '16'
2727
os:
2828
- macos-10.15
2929
- ubuntu-20.04
@@ -69,9 +69,9 @@ jobs:
6969
fail-fast: false
7070
matrix:
7171
node_version:
72-
- '10'
7372
- '12'
7473
- '14'
74+
- '16'
7575
steps:
7676
- run: apk add build-base git python3 wget
7777
- uses: actions/checkout@v2

.github/workflows/rust-ci.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,3 @@ jobs:
4949
with:
5050
command: clippy
5151
args: ${{ env.clippy_args }}
52-
defaults:
53-
run:
54-
working-directory: native

.github/workflows/rust-daily.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,3 @@ jobs:
5252
- name: Print sccache stats
5353
if: steps.rust-cache.outputs.cache-hit != 'true'
5454
run: sccache -s
55-
defaults:
56-
run:
57-
working-directory: native

.github/workflows/typescript-ci.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
strategy:
1616
matrix:
1717
node_version:
18-
- '10'
1918
- '12'
2019
- '14'
20+
- '16'
2121
rust_version:
22-
- 1.48.0
22+
- 1.56.0
2323
- stable
2424
- beta
2525
os:
@@ -45,27 +45,27 @@ jobs:
4545
- name: Run tests
4646
run: yarn run test
4747
- name: Check test coverage
48-
if: ${{ contains(matrix.os, 'ubuntu') && matrix.node_version == '10' && matrix.rust_version
48+
if: ${{ contains(matrix.os, 'ubuntu') && matrix.node_version == '16' && matrix.rust_version
4949
== 'stable' && github.base_ref != '' }}
5050
uses: anuraag016/Jest-Coverage-Diff@V1.3
5151
with:
5252
fullCoverageDiff: false
5353
delta: 0.2
54-
afterSwitchCommand: yarn
54+
afterSwitchCommand: yarn install --ignore-scripts && yarn run compile
5555
test-docker:
5656
runs-on: ${{ matrix.os }}
5757
strategy:
5858
matrix:
5959
node_version:
60-
- '10'
6160
- '12'
6261
- '14'
62+
- '16'
6363
rust_version:
64-
- 1.48.0
64+
- 1.56.0
6565
- stable
6666
- beta
6767
os:
68-
- ubuntu-18.04
68+
- ubuntu-20.04
6969
fail-fast: false
7070
steps:
7171
- run: apk add build-base git python3 wget

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
.babelrc
55
npm-debug.log
66
yarn-error.log
7-
native/target
8-
native/artifacts.json
9-
native/index.node
7+
target
8+
artifacts.json
109
dist/*
1110
bin-package/*
1211
build/*

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 0.8.0
2+
3+
### Breaking Changes
4+
5+
- Removed support for Node 10.
6+
7+
### Changed
8+
9+
- Added support for Node 16.
10+
- Upgraded Recrypt to 0.13
11+
- Upgraded to Neon's NAPI interface.
12+
113
## 0.7.3
214

315
### Breaking Changes

0 commit comments

Comments
 (0)