CHANGELOG
2.0.0
2.x is a backwards incompatible release, with a focus on improving the performance of incremental compiles and modernizing the compiler architecture.
While there are breaking changes in the use of the compiler, generated code should still be compatible with modern web browsers and environments.
Added:
- New 'Compiler' API (#73)
- API to get symbol list (for crash log symbolication) (#75)
- "on-compile" hook to add custom linters/transformers (#79)
Breaking:
- node 4.2+ is now required to run ojc (#76)
- 'include-state' compiler option is needed to include the 'state' key (#74)
- 'runtime.js' is now located in the 'lib' directory (#72)
- Removed 'cache', 'jshint', 'jshint-config', 'jshint-ignore', and development
ojc
options - Removed JSHint integration (#78) in favor of a generic "on-compile" hook (#79)
- Removed support for legacy browsers (pre-ES5) (#77)
- Code generation differences (#80)
1.2.0
- Update to Esprima 2.7 (#38)
- Added @CLASS, @SEL, @FUNCTION for debugging (#58)
- @global functions (#68)
- Category (#55) and protocol (#57) support
- Throw errors when the compiler will generate invalid code (#60)
- Major changes to the typechecker (#64, #65, #71)
1.1.1 - 1.1.4
- Minor bug fixes and internal changes
1.1.0
- @each support #36
1.0.1
- Update to Esprima 1.2.2 #28
- Traverser's skip array causing 6% slowdown #29
- Add ability for typealias / typedef #30
- Classes can be superclasses of each other #23
- Dynamic property prevents synthesis of following properties #35
- @synthesize should always make a backing ivar #34
- Add documentation for $oj_oj #33
- Add 'temp' dependency #32
- Support protocols and typed arrays #31
1.0.0
1.x is a backwards incompatible release, with a focus on enhancing runtime performance.
Removed:
- Removed separate
ojsqueeze
command-line tool. The squeezer is now integrated directly intoojc
(#8) - Removed
+initialize
and+load
. This allows faster message dispatch. (#12) - Removed
--use-const
and--use-enum
compiler flags. Use the new@const
and@enum
instead (#11) - Removed
--use-prefix
compiler flag. Prefixes are always used. (#6) - Removed
--always-message
compiler flag. Replaced with--debug-message-send
.
Enhancements:
- Faster message dispatch: Direct calls are used more often than
oj.msgSend
(#10) - Inline
+[Foo alloc]
calls asnew Foo()
- Updated parser to Esprima 1.1 (#9)
- Unique JavaScript symbol names for methods (#20)
- Warn about unused ivars (#22)
Additions:
- New
@const
and@enum
- Integration of squeezer directly into ojc. This allows more squeeze-time optimizations.
- Documentation for runtime (#7)
- Documentation for compiler API
- Source map support (#13)
- Support for jshint (#14)
Bug Fixes:
- Duplicate @implementation of same class should throw error (#15)
- (3.14 * [[self foo] bar]) results in NaN (#16)
- Automatic synthesis of properties produces too many ivars (#19)
- ivars that are @enum types should be initialized to 0. (#21)