4.0.0-preview.4
Pre-release
Pre-release
·
5996 commits
to development
since this release
2018-06-12: 4.0.0-preview.4
New features:
- all : added JSON-RPC-based display protocol
- all : allow
enum abstractsyntax instead of@:enum abstract(#4282) - all : allow
externon fields instead of@:extern - all : support signature completion on incomplete structures (#5767)
- all : support auto-numbering and auto-stringification in enum abstracts (#7139)
- all : support
Type1 & Type2intersection syntax for type parameter constraints and structures (#7127)
General improvements and optimizations:
- all : reworked CLI usage/help output (#6862)
- all : implemented
forloop unrolling (#3784) - all : metadata can now use
., e.g.@:a.b. This is represented as a string (#3959) - all : [breaking] disallow static extensions on implicit
this(#6036) - all : allow true and false expressions as type parameters (#6958)
- all : improved display support in many areas
- all : support
override |completion - all : make display/references and display/toplevel actually work sometimes
- all : allow
var ?xandfinal ?xparsing in structures (#6947) - all : improved overall robustness of the parser in display mode
- all : allow
@:commutativeon non-static abstract functions (#5599) - js : added externs for js.Date (#6855)
- js : respect
-D source-mapflag to generate source maps in release builds - js : enums are now generated as objects instead of arrays (#6350)
- eval : improved debugger, support conditional breakpoints
Removals:
- all : moved haxe.remoting to hx3compat
- js : moved js.XMLSocket to hx3compat
- neko : moved neko.net to hx3compat
- all : removed support for
T:(A, B)constraint syntax
Bugfixes:
- all : fixed various issues with diagnostics
- all : fixed fields with default values for
@:structInitclasses (#5449) - all : fixed
Null<T>inconsistency in if/ternary expressions (#6955) - all : fixed visibility check related to private constructors of sibling classes (#6957)
- all : fixed @:generic naming (#6968)
- all : fixed handling of type parameters in local functions (#6560)
- all : fixed resolution order between
untypedand type parameters (#7113) - all : fixed unification behavior in try/catch expressions (#7120)
- all : fixed field type being lost for Int expressions on Float fields (#7132)
- all : cleaned up
inlinehandling (#7155) - display : fixed completion in packages starting with underscore (#5417)
- php : fixed Reflect.callMethod with classes as first argument (#7106)
- eval : fixed internal exception surfacing in some context calls (#7007)
- eval : fixed Type.enumEq (#6710)
- flash : fixed silently swallowing exceptions in getters/setters when invoked with Reflect methods (#5460, #6871)
Standard Library: