From dbb8d82cf83c248052c2a5590a04ea69857f7a2c Mon Sep 17 00:00:00 2001 From: Dave Gramlich Date: Tue, 1 Jun 2021 15:45:51 -0400 Subject: [PATCH] chore(deps)!: update all the things (#11) --- .travis.yml | 4 ++-- package.json | 13 ++++++------- test.ts | 4 ++-- tsconfig.json | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index f98fed0..3f19ff3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: + - '16' + - '14' - '12' - - '10' - - '8' diff --git a/package.json b/package.json index 38a6cec..6e25549 100644 --- a/package.json +++ b/package.json @@ -29,15 +29,14 @@ "url": "https://github.com/callmehiphop/pb-util/issues" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^1.5.0", - "@typescript-eslint/parser": "^1.10.2", - "ava": "^2.1.0", - "eslint": "^5.15.3", - "ts-node": "^8.0.3", - "typescript": "^3.5.0" + "@typescript-eslint/eslint-plugin": "^4.26.0", + "@typescript-eslint/parser": "^4.26.0", + "ava": "^3.15.0", + "eslint": "^7.27.0", + "ts-node": "^10.0.0", + "typescript": "~4.3.2" }, "ava": { - "compileEnhancements": false, "extensions": [ "ts" ], diff --git a/test.ts b/test.ts index ca04b0a..7b7a411 100644 --- a/test.ts +++ b/test.ts @@ -1,5 +1,5 @@ import test from 'ava'; -import {list, struct, value} from './index'; +import {list, struct, value, JsonValue} from './index'; const arr = [null, 10]; @@ -105,7 +105,7 @@ test('value.encode - null', t => { test('value.encode - unknown', t => { t.throws(() => { - value.encode(new Date() as {}); + value.encode(new Date() as unknown as JsonValue); }); }); diff --git a/tsconfig.json b/tsconfig.json index de6b0fc..e0f9f92 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "outDir": "build", - "target": "es2016", + "lib": ["es2017"], "module": "commonjs", "moduleResolution": "node", "sourceMap": true,