# Lua Changelog

**URL:** https://community.silverbullet.md/t/lua-changelog/1693
**Category:** Lua
**Created:** [January 24, 2025, 4:24pm UTC](https://community.silverbullet.md/t/lua-changelog/1693 "2025-01-24T16:24:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [January 24, 2025, 4:30pm UTC](https://community.silverbullet.md/t/lua-changelog/1693/2 "2025-01-24T16:30:17Z")

</div>

API changes (important especially if you used the [(Video) Demo and current state of Space Lua](https://community.silverbullet.md/t/video-demo-and-current-state-of-space-lua/1655) as a reference).

I’m still learning/exploring how to keep the global namespace somewhat clean, so therefore making some changes:

- `tpl` for templates is now named `template.new`
- `define_command` → `command.define` and with a slightly different API (see [Space Lua](https://silverbullet.md/Space%20Lua))
- `define_event_listener` → `event.listen` and with a slightly different API (see [Space Lua](https://silverbullet.md/Space%20Lua))
- `tag` → `index.tag` so this needs to be changed in all your existing Lua queries, likely.

Sorry for this, you will likely see a lot of `Calling nil as a function` style errors if you experimented with Lua before, but don’t see I didn’t warn you 🙂

---

_[View the full topic](https://community.silverbullet.md/t/lua-changelog/1693)._
