Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Notes for v0.54.0 #3949

Merged
merged 42 commits into from
Sep 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
99bb3aa
v0.54.0 release notes from template
olegbespalov Aug 21, 2024
8b29604
Add browser#1406 to v0.54.0 release notes
ankur22 Aug 21, 2024
10b57a8
Add release notes for experimental csv module
oleiade Sep 12, 2024
ec5a854
Oleg's changelog
olegbespalov Sep 12, 2024
a85e5a0
External contributors' changelog
olegbespalov Sep 12, 2024
b42d1b1
Minor alignments of release notes
olegbespalov Sep 12, 2024
a52892e
Add browser#1420 & browser#1421 to release notes
ankur22 Sep 13, 2024
b3bce17
Joan's changelog
joanlopez Sep 13, 2024
5c3bbaf
Merge branch 'release-v0.54.0' of github.com:grafana/k6 into release-…
joanlopez Sep 13, 2024
cd79b78
Breaking changes, minor adjustments
olegbespalov Sep 13, 2024
8da0ce8
Extract gRPC updates under the feature
olegbespalov Sep 13, 2024
befe03c
Add setChecked to release notes
inancgumus Sep 13, 2024
dfe6c0f
Add file upload protocol to release notes
inancgumus Sep 13, 2024
a42b2ff
Add browser#1408 & #1422 to release notes
ankur22 Sep 13, 2024
f13b796
mstoykov: most of my release notes changes
mstoykov Sep 17, 2024
901251f
Add notes specific to --local-execution
oleiade Sep 17, 2024
4fd717d
Improve browser release notes
inancgumus Sep 17, 2024
dea59ed
Add branding changes
mstoykov Sep 17, 2024
4b63d34
add usage changes to release notes
mstoykov Sep 17, 2024
4b33ce6
xk6-websockets changes
mstoykov Sep 17, 2024
be907c9
Add browser module notice
inancgumus Sep 17, 2024
469ecb4
Add future plans notice back
inancgumus Sep 17, 2024
d30a86d
Fix regex code block release notes
inancgumus Sep 17, 2024
802430d
Fix doc next links to latest
inancgumus Sep 17, 2024
e575ea4
Add setChecked links
inancgumus Sep 17, 2024
6a9971b
Add async check utility
inancgumus Sep 18, 2024
cac0382
Fix k6lib check next to latest
inancgumus Sep 18, 2024
af29a66
Improve async check notes
inancgumus Sep 19, 2024
ad5a90a
Improve browser release notes
inancgumus Sep 20, 2024
856dec1
Apply suggestions from code review
olegbespalov Sep 23, 2024
317abfd
Adding missing dependencies PRs, aligning the style
olegbespalov Sep 23, 2024
44c1f51
Mention further bug fixes and maintenance work
oleiade Sep 23, 2024
1c2ae2a
Apply suggestions from code review
olegbespalov Sep 23, 2024
4199f09
Add fix browser#1435
ankur22 Sep 23, 2024
e032c06
Apply suggestions from code review
olegbespalov Sep 24, 2024
abb23cf
Add most recent browser related fixes
ankur22 Sep 26, 2024
83a656c
Apply suggestions from code review
olegbespalov Sep 26, 2024
92c120d
Apply code review suggestions, mentioning new PRs
olegbespalov Sep 26, 2024
2570cd9
Apply suggestions from code review
olegbespalov Sep 26, 2024
774a421
Apply suggestions from code review
olegbespalov Sep 30, 2024
88f6226
Apply suggestions from code review
olegbespalov Sep 30, 2024
1fa1587
Apply suggestions from code review
olegbespalov Sep 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve browser release notes
Co-authored-by: Heitor Tashiro Sergent <[email protected]>
  • Loading branch information
inancgumus and heitortsergent authored Sep 20, 2024
commit ad5a90a323824c83791c7dacde704ce82b9047da
8 changes: 3 additions & 5 deletions release notes/v0.54.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ await page.setChecked('#checkbox', false); // uncheck the checkbox

### Async `check` function utility [`k6-utils#13`](https://github.com/grafana/k6-jslib-utils/pull/13)

Writing concise code can be difficult when using [the k6 `check` function](https://grafana.com/docs/k6/latest/javascript-api/k6/check/) with async code since it doesn't support async APIs. A solution that we have suggested so far is to declare a temporary variable, wait for the value that is to be checked, and then check the result later. However, this approach can clutter the code with single-use declarations and unnecessary variable names, e.g.:
Writing concise code can be difficult when using [the k6 `check` function](https://grafana.com/docs/k6/latest/javascript-api/k6/check/) with async code since it doesn't support async APIs. A solution that we have suggested so far is to declare a temporary variable, wait for the value that is to be checked, and then check the result later. However, this approach can clutter the code with single-use declarations and unnecessary variable names, for example:

```javascript
const checked = await p.locator('.checked').isChecked();
Expand All @@ -224,7 +224,7 @@ check(checked, {
});
```

To address this limitation, we've added a version of the `check` function to [jslib.k6.io](https://jslib.k6.io/) that makes working with `async`/`await` more ergonomic. The `check` function is a drop-in replacement for the built-in check, with added support for async code. Any `Promise`s will be awaited, and the result is reported once the operation has been completed:
To address this limitation, we've added a version of the `check` function to [jslib.k6.io](https://jslib.k6.io/) that makes working with `async`/`await` simpler. The `check` function is a drop-in replacement for the built-in check, with added support for async code. Any `Promise`s will be awaited, and the result is reported once the operation has been completed:

```javascript
// Import the new check function from jslib.k6.io/k6-utils
Expand Down Expand Up @@ -299,6 +299,4 @@ This has been reworked to make this a lot easier to do and a few new usage repor

## Roadmap

In version 0.52.0, the browser module [transitioned](https://github.com/grafana/k6/pull/3793) from the experimental phase to stable. The new module is more stable and has a [full Async API](https://github.com/grafana/xk6-browser/pull/1374). To ensure your scripts continue working, you must migrate to the new `k6/browser` module and discontinue using the previous `k6/experimental/browser` module. Please see [the migration guide](https://grafana.com/docs/k6/latest/using-k6-browser/migrating-to-k6-v0-52/) for more details.

_Discussion of future plans_
In version 0.52.0, the browser module [transitioned](https://github.com/grafana/k6/pull/3793) from experimental to stable. The new module is more stable and has a [full Async API](https://github.com/grafana/xk6-browser/pull/1374). To ensure your scripts continue working, you must migrate to the new `k6/browser` module and discontinue using the previous `k6/experimental/browser` module. Please see [the migration guide](https://grafana.com/docs/k6/latest/using-k6-browser/migrating-to-k6-v0-52/) for more details.
Loading