Repository navigation
v1.12.0
Install
luarocks install lapis
Additions
- Add the
lapis.validate.typesmodule with tableshape compatible types for parameter validation:params_shape,assert_error,cleaned_text,valid_text,trimmed_text,truncated_text,limited_text,empty,file_upload,db_id,db_enum lapis.validateAdd thewith_paramshelper function for wrapping action function with parameter validationlapis.util.utf8Addstring_lengthfunction for counting the number of characters in a string- The
lapis newcommand will always write a config.lua/config.moon file. The default configuration's nginx specific variables will be phased out a future update - The
lapis generatesub commands now can generate both Lua and MoonScript files. Project type detection has been added, in addition to flags to directly specify the file type
Changes
- The
lapiscommand line tool's argument parsing has been rewritten using argparse. New help commands are available for every command, with full argument documentation. - The
lapis generatesubcommands now use argparse and have full command line documentation available - The
lapis newcommand will now fail if the requested server type is not available. The--forceoption can be used to bypass the error - The default nginx.conf file now include an
init_by_luablock as an example to suppress global variable warning - Command line third-party sub commands now are executed using the
_command. Seelapis help _ lapis.applicationyield_errornow has a default error message if one isn't providedlapis.validateassert_validcan take a tableshape object as the validation object. Will return transformed value and state on successlapis.dbencode_clausewill now generate query with capitalNOTwhen using false value
Misc
- Internal reorganization for command line commands and path library
- Revised documentation for input validation
Full Changelog: v1.11.1...v1.12.0