Releases: 0xSplits/splits-sdk
v6.4.1
What's Changed
- Add balance field to per-contract earnings, fix top-level user balances by @mihoward21 in #90
- Add Tempo testnet chain support by @mihoward21 in #91
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.2.0...@0xsplits/splits-sdk@6.4.1
v6.2.0
What's Changed
- chore: cap recipients to 400/500 dep. on type by @0xdiid in #85
- Add claude.md and avalanche for splits v2 by @mihoward21 in #86
New Contributors
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.1.0...@0xsplits/splits-sdk@6.2.0
v6.1.0
What's Changed
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.0.3...@0xsplits/splits-sdk@6.1.0
v6.0.3
What's Changed
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.0.2...@0xsplits/splits-sdk@6.0.3
v6.0.0
What's Changed
A new version of the Split contracts (v2.2) have been launched, which includes new factories and splitters. No changes are needed to start using the new contracts. Calling SplitV2Client.createSplit(args) will now create a v2.2 Split instead of a v2.1 Split. The other functions (i.e. distribute) will also work with no changes, and they will work for both v2 Splits and v2.1 Splits. For more information see here.
- feat(splits): v2.2 by @r0ohafza in #79
- feat(splits): add ownerAddress to SplitV2 type by @r0ohafza in #80
Breaking SDK changes
- By default the splits v2 client now creates v2.2 splits.
- In order to interact/create v2.0 and v2.1 splits you can now pass the
versionin thecreateSplitV2Config. - We got rid of all
_prefixed functions that were added to support interactions for older v2 splits. controllerAddresshas been renamed toownerAddressin SplitV2 type.
Breaking react SDK changes
_useCreateSplitOldV2has been deprecated. If you want to created older versions of the split you can useuseCreateSplitand pass the appropriate version as mentioned above.
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@5.1.0...@0xsplits/splits-sdk@6.0.0
v5.1.0
What's Changed
- Hoodi support by @mihoward21 in #76
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@5.0.2...@0xsplits/splits-sdk@5.1.0
v5.0.2
What's Changed
- feat: add plume to splits kit by @r0ohafza in #69
- Block number chains by @mihoward21 in #71
- Bump vitest from 1.3.1 to 1.6.1 by @dependabot in #72
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@4.1.1...@0xsplits/splits-sdk@5.0.2
v5.0.1
What's Changed
- feat: add plume to sdk by @r0ohafza in #66
- feat: add new univ3swap addresses by @r0ohafza in #68
- include oracle in swapper metadata by @mihoward21 in #67
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@5.0.0...@0xsplits/splits-sdk@5.0.1
v5.0.0
v4 --> v5 Migration Guide
What's Changed
- A new version of the Split contracts (v2.1) have been launched, including new factories. No changes are needed to start using the new contracts. Calling SplitV2Client.createSplit(args) will now create a v2.1 Split instead of a v2 Split. The only difference in the contracts are that the v2 Split could not properly handle non-compliant ERC20 tokens (e.g. USDT on mainnet). The v2.1 Split can handle those tokens. The other functions (i.e. distribute) will also work with no changes, and they will work for both v2 Splits and v2.1 Splits. For more information see here.
- Splits Kit v1 has launched. It is a wrapper around the Splits React SDK, providing easy React components to plug into your application. It currently supports a CreateSplit component and a DisplaySplit component. Documentation is here, you can see the components being used at Splits Lite which is a publicly available repo.
- Dropped support for viem v1. All three packages (splits-sdk, splits-sdk-react, and splits-kit) require viem v2.
Breaking Changes
- Need to upgrade to viem v2 if you are using v1. See here.
- All data hooks in the react sdk now have the same return values:
isLoading,data,status,error. The hooks that were specifically changed:useSplitMetadataViaProvider,useSplitMetadata,useSplitEarnings,useContractEarnings,useLiquidSplitMetadata,useSwapperMetadata,useUserEarnings,useUserEarningsByContract,useVestingMetadata,useWaterfallMetadata. - All data hooks should just take in the required args, and then an optional options dictionary. Any optional args now go into that dictionary. The updated hooks:
useSplitEarnings,useContractEarnings. - Added
_to the start of all the submit functions. They are not meant to be called directly, so added an underscore to make that more clear.
Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@4.1.1...@0xsplits/splits-sdk@5.0.0
v4.1.1
What's Changed
- fix ownership calculation by @mihoward21 in #60
Full Changelog: https://github.com/0xSplits/splits-sdk/commits/@0xsplits/splits-sdk@4.1.1