From 5d75ef1e075946505af1a81057fc42bada1c4d5e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 1 Feb 2022 23:10:15 +0100 Subject: [PATCH 1/2] Upgrade typescript to 4.5 --- js/package.json | 2 +- js/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/package.json b/js/package.json index 1610bbac..b90516f0 100644 --- a/js/package.json +++ b/js/package.json @@ -45,7 +45,7 @@ "prettier": "^2.5.1", "shx": "^0.3.4", "source-map-support": "^0.5.16", - "typescript": "^3.8.3" + "typescript": "~4.5" }, "dependencies": { "@noble/hashes": "^1.0.0", diff --git a/js/yarn.lock b/js/yarn.lock index 22d563c1..28452b3d 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -1579,10 +1579,10 @@ type-fest@^0.20.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -typescript@^3.8.3: - version "3.8.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" - integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== +typescript@~4.5: + version "4.5.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" + integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== unbox-primitive@^1.0.1: version "1.0.1" From bd7a2b3a623c46484681581fac958d34a3e350b4 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 1 Feb 2022 23:39:51 +0100 Subject: [PATCH 2/2] Update target to es2017 --- js/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tsconfig.json b/js/tsconfig.json index 2725f626..f28b37bf 100644 --- a/js/tsconfig.json +++ b/js/tsconfig.json @@ -19,8 +19,8 @@ "removeComments": false, "sourceMap": true, "strict": true, - "target": "es6", - "lib": ["es6"], + "target": "es2017", + "lib": ["es2017"], "typeRoots": [ "./node_modules/@types", ]