Version Packages#2
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
4f6ac85 to
8743c14
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/errors@6.10.0
Minor Changes
#1552
c318d7fThanks @mcintyre94! - Addretry()andgetUnifiedState()toReactiveStore. The newgetUnifiedState()returns a discriminated{ data, error, status }snapshot with stable identity, so stores can be passed directly touseSyncExternalStorewithout an intermediate wrapper.getState()andgetError()remain on the type but are now@deprecatedin favour of the unified snapshot.A new
createReactiveStoreFromDataPublisherFactoryfunction is also introduced. It accepts acreateDataPublisher: () => Promise<DataPublisher>factory rather than a ready-made publisher, which lets the store reconnect viaretry()after an error. The existingcreateReactiveStoreFromDataPublisheris now@deprecated; callingretry()on a store it produced throws a newSolanaErrorwith codeSOLANA_ERROR__SUBSCRIBABLE__RETRY_NOT_SUPPORTED.createReactiveStoreWithInitialValueAndSlotTracking(from@solana/kit) now supportsretry(), which re-sends the RPC request and re-subscribes to the subscription with a fresh abort signal while preserving the last known slot and value.#1554
47a785bThanks @mcintyre94! - RenameReactiveStore<T>toReactiveStreamStore<T>. The old name remains exported as a deprecated alias and will be removed in a future major release.@solana/kit@6.10.0
Minor Changes
#1555
5e1644dThanks @mcintyre94! - Add areactiveStore()method toPendingRpcRequest. It fires the request on construction and synchronously returns aReactiveActionStorethat holds the request'sidle/running/success/errorlifecycle state. Compatible withuseSyncExternalStore, Svelte stores, and other reactive primitives. Calldispatch()to re-fire the request (e.g. after an error), orreset()to abort the in-flight call and return to idle.#1553
15b610dThanks @mcintyre94! - Add areactiveStore()method toPendingRpcSubscriptionsRequest. Unlikereactive(), this variant returns aReactiveStoresynchronously and supportsretry()to reconnect after an error.reactive()is now@deprecatedin favour ofreactiveStore().#1552
c318d7fThanks @mcintyre94! - Addretry()andgetUnifiedState()toReactiveStore. The newgetUnifiedState()returns a discriminated{ data, error, status }snapshot with stable identity, so stores can be passed directly touseSyncExternalStorewithout an intermediate wrapper.getState()andgetError()remain on the type but are now@deprecatedin favour of the unified snapshot.A new
createReactiveStoreFromDataPublisherFactoryfunction is also introduced. It accepts acreateDataPublisher: () => Promise<DataPublisher>factory rather than a ready-made publisher, which lets the store reconnect viaretry()after an error. The existingcreateReactiveStoreFromDataPublisheris now@deprecated; callingretry()on a store it produced throws a newSolanaErrorwith codeSOLANA_ERROR__SUBSCRIBABLE__RETRY_NOT_SUPPORTED.createReactiveStoreWithInitialValueAndSlotTracking(from@solana/kit) now supportsretry(), which re-sends the RPC request and re-subscribes to the subscription with a fresh abort signal while preserving the last known slot and value.#1606
da868aaThanks @mcintyre94! - Add framework-agnostic source duck-types for reactive bindings.@solana/subscribablenow exports two new types:ReactiveStreamSource<T>— anything with areactiveStore({ abortSignal })method that returns aReactiveStreamStore<T>.PendingRpcSubscriptionsRequest<T>satisfies this by design.ReactiveActionSource<T>— anything with a zero-argumentreactiveStore()method that returns aReactiveActionStore<[], T>.PendingRpcRequest<T>satisfies this by design.These let reactive-framework bindings consume a single duck-type instead of naming concrete producer types — and let plugin authors expose their own pending-request objects to those bindings without modification.
Both source types live in
@solana/subscribableand are not re-exported from@solana/kit, matching the existing convention for their parentReactiveStreamStore/ReactiveActionStoretypes — anyone consuming a source duck-type is already in the reactive-primitives layer and will already be importing the related store types from the same package.@solana/kitnow publicly exports the previously-privateCreateReactiveStoreWithInitialValueAndSlotTrackingConfigtype so non-React consumers (e.g. plugins) can declare function return shapes based on it without taking a dependency on@solana/react.#1554
47a785bThanks @mcintyre94! - RenameReactiveStore<T>toReactiveStreamStore<T>. The old name remains exported as a deprecated alias and will be removed in a future major release.Patch Changes
c318d7f,da868aa,47a785b,82a1ac5]:@solana/rpc-spec@6.10.0
Minor Changes
#1555
5e1644dThanks @mcintyre94! - Add areactiveStore()method toPendingRpcRequest. It fires the request on construction and synchronously returns aReactiveActionStorethat holds the request'sidle/running/success/errorlifecycle state. Compatible withuseSyncExternalStore, Svelte stores, and other reactive primitives. Calldispatch()to re-fire the request (e.g. after an error), orreset()to abort the in-flight call and return to idle.Patch Changes
c318d7f,da868aa,47a785b,82a1ac5]:@solana/rpc-subscriptions-spec@6.10.0
Minor Changes
#1553
15b610dThanks @mcintyre94! - Add areactiveStore()method toPendingRpcSubscriptionsRequest. Unlikereactive(), this variant returns aReactiveStoresynchronously and supportsretry()to reconnect after an error.reactive()is now@deprecatedin favour ofreactiveStore().#1554
47a785bThanks @mcintyre94! - RenameReactiveStore<T>toReactiveStreamStore<T>. The old name remains exported as a deprecated alias and will be removed in a future major release.Patch Changes
c318d7f,da868aa,47a785b,82a1ac5]:@solana/subscribable@6.10.0
Minor Changes
#1552
c318d7fThanks @mcintyre94! - Addretry()andgetUnifiedState()toReactiveStore. The newgetUnifiedState()returns a discriminated{ data, error, status }snapshot with stable identity, so stores can be passed directly touseSyncExternalStorewithout an intermediate wrapper.getState()andgetError()remain on the type but are now@deprecatedin favour of the unified snapshot.A new
createReactiveStoreFromDataPublisherFactoryfunction is also introduced. It accepts acreateDataPublisher: () => Promise<DataPublisher>factory rather than a ready-made publisher, which lets the store reconnect viaretry()after an error. The existingcreateReactiveStoreFromDataPublisheris now@deprecated; callingretry()on a store it produced throws a newSolanaErrorwith codeSOLANA_ERROR__SUBSCRIBABLE__RETRY_NOT_SUPPORTED.createReactiveStoreWithInitialValueAndSlotTracking(from@solana/kit) now supportsretry(), which re-sends the RPC request and re-subscribes to the subscription with a fresh abort signal while preserving the last known slot and value.#1606
da868aaThanks @mcintyre94! - Add framework-agnostic source duck-types for reactive bindings.@solana/subscribablenow exports two new types:ReactiveStreamSource<T>— anything with areactiveStore({ abortSignal })method that returns aReactiveStreamStore<T>.PendingRpcSubscriptionsRequest<T>satisfies this by design.ReactiveActionSource<T>— anything with a zero-argumentreactiveStore()method that returns aReactiveActionStore<[], T>.PendingRpcRequest<T>satisfies this by design.These let reactive-framework bindings consume a single duck-type instead of naming concrete producer types — and let plugin authors expose their own pending-request objects to those bindings without modification.
Both source types live in
@solana/subscribableand are not re-exported from@solana/kit, matching the existing convention for their parentReactiveStreamStore/ReactiveActionStoretypes — anyone consuming a source duck-type is already in the reactive-primitives layer and will already be importing the related store types from the same package.@solana/kitnow publicly exports the previously-privateCreateReactiveStoreWithInitialValueAndSlotTrackingConfigtype so non-React consumers (e.g. plugins) can declare function return shapes based on it without taking a dependency on@solana/react.#1554
47a785bThanks @mcintyre94! - RenameReactiveStore<T>toReactiveStreamStore<T>. The old name remains exported as a deprecated alias and will be removed in a future major release.#1550
82a1ac5Thanks @mcintyre94! - AddedcreateReactiveActionStore— a framework-agnostic state machine that wraps an async function and exposes a{ dispatch, dispatchAsync, getState, subscribe, reset }contract compatible withuseSyncExternalStore, Svelte stores, Vue'sshallowRef, and similar reactive primitives.dispatchis synchronous and fire-and-forget (safe from UI event handlers);dispatchAsyncreturns a promise that resolves to the wrapped function's result and rejects on failure or supersede — useisAbortErrorfrom@solana/promisesto filter aborts. Each call creates a freshAbortControllerand aborts the previous one, so rapid successive dispatches only produce one final state transition — the outcome of the most recent call.Patch Changes
c318d7f,47a785b]:@solana/accounts@6.10.0
Patch Changes
5e1644d,c318d7f,47a785b]:@solana/addresses@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/assertions@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/codecs@6.10.0
Patch Changes
@solana/codecs-core@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/codecs-data-structures@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/codecs-numbers@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/codecs-strings@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/compat@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/fixed-points@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/instruction-plans@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/instructions@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/keys@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/offchain-messages@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/options@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/plugin-interfaces@6.10.0
Patch Changes
5e1644d,15b610d,47a785b]:@solana/program-client-core@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/programs@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/react@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/rpc@6.10.0
Patch Changes
5e1644d,c318d7f,47a785b]:@solana/rpc-api@6.10.0
Patch Changes
5e1644d,c318d7f,47a785b]:@solana/rpc-graphql@6.10.0
Patch Changes
@solana/rpc-subscriptions@6.10.0
Patch Changes
15b610d,c318d7f,da868aa,47a785b,82a1ac5]:@solana/rpc-subscriptions-api@6.10.0
Patch Changes
15b610d,47a785b]:@solana/rpc-subscriptions-channel-websocket@6.10.0
Patch Changes
15b610d,c318d7f,da868aa,47a785b,82a1ac5]:@solana/rpc-transformers@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/rpc-transport-http@6.10.0
Patch Changes
5e1644d,c318d7f,47a785b]:@solana/rpc-types@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/signers@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/sysvars@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/transaction-confirmation@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/transaction-messages@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/transactions@6.10.0
Patch Changes
c318d7f,47a785b]:@solana/wallet-account-signer@6.10.0
Patch Changes
@solana/fast-stable-stringify@6.10.0
@solana/functional@6.10.0
@solana/nominal-types@6.10.0
@solana/plugin-core@6.10.0
@solana/promises@6.10.0
@solana/rpc-parsed-types@6.10.0
@solana/rpc-spec-types@6.10.0
@solana/webcrypto-ed25519-polyfill@6.10.0