@solana/kit
v6.1.0 (2026-02-16)
Minor Changes
-
[
@solana/codecs-data-structures] #136370b1ed8Thanks @mcintyre94! - Adds new functionsgetPredicateEncoder,getPredicateDecoderandgetPredicateCodec.These can be used to write an encoder that switches between two encoders based on the value being encoded, or a decoder that switches between two decoders based on the byte array being decoded.
-
[
@solana/codecs-data-structures] #13697ce7545Thanks @mcintyre94! - Allow passing a description to array and tuple encoders and codecs- The
ArrayCodecConfigis extended with an optional description - The tuple encoder and codec now have an optional second argument, which is a new config object
TupleCodecConfigwith an optional description - If either throws a
SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMSwhen encoding, thecodecDescriptionfield will be the description passed in the config. If no description is included then they will continue to default toarrayandtuplerespectively.
- The
-
[
@solana/instruction-plans] #13341f6cd4bThanks @lorisleiva! - AddparseInstructionOrTransactionPlanInputhelper that converts flexible inputs (instruction plan input or transaction plan input) into anInstructionPlanorTransactionPlan -
[
@solana/instruction-plans] #133250010b5Thanks @lorisleiva! - AddparseInstructionPlanInputhelper that converts flexible inputs (single instruction, instruction plan, or array) into anInstructionPlan -
[
@solana/instruction-plans] #133333234f5Thanks @lorisleiva! - AddparseTransactionPlanInputhelper that converts flexible inputs (single transaction message, transaction plan, or array) into anTransactionPlan -
[
@solana/kit] #1356da61429Thanks @lorisleiva! - Add@solana/kit/program-client-coreas a subpath export for@solana/program-client-corewithout changing root@solana/kitexports. -
[
@solana/plugin-interfaces] #1339ee558a1Thanks @lorisleiva! - Add@solana/plugin-interfacespackage with TypeScript interfaces for building pluggable Solana clients. IncludesClientWithPayer,ClientWithAirdrop,ClientWithRpc,ClientWithRpcSubscriptions,ClientWithTransactionPlanning, andClientWithTransactionSendinginterfaces. -
[
@solana/program-client-core] #1345d3314a6Thanks @lorisleiva! - Add new@solana/program-client-corepackage containing types and utilities for building Solana program clients. This is mainly used by the JavaScript Codama renderer to generate Kit-compatible program clients.
Patch Changes
-
[
@solana/errors] #13443f711e1Thanks @lorisleiva! - Add new error codes for program clients:SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS,SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,SOLANA_ERROR__PROGRAM_CLIENTS__UNEXPECTED_RESOLVED_INSTRUCTION_INPUT_TYPE, andSOLANA_ERROR__PROGRAM_CLIENTS__RESOLVED_INSTRUCTION_INPUT_MUST_BE_NON_NULL. -
[
@solana/errors] #1366215027cThanks @lorisleiva! - Add two newSolanaErrorcodes for program clients:SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_ACCOUNT_TYPEandSOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT.