Minor Changes
-
#102
477d3df
Thanks @jribbink! - BREAKING Bumped @onflow/fcl to 1.1.1-alpha.1Developers should note that
[U]Int*
andWord*
types are now decoded into strings by @onflow/fcl and no longer implicitly decoded into numbers. This means that these types will need to be explicitly converted to JavaScript Number types if required.This potentially affects the following flow-cadut features:
sendTransaction
(where event data is[U]Int*
orWord*
)executeScript
(where return value is[U]Int*
orWord*
)- any generated script templates with
[U]Int*
orWord*
return values - any generated transaction templates which emit
[U]Int*
orWord*
event data
Additionally, passing in Number as value for Int is deprecated and will cease to work in future releases of @onflow/types. Going forward, use String as value for Int.
This could potentially affect the following functions in the future:
sendTransaction
(where integer arguments are passed)executeScript
(where integer arguments are passed)- any generated script templates with integer arguments passed
- any generated transaction templates with integer arguments passed
You can learn more (including a guide on common transition paths) here.
-
#104
c5d3a23
Thanks @jribbink! - BREAKING@onflow/flow-cadut
has been converted to a monorepo and partitioned into the following packages:@onflow/flow-cadut
@onflow/flow-cadut-generator
(previously@onflow/flow-cadut/generator
)@onflow/flow-cadut-plugin-find
(previously@onflow/flow-cadut/plugins/find
)@onflow/flow-cadut-plugin-flowns
(previously@onflow/flow-cadut/plugins/flowns
)@onflow/flow-cadut-views
(previously@onflow/flow-cadut/views
)
Note - The
@onflow/flow-cadut
generator CLI has also been moved to@onflow/flow-cadut-generator
.In order to use the
flow-generate
command, you must install the generator package via:npm install -D @onflow/flow-cadut-generator
The generator command may now be used via
npx flow-generate
on the command line. See complete installation instructions here. -
#66
c901f5a
Thanks @hotrungnhan! - Add support for PublicPath/StoragePath/PrivatePath/CapabilityPath arguments
Patch Changes
-
#95
972b96a
Thanks @jribbink! - Remove residual references to flow-cadut and replace with @onflow/flow-cadut -
#77
7c5ee7d
Thanks @jribbink! - Strip strings from templates in parser to prevent bugs related to cadence keywords existing in strings -
#97
7a09ae7
Thanks @MaxStalker! - Fix contract parser to properly process contracts, which implements some interface -
#107
663f0fc
Thanks @jribbink! - Verify that provided domain is valid for provided argument type when mapping path arguments -
38a2961
Thanks @jribbink! - Fix multiple imports from a single address in one import line -
#113
8315ee1
Thanks @jribbink! - Adds support for optional complex types