Releases: casper-ecosystem/casper-js-sdk
Releases · casper-ecosystem/casper-js-sdk
Casper JS SDK v2.4.1@next
2.4.1
Fixed
EventStream
- fixed problems with multiple data chunks parsing
Casper JS SDK v2.4.0@next Edit
2.4.0
Added
DeployWatcher
added
Casper JS SDK v2.3.0@next
2.3.0
Added
state_get_dictionary_item
with URef support ingetDictionaryItemByURef
implemented
Casper JS SDK v2.2.3@next
2.2.3
Fixed
StoredValue
parsing access param hotfixed
Casper JS SDK v2.2.2@next
2.2.2
Fixed
CLMap
fix for empty maps from bytesCLMap
replaced problematic Map implementation
Casper JS SDK v2.2.1@next
2.2.1
Fixed
EventStream
now properly handle invalid JSONs
Casper JS SDK v2.2.0@next
2.2.0
Added
EventStream
Casper JS SDK v2.1.0@next
2.1.0
Fixed
state-get-item
due to RPC changesCLList
as empty list initialization from JSON
Added
getBlockTransfers
,getEraInfoBySwitchBlock
,getEraInfoBySwitchBlockHeight
methods toCasperServiceByJsonRPC
Casper JS SDK v2.0.1@next
2.0.1
Changed
DeployUtil.deployFromJson
returns nowResult<Deploy, Error>
instead ofDeploy | undefined
.Error
has amessage
inside.
Casper JS SDK v2.0.0@next
2.0.0@next
Changed
- Caution! This release contains rewritten CLValue from scratch, there are some breaking changes so consider it before upgrading.
- Removed
CLTypedAndToBytesHelper
to have consistent way of creating new CLValues by usingnew CLBool(true)
orCLValueBuilder.bool(true)
- Removed
CLTypeHelper
have consistent way of creating new CLValues by usingnew CLBoolType()
orCLTypeBuilder.bool()
CLValue
static methods now are moved toCLValueBuilder
eg.CLValueBuilder.u512
- Every class inheriting from
CLValue
is now named withCL
prefix, bigger naming changes:StringValue
->CLString
KeyValue
->CLKey
MapValue
->CLMap
Option
->CLOption
- There are API changes in
CLResult
const myTypesComplex = {
ok: new CLListType(new CLListType(new CLU8Type())),
err: new CLOptionType(new CLListType(new CLListType(new CLU8Type())))
};
const myOkComplexRes = new CLResult( Ok(new CLList([new CLList([new CLU8(5), new CLU8(10), new CLU8(15)])])), myTypesComplex );
- There are API changes in
CLOption
- not it requiresSome
orNone
wrappers as argument (fromts-result
library). - Now all the serialization methods are not connected to
CLValue
-toJSON
,fromJSON
,toBytes
,fromBytes
needs to be called withCLValueParsers
eg.CLValueParser.toJSON(CLValueBuilder.string("ABC"))
- Renamed methods in
CLPublicKey
:toAccountHex
->toHex
- old name led to misunderstandings as in fact this is hex representation ofpublic-key
prefixed with key-type.- added method
toAccountHashStr
- this methods returns string containing account hash in hex form prefixed withaccount-hash-
.