Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages (preview) #2574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 26, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

master is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on master.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@solana/accounts@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/rpc-spec@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/addresses@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/assertions@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/assertions@2.0.0-preview.4

Patch Changes

@solana/codecs@2.0.0-preview.4

Patch Changes

  • #2715 26dae19 Thanks @lorisleiva! - Consolidated getNullableCodec and getOptionCodec with their Zeroable counterparts and added more configurations

    Namely, the prefix option can now be set to null and the fixed option was replaced with the noneValue option which can be set to "zeroes" for Zeroable codecs or a custom byte array for custom representations of none values. This means the getZeroableNullableCodec and getZeroableOptionCodec functions were removed in favor of the new options.

    // Before.
    getZeroableNullableCodec(getU16Codec());
    
    // After.
    getNullableCodec(getU16Codec(), { noneValue: "zeroes", prefix: null });

    Additionally, it is now possible to create nullable codecs that have no prefix nor noneValue. In this case, the existence of the nullable item is indicated by the presence of any remaining bytes left to decode.

    const codec = getNullableCodec(getU16Codec(), { prefix: null });
    codec.encode(42); // 0x2a00
    codec.encode(null); // Encodes nothing.
    codec.decode(new Uint8Array([42, 0])); // 42
    codec.decode(new Uint8Array([])); // null

    Also note that it is now possible for custom noneValue byte arrays to be of any length — previously, it had to match the fixed-size of the nullable item.

    Here is a recap of all supported scenarios, using a u16 codec as an example:

    encode(42) / encode(null) No noneValue (default) noneValue: "zeroes" Custom noneValue (0xff)
    u8 prefix (default) 0x012a00 / 0x00 0x012a00 / 0x000000 0x012a00 / 0x00ff
    Custom prefix (u16) 0x01002a00 / 0x0000 0x01002a00 / 0x00000000 0x01002a00 / 0x0000ff
    No prefix 0x2a00 / 0x 0x2a00 / 0x0000 0x2a00 / 0xff

    Reciprocal changes were made with getOptionCodec.

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 26dae19, a29bfee, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-data-structures@2.0.0-preview.4
    • @solana/options@2.0.0-preview.4
    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4

@solana/codecs-core@2.0.0-preview.4

Patch Changes

@solana/codecs-data-structures@2.0.0-preview.4

Patch Changes

  • #2715 26dae19 Thanks @lorisleiva! - Consolidated getNullableCodec and getOptionCodec with their Zeroable counterparts and added more configurations

    Namely, the prefix option can now be set to null and the fixed option was replaced with the noneValue option which can be set to "zeroes" for Zeroable codecs or a custom byte array for custom representations of none values. This means the getZeroableNullableCodec and getZeroableOptionCodec functions were removed in favor of the new options.

    // Before.
    getZeroableNullableCodec(getU16Codec());
    
    // After.
    getNullableCodec(getU16Codec(), { noneValue: "zeroes", prefix: null });

    Additionally, it is now possible to create nullable codecs that have no prefix nor noneValue. In this case, the existence of the nullable item is indicated by the presence of any remaining bytes left to decode.

    const codec = getNullableCodec(getU16Codec(), { prefix: null });
    codec.encode(42); // 0x2a00
    codec.encode(null); // Encodes nothing.
    codec.decode(new Uint8Array([42, 0])); // 42
    codec.decode(new Uint8Array([])); // null

    Also note that it is now possible for custom noneValue byte arrays to be of any length — previously, it had to match the fixed-size of the nullable item.

    Here is a recap of all supported scenarios, using a u16 codec as an example:

    encode(42) / encode(null) No noneValue (default) noneValue: "zeroes" Custom noneValue (0xff)
    u8 prefix (default) 0x012a00 / 0x00 0x012a00 / 0x000000 0x012a00 / 0x00ff
    Custom prefix (u16) 0x01002a00 / 0x0000 0x01002a00 / 0x00000000 0x01002a00 / 0x0000ff
    No prefix 0x2a00 / 0x 0x2a00 / 0x0000 0x2a00 / 0xff

    Reciprocal changes were made with getOptionCodec.

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/codecs-numbers@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/codecs-core@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/codecs-strings@2.0.0-preview.4

Patch Changes

  • 3bf31e7 Thanks @steveluscher! - Converting a base16 string to a byte buffer is now between 2-3x faster (Thanks @tibi77!)

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/compat@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [cb49bfa, 367b8ad]:

    • @solana/keys@2.0.0-preview.4
    • @solana/transactions@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/errors@2.0.0-preview.4

Patch Changes

@solana/fast-stable-stringify@2.0.0-preview.4

Patch Changes

@solana/functional@2.0.0-preview.4

Patch Changes

@solana/instructions@2.0.0-preview.4

Patch Changes

@solana/keys@2.0.0-preview.4

Patch Changes

  • #2707 cb49bfa Thanks @mcintyre94! - Allow creating keypairs and keys from ReadonlyUint8Array

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/assertions@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/web3.js-experimental@2.0.0-preview.4

Patch Changes

  • #2728 f1e9ac2 Thanks @joncinque! - Simulate with the maximum quantity of compute units (1.4M) instead of u32::MAX

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • #2703 0908628 Thanks @steveluscher! - Created a utility function to estimate the compute unit consumption of a transaction message

  • Updated dependencies [26dae19, cb49bfa, 3d90241, 367b8ad]:

    • @solana/codecs@2.0.0-preview.4
    • @solana/signers@2.0.0-preview.4
    • @solana/keys@2.0.0-preview.4
    • @solana/transaction-messages@2.0.0-preview.4
    • @solana/transaction-confirmation@2.0.0-preview.4
    • @solana/rpc-subscriptions@2.0.0-preview.4
    • @solana/rpc-parsed-types@2.0.0-preview.4
    • @solana/instructions@2.0.0-preview.4
    • @solana/transactions@2.0.0-preview.4
    • @solana/functional@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/accounts@2.0.0-preview.4
    • @solana/programs@2.0.0-preview.4
    • @solana/sysvars@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4
    • @solana/rpc@2.0.0-preview.4

@solana/options@2.0.0-preview.4

Patch Changes

  • #2715 26dae19 Thanks @lorisleiva! - Consolidated getNullableCodec and getOptionCodec with their Zeroable counterparts and added more configurations

    Namely, the prefix option can now be set to null and the fixed option was replaced with the noneValue option which can be set to "zeroes" for Zeroable codecs or a custom byte array for custom representations of none values. This means the getZeroableNullableCodec and getZeroableOptionCodec functions were removed in favor of the new options.

    // Before.
    getZeroableNullableCodec(getU16Codec());
    
    // After.
    getNullableCodec(getU16Codec(), { noneValue: "zeroes", prefix: null });

    Additionally, it is now possible to create nullable codecs that have no prefix nor noneValue. In this case, the existence of the nullable item is indicated by the presence of any remaining bytes left to decode.

    const codec = getNullableCodec(getU16Codec(), { prefix: null });
    codec.encode(42); // 0x2a00
    codec.encode(null); // Encodes nothing.
    codec.decode(new Uint8Array([42, 0])); // 42
    codec.decode(new Uint8Array([])); // null

    Also note that it is now possible for custom noneValue byte arrays to be of any length — previously, it had to match the fixed-size of the nullable item.

    Here is a recap of all supported scenarios, using a u16 codec as an example:

    encode(42) / encode(null) No noneValue (default) noneValue: "zeroes" Custom noneValue (0xff)
    u8 prefix (default) 0x012a00 / 0x00 0x012a00 / 0x000000 0x012a00 / 0x00ff
    Custom prefix (u16) 0x01002a00 / 0x0000 0x01002a00 / 0x00000000 0x01002a00 / 0x0000ff
    No prefix 0x2a00 / 0x 0x2a00 / 0x0000 0x2a00 / 0xff

    Reciprocal changes were made with getOptionCodec.

  • #2573 a29bfee Thanks @lorisleiva! - Fix missing export of Zeroable Option codecs

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 26dae19, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-data-structures@2.0.0-preview.4
    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/programs@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/addresses@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/fast-stable-stringify@2.0.0-preview.4
    • @solana/rpc-transport-http@2.0.0-preview.4
    • @solana/rpc-transformers@2.0.0-preview.4
    • @solana/functional@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/rpc-spec@2.0.0-preview.4
    • @solana/rpc-api@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-api@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, cb49bfa, 3d90241, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/keys@2.0.0-preview.4
    • @solana/transaction-messages@2.0.0-preview.4
    • @solana/rpc-parsed-types@2.0.0-preview.4
    • @solana/rpc-transformers@2.0.0-preview.4
    • @solana/transactions@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/rpc-spec@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-graphql@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/fast-stable-stringify@2.0.0-preview.4

@solana/rpc-parsed-types@2.0.0-preview.4

Patch Changes

@solana/rpc-spec@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/rpc-spec-types@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-spec-types@2.0.0-preview.4

Patch Changes

@solana/rpc-subscriptions@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/rpc-subscriptions-transport-websocket@2.0.0-preview.4
    • @solana/rpc-subscriptions-spec@2.0.0-preview.4
    • @solana/fast-stable-stringify@2.0.0-preview.4
    • @solana/rpc-subscriptions-api@2.0.0-preview.4
    • @solana/rpc-transformers@2.0.0-preview.4
    • @solana/functional@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-subscriptions-api@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [cb49bfa, 3d90241, 367b8ad]:

    • @solana/keys@2.0.0-preview.4
    • @solana/transaction-messages@2.0.0-preview.4
    • @solana/rpc-subscriptions-spec@2.0.0-preview.4
    • @solana/rpc-transformers@2.0.0-preview.4
    • @solana/transactions@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4

@solana/rpc-subscriptions-spec@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/rpc-spec-types@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-subscriptions-transport-websocket@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/rpc-subscriptions-spec@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-transformers@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/rpc-subscriptions-spec@2.0.0-preview.4
    • @solana/functional@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/rpc-spec@2.0.0-preview.4

@solana/rpc-transport-http@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [367b8ad]:

    • @solana/rpc-spec@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/rpc-types@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/signers@2.0.0-preview.4

Patch Changes

  • #2707 cb49bfa Thanks @mcintyre94! - Allow creating keypairs and keys from ReadonlyUint8Array

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [cb49bfa, 3d90241, 367b8ad]:

    • @solana/keys@2.0.0-preview.4
    • @solana/transaction-messages@2.0.0-preview.4
    • @solana/instructions@2.0.0-preview.4
    • @solana/transactions@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/sysvars@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [26dae19, 367b8ad]:

    • @solana/codecs@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/accounts@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/transaction-confirmation@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, cb49bfa, 3d90241, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/keys@2.0.0-preview.4
    • @solana/transaction-messages@2.0.0-preview.4
    • @solana/rpc-subscriptions@2.0.0-preview.4
    • @solana/transactions@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4
    • @solana/rpc@2.0.0-preview.4

@solana/transaction-messages@2.0.0-preview.4

Patch Changes

  • #2607 3d90241 Thanks @mcintyre94! - Freeze the instructions and lifetimeConstraint fields within transaction messages

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [26dae19, 367b8ad]:

    • @solana/codecs-data-structures@2.0.0-preview.4
    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/instructions@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/functional@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/transactions@2.0.0-preview.4

Patch Changes

  • #2606 367b8ad Thanks @lorisleiva! - Use commonjs package type

  • Updated dependencies [3bf31e7, 26dae19, cb49bfa, 3d90241, 367b8ad]:

    • @solana/codecs-strings@2.0.0-preview.4
    • @solana/codecs-data-structures@2.0.0-preview.4
    • @solana/keys@2.0.0-preview.4
    • @solana/transaction-messages@2.0.0-preview.4
    • @solana/codecs-numbers@2.0.0-preview.4
    • @solana/instructions@2.0.0-preview.4
    • @solana/codecs-core@2.0.0-preview.4
    • @solana/functional@2.0.0-preview.4
    • @solana/addresses@2.0.0-preview.4
    • @solana/rpc-types@2.0.0-preview.4
    • @solana/errors@2.0.0-preview.4

@solana/webcrypto-ed25519-polyfill@2.0.0-preview.4

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/master branch 30 times, most recently from 4db226e to 8067dec Compare May 3, 2024 18:25
@github-actions github-actions bot force-pushed the changeset-release/master branch 23 times, most recently from e8331f5 to 382fe46 Compare May 15, 2024 12:40
@github-actions github-actions bot force-pushed the changeset-release/master branch 2 times, most recently from 6ad7727 to 88156ae Compare May 22, 2024 03:54
Copy link

socket-security bot commented May 22, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

View full report↗︎

@github-actions github-actions bot force-pushed the changeset-release/master branch 2 times, most recently from f296bb3 to eea121d Compare May 22, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants