You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add flag for lua 5.0 target
* feat(5.0): implement spread arguments
* fix(5.0): in general, cases that apply to 5.1 should also apply to 5.0
* style: run prettier
* test(5.0): share the expected results of the obvious cases with 5.1
* feat(5.0): work around the missing '#' and '%' operators
* fix: log the correct lua version for unsupported features
* style: condense spread table if branch
* test: add a special case for modulo for 5.0
* style: fix indentation for test function snippet
* feat(5.0): implement spread element correctly
* fix: report correct lua version in bitops diagnostic message
* test: refactor spread tests to accomodate 5.0
* Revert "test: add a special case for modulo for 5.0"
This reverts commit fac16d2.
* test: test basic numeric expressions against all versions
* style: run prettier
* refactor: use the convenience function to make an unpack call
* style(lualib): use @noselfinfile for the modulo polyfill
* fix: make bundling compatible with lua 5.0
* fix(5.0): optimized single element array push for 5.0
* fix(5.0): fix constructor w/ instance fields for 5.0
* fix(lualib): count varargs correctly with lua 5.0
* fix(lualib): tracebacks don't support threads with lua 5.0
* fix(lualib): work around missing math.modf() in lua 5.0
* fix(lualib): work around missing string.match() in lua 5.0
* fix(lualib): detect lua 5.0 minor versions correctly
* refactor(lualib): lua 5.0 check can be a constant instead of a function
* fix(5.0): get json test library to load
* style: rename 5.0 json file
* style: use a better definition of infinity
* feat(5.0): don't transform infinity to math.huge, which doesn't exist in 5.0
* chore: bump lua-types version
* feat: build another copy of lualib for 5.0
* style: run prettier
* fix: small issues discovered in testing
* chore: bump lua-wasm-bindings version
* fix(lualib): select() call was not using vararg optimization, breaking some spead cases
* test: use inline lualib imports to get around problems with preloading the entire bundle
* test: remove old snapshots
* fix: json files can't contain comments
* Revert "fix: json files can't contain comments"
This reverts commit 581fb52.
Turns out they CAN contain comments, when they're named tsconfig.json!
* test: exclude lualib-lua50 from coverage
* style: move 5.0 tsconfig.json to existing lualib dir
* style: refactor lualib resolution into common function
* style: factor out table length transpilation into common function
* style: format 5.0 and non-5.0 require shims
* test: remove obsolete lua 5.0 arg test
* refactor(lualib): use builtins for the 5.0 branches instead of a version check
* refactor(lualib): move 5.0-specific to its own directory
* chore: add tsconfig to eslint
* refactor(lualib): reorganize dist/lualib directories to better support future targets
* fix(lualib): cache should account for multiple possible versions
* Revert "test: use inline lualib imports to get around problems with preloading the entire bundle"
This reverts commit 8d9ce98.
* chore: adjust jest and npm configs for new lualib structure
* refactor: cache lualib by file path so the universal target isn't cached several times
* chore: bump lua-types
* refactor: deduplicate require boilerplate
* refactor: simplify universal definition of TS_Match
* style: rename TS_Modulo -> TS_Modulo50
* refactor(lualib): use unpack helper to avoid code duplication in Generator.ts
* refactor(lualib): eliminate duplication in SourceMapTraceBack.ts
* chore(lualib): fix comment in CountVarargs.ts
* refactor(lualib): eliminate duplication in Error.ts
* fix(lualib): modules info should be cached per-target
* refactor(lualib): eliminate duplication in NumbertToString.ts
* refactor(lualib): modules info can also be cached by file path to avoid duplication
* style: for locating lualib features, it makes more sense to default to the universal target
* style: delete unnecessary noselfinfile
* chore: add 5.0 target to tsconfig schema
0 commit comments