Releases: casper-ecosystem/casper-js-sdk
Casper JS SDK v5.0.0-rc4
Added
makeCsprTransferDeploy
andmakeAuctionManagerDeploy
utils- README.md: Introduced a comprehensive README file, including detailed information about the SDK, setup instructions, and usage examples.
- Migration Guide: Added a basic migration guide to assist developers in transitioning to the new SDK version with updated types and RPC.
getDeploySizeInBytes
static method for Deploy
Removed
DeployParams
class due to deprecation, renamedfromHeaderAndItems
function to themakeDeploy
due to consistency with previous methods names
Changed
- Made
id
optional inTransferDeployItem.newTransfer
Casper JS SDK v5.0.0-rc3
Added
- Deserializer function for
InfoGetDeployResultV1Compatible
-fromJSON
- Annotate RPC request params
Fixed
- Args and CLType / CLValue parsers
- RPC serialization
- Updated names for RPC response/request
- Deserializer for Transform class
- Removed unnecessary object declaration for deploy/transaction during serialization
Full Changelog: 5.0.0-rc2...5.0.0-rc3
Casper JS SDK v5.0.0-rc2
Added
- Caution! This release contains rewritten classes/CLValue/CLType from scratch, there are some breaking changes so consider it before upgrading.
Changed
-
We’ve entirely rewritten the casper-js-sdk from the ground up to provide a more efficient, flexible, and developer-friendly experience. This major release includes significant changes to the SDK’s architecture, type system, and API methods, introducing new types and RPC capabilities to support the latest Casper blockchain features.
-
Updated Type System:
- Refined and expanded CLType and CLValue implementations for stronger type-checking and better type safety.
- Introduced new types to support complex data structures and improved encoding/decoding of values for compatibility with the latest Casper updates.
-
Enhanced RPC Methods:
- New RPC methods provide richer interaction capabilities, supporting advanced transactions, streamlined data retrieval, and improved error handling.
- Added support for more granular transaction controls, allowing for better customizations of gas fees, transaction targets, and entry points.
Fixed
- Fixed serializer and deserializer for json classes
Casper JS SDK v5.0.0-rc1
Added
- Caution! This release contains rewritten classes/CLValue/CLType from scratch, there are some breaking changes so consider it before upgrading.
Changed
-
We’ve entirely rewritten the casper-js-sdk from the ground up to provide a more efficient, flexible, and developer-friendly experience. This major release includes significant changes to the SDK’s architecture, type system, and API methods, introducing new types and RPC capabilities to support the latest Casper blockchain features.
-
Updated Type System:
- Refined and expanded CLType and CLValue implementations for stronger type-checking and better type safety.
- Introduced new types to support complex data structures and improved encoding/decoding of values for compatibility with the latest Casper updates.
-
Enhanced RPC Methods:
- New RPC methods provide richer interaction capabilities, supporting advanced transactions, streamlined data retrieval, and improved error handling.
- Added support for more granular transaction controls, allowing for better customizations of gas fees, transaction targets, and entry points.
Casper JS SDK v2.15.7
Fixed
- Backfilled missing variants of
TransformValue
type- AddInt32
- AddUInt64
- AddUInt128
- AddUInt256
- WriteEraInfo
- WriteBid
- WriteWithdraw
- Failure
- WriteUnbonding
- Backfilled
operations
field inEffect
type - Exported all types in
services/types
module so that they can be used by end users
Casper JS SDK v3.0.0-rc05
Fixed
- Filled missing variants of
TransformValue
type (AddInt32|AddUInt64|AddUInt128|AddUInt256|WriteEraInfo|WriteBid|WriteWithdraw|Failure|WriteUnbonding) - Removed field
effect
fromExecutionResultV2
type (it was incorrect) - Added field
effects
toExecutionResultV2
type and addedTransformV2
type to match the node's response
Casper JS SDK v2.15.6
Fixed
- Backfilled missing variants of
TransformValue
type- AddInt32
- AddUInt64
- AddUInt128
- AddUInt256
- WriteEraInfo
- WriteBid
- WriteWithdraw
- Failure
- WriteUnbonding
- Backfilled
operations
field inEffect
type - Exported all types in
services/types
module so that they can be used by end users
Casper JS SDK v3.0.0-rc04
Added
- Brought back the functionality of setting contract hash (
setContractHash
method) inContract
class. Previously even using that method would ignore the contract hash due to a bug in the node. Now setting it will imply that the contract endpoints need to by called by contract hash. You still can usesetContractName
, butsetContractHash
takes priority if both are used. - Added the possibility to muffle deprecation warnings in
CasperServiceByJsonRPC
. You can now passmuffleDeprecationWarnings
as an optional parameter to the constructor. If set totrue
, the SDK will not log any deprecation warnings from that class. Defaults tofalse
Removed
TransactionSessionKind
since field kind was removed fromSession
implementation ofTransactionTarget
- Removed usages of
toHex
,fromHex
andtoAccountHashStr
since they are deprecated.
Changed
waitForDeploy
andwaitForTransaction
methods will fail fast if the results for getting deploy/transaction info is present but was not successfull.
3.0.0-rc03
What's Changed
- update public key for easy conversion to key & account hash by @ryo-casper in #448
Full Changelog: 3.0.0-rc02...3.0.0-rc03
Casper JS SDK v3.0.0-rc02
[3.0.0-rc02] - 2024-07-05
This release candidate is compatible with #node RC3
Added
- Mappings for
Key.Unbond
andKey.AddressableEntity
- Github action now should include lib.js in every release