Home / Companies / Grafana Labs / Blog / Post Details
Content Deep Dive

New Grafana k6 features: TypeScript support, async APIs for browser, and more

Blog post from Grafana Labs

Post Details
Company
Date Published
Author
Pepe Cano
Word Count
1,162
Language
English
Hacker News Points
-
Summary

Grafana k6, an open-source load testing tool, has introduced several new features aimed at enhancing user experience and aligning with modern development practices. The recent updates include native TypeScript support in k6 v0.52, allowing tests to run without JavaScript bundlers, and the inclusion of ES6+ features such as optional chaining and object spread. The browser APIs have been updated to support asynchronous operations, aligning with the broader JavaScript ecosystem, though this introduces breaking changes that require migration. The gRPC module has become stable, supporting non-blocking async operations, and a new Stream module allows efficient consumption of large datasets by reading files in chunks. Timer methods like setInterval and setTimeout are now globally available, and there are new Web Crypto methods for cryptographic operations. The k6 v0.53 release also adds support for storing results in OpenTelemetry backends, enhancing interoperability with industry standards. These developments reflect ongoing efforts to cater to community requests and ensure compatibility with widely used JavaScript libraries and frameworks.