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 <christina@balena.io>
This commit is contained in:
Christina Ying Wang 2024-04-25 23:56:48 -07:00
parent 0382d27c90
commit f510dd9a80
2 changed files with 38 additions and 18 deletions

50
package-lock.json generated
View File

@ -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": {

View File

@ -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",