Skip to content

Commit

Permalink
feat: override io-ts with BitGo fork
Browse files Browse the repository at this point in the history
The original version of io-ts@2.1.3 does not support TypeScript 4.8+.
The BitGo fork @2.1.4 backports some changes to support newer
TypeScript versions.

Ticket: VL-2055
  • Loading branch information
bg-jasonyuan committed Jul 17, 2024
1 parent b474ba9 commit d7b349a
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 17 deletions.
20 changes: 12 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"patch-package": "8.0.0",
"typescript": "4.6.4"
},
"dependencies": {
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4"
},
"overrides": {
"io-ts": "$io-ts"
},
"engines": {
"npm": ">=7"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/express-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@api-ts/typed-express-router": "0.0.0-semantically-released",
"express": "4.19.2",
"fp-ts": "^2.0.0",
"io-ts": "2.1.3"
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4"
},
"devDependencies": {
"@api-ts/superagent-wrapper": "0.0.0-semantically-released",
Expand Down
2 changes: 1 addition & 1 deletion packages/io-ts-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@api-ts/response": "0.0.0-semantically-released",
"fp-ts": "^2.0.0",
"io-ts": "2.1.3",
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
"io-ts-types": "^0.5.15"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cmd-ts": "0.13.0",
"comment-parser": "1.4.1",
"fp-ts": "2.16.8",
"io-ts": "2.1.3",
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
"io-ts-types": "0.5.19",
"openapi-types": "12.1.3",
"resolve": "1.22.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/superagent-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@api-ts/io-ts-http": "0.0.0-semantically-released",
"fp-ts": "^2.0.0",
"io-ts": "2.1.3",
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
"whatwg-url": "12.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/typed-express-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/express": "4.17.21",
"express": "4.19.2",
"fp-ts": "^2.0.0",
"io-ts": "2.1.3"
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4"
},
"devDependencies": {
"@api-ts/superagent-wrapper": "0.0.0-semantically-released",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/tutorial-basics/create-an-api-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ In your new directory, create a `package.json` file:
},
"dependencies": {
"@api-ts/io-ts-http": "0.2.0-beta.9",
"io-ts": "2.1.3"
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4"
},
"devDependencies": {
"typescript": "4.7.4"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/tutorial-basics/create-an-http-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ As before, first edit your `package.json` file to add our new dependencies
"@api-ts/io-ts-http": "0.2.0-beta.9",
"@api-ts/response": "0.1.2-beta.2",
"@api-ts/superagent-wrapper": "0.2.0-beta.13",
"io-ts": "2.1.3",
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
"superagent": "9.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/tutorial-basics/create-an-http-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ First, edit your `package.json` file to add a few new dependencies (highlighted)
"@api-ts/express-wrapper": "1.0.0-beta.20",
"@api-ts/io-ts-http": "0.2.0-beta.9",
"@api-ts/response": "0.1.2-beta.2",
"io-ts": "2.1.3"
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4"
},
"devDependencies": {
"@types/express": "4.17.13",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/tutorial-basics/render-an-open-api-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ As before, first edit your `package.json` file to add our new dependencies
"@api-ts/io-ts-http": "0.2.0-beta.9",
"@api-ts/response": "0.1.2-beta.2",
"@api-ts/superagent-wrapper": "0.2.0-beta.13",
"io-ts": "2.1.3",
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
"superagent": "9.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit d7b349a

Please sign in to comment.