Skip to content

Commit b97737c

Browse files
rileyportercommit-bot@chromium.org
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 aaeb9e7 commit b97737c

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
@@ -323,9 +323,12 @@ them, you must set the lower bound on the SDK constraint for your package to
323323

324324
#### `dart:js_util`
325325

326-
- The `js_util` methods `getProperty`, `setProperty`, `callMethod`,
327-
`callConstructor`, and `newObject` now support a generic type argument
328-
to specify the return type.
326+
- The `js_util` methods `setProperty`, `callMethod`, and `callConstructor` have
327+
been optimized to remove checks on arguments when the checks can be elided.
328+
Also, those methods, along with `getProperty` and `newObject`, now support a
329+
generic type argument to specify a return type. These two changes make simple
330+
`js_util` usage, like reading and writing primitive properties or calling
331+
methods with simple arguments, have zero overhead.
329332

330333
#### `dart:web_sql`
331334

@@ -486,6 +489,14 @@ This feature requires
486489
`dart pub get/upgrade/downgrade/add/remove` that will result in the `example/`
487490
folder dependencies to be updated after operating in the current directory.
488491

492+
### Other libraries
493+
494+
#### `package:js`
495+
496+
- Extensions on JS interop or native `dart:html` classes can now declare
497+
members as `external`. These members are equivalent to regular extension
498+
members that use `js_util` to expose the underlying JavaScript.
499+
489500
## 2.14.4 - 2021-10-14
490501

491502
This is a patch release that fixes:

0 commit comments

Comments
 (0)