Skip to content

Releases: grain-lang/grain

Preview

22 Mar 00:04
33bdbfe

Choose a tag to compare

Preview Pre-release
Pre-release
preview

chore: release main

stdlib: v0.7.2

08 Feb 19:36
49829d7

Choose a tag to compare

0.7.2 (2026-02-08)

Features

  • compiler: Use Binaryen's bulk memory polyfill (#2334) (1c5478e)
  • stdlib: Standardize path module examples (#2325) (c6e3cb0)

Grain v0.7.2

08 Feb 19:36
49829d7

Choose a tag to compare

0.7.2 (2026-02-08)

Features

  • compiler: Provide a user friendly error on _start override (#2351) (37a64f9)
  • compiler: Support raising multiple well formedness errors. (#2348) (14db204)
  • compiler: Test typemetadata size (#2352) (5314e33)
  • compiler: Upgrade to Binaryen v124 (#2333) (fafad72)
  • compiler: Use Binaryen's bulk memory polyfill (#2334) (1c5478e)
  • lsp: Add submodule information to module hover (#2309) (227b3e3)
  • lsp: Support displaying multiple errors in the lsp (#2354) (4850458)
  • stdlib: Standardize path module examples (#2325) (c6e3cb0)

Bug Fixes

  • compiler: Correct impossible bug on nested char pattern (#2310) (cd3267c)
  • compiler: Correct parsetree caching behaviour (#2280) (5f3f54d)
  • grainfmt: Correct formatting of record assignments (#2344) (7786d60)
  • grainfmt: Correct formatting of single arc function callback (#2340) (3ea198c)

compiler: v0.7.2

08 Feb 19:36
49829d7

Choose a tag to compare

0.7.2 (2026-02-08)

Features

  • compiler: Provide a user friendly error on _start override (#2351) (37a64f9)
  • compiler: Support raising multiple well formedness errors. (#2348) (14db204)
  • compiler: Test typemetadata size (#2352) (5314e33)
  • compiler: Upgrade to Binaryen v124 (#2333) (fafad72)
  • compiler: Use Binaryen's bulk memory polyfill (#2334) (1c5478e)
  • lsp: Add submodule information to module hover (#2309) (227b3e3)
  • lsp: Support displaying multiple errors in the lsp (#2354) (4850458)

Bug Fixes

  • compiler: Correct impossible bug on nested char pattern (#2310) (cd3267c)
  • compiler: Correct parsetree caching behaviour (#2280) (5f3f54d)
  • grainfmt: Correct formatting of record assignments (#2344) (7786d60)
  • grainfmt: Correct formatting of single arc function callback (#2340) (3ea198c)

cli: v0.7.2

08 Feb 19:36
49829d7

Choose a tag to compare

0.7.2 (2026-02-08)

Miscellaneous Chores

  • cli: Synchronize Grain versions

stdlib: v0.7.1

01 Jul 19:40
e289be8

Choose a tag to compare

0.7.1 (2025-07-01)

Features

  • graindoc: Pretty markdown tables (#2292) (1992734)
  • stdlib: Add Buffer.getChar (#2262) (95d03cb)
  • stdlib: Deprecate Buffer.set operations in favour of Bytes.set (#2303) (684df98)
  • stdlib: Expose equality operators through Number module (#2296) (5965dff)

Grain v0.7.1

01 Jul 19:40
e289be8

Choose a tag to compare

0.7.1 (2025-07-01)

Features

Bug Fixes

  • compiler: Correct type printing of type A = a (#2302) (ac892d1)
  • grainfmt: Correct formatting of submodules ending with comments (#2288) (f969df9)

cli: 0.7.1

0.7.1 (2025-07-01)

Miscellaneous Chores

  • cli: Synchronize Grain versions

compiler: 0.7.1

0.7.1 (2025-07-01)

Features

Bug Fixes

  • compiler: Correct type printing of type A = a (#2302) (ac892d1)
  • grainfmt: Correct formatting of submodules ending with comments (#2288) (f969df9)

stdlib: 0.7.1

0.7.1 (2025-07-01)

Features

  • graindoc: Pretty markdown tables (#2292) (1992734)
  • stdlib: Add Buffer.getChar (#2262) (95d03cb)
  • stdlib: Deprecate Buffer.set operations in favour of Bytes.set (#2303) (684df98)
  • stdlib: Expose equality operators through Number module (#2296) (5965dff)

cli: v0.7.1

01 Jul 19:40
e289be8

Choose a tag to compare

0.7.1 (2025-07-01)

Miscellaneous Chores

  • cli: Synchronize Grain versions

stdlib: v0.7.0

27 Apr 21:21
17147cd

Choose a tag to compare

0.7.0 (2025-04-26)

⚠ BREAKING CHANGES

  • cli: Require node >=22.13 (#2256)
  • compiler: Disallow whitespace for negative literals + allow infix operators on new line (#2136)
  • compiler: Custom Grain object files (#2104)
  • stdlib: Seeded hashing (#2170)
  • stdlib: Add an Ascii submodule to Char and move isAscii, toUppercase, toLowercase (#2178)

Features

  • Add getAll, setAll, removeAll to List.Associative (#2224) (9c49a23)
  • compiler: Custom Grain object files (#2104) (4b56c53)
  • compiler: Disallow whitespace for negative literals + allow infix operators on new line (#2136) (3186155)
  • runtime: Optimize == for lists (#2247) (1cba005)
  • runtime: Prevent stack overflow while collecting large lists (#2248) (097ae7d)
  • runtime: Simplify copy and fill polyfills in Memory module (#2148) (1b3a9f0)
  • stdlib: List.Associative Submodule (#2202) (fbb08bf)
  • stdlib: Add ** to Float64 and Float32 (#2163) (7542d92)
  • stdlib: Add Array.tryInit (#2209) (218ff78)
  • stdlib: Add Bytes.setChar and Bytes.getChar (#2215) (4919ba3)
  • stdlib: Add Char.encodedLength (#2238) (c549fac)
  • stdlib: Add copySign, sqrt, min, max, round, trunc, floor, ceil to Float32 (#2161) (f5a3dd3)
  • stdlib: Add copySign, sqrt, min, max, round, trunc, floor, ceil to Float64 (#2162) (e99dcba)
  • stdlib: Add Exception.toString (#2143) (0894dc5)
  • stdlib: Add isFinite, isClose, sin, cos, tan to Float32 (#2168) (bdb4641)
  • stdlib: Add isFinite, isClose, sin, cos, tan to Float64 (#2166) (fa728d2)
  • stdlib: Add List.filterMap, List.filterMapi, List.findMap (#2201) (551f5ad)
  • stdlib: add Path.removeExtension (#2226) (7b7acfd)
  • stdlib: Add Path.updateExtension (#2282) (6d795d0)
  • stdlib: Add String.repeat to String module (#2140) (6c33d08)
  • stdlib: Add toList, fromList, toArray, fromArray to Stack (#2198) (b815bcd)
  • stdlib: Add an Ascii submodule to Char and move isAscii, toUppercase, toLowercase (#2178) (328cf01)
  • stdlib: Add user-friendly file system module (#1966) (c4f638e)
  • stdlib: Implement reinterpret between float and int values (#2257) (e3a4eac)
  • stdlib: Json value access utils (#2150) (72cc978)
  • stdlib: Optimize List.init to support large lists (#2249) (3de64ba)
  • stdlib: Reimplement Number.gamma and Number.factorial (#2182) (1e5f921)
  • stdlib: Reimplement Number.sin, Number.cos, Number.tan (#2158) (f97c011)
  • stdlib: Seeded hashing (#2170) (ce872ab)

Bug Fixes

  • compiler: Handle non-exhaustive record patterns (#2274) (0431e74)
  • runtime: Correct Bi.toFloat64 rounding (#2160) (6755782)
  • stdlib: Correct sign bit in _rempio when computing trig reduction (#2181) (6a78502)
  • stdlib: Optimize number modulo (#2144) (960fadd)
  • stdlib: Properly print Range values (#2184) (11b1fc2)

Miscellaneous Chores

Grain v0.7.0

27 Apr 21:21
17147cd

Choose a tag to compare

0.7.0 (2025-04-26)

⚠ BREAKING CHANGES

  • cli: Require node >=22.13 (#2256)
  • compiler: Disallow whitespace for negative literals + allow infix operators on new line (#2136)
  • compiler: Custom Grain object files (#2104)
  • Remove -> token in favor of => (#2177)
  • stdlib: Seeded hashing (#2170)
  • stdlib: Add an Ascii submodule to Char and move isAscii, toUppercase, toLowercase (#2178)

Features

  • Add getAll, setAll, removeAll to List.Associative (#2224) (9c49a23)
  • cli: Support node v22 and v23 (#2207) (130c494)
  • compiler: Custom Grain object files (#2104) (4b56c53)
  • compiler: Deduplicate foreign imports (#2233) (e8a3ed2)
  • compiler: Disallow whitespace for negative literals + allow infix operators on new line (#2136) (3186155)
  • compiler: Enable single-file compilation (#2105) (824b365)
  • compiler: Improve exhaustive warning for lists (#2220) (f54dbdf)
  • compiler: Use location for Unbound_label_with_alt error (#2196) (271d7cb)
  • compiler: Use program location for _gmain (#2231) (bdbbd05)
  • docs: Update stdlib contributor guidelines (#2277) (9631e72)
  • fmt: Add trailing comma on inline records (#2266) (cbe12e2)
  • lsp: Add or remove block braces code action (#2222) (3134504)
  • Remove -> token in favor of => (#2177) (d0038d3)
  • runtime: Optimize == for lists (#2247) (1cba005)
  • runtime: Prevent stack overflow while collecting large lists (#2248) (097ae7d)
  • runtime: Simplify copy and fill polyfills in Memory module (#2148) (1b3a9f0)
  • stdlib: List.Associative Submodule (#2202) (fbb08bf)
  • stdlib: Add ** to Float64 and Float32 (#2163) (7542d92)
  • stdlib: Add Array.tryInit (#2209) (218ff78)
  • stdlib: Add Bytes.setChar and Bytes.getChar (#2215) (4919ba3)
  • stdlib: Add Char.encodedLength (#2238) (c549fac)
  • stdlib: Add copySign, sqrt, min, max, round, trunc, floor, ceil to Float32 (#2161) (f5a3dd3)
  • stdlib: Add copySign, sqrt, min, max, round, trunc, floor, ceil to Float64 (#2162) (e99dcba)
  • stdlib: Add Exception.toString (#2143) (0894dc5)
  • stdlib: Add isFinite, isClose, sin, cos, tan to Float32 (#2168) (bdb4641)
  • stdlib: Add isFinite, isClose, sin, cos, tan to Float64 (#2166) (fa728d2)
  • stdlib: Add List.filterMap, List.filterMapi, List.findMap (#2201) (551f5ad)
  • stdlib: add Path.removeExtension (#2226) (7b7acfd)
  • stdlib: Add Path.updateExtension (#2282) (6d795d0)
  • stdlib: Add String.repeat to String module (#2140) (6c33d08)
  • stdlib: Add toList, fromList, toArray, fromArray to Stack (#2198) (b815bcd)
  • stdlib: Add an Ascii submodule to Char and move isAscii, toUppercase, toLowercase (#2178) (328cf01)
  • stdlib: Add user-friendly file system module (#1966) (c4f638e)
  • stdlib: Implement reinterpret between float and int values (#2257) (e3a4eac)
  • stdlib: Json value access utils (#2150) (72cc978)
  • stdlib: Optimize List.init to support large lists (#2249) (3de64ba)
  • stdlib: Reimplement Number.gamma and Number.factorial (#2182) (1e5f921)
  • stdlib: Reimplement Number.sin, Number.cos, Number.tan (#2158) (f97c011)
  • stdlib: Seeded hashing (#2170) (ce872ab)

Bug Fixes

  • cli: Only accept --dir, --env on grain run or grain (#2279) (0d249dc)
  • compiler: Correct in_function state when typing record properties (#2205) (d9dd274)
  • compiler: Correct Include_module_name_mismatch error (#2261) (ef77a31)
  • compiler: Correct location of parmatch mismatch type error (#2259) ([eb85692](ht...
Read more