From 084ff8918c25c9cccb5b9949aca911a36aa8286a Mon Sep 17 00:00:00 2001 From: codebien <2103732+codebien@users.noreply.github.com> Date: Tue, 11 Feb 2025 15:04:19 +0100 Subject: [PATCH] Alias consts.Version --- lib/consts/consts.go | 7 ++++++- version/version.go | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 version/version.go diff --git a/lib/consts/consts.go b/lib/consts/consts.go index 0b8bc2413ca..554574f0bf2 100644 --- a/lib/consts/consts.go +++ b/lib/consts/consts.go @@ -1,5 +1,10 @@ // Package consts houses some constants needed across k6 package consts +import "go.k6.io/k6/version" + // Version contains the current semantic version of k6. -const Version = "0.56.0" +// +// Deprecated: alias to support the legacy versioning API. Use the new version package, +// it will be removed as soon as the external services stop to depend on it. +const Version = version.SemVer diff --git a/version/version.go b/version/version.go new file mode 100644 index 00000000000..44e9146ddee --- /dev/null +++ b/version/version.go @@ -0,0 +1,6 @@ +// Package version handles k6 versioning +package version + +// SemVer contains the current version of k6 +// represented using Semantic Versioning expression. +const SemVer = "0.56.0"