|
1 | 1 | # CHANGELOG
|
2 | 2 |
|
| 3 | +# 0.10.0 (2020-09-29) - New Lexer & Test 262 Harness |
| 4 | + |
| 5 | +Feature Enhancements: |
| 6 | + |
| 7 | +- [FEATURE #524](https://github.com/boa-dev/boa/pull/525): |
| 8 | + Implement remaining `Math` methods (@mr-rodgers) |
| 9 | +- [FEATURE #562](https://github.com/boa-dev/boa/pull/562): |
| 10 | + Implement remaining `Number` methods (@joshwd36) |
| 11 | +- [FEATURE #536](https://github.com/boa-dev/boa/pull/536): |
| 12 | + Implement `SyntaxError` (@HalidOdat) |
| 13 | +- [FEATURE #543](https://github.com/boa-dev/boa/pull/543): |
| 14 | + Implements `Object.create` builtin method (@croraf) |
| 15 | +- [FEATURE #492](https://github.com/boa-dev/boa/pull/492): |
| 16 | + Switch to [rustyline](https://github.com/kkawakam/rustyline) for the CLI (@IovoslavIovchev & @Razican) |
| 17 | +- [FEATURE #595](https://github.com/boa-dev/boa/pull/595): |
| 18 | + Added syntax highlighting for strings in REPL (@HalidOdat) |
| 19 | +- [FEATURE #586](https://github.com/boa-dev/boa/pull/586): |
| 20 | + Better error formatting and cli color (@HalidOdat) |
| 21 | +- [FEATURE #590](https://github.com/boa-dev/boa/pull/590): |
| 22 | + Added keyword and operator colors and matching bracket validator to REPL (@HalidOdat) |
| 23 | +- [FEATURE #555](https://github.com/boa-dev/boa/pull/555): |
| 24 | + Implement Array.prototype.reduce (@benjaminflin) |
| 25 | +- [FEATURE #550](https://github.com/boa-dev/boa/pull/550): |
| 26 | + Initial implementation of Map() (@joshwd36 & @HalidOdat) |
| 27 | +- [FEATURE #579](https://github.com/boa-dev/boa/pull/579): |
| 28 | + Implement Array.prototype.reduceRight (@benjaminflin) |
| 29 | +- [FEATURE #585](https://github.com/boa-dev/boa/pull/587): |
| 30 | + Implement Well-Known Symbols (@joshwd36) |
| 31 | +- [FEATURE #589](https://github.com/boa-dev/boa/pull/589): |
| 32 | + Implement the comma operator (@KashParty) |
| 33 | +- [FEATURE #341](https://github.com/boa-dev/boa/pull/590): |
| 34 | + Ability to create multiline blocks in boa shell (@HalidOdat) |
| 35 | +- [FEATURE #252](https://github.com/boa-dev/boa/pull/596): |
| 36 | + Implement `Date` (@jcdickinson) |
| 37 | +- [FEATURE #711](https://github.com/boa-dev/boa/pull/711): |
| 38 | + Add support for >>>= (@arpit-saxena) |
| 39 | +- [FEATURE #549](https://github.com/boa-dev/boa/pull/549): |
| 40 | + Implement label statements (@jasonwilliams) |
| 41 | +- [FEATURE #373](https://github.com/boa-dev/boa/pull/373): |
| 42 | + Introduce PropertyKey for field acces (@RageKnify) |
| 43 | +- [FEATURE #627](https://github.com/boa-dev/boa/pull/627): |
| 44 | + Feature native class objects (`NativeObject` and `Class` traits) (@HalidOdat) |
| 45 | +- [FEATURE #694](https://github.com/boa-dev/boa/pull/694): |
| 46 | + Feature `gc` module (@HalidOdat) |
| 47 | +- [FEATURE #656](https://github.com/boa-dev/boa/pull/656): |
| 48 | + Feature `Context` (@HalidOdat) |
| 49 | +- [FEATURE #673](https://github.com/boa-dev/boa/pull/673): |
| 50 | + Add `#[track_caller]` to `GcObject` methods that can panic (@HalidOdat) |
| 51 | +- [FEATURE #661](https://github.com/boa-dev/boa/pull/661): |
| 52 | + Add documentation to `GcObject` methods (@HalidOdat) |
| 53 | +- [FEATURE #662](https://github.com/boa-dev/boa/pull/662): |
| 54 | + Implement `std::error::Error` for `GcObject` borrow errors (@HalidOdat) |
| 55 | +- [FEATURE #660](https://github.com/boa-dev/boa/pull/660): |
| 56 | + Make `GcObject::contruct` not take 'this' (@HalidOdat) |
| 57 | +- [FEATURE #654](https://github.com/boa-dev/boa/pull/654): |
| 58 | + Move `require_object_coercible` to `Value` (@HalidOdat) |
| 59 | +- [FEATURE #603](https://github.com/boa-dev/boa/pull/603): |
| 60 | + Index `PropertyKey`, `Object` iterators and symbol support (@HalidOdat) |
| 61 | +- [FEATURE #637](https://github.com/boa-dev/boa/pull/637): |
| 62 | + Feature `boa::Result<T>` (@HalidOdat) |
| 63 | +- [FEATURE #625](https://github.com/boa-dev/boa/pull/625): |
| 64 | + Moved value operations from `Interpreter` to `Value` (@HalidOdat) |
| 65 | +- [FEATURE #638](https://github.com/boa-dev/boa/pull/638): |
| 66 | + Changed to `Value::to_*int32` => `Value::to_*32` (@HalidOdat) |
| 67 | + |
| 68 | +Bug Fixes: |
| 69 | + |
| 70 | +- [BUG #405](https://github.com/boa-dev/boa/issues/405): |
| 71 | + Fix json.stringify symbol handling (@n14little) |
| 72 | +- [BUG #520](https://github.com/boa-dev/boa/pull/520): |
| 73 | + Fix all `Value` operations and add unsigned shift right (@HalidOdat) |
| 74 | +- [BUG #529](https://github.com/boa-dev/boa/pull/529): |
| 75 | + Refactor exec/expression into exec/call and exec/new (@croraf) |
| 76 | +- [BUG #510](https://github.com/boa-dev/boa/issues/510): |
| 77 | + [[Call]] calling an undefined method does not throw (@joshwd36) |
| 78 | +- [BUG #493](https://github.com/boa-dev/boa/pull/493): |
| 79 | + Use correct exponential representation for rational values (@Tropid) |
| 80 | +- [BUG #572](https://github.com/boa-dev/boa/pull/572): |
| 81 | + Spec Compliant `Number.prototype.toString()`, better `Number` object formating and `-0` (@HalidOdat) |
| 82 | +- [BUG #599](https://github.com/boa-dev/boa/pull/599): |
| 83 | + Fixed `String.prototype.indexOf()` bug, when the search string is empty (@HalidOdat) |
| 84 | +- [BUG #615](https://github.com/boa-dev/boa/issues/615): |
| 85 | + Fix abstract relational comparison operators (@HalidOdat) |
| 86 | +- [BUG #608](https://github.com/boa-dev/boa/issues/608): |
| 87 | + `Debug::fmt` Causes Causes a Stack Overflow (@jcdickinson) |
| 88 | +- [BUG #532](https://github.com/boa-dev/boa/issues/532) |
| 89 | + [builtins - Object] Object.getPrototypeOf returning incorrectly (@54k1) |
| 90 | +- [BUG #533](https://github.com/boa-dev/boa/issues/533) |
| 91 | + [exec - function] function.prototype doesn't have own constructor property pointing to this function (@54k1) |
| 92 | +- [BUG #641](https://github.com/boa-dev/boa/issues/641) |
| 93 | + Test new_instance_should_point_to_prototype is not checked correctly (@54k1) |
| 94 | +- [BUG #644](https://github.com/boa-dev/boa/pull/645) |
| 95 | + `undefined` constants panic on execution (@jcdickinson) |
| 96 | +- [BUG #631](https://github.com/boa-dev/boa/pull/645): |
| 97 | + Unexpected result when applying typeof to undefined value (@jcdickinson) |
| 98 | +- [BUG #610](https://github.com/boa-dev/boa/pull/629): |
| 99 | + Fix: String.prototype.replace substitutions (@RageKnify) |
| 100 | +- [BUG #667](https://github.com/boa-dev/boa/pull/667): |
| 101 | + Fix panic when calling function that mutates itself (@dvtkrlbs) |
| 102 | +- [BUG #668](https://github.com/boa-dev/boa/pull/668): |
| 103 | + Fix clippy on Nightly (@dvtkrlbs) |
| 104 | +- [BUG #582](https://github.com/boa-dev/boa/pull/582): |
| 105 | + Make `String.prototype.repeat()` ECMAScript specification compliant (@HalidOdat) |
| 106 | +- [BUG #541](https://github.com/boa-dev/boa/pull/541): |
| 107 | + Made all `Math` methods spec compliant (@HalidOdat) |
| 108 | +- [BUG #597](https://github.com/boa-dev/boa/pull/597): |
| 109 | + Made `String.prototype.indexOf` spec compliant. (@HalidOdat) |
| 110 | +- [BUG #598](https://github.com/boa-dev/boa/pull/598): |
| 111 | + Made `String.prototype.lastIndexOf()` spec compliant (@HalidOdat) |
| 112 | +- [BUG #583](https://github.com/boa-dev/boa/pull/583): |
| 113 | + Fix string prototype `trim` methods (@HalidOdat) |
| 114 | +- [BUG #728](https://github.com/boa-dev/boa/pull/728): |
| 115 | + Fix bug when setting the length on String objects (@jasonwilliams) |
| 116 | +- [BUG #710](https://github.com/boa-dev/boa/pull/710): |
| 117 | + Fix panic when a self mutating function is constructing an object (@HalidOdat) |
| 118 | +- [BUG #699](https://github.com/boa-dev/boa/pull/699): |
| 119 | + Fix `Value::to_json` order of items in array (@sele9) |
| 120 | +- [BUG #610](https://github.com/boa-dev/boa/pull/610): |
| 121 | + Fix: `String.prototype.replace` substitutions (@RageKnify) |
| 122 | +- [BUG #645](https://github.com/boa-dev/boa/pull/645): |
| 123 | + Fix undefined constant expression evaluation (@jcdickinson) |
| 124 | +- [BUG #643](https://github.com/boa-dev/boa/pull/643): |
| 125 | + Change default return type from null to undefined (@54k1) |
| 126 | +- [BUG #642](https://github.com/boa-dev/boa/pull/642): |
| 127 | + Missing `constructor` field in ordinary functions (@54k1) |
| 128 | +- [BUG #604](https://github.com/boa-dev/boa/pull/604): |
| 129 | + Missing `__proto__` field in functions instances (@54k1) |
| 130 | +- [BUG #561](https://github.com/boa-dev/boa/pull/561): |
| 131 | + Throw a `TypeError` when a non-object is called (@joshwd36) |
| 132 | +- [BUG #748](https://github.com/boa-dev/boa/pull/748): |
| 133 | + Fix parse error throwing a `TypeError`, instead of `SyntaxError` (@iamsaquib8) |
| 134 | +- [BUG #737](https://github.com/boa-dev/boa/pull/737): |
| 135 | + Make `Object.toString()` spec compliant (@RageKnify) |
| 136 | + |
| 137 | +Internal Improvements: |
| 138 | + |
| 139 | +- [INTERNAL #567](https://github.com/boa-dev/boa/pull/567): |
| 140 | + Add ECMAScript test suite (test262) (@Razican) |
| 141 | +- [INTERNAL #559](https://github.com/boa-dev/boa/pull/559): |
| 142 | + New Lexer (@Lan2u @HalidOdat @Razican) |
| 143 | +- [INTERNAL #712](https://github.com/boa-dev/boa/pull/712): |
| 144 | + Refactor: `Value::to_object` to return `GcObject` (@RageKnify) |
| 145 | +- [INTERNAL #544](https://github.com/boa-dev/boa/pull/544): |
| 146 | + Removed `console`s dependency of `InternalState` (@HalidOdat) |
| 147 | +- [INTERNAL #556](https://github.com/boa-dev/boa/pull/556): |
| 148 | + Added benchmark for goal symbol switching (@Razican) |
| 149 | +- [INTERNAL #578](https://github.com/boa-dev/boa/pull/580): |
| 150 | + Extract `prototype` from internal slots (@HalidOdat) |
| 151 | +- [INTERNAL #553](https://github.com/boa-dev/boa/pull/553): |
| 152 | + Refactor Property Descriptor flags (@HalidOdat) |
| 153 | +- [INTERNAL #592](https://github.com/boa-dev/boa/pull/592): |
| 154 | + `RegExp` specialization (@HalidOdat) |
| 155 | +- [INTERNAL #626](https://github.com/boa-dev/boa/pull/626): |
| 156 | + Refactor `Function` (@HalidOdat @Razican) |
| 157 | +- [INTERNAL #564](https://github.com/boa-dev/boa/pull/581): |
| 158 | + Add benchmarks for "uglified" JS (@neeldug) |
| 159 | +- [INTERNAL #706](https://github.com/boa-dev/boa/pull/706): |
| 160 | + Cache well known symbols (@HalidOdat) |
| 161 | +- [INTERNAL #723](https://github.com/boa-dev/boa/pull/723): |
| 162 | + Add fast path for string concatenation (@RageKnify) |
| 163 | +- [INTERNAL #689](https://github.com/boa-dev/boa/pull/689): |
| 164 | + Move `object` module to root (@HalidOdat) |
| 165 | +- [INTERNAL #684](https://github.com/boa-dev/boa/pull/684): |
| 166 | + Move `property` module to root (@HalidOdat) |
| 167 | +- [INTERNAL #674](https://github.com/boa-dev/boa/pull/674): |
| 168 | + Move `value` module to root (@HalidOdat) |
| 169 | +- [INTERNAL #693](https://github.com/boa-dev/boa/pull/693): |
| 170 | + Rename `Object::prototype()` and `Object::set_prototype()` (@RageKnify) |
| 171 | +- [INTERNAL #665](https://github.com/boa-dev/boa/pull/665): |
| 172 | + `approx_eq!` macro for `expm1` tests. (@neeldung) |
| 173 | +- [INTERNAL #581](https://github.com/boa-dev/boa/pull/581): |
| 174 | + Added CLEAN_JS and MINI_JS benches (@neeldung) |
| 175 | +- [INTERNAL #640](https://github.com/boa-dev/boa/pull/640): |
| 176 | + Benchmark refactor (@neeldung) |
| 177 | +- [INTERNAL #635](https://github.com/boa-dev/boa/pull/635): |
| 178 | + Add missing ops to exec module (@jarredholman) |
| 179 | +- [INTERNAL #616](https://github.com/boa-dev/boa/pull/616): |
| 180 | + Remove `Value::as_num_to_power()` (@HalidOdat) |
| 181 | +- [INTERNAL #601](https://github.com/boa-dev/boa/pull/601): |
| 182 | + Removed internal_slots from object (@HalidOdat) |
| 183 | +- [INTERNAL #560](https://github.com/boa-dev/boa/pull/560): |
| 184 | + Added benchmarks for full program execution (@Razican) |
| 185 | +- [INTERNAL #547](https://github.com/boa-dev/boa/pull/547): |
| 186 | + Merged `create` into `init` for builtins (@HalidOdat) |
| 187 | +- [INTERNAL #538](https://github.com/boa-dev/boa/pull/538): |
| 188 | + Cleanup and added test for `String.prototype.concat` (@HalidOdat) |
| 189 | +- [INTERNAL #739](https://github.com/boa-dev/boa/pull/739): |
| 190 | + Add release action (@jasonwilliams) |
| 191 | +- [INTERNAL #744](https://github.com/boa-dev/boa/pull/744): |
| 192 | + Add MacOS check and test to CI (@neeldug) |
| 193 | + |
3 | 194 | # [# 0.9.0 (2020-07-03) - Move to Organisation, 78% faster execution time](https://github.com/boa-dev/boa/compare/v0.8.0...v0.9.0)
|
4 | 195 |
|
5 | 196 | Feature Enhancements:
|
|
0 commit comments