Skip to content

Releases

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 10 Jun 21:15
ec0f536

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

Choose a tag to compare

@github-actions github-actions released this 24 Feb 21:24
0a66e64

What's Changed

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

v0.17.3

Choose a tag to compare

@github-actions github-actions released this 27 Nov 22:03
43942c8

What's Changed

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

v0.17.2

Choose a tag to compare

@github-actions github-actions released this 03 Oct 18:44
3f121eb

What's Changed

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

v0.17.1

Choose a tag to compare

@github-actions github-actions released this 20 Aug 19:46
3930d6e

What's Changed

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

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 11 Aug 18:43
4d5aa7e

What's Changed

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

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 28 Jan 03:25
e422125
Release 0.16.0 (#255)

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 24 Dec 02:24
d33962c

What's Changed

New Contributors

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

v0.14.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 02:54
1ef2a42

What's Changed

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

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 18:36
e292667

What's Changed

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