diff --git a/release notes/v0.54.0.md b/release notes/v0.54.0.md index 934e2b958cb..c33220ae451 100644 --- a/release notes/v0.54.0.md +++ b/release notes/v0.54.0.md @@ -20,6 +20,7 @@ We’ve added a new experimental csv module to k6 for more efficient and conveni #### What is it? The csv module offers two key features: + * `csv.parse()` **Function**: Parses an entire CSV file at once into a [SharedArray](https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/), using Go-based processing to using Go-based processing for faster parsing and lower memory usage compared to JavaScript alternatives. * `csv.Parser` **Class**: Provides a streaming parser to read CSV files line-by-line, minimizing memory consumption and offering more control over parsing through a stream-like API. This is ideal for scenarios where memory optimization or fine-grained control of the parsing process is crucial. @@ -36,7 +37,9 @@ The csv module offers two key features: #### Example Usage -**Parsing a full CSV file into a [SharedArray](https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/):** +
+ Expand to see an example of Parsing a full CSV file into a SharedArray. + ```javascript import { open } from 'k6/experimental/fs' import csv from 'k6/experimental/csv' @@ -66,7 +69,11 @@ export default async function() { } ``` -**To stream a CSV file line-by-line:** +
+ +
+ Expand to see an example of streaming a CSV file line-by-line. + ```javascript import { open } from 'k6/experimental/fs' import csv from 'k6/experimental/csv' @@ -99,6 +106,7 @@ export default async function() { } ``` +
### `` `#pr` @@ -111,12 +119,12 @@ _what, why, and what this means for the user_ ## Bug fixes -- [browser#1406](https://github.com/grafana/xk6-browser/pull/1406) Fix panic on iframe attach when iframe didn't contain any UI elements. +- [browser#1406](https://github.com/grafana/xk6-browser/pull/1406) fixes panic on iframe attach when iframe didn't contain any UI elements. ## Maintenance and internal improvements - [#3871](https://github.com/grafana/k6/pull/3871) allows missing file descriptors for gRPC reflection. Thank you, @Lordnibbler! -- [#3915](https://github.com/grafana/k6/pull/3915) switches to the go1.21, introduce toolchain to go.mod. +- [#3915](https://github.com/grafana/k6/pull/3915) switches `go.mod` to the go1.21, introduces toolchain. - [#3938](https://github.com/grafana/k6/pull/3938) updates k6's CI workflows to go 1.23. - [#3939](https://github.com/grafana/k6/pull/3939) updates Dockerfile to use go 1.23 and alpine 3.20. - [#3909](https://github.com/grafana/k6/pull/3909) fixes `ExitCode` description typo. Thank you, @eltociear!