From f510dd9a8068df4d0c14f6598388bf5c15e235b4 Mon Sep 17 00:00:00 2001 From: Christina Ying Wang Date: Thu, 25 Apr 2024 23:56:48 -0700 Subject: [PATCH 1/2] Update io-ts to 2.2.20, io-ts-reporters to 2.0.1, fp-ts to 2.16.5 TODO: Upgrading io-ts to 2.2.21 will result in some unit tests for io-ts type validation breaking, due to a change in t.record's handling of decoding unknown objects. In <2.2.21, a record with a custom key type will decode an unknown object to Left if it has a key is not of the custom type. Whereas in io-ts@2.2.21, t.record will strip the invalid key and decode to Right. This is a breaking change for us. Change-type: patch Signed-off-by: Christina Ying Wang --- package-lock.json | 50 +++++++++++++++++++++++++++++++++-------------- package.json | 6 +++--- 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9131b855..5f863346 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,11 +64,11 @@ "event-stream": "3.3.5", "express": "^4.17.1", "fork-ts-checker-webpack-plugin": "^9.0.2", - "fp-ts": "^2.8.1", + "fp-ts": "^2.16.5", "got": "14.2.1", "husky": "^9.0.11", - "io-ts": "^2.2.10", - "io-ts-reporters": "^1.2.2", + "io-ts": "^2.2.20", + "io-ts-reporters": "^2.0.1", "json-mask": "^2.0.0", "JSONStream": "^1.3.5", "knex": "^3.1.0", @@ -385,6 +385,16 @@ "through": "^2.3.8" } }, + "node_modules/@balena/compose/node_modules/io-ts-reporters": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/io-ts-reporters/-/io-ts-reporters-1.2.2.tgz", + "integrity": "sha512-igASwWWkDY757OutNcM6zTtdJf/eTZYkoe2ymsX2qpm5bKZLo74FJYjsCtMQOEdY7dRHLLEulCyFQwdN69GBCg==", + "dev": true, + "peerDependencies": { + "fp-ts": "^2.0.2", + "io-ts": "^2.0.0" + } + }, "node_modules/@balena/compose/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -1080,6 +1090,13 @@ "node": ">=14" } }, + "node_modules/@scarf/scarf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.3.0.tgz", + "integrity": "sha512-lHKK8M5CTcpFj2hZDB3wIjb0KAbEOgDmiJGDv1WBRfQgRm/a8/XMEkG/N1iM01xgbUDsPQwi42D+dFo1XPAKew==", + "dev": true, + "hasInstallScript": true + }, "node_modules/@sindresorhus/is": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-6.2.0.tgz", @@ -6420,9 +6437,9 @@ } }, "node_modules/fp-ts": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.8.1.tgz", - "integrity": "sha512-HuA/6roEliHoBgEOLCKmGRcM90e2trW/ITZZ9d9P/ra7PreqQagC3Jg6OzqWkai13KUbG90b8QO9rHPBGK/ckw==", + "version": "2.16.5", + "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.16.5.tgz", + "integrity": "sha512-N8T8PwMSeTKKtkm9lkj/zSTAnPC/aJIIrQhnHxxkL0KLsRCNUPANksJOlMXxcKKCo7H1ORP3No9EMD+fP0tsdA==", "dev": true }, "node_modules/fresh": { @@ -7328,22 +7345,25 @@ } }, "node_modules/io-ts": { - "version": "2.2.10", - "resolved": "https://registry.npmjs.org/io-ts/-/io-ts-2.2.10.tgz", - "integrity": "sha512-WHx5jJe7hPpc6JoSIVbD+Xn6tYqe3cRvNpX24d8Wi15/kxhRWa8apo0Gzag6Xg99sCNY9OHKylw/Vhv0JAbNPQ==", + "version": "2.2.20", + "resolved": "https://registry.npmjs.org/io-ts/-/io-ts-2.2.20.tgz", + "integrity": "sha512-Rq2BsYmtwS5vVttie4rqrOCIfHCS9TgpRLFpKQCM1wZBBRY9nWVGmEvm2FnDbSE2un1UE39DvFpTR5UL47YDcA==", "dev": true, "peerDependencies": { - "fp-ts": "^2.0.0" + "fp-ts": "^2.5.0" } }, "node_modules/io-ts-reporters": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/io-ts-reporters/-/io-ts-reporters-1.2.2.tgz", - "integrity": "sha512-igASwWWkDY757OutNcM6zTtdJf/eTZYkoe2ymsX2qpm5bKZLo74FJYjsCtMQOEdY7dRHLLEulCyFQwdN69GBCg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/io-ts-reporters/-/io-ts-reporters-2.0.1.tgz", + "integrity": "sha512-RVpLstYBsmTGgCW9wJ5KVyN/eRnRUDp87Flt4D1O3aJ7oAnd8csq8aXuu7ZeNK8qEDKmjUl9oUuzfwikaNAMKQ==", "dev": true, + "dependencies": { + "@scarf/scarf": "^1.1.1" + }, "peerDependencies": { - "fp-ts": "^2.0.2", - "io-ts": "^2.0.0" + "fp-ts": "^2.10.5", + "io-ts": "^2.2.16" } }, "node_modules/ip": { diff --git a/package.json b/package.json index 4d2ffdbc..562d04f5 100644 --- a/package.json +++ b/package.json @@ -90,11 +90,11 @@ "event-stream": "3.3.5", "express": "^4.17.1", "fork-ts-checker-webpack-plugin": "^9.0.2", - "fp-ts": "^2.8.1", + "fp-ts": "^2.16.5", "got": "14.2.1", "husky": "^9.0.11", - "io-ts": "^2.2.10", - "io-ts-reporters": "^1.2.2", + "io-ts": "^2.2.20", + "io-ts-reporters": "^2.0.1", "json-mask": "^2.0.0", "JSONStream": "^1.3.5", "knex": "^3.1.0", From 23ba3e43849bca6172a3783c82216c360c986eb2 Mon Sep 17 00:00:00 2001 From: Christina Ying Wang Date: Fri, 26 Apr 2024 00:04:33 -0700 Subject: [PATCH 2/2] Remove unused event-stream dependency Change-type: patch Signed-off-by: Christina Ying Wang --- package-lock.json | 2 -- package.json | 2 -- 2 files changed, 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f863346..99ba6b07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,6 @@ "@types/chai-things": "0.0.38", "@types/common-tags": "^1.8.4", "@types/dockerode": "^3.3.28", - "@types/event-stream": "^3.3.34", "@types/express": "^4.17.21", "@types/json-mask": "^2.0.3", "@types/JSONStream": "npm:@types/jsonstream@^0.8.33", @@ -61,7 +60,6 @@ "docker-progress": "^5.2.3", "dockerode": "^4.0.2", "duration-js": "^4.0.0", - "event-stream": "3.3.5", "express": "^4.17.1", "fork-ts-checker-webpack-plugin": "^9.0.2", "fp-ts": "^2.16.5", diff --git a/package.json b/package.json index 562d04f5..0cf3a414 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "@types/chai-things": "0.0.38", "@types/common-tags": "^1.8.4", "@types/dockerode": "^3.3.28", - "@types/event-stream": "^3.3.34", "@types/express": "^4.17.21", "@types/json-mask": "^2.0.3", "@types/JSONStream": "npm:@types/jsonstream@^0.8.33", @@ -87,7 +86,6 @@ "docker-progress": "^5.2.3", "dockerode": "^4.0.2", "duration-js": "^4.0.0", - "event-stream": "3.3.5", "express": "^4.17.1", "fork-ts-checker-webpack-plugin": "^9.0.2", "fp-ts": "^2.16.5",