Skip to content

Commit

Permalink
Require Node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 5, 2021
1 parent 0441b98 commit b2e7b9b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/funding.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"main": "dist/index.js",
"engines": {
"node": ">=10"
"node": ">=12"
},
"scripts": {
"test": "xo && nyc ava",
Expand Down
2 changes: 0 additions & 2 deletions test/bigint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import ow from '../source';

test('bigint', t => {
t.notThrows(() => {
// eslint-disable-next-line node/no-unsupported-features/es-builtins
ow(BigInt(9007199254740991), ow.bigint);
});

t.notThrows(() => {
// eslint-disable-next-line node/no-unsupported-features/es-syntax
ow(9007199254740991n, ow.bigint);
});

Expand Down
1 change: 0 additions & 1 deletion test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ function typeTests(value: unknown): Array<(() => void)> {
array: expect => expect.toBeArray(),
arrayBuffer: expect => expect.toEqualTypeOf<ArrayBuffer>(),
// @ts-expect-error
// eslint-disable-next-line node/no-unsupported-features/es-builtins
bigint: expect => expect.toEqualTypeOf<BigInt>(),
boolean: expect => expect.toBeBoolean(),
buffer: expect => expect.toEqualTypeOf<Buffer>(),
Expand Down

0 comments on commit b2e7b9b

Please sign in to comment.