Releases: luamod/mods
Releases · luamod/mods
v0.6.0
0.6.0 (2026-03-23)
Features
- fs: add cp helper (048fe8d)
- fs: add dir (e6e070b)
- fs: add exists and lexists (afd2775)
- fs: add listdir (2d053bc)
- fs: add metadata helpers and samefile (26bb07f)
- fs: add mkdir support (a88b827)
- fs: add read_bytes and read_text (3a661ae)
- fs: add recursive rm (2611310)
- fs: add touch (0e064f1)
- fs: add write helpers and rename (f3b04d5)
- is: add path predicate (a9412ac)
- List: add isempty method (efb3509)
- list: support Set inputs (c23c58d)
- path: add as_uri (e088435)
- path: add commonprefix (434c787)
- path: add cwd (bfbbdc4)
- path: add expandvars (c537b77)
- path: add from_uri (6307699)
- path: add pathlib-style helpers and tests (1f8c8aa)
- Set: accept List in set operations (938922d)
- Set: add join/tostring methods (5ba94d4)
- tbl: add foreach (338885a)
- tbl: add spairs (d71a560)
- utils: add lazy_module helper (34fff2e)
- utils: add list_args (237cba0)
- utils: add validate (d5a4fb9)
- utils: allow table labels in validate (62a9c20)
- utils: lazy-load lfs on first access (ee5a52e)
- utils: support callable lazy modules (2566673)
- utils: support function lazy modules (e390768)
- validate: add path validator (26dc408)
- validate: validate template message (16c29ca)
Bug Fixes
- docs: override esbuild to patched version (64fa37f)
- List: detect mods.Set metatable (c53d656)
- path: avoid shadowed str (ca170e9)
- path: handle cwd errors in abspath (15bcfd1)
- path: return nil errors for relpath/commonpath (d6d4307)
- Set: accept plain tables as set arguments (b9fe381)
- tbl: stop spairs at end (016620b)
- utils: ignore unknown caller names (50a18ff)
- validate: align error wording with Lua (20f5ae6)
Performance Improvements
- utils: cache debug.getinfo (2d10488)
v0.5.0
0.5.0 (2026-03-08)
Features
- fs: add filesystem module and helpers (99f9d46)
- mods: expose fs module (ed61252)
- ntpath: add ntpath module (d58b6eb)
- path: add home and improve expanduser errors (5c1c5eb)
- path: add shared _splitext helper module (d89f172)
- path: expose path modules (05f176f)
- posixpath: add lexical posix path module (909b137)
- runtime: add is_windows host flag (bbdc895)
- utils: add assert_arg helper (9633b25)
Bug Fixes
- utils: derive assert_arg caller from error level (57f6977)
v0.4.0
0.4.0 (2026-03-02)
Features
- keyword: add keyword module with docs, types, and tests (#6) (d0103c1)
- List: add and document __add operator behavior (44420a5)
- List: add equals method and __eq metamethod (f5099fe)
- List: add keypath() method (08f15d8)
- List: add lexicographic lt/le comparisons (967dd74)
- List: add mul method and __mul operator (a24d77b)
- List: add native concat method (3110103)
- List: add optional quoted mode to join (a095afb)
- List: add tostring method and metamethod (94f8516)
- List: make join stringify values safely (fb89a80)
- List: support subtraction operator for difference (211bc1a)
- repr: add repr module (#7) (da6bcec)
- runtime: add runtime metadata module (dd38008)
- Set: add __add metamethod for union (60c989e)
- Set: add __lt and __le subset comparisons (bc77e7f)
- Set: add __sub metamethod for difference (347300f)
- Set: add & operator for intersection (b22cc21)
- Set: add ^ operator for symmetric difference (3a9b379)
- Set: add | operator for union (9478734)
- Set: add contains method (b11f050)
- Set: add equality method and __eq metamethod (f51af8d)
- tbl: add keypath() function (4b2f590)
- tbl: add same function (c8e0c55)
Bug Fixes
v0.3.0
v0.2.0
0.2.0 (2026-02-11)
Added
mods.is, type predicates for Lua values and filesystem paths (afd88a7).mods.operator, operator helpers as functions (d620ef9).mods.template, simple template rendering with value replacement (96e833c).mods.validate, validation predicates with customizable failure handling viavalidate.on_fail(31d9b91).