diff --git a/CHANGELOG.md b/CHANGELOG.md index 85a6f158260..b958615bbc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,25 @@ [#42312]: https://github.com/dart-lang/sdk/issues/42312 +### Foreign Function Interface (`dart:ffi`) + +* **Breaking Change** [#44621][]: Invocations with a generic `T` of + `sizeOf`, `Pointer.elementAt()`, `Pointer.ref`, and + `Pointer[]` are being deprecated in the current stable + release (2.12), and are planned to be fully removed in the following stable + release (2.13). Consequently, `allocate` in `package:ffi` will no longer be + able to invoke `sizeOf` generically, and will be deprecated as well. + Instead, the `Allocator` it is introduced to `dart:ffi`, and also requires + a constant `T` on invocations. For migration notes see the breaking change + request. +* **Breaking Change** [#44622][]: Subtypes of `Struct` without any native + member are being deprecated in the current stable release (2.12), and are + planned to be fully removed in the following stable release (2.13). + Migrate opaque types to extend `Opaque` rather than `Struct`. + +[#44621]: https://github.com/dart-lang/sdk/issues/44621 +[#44622]: https://github.com/dart-lang/sdk/issues/44622 + ### Dart2JS * Removed `--no-defer-class-types` and `--no-new-deferred-split`.