Skip to main content

RocketLang v0.22.1 is released

ยท 2 min read

New Featuresโ€‹

elif Statementโ€‹

You can now use elif (also known as "else if") to create cleaner conditional logic with multiple conditions. This enhancement was contributed by MarkusFreitag in PR #198.

a = "test"
if a.type() == "BOOLEAN"
puts("is a boolean")
elif a.type() == "STRING"
puts("is a string")
elif a.type() == "INTEGER"
puts("is an integer")
else
puts("unknown type")
end

You can chain as many elif statements as needed, making complex conditional logic more readable and maintainable than nested if statements.

See If / elif / else for more information.

Infrastructure Updatesโ€‹

Go 1.24โ€‹

RocketLang now uses Go 1.24, bringing performance improvements and the latest language features to the interpreter.

Docusaurus 3.7 and React 19โ€‹

The documentation site has been upgraded to Docusaurus 3.7 with React 19, providing a faster and more modern documentation experience.

GoReleaser v2โ€‹

The release process has been updated to use GoReleaser v2, ensuring more reliable and efficient builds.

Security Updatesโ€‹

Several dependencies have been updated to address security vulnerabilities:

  • express: 4.18.1 โ†’ 4.19.2
  • ua-parser-js: 0.7.31 โ†’ 0.7.37
  • @babel/traverse: 7.18.10 โ†’ 7.23.4
  • json5: 2.2.1 โ†’ 2.2.3

Check out the full changelog for a complete list of changes and contributors.