Skip to content

Commit 3f2cabb

Browse files
authored
Merge pull request #367 from onflow/release/v028
Release version 0.28.0
2 parents b95320a + e8bc0c6 commit 3f2cabb

2 files changed

Lines changed: 29 additions & 23 deletions

File tree

docs/developer-updates/release-notes-v28.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@ Follow the Flow CLI installation guide for instructions on how to install or upg
44
## 🐞 Bug Fixes
55

66
### Block Transaction IDs
7-
Fetching a block didn't include transaction IDs when using
8-
the `--include transactions` flag due to a bug fixed in this update.
7+
Fetching a block didn't include transaction IDs when using the `--include transactions` flag due to a regression in the command layer.
98

109
### Script Execution Error
11-
**🙌 Implemented by the community: @bjartek**
10+
**Implemented by the community: @bjartek** 🙌
1211

13-
Script execution error wasn't returned when using hosted gateway
14-
implementation.
12+
Script execution error wasn't returned when using hosted gateway
13+
implementation.
1514

1615
### Parsing Boolean in Configuration
17-
**🙌 Implemented by the community: @bluesign**
16+
**Implemented by the community: @bluesign** 🙌
1817

19-
Parsing booleans in the flow configuration deployment arguments wasn't working properly.
20-
This bugfix addresses that problem and allows you to pass boolean type in
21-
the `args` section such as:
18+
Parsing booleans in the flow configuration deployment arguments weren't working properly. This bugfix addresses that problem and allows you to pass boolean type in the `args` section such as:
2219
```js
2320
...
2421
"args": [
@@ -27,35 +24,44 @@ the `args` section such as:
2724
...
2825
```
2926

27+
### Cross-referencing Composed Configuration
28+
Cross-referencing values in the composed configuration wasn't working correctly as the validation was done per configuration instead on the higher level on the composed configuration.
29+
3030
## 🛠 Improvements
3131

3232
### Arguments Without Types
33-
**🙌 Implemented by the community: @bluesign**
33+
**Implemented by the community: @bluesign** 🙌
3434

35-
Great improvement to the argument parsing. CLI now infers types from
36-
transaction parameters and script parameters, so it's not needed anymore to specify
37-
the type explicitly. This new improvement also supports passing arrays and dictonaries.
35+
Great improvement to the argument parsing. CLI now infers types from transaction parameters and script parameters, so it's not needed anymore to specify the type explicitly. This new improvement also supports passing arrays and dictionaries.
3836

3937
The new command format is:
4038
```bash
4139
flow scripts execute <filename> [<argument> <argument> ...] [flags]
4240
```
4341
Example:
4442
```bash
45-
flow scripts execute script.cdc "Meow" "Woof"
43+
> flow scripts execute script.cdc "Meow" "Woof"
44+
```
45+
In the example above the string, type is inferred from the script source code.
46+
47+
More complex example:
48+
```bash
49+
> flow transactions send tx1.cdc Foo 1 2 10.9 0x1 '[123,222]' '["a","b"]'
50+
```
51+
Transaction code:
52+
```
53+
transaction(a: String, b: Int, c: UInt16, d: UFix64, e: Address, f: [Int], g: [String]) {
54+
prepare(authorizer: AuthAccount) {}
55+
}
4656
```
47-
In the example above the string type is inferred from the script source code.
4857

4958
### Idiomatic Accessors
50-
**🙌 Implemented by the community: @bjartek**
59+
**Implemented by the community: @bjartek** 🙌
5160

52-
Getter methods were rewritten in idiomatic Go, containing a value and an error.
53-
This solves some edge case bugs where the value is missing but the returned value is not
61+
Getter methods were rewritten in idiomatic Go, containing a value and an error. This solves some edge case bugs where the value is missing but the returned value is not
5462
checked for nil.
5563

5664
### Configuration Loader Improvement
57-
**🙌 Implemented by the community: @bjartek**
65+
**Implemented by the community: @bjartek** 🙌
5866

59-
Configuration loading logic was improved, and it now only loads global configuration if local isn't present.
60-
Furthermore, it improves the `configuration add` commands that now only allows passing a single config by using the
61-
`-f` flag and it requires at least one local configuration to be present.
67+
Configuration loading logic was improved, and it now only loads global configuration if local isn't present. Furthermore, it improves the `configuration add` commands that now only allow passing a single config by using the `-f` flag and it requires at least one local configuration to be present.

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.27.0
1+
v0.28.0

0 commit comments

Comments
 (0)