Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@solana/react@4.0.0
Major Changes
#927
c035ab8Thanks @mcintyre94! - Update the signer API to return Transaction & TransactionWithLifetimeThe
modifyAndSignTransactionsfunction for aTransactionModifyingSignermust now return aTransaction & TransactionWithLifetime & TransactionWithinSizeLimit. Previously it technically needed to return a type derived from the inputTransactionMessage, but this wasn't checked.If you have written a
TransactionModifyingSignerthen you should review the changes touseWalletAccountTransactionSignerin the React package for guidance. You may need to use the newgetTransactionLifetimeConstraintFromCompiledTransactionMessagefunction to obtain a lifetime for the transaction being returned.If you are using a
TransactionModifyingSignersuch asuseWalletAccountTransactionSigner, then you will now receive a transaction withTransactionWithLifetimewhen you would previously have received a type with a lifetime matching the input transaction message. This was never guaranteed to match at runtime, but we incorrectly returned a stronger type than can be guaranteed. You may need to use the newisTransactionWithBlockhashLifetimeorisTransactionWithDurableNonceLifetimefunctions to check the lifetime type of the returned transaction. For example, if you want to pass it to a function returned bysendAndConfirmTransactionFactorythen you must useisTransactionWithBlockhashLifetimeorassertIsTransactionWithBlockhashLifetimeto check its lifetime first.Patch Changes
#919
c87cadaThanks @mcintyre94! - Update useWalletAccountTransactionSigner to return a LifetimeConstraint for the updated transactionUpdated dependencies [
5408f52,f591dea,cb11699,9fa8465,af01f27,c035ab8,22f18d0,c87cada,54d8445]:@solana/rpc-graphql@4.0.0
Major Changes
ce7f91cThanks @steveluscher! - RemovedrentEpochfrom theAccountInfoBasetype. This property is no longer relevant post SIMD-215. Developers whose applications rely on this property being numeric should either eliminate it or hardcode it to18_446_744_073_709_551_615n.Patch Changes
@solana/rpc-subscriptions-api@4.0.0
Major Changes
ce7f91cThanks @steveluscher! - RemovedrentEpochfrom theAccountInfoBasetype. This property is no longer relevant post SIMD-215. Developers whose applications rely on this property being numeric should either eliminate it or hardcode it to18_446_744_073_709_551_615n.Patch Changes
5408f52,f591dea,cb11699,ce7f91c,af01f27,54d8445]:@solana/rpc-types@4.0.0
Major Changes
ce7f91cThanks @steveluscher! - RemovedrentEpochfrom theAccountInfoBasetype. This property is no longer relevant post SIMD-215. Developers whose applications rely on this property being numeric should either eliminate it or hardcode it to18_446_744_073_709_551_615n.Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/signers@4.0.0
Major Changes
#927
c035ab8Thanks @mcintyre94! - Update the signer API to return Transaction & TransactionWithLifetimeThe
modifyAndSignTransactionsfunction for aTransactionModifyingSignermust now return aTransaction & TransactionWithLifetime & TransactionWithinSizeLimit. Previously it technically needed to return a type derived from the inputTransactionMessage, but this wasn't checked.If you have written a
TransactionModifyingSignerthen you should review the changes touseWalletAccountTransactionSignerin the React package for guidance. You may need to use the newgetTransactionLifetimeConstraintFromCompiledTransactionMessagefunction to obtain a lifetime for the transaction being returned.If you are using a
TransactionModifyingSignersuch asuseWalletAccountTransactionSigner, then you will now receive a transaction withTransactionWithLifetimewhen you would previously have received a type with a lifetime matching the input transaction message. This was never guaranteed to match at runtime, but we incorrectly returned a stronger type than can be guaranteed. You may need to use the newisTransactionWithBlockhashLifetimeorisTransactionWithDurableNonceLifetimefunctions to check the lifetime type of the returned transaction. For example, if you want to pass it to a function returned bysendAndConfirmTransactionFactorythen you must useisTransactionWithBlockhashLifetimeorassertIsTransactionWithBlockhashLifetimeto check its lifetime first.Patch Changes
5408f52,f591dea,cb11699,9fa8465,af01f27,22f18d0,c87cada,54d8445]:@solana/rpc-transport-http@4.0.0
Minor Changes
05970dfThanks @prashanFOMO! - The React Native and Node builds now permit you to set theOriginheader. This header continues to be forbidden in the browser build, as it features on the list of forbidden request headers: https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_request_headerPatch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/accounts@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,ce7f91c,22f18d0,c87cada]:@solana/addresses@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/assertions@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/codecs@4.0.0
Patch Changes
22f18d0]:@solana/codecs-core@4.0.0
Patch Changes
#944
22f18d0Thanks @mcintyre94! - Add a function to create a decoder that checks the size of the input bytesUpdated dependencies [
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/codecs-data-structures@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/codecs-numbers@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/codecs-strings@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/compat@4.0.0
Patch Changes
#906
eabeb3aThanks @guibescos! - Fixed a bug where callingfromVersionedTransaction()with aVersionedTransactionthat uses address table lookups would result in a runtime fatalUpdated dependencies [
5408f52,f591dea,cb11699,9fa8465,af01f27,22f18d0,c87cada]:@solana/errors@4.0.0
Patch Changes
#918
5408f52Thanks @mcintyre94! - Add a function to extract the lifetime from a CompiledTransactionMessage#871
cb11699Thanks @mcintyre94! - Do not allow decoding transactions with an unsupported version#873
9fa8465Thanks @steveluscher! - When you use the@solana/errorsCLI you will now always get version 5.6.2 ofchalkand version 14.0.0 ofcommander, which themselves are zero-dependency.#944
22f18d0Thanks @mcintyre94! - Add a function to create a decoder that checks the size of the input bytes#919
c87cadaThanks @mcintyre94! - Update useWalletAccountTransactionSigner to return a LifetimeConstraint for the updated transaction@solana/instruction-plans@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,af01f27,22f18d0,c87cada,54d8445]:@solana/instructions@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/keys@4.0.0
Patch Changes
#901
f591deaThanks @guibescos! - Added assertion (assertIsSignatureBytes), guard (isSignatureBytes), and coercion (signatureBytes) methods to make it easier to work with callsites that demand aSignatureBytestypeUpdated dependencies [
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/kit@4.0.0
Patch Changes
#521
98bde94Thanks @tao-stones! - Add loadedAccountsDataSize to simulateTransaction responseUpdated dependencies [
5408f52,f591dea,cb11699,9fa8465,ce7f91c,af01f27,c035ab8,22f18d0,cfc1d92,c87cada,9e8bfe4,54d8445]:@solana/options@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/programs@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/rpc@4.0.0
Patch Changes
5408f52,05970df,cb11699,9fa8465,ce7f91c,22f18d0,c87cada]:@solana/rpc-api@4.0.0
Patch Changes
5408f52,f591dea,cb11699,9fa8465,ce7f91c,af01f27,22f18d0,c87cada,54d8445]:@solana/rpc-spec@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/rpc-subscriptions@4.0.0
Patch Changes
#904
9e8bfe4Thanks @steveluscher! - yExported all of the channel creators that form part ofcreateDefaultSolanaRpcSubscriptionsChannelCreator()so that developers can configure their own custom channelsUpdated dependencies [
5408f52,cb11699,9fa8465,ce7f91c,22f18d0,c87cada]:@solana/rpc-subscriptions-channel-websocket@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/rpc-subscriptions-spec@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/rpc-transformers@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,ce7f91c,22f18d0,c87cada]:@solana/subscribable@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,22f18d0,c87cada]:@solana/sysvars@4.0.0
Patch Changes
5408f52,cb11699,9fa8465,ce7f91c,22f18d0,c87cada]:@solana/transaction-confirmation@4.0.0
Patch Changes
#793
cfc1d92Thanks @steveluscher! - Fixed a bug where transaction errors discovered during recent transaction confirmation might not be thrownUpdated dependencies [
5408f52,f591dea,cb11699,9fa8465,ce7f91c,af01f27,22f18d0,c87cada,9e8bfe4,54d8445]:@solana/transaction-messages@4.0.0
Patch Changes
#871
cb11699Thanks @mcintyre94! - Do not allow decoding transactions with an unsupported version#951
54d8445Thanks @tanmay5114! -compressTransactionMessageUsingAddressLookupTables()will no longer convert an account to a lookup table account, if the address of that account is used as a program address anywhere in the transaction.Updated dependencies [
5408f52,cb11699,9fa8465,ce7f91c,22f18d0,c87cada]:@solana/transactions@4.0.0
Patch Changes
#918
5408f52Thanks @mcintyre94! - Add a function to extract the lifetime from a CompiledTransactionMessage#871
cb11699Thanks @mcintyre94! - Do not allow decoding transactions with an unsupported version#925
af01f27Thanks @mcintyre94! - Add functions to narrow a TransactionWithLifetime to a specific lifetimeUpdated dependencies [
5408f52,f591dea,cb11699,9fa8465,ce7f91c,22f18d0,c87cada,54d8445]:@solana/webcrypto-ed25519-polyfill@4.0.0
Patch Changes
f254415Thanks @steveluscher! - The Ed25519 polyfill now correctly returnsArrayBufferfromexportKey()andsign()rather thanUint8Array@solana/fast-stable-stringify@4.0.0
@solana/functional@4.0.0
@solana/nominal-types@4.0.0
@solana/promises@4.0.0
@solana/rpc-parsed-types@4.0.0
@solana/rpc-spec-types@4.0.0