All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added
entry_name
config option (default:__luapack_entry__
) - Added
package_preload_name
config option (default:package.preload
) - Added
package_loaded_name
config option (default:package.loaded
) - Added
alias
config option for renaming imported modules - Added
outfile
config option (only for CLI) - CLI now supports simple string arguments (
-name=value
)
- Updated to work with latest Yuescript
- Fixed
package.searchpath
not being used in Lua 5.2+ (instead falling back to our implementation) - Fixed some minor LSP warnings
- Fixed lua pattern not working with 1s in the name.
- Added
include_entry
option - Added
packer:export()
- Added standalone option for CLI
- reads module names line for line and then includes them
- Improved CLI option handler
packer:pack()
no longer returns the full lua, usepacker:export()
to get it
0.4.1 - 2022-04-12
- Fixed require pattern not working at all
0.4.0 - 2022-04-09 [YANKED]
- Updated lua pattern:
- Support
require("someone's lib")
(#2) - Allow all whitespace between require and parentheses (#3)
- Allow whitespace within the parentheses too
- Support
0.3.3 - 2022-02-06
- Added
compat_arg
option which is enabled by default (compatibility option forarg
in lua 5.1/5.2)
0.3.2 - 2022-02-04
- Fixed polyfill require not resetting recursion detection when an error occurs
- Fixed polyfill require not returning
":preload:"
0.3.1 - 2022-02-04
- require of package polyfill now calls the preload function with correct arguments
- Fixed CLI (finally)
- Fixed optional dependecies not being optional
0.3.0 - 2022-02-04
- Added
helper
:searchpath_compat
,package_path_with_different_extension
,check_file_extension
,fast_push
- Moved
packer:searchpath_compat
tohelper.searchpath_compat
- Changed plugin logic for
loader
- Removed
plugin.check_filename
0.2.0 - 2022-02-03
- Added package polyfill
- Added plugin system
- Added support for require()'ing yuescript and moonscript builtin
- Using
package.preload
and builtinrequire
function now - Using lua patterns instead of regex dependency
- Standalone 39kb -> 29kb (or 5kb without minify)
- Removed
--cli
from the CLI
0.1.0 - 2021-03-25
Initial release