Skip to content

Commit 0d29e4d

Browse files
rileyporterathomas
authored andcommitted
[package:js] Update changelog to reflect js_util optimizations
Change-Id: I51d6f6759520fb5703065f9b223a65e47bed56f4 Bug: #39627 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/219560 Auto-Submit: Riley Porter <[email protected]> Commit-Queue: Riley Porter <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]>
1 parent 99af298 commit 0d29e4d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,12 @@
429429

430430
#### `dart:js_util`
431431

432-
- The `js_util` methods `getProperty`, `setProperty`, `callMethod`,
433-
`callConstructor`, and `newObject` now support a generic type argument
434-
to specify the return type.
432+
- The `js_util` methods `setProperty`, `callMethod`, and `callConstructor` have
433+
been optimized to remove checks on arguments when the checks can be elided.
434+
Also, those methods, along with `getProperty` and `newObject`, now support a
435+
generic type argument to specify a return type. These two changes make simple
436+
`js_util` usage, like reading and writing primitive properties or calling
437+
methods with simple arguments, have zero overhead.
435438

436439
#### `dart:web_sql`
437440

@@ -592,6 +595,14 @@ This feature requires
592595
`dart pub get/upgrade/downgrade/add/remove` that will result in the `example/`
593596
folder dependencies to be updated after operating in the current directory.
594597

598+
### Other libraries
599+
600+
#### `package:js`
601+
602+
- Extensions on JS interop or native `dart:html` classes can now declare
603+
members as `external`. These members are equivalent to regular extension
604+
members that use `js_util` to expose the underlying JavaScript.
605+
595606
## 2.14.4 - 2021-10-14
596607

597608
This is a patch release that fixes:

0 commit comments

Comments
 (0)