github anza-xyz/kit v6.1.0

8 hours ago

@solana/kit

v6.1.0 (2026-02-16)

Minor Changes

  • [@solana/codecs-data-structures] #1363 70b1ed8 Thanks @mcintyre94! - Adds new functions getPredicateEncoder, getPredicateDecoder and getPredicateCodec.

    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] #1369 7ce7545 Thanks @mcintyre94! - Allow passing a description to array and tuple encoders and codecs

    • The ArrayCodecConfig is extended with an optional description
    • The tuple encoder and codec now have an optional second argument, which is a new config object TupleCodecConfig with an optional description
    • If either throws a SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS when encoding, the codecDescription field will be the description passed in the config. If no description is included then they will continue to default to array and tuple respectively.
  • [@solana/instruction-plans] #1334 1f6cd4b Thanks @lorisleiva! - Add parseInstructionOrTransactionPlanInput helper that converts flexible inputs (instruction plan input or transaction plan input) into an InstructionPlan or TransactionPlan

  • [@solana/instruction-plans] #1332 50010b5 Thanks @lorisleiva! - Add parseInstructionPlanInput helper that converts flexible inputs (single instruction, instruction plan, or array) into an InstructionPlan

  • [@solana/instruction-plans] #1333 33234f5 Thanks @lorisleiva! - Add parseTransactionPlanInput helper that converts flexible inputs (single transaction message, transaction plan, or array) into an TransactionPlan

  • [@solana/kit] #1356 da61429 Thanks @lorisleiva! - Add @solana/kit/program-client-core as a subpath export for @solana/program-client-core without changing root @solana/kit exports.

  • [@solana/plugin-interfaces] #1339 ee558a1 Thanks @lorisleiva! - Add @solana/plugin-interfaces package with TypeScript interfaces for building pluggable Solana clients. Includes ClientWithPayer, ClientWithAirdrop, ClientWithRpc, ClientWithRpcSubscriptions, ClientWithTransactionPlanning, and ClientWithTransactionSending interfaces.

  • [@solana/program-client-core] #1345 d3314a6 Thanks @lorisleiva! - Add new @solana/program-client-core package 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] #1344 3f711e1 Thanks @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, and SOLANA_ERROR__PROGRAM_CLIENTS__RESOLVED_INSTRUCTION_INPUT_MUST_BE_NON_NULL.

  • [@solana/errors] #1366 215027c Thanks @lorisleiva! - Add two new SolanaError codes for program clients: SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_ACCOUNT_TYPE and SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT.

Don't miss a new kit release

NewReleases is sending notifications on new releases.