Release 0.12
Core
New Features
- Mutable object fields
- Object methods
- Variadic functions
- New syntax for function types
- Empty object literals
- Type checker improvements for optional types
Fixed Features
- Parenthesized loop
- Sort results of
fs_scandirSync
- Function declaration hoisting invalid code generation
- Builtin functions check if type is reference
New API:
buffer_Buffer
fs_Stats
fs_chmodSync
fs_chownSync
fs_existsSync
fs_isAbsoluteSync
fs_isFileSync
fs_isDirectorySync
fs_isSymbolicLinkSync
fs_linkSync
fs_mkdirSync
fs_readFileSync
fs_realpathSync
fs_rmSync
fs_rmdirSync
fs_scandirSync
fs_statSync
fs_unlinkSync
fs_writeFileSync
os_EOL
os_name
path_SEP
path_basename
path_dirname
process_args
process_cwd
process_getgid
process_getuid
process_runSync
request_Header
request_Request
request_Response
request_close
request_open
request_read
url_URL
url_parse
New Builtin API
char.isAlpha
char.isAlphaNum
char.isDigit
char.isSpace
char.repeat
char.str
str.empty
str.find
str.lines
str.toLower
str.toLowerFirst
str.slice
str.toBuffer
str.trim
str.upper
str.upperFirst
CLI
New Features
- Full Windows support
- Advanced arguments parser
- Executable output option (
--output
) - Offline compiler path option (
--compiler
) - Run command arguments option (
--run-args
)
Fixes
- Build command inserting line feeds in wrong way