Skip to content

Releases: seaofvoices/darklua

v0.19.0

10 Jun 21:15
ec0f536

Choose a tag to compare

The big change is content loaders. darklua now accepts glob patterns that map to configurable loaders in your config file. Most loaders are already there by default, but you can override or extend them:

{
  generator: "retain_lines",
  rules: [
    // ...
  ],
  loaders: {
    "**/*.model.json": "copy",
    "**/*.json": "json",
    "**/*.md": "string",
  },
}

This solves a few issues I know people had and it opens up new possibilities too:

  • Rojo model files can now be copied when processing files (no more manual cp workaround) with the copy loader
  • when bundling, darklua could already load data files (json, toml, yaml) and inline the converted data as Lua code, but now there are actual loaders to make that work in the regular process flow too
  • there is now a path to support more Lua parsers, since there is a way to add loaders like a future lua53 loader. (this is not currently planned, but it could be sponsored)

Available loaders: luau, copy, skip, string, buffer, bytes, data loaders (json, json_lines, toml, yaml), and encoding variants for embedding content (/base64, /zstd, /gzip, /zlib)

Other changes:

  • const declarations are now supported, with a new make_assignment_local rule to convert them to local assignments
  • type instantiation prefixes and methods are now supported (e.g. func<<string>>())
  • the rename_variables rule can now detect globals automatically and avoid renaming them

What's Changed

New Contributors

Full Changelog: v0.18.0...v0.19.0

v0.18.0

24 Feb 21:24
0a66e64

Choose a tag to compare

What's Changed

Full Changelog: v0.17.3...v0.18.0

v0.17.3

27 Nov 22:03
43942c8

Choose a tag to compare

What's Changed

Full Changelog: v0.17.2...v0.17.3

v0.17.2

03 Oct 18:44
3f121eb

Choose a tag to compare

What's Changed

Full Changelog: v0.17.1...v0.17.2

v0.17.1

20 Aug 19:46
3930d6e

Choose a tag to compare

What's Changed

Full Changelog: v0.17.0...v0.17.1

v0.17.0

11 Aug 18:43
4d5aa7e

Choose a tag to compare

What's Changed

Full Changelog: v0.16.0...v0.17.0

v0.16.0

28 Jan 03:25
e422125

Choose a tag to compare

Release 0.16.0 (#255)

v0.15.0

24 Dec 02:24
d33962c

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.14.1...v0.15.0

v0.14.1

28 Nov 02:54
1ef2a42

Choose a tag to compare

What's Changed

Full Changelog: v0.14.0...v0.14.1

v0.14.0

20 Oct 18:36
e292667

Choose a tag to compare

What's Changed

Full Changelog: v0.13.1...v0.14.0