Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [v2.0.0]

- [glua] Added a `gc` function to manually run the garbage collector on a Lua state.

## [v2.0.0-rc.1] - 2026-03-16

- [glua] Changed encoders functions to not accept and return a Lua VM when is not needed.
Expand Down
4 changes: 4 additions & 0 deletions src/glua.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,10 @@ pub fn sandbox(state lua: Lua, keys keys: List(String)) -> Result(Lua, Error(e))
@external(erlang, "glua_ffi", "sandbox_fun")
fn sandbox_fun(msg: String) -> Value

/// Runs the garbage collector on the given Lua state.
@external(erlang, "luerl", "gc")
pub fn gc(state lua: Lua) -> Lua

/// Gets a value in the Lua environment.
///
/// ## Examples
Expand Down
Loading