[pkg:js] Add CHANGELOG entry for native/js name conflict

Closes https://github.com/dart-lang/sdk/issues/44797

Specifies that it's no longer valid to conflict with an @Native class
value.

Change-Id: Ie0fecb4de8ae94cfe05e5222d09c8cacde86caad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/191780
Auto-Submit: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
This commit is contained in:
Srujan Gaddam 2021-03-25 19:58:44 +00:00 committed by commit-bot@chromium.org
parent 9d0d1fb388
commit 0d3235f305

View file

@ -40,6 +40,18 @@ Updated the Linter to `1.2.1`, which includes:
- new lint: `use_named_constants`.
- deprecation of `avoid_as`.
### Other libraries
#### `package:js`
* **Breaking change:** It is no longer valid to use `String`s that match
an `@Native` annotation in an `@JS()` annotation for a non-anonymous JS
interop class. This led to erroneous behavior due to the way interceptors
work. If you need to work with a native class, prefer `dart:html`, an
`@anonymous` class, or `js_util`. See issue [#44211][] for more details.
[#44211]: https://github.com/dart-lang/sdk/issues/44211
## 2.12.2 - 2021-03-17
This is a patch release that fixes crashes reported by Flutter 2 users (issue