Repository navigation
Release 0.8.0: known-issue fixes, CI on Lua 5.1-5.4 and LuaJIT - #4
Merged
Merged
Conversation
Bump the rockspec to format 3.0 and declare busted as the test runner and a test-only dependency, so `luarocks test` runs the suite from the repository root. Also switch the source URL from the dead git:// form to git+https://. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- deepflat visits hash keys in a fixed order (numbers, strings,
booleans, tables by content, then other types by identity), so its
output and deep equal no longer depend on pairs order. Table keys are
compared lazily, stopping at the first difference.
- Add table.of(...), which always packs its arguments: table.of(t) is
{ t }. table.new and table(t) still wrap a single table in place.
- init deep-copies a table init value into each slot instead of
sharing one table.
- shuffle uses Fisher-Yates, so every ordering is equally likely.
Each fix comes with spec regression tests and demo checks that fail on
the previous code. examples/demo.lua is a self-checking tour of every
public function. The dot-access issue stays open in the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LuaJIT doesn't reserve hash slots for nil fields in a table constructor, so reordered() never changed the pairs order there. Grow the hash part with placeholder keys instead and remove them after copying (deleting keys never shrinks a table), which works on every Lua version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- rockspecs/luatable-0.8.0-1.rockspec: tag v0.8.0, lua >= 5.1, refreshed description - scm-1 rockspec: lowercase package name, lua >= 5.1 - table.info() reports 0.8.0; a spec and a demo check tie it to the release rockspec - changelog: Unreleased becomes 0.8.0; README: CI badge, supported versions, luarocks install line, roadmap updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It is an internal end-to-end regression script, not a user example: move it out of examples/ (busted only runs *_spec files, so it stays out of the busted suite). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares the first stable LuaRocks release (only
scm-1is published today).What's in it
clonesharing, uniformshuffle,table.of, deep-copyinginit, caller-line argument errors, and more. Plusspec/regression.lua, an internal end-to-end regression script that runs with plainlua(not part of the busted suite)..github/workflows/test.yml): busted on Lua 5.1, 5.2, 5.3, 5.4 and LuaJIT 2.1, the same setup as lua-reg (gh-actions-lua v13, gh-actions-luarocks v6 / LuaRocks 3.13).reordered()(inspec/helpers.luaandspec/regression.lua) presized tables with a constructor of nil fields, which LuaJIT doesn't presize. It now grows the hash part with placeholder keys and removes them afterwards. Library code was unaffected.rockspecs/luatable-0.8.0-1.rockspec(tagv0.8.0,lua >= 5.1, refreshed description)luatable,lua >= 5.1table.info()reports 0.8.0, with a spec + regression-script check tying it to the release rockspecluarocks install luatableAfter merging
git tag v0.8.0 <merge commit>andgit push origin v0.8.0luarocks upload rockspecs/luatable-0.8.0-1.rockspec --api-key=…Checks
lua spec/regression.lua125/125 (exit 0),luarocks lintclean on both rockspecs.🤖 Generated with Claude Code