Skip to content

Commit

Permalink
Enforce TypeScript >=5 via peerDependencies (#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored Apr 26, 2024
1 parent 0aa3717 commit afff53a
Show file tree
Hide file tree
Showing 37 changed files with 224 additions and 9 deletions.
3 changes: 3 additions & 0 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"@solana/rpc-spec": "workspace:*",
"@solana/rpc-types": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/addresses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
"@solana/codecs-strings": "workspace:*",
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/assertions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"dependencies": {
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/codecs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"dependencies": {
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/codecs-data-structures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"devDependencies": {
"@solana/codecs-strings": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/codecs-numbers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"@solana/codecs-core": "workspace:*",
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion packages/codecs-strings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"tinybench": "^2.8.0"
},
"peerDependencies": {
"fastestsmallesttextencoderdecoder": "^1.0.22"
"fastestsmallesttextencoderdecoder": "^1.0.22",
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
Expand Down
3 changes: 3 additions & 0 deletions packages/codecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
"@solana/codecs-strings": "workspace:*",
"@solana/options": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"@solana/keys": "workspace:*",
"@solana/web3.js": "workspace:../library-legacy"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"commander": "^12.0.0",
"chalk": "^5.3.0"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/fast-stable-stringify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"supports bigint and not dead",
"maintained node versions"
],
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/functional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"supports bigint and not dead",
"maintained node versions"
],
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/instructions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"devDependencies": {
"@solana/addresses": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"@solana/codecs-strings": "workspace:*",
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
"@solana/transaction-messages": "workspace:*",
"@solana/transactions": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"@solana/codecs-strings": "workspace:*",
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/programs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
"@solana/functional": "workspace:*",
"@solana/transaction-messages": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"@solana/rpc-spec-types": "workspace:*",
"@solana/rpc-transport-http": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
"@solana/rpc-types": "workspace:*",
"@solana/transactions": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-parsed-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"@solana/addresses": "workspace:*",
"@solana/rpc-types": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-spec-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"supports bigint and not dead",
"maintained node versions"
],
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
"@solana/errors": "workspace:*",
"@solana/rpc-spec-types": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"devDependencies": {
"@solana/rpc-subscriptions-transport-websocket": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
"@solana/errors": "workspace:*",
"@solana/rpc-spec-types": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"jest-websocket-mock": "^2.5.0"
},
"peerDependencies": {
"typescript": ">=5",
"ws": "^8.14.0"
},
"bundlewatch": {
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"@solana/rpc-transformers": "workspace:*",
"@solana/rpc-types": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"@solana/rpc-spec": "workspace:*",
"@solana/rpc-subscriptions-spec": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-transport-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"undici": "^6.14.0",
"zx": "^7.2.3"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"@solana/codecs-strings": "workspace:*",
"@solana/errors": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"@solana/rpc-transport-http": "workspace:*",
"@solana/rpc-types": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/signers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
"@solana/rpc-types": "workspace:*",
"@solana/text-encoding-impl": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/sysvars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"@solana/rpc-spec": "workspace:*",
"@solana/rpc-transport-http": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/transaction-confirmation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"devDependencies": {
"@solana/instructions": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/transaction-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"devDependencies": {
"@solana/codecs-strings": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"@solana/rpc-types": "workspace:*",
"@solana/transaction-messages": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
3 changes: 3 additions & 0 deletions packages/webcrypto-ed25519-polyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"devDependencies": {
"@solana/crypto-impl": "workspace:*"
},
"peerDependencies": {
"typescript": ">=5"
},
"bundlewatch": {
"defaultCompression": "gzip",
"files": [
Expand Down
Loading

0 comments on commit afff53a

Please sign in to comment.