Skip to content

Commit a6465a4

Browse files
committed
Version 2.18.0-44.1.beta
Merge '2.18.0-44.0.dev' into beta
2 parents fc290d1 + f4b4719 commit a6465a4

File tree

2,920 files changed

+96340
-82004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,920 files changed

+96340
-82004
lines changed

.dart_tool/package_config.json

Lines changed: 0 additions & 825 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ client/tests/drt
7575
packages
7676
pubspec.lock
7777

78+
# The top level package files (these are auto-generated per checkout)
79+
/.dart_tool/package_config.json
80+
/.packages
81+
7882
# Local pub storage
7983
.pub
8084

.packages

Lines changed: 0 additions & 130 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 88 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.18.0
2+
3+
### Core libraries
4+
5+
#### `dart:html`
6+
7+
- Add `connectionState` attribute and `connectionstatechange` listener to
8+
`RtcPeerConnection`.
9+
110
## 2.17.0
211

312
### Language
@@ -151,6 +160,24 @@ them, you must set the lower bound on the SDK constraint for your package to
151160
152161
- Add `ref=` and `[]=` methods to the `StructPointer` and `UnionPointer`
153162
extensions. They copy a compound instance into a native memory region.
163+
- Add `AbiSpecificInteger`s for common C types:
164+
- `char`
165+
- `unsigned char`
166+
- `signed char`
167+
- `short`
168+
- `unsigned short`
169+
- `int`
170+
- `unsigned int`
171+
- `long`
172+
- `unsigned long`
173+
- `long long`
174+
- `unsigned long long`
175+
- `uintptr_t`
176+
- `size_t`
177+
- `wchar_t`
178+
- Add `NativeFinalizer` which can potentially detect when objects are
179+
"garbage collected". `NativeFinalizer`s run native code where `dart:core`'s
180+
`Finalizer`s run Dart code on finalization.
154181
155182
#### `dart:html`
156183
@@ -305,6 +332,11 @@ Flutter apps (issue [flutter/flutter#97301][]).
305332
error with an existing stack trace, instead of creating
306333
a new stack trace.
307334

335+
#### `dart:ffi`
336+
337+
- Add `Abi` and `AbiSpecificInteger`. These enable specifying integers which
338+
have different sizes/signs per ABI (hardware and OS combination).
339+
308340
#### `dart:io`
309341

310342
- **Security advisory**
@@ -747,6 +779,10 @@ them, you must set the lower bound on the SDK constraint for your package to
747779
Code catching the class should move to catching `Error` instead
748780
(or, for integers, check first for whether it's dividing by zero).
749781

782+
#### `dart:ffi`
783+
784+
- Add `Bool` native type.
785+
750786
#### `dart:io`
751787

752788
- **Breaking change** [#46875](https://github.com/dart-lang/sdk/issues/46875):
@@ -1051,8 +1087,9 @@ This is a patch release that fixes:
10511087

10521088
#### `dart:ffi`
10531089

1054-
- Adds the `DynamicLibrary.providesSymbol` function to check whether a symbol is
1090+
- Add the `DynamicLibrary.providesSymbol` function to check whether a symbol is
10551091
available in a dynamic library.
1092+
- Add `Union` native type for interacting with unions in native memory.
10561093

10571094
#### `dart:html`
10581095

@@ -1349,6 +1386,11 @@ This is a patch release that fixes:
13491386

13501387
- Added `serverWebSocketUri` property to `ServiceProtocolInfo`.
13511388

1389+
#### `dart:ffi`
1390+
1391+
- Add `Packed` for interacting with packed structs in native memory.
1392+
- Add `Array` for interacting with structs with inline arrays.
1393+
13521394
### Dart VM
13531395

13541396
### Tools
@@ -1489,6 +1531,26 @@ This is a patch release that fixes:
14891531
- Add `Set.unmodifiable()` constructor, which allows users to create
14901532
unmodifiable `Set` instances.
14911533

1534+
#### `dart:ffi`
1535+
1536+
- **Breaking change** [#44621][]: Invocations with a generic `T` of `sizeOf<T>`,
1537+
`Pointer<T>.elementAt()`, `Pointer<T extends Struct>.ref`, and
1538+
`Pointer<T extends Struct>[]` are being deprecated in the current stable
1539+
release (2.12), and are planned to be fully removed in the following stable
1540+
release (2.13). Consequently, `allocate` in `package:ffi` will no longer be
1541+
able to invoke `sizeOf<T>` generically, and will be deprecated as well.
1542+
Instead, the `Allocator` it is introduced to `dart:ffi`, and also requires a
1543+
constant `T` on invocations. For migration notes see the breaking change
1544+
request.
1545+
1546+
- **Breaking change** [#44622][]: Subtypes of `Struct` without any native member
1547+
are being deprecated in the current stable release (2.12), and are planned to
1548+
be fully removed in the following stable release (2.13). Migrate opaque types
1549+
to extend `Opaque` rather than `Struct`.
1550+
1551+
[#44621]: https://github.com/dart-lang/sdk/issues/44621
1552+
[#44622]: https://github.com/dart-lang/sdk/issues/44622
1553+
14921554
#### `dart:io`
14931555

14941556
- `HttpRequest` now correctly follows HTTP 308 redirects
@@ -1524,26 +1586,6 @@ This is a patch release that fixes:
15241586

15251587
[#42312]: https://github.com/dart-lang/sdk/issues/42312
15261588

1527-
### Foreign Function Interface (`dart:ffi`)
1528-
1529-
- **Breaking change** [#44621][]: Invocations with a generic `T` of `sizeOf<T>`,
1530-
`Pointer<T>.elementAt()`, `Pointer<T extends Struct>.ref`, and
1531-
`Pointer<T extends Struct>[]` are being deprecated in the current stable
1532-
release (2.12), and are planned to be fully removed in the following stable
1533-
release (2.13). Consequently, `allocate` in `package:ffi` will no longer be
1534-
able to invoke `sizeOf<T>` generically, and will be deprecated as well.
1535-
Instead, the `Allocator` it is introduced to `dart:ffi`, and also requires a
1536-
constant `T` on invocations. For migration notes see the breaking change
1537-
request.
1538-
1539-
- **Breaking change** [#44622][]: Subtypes of `Struct` without any native member
1540-
are being deprecated in the current stable release (2.12), and are planned to
1541-
be fully removed in the following stable release (2.13). Migrate opaque types
1542-
to extend `Opaque` rather than `Struct`.
1543-
1544-
[#44621]: https://github.com/dart-lang/sdk/issues/44621
1545-
[#44622]: https://github.com/dart-lang/sdk/issues/44622
1546-
15471589
### Dart2JS
15481590

15491591
- Remove `--no-defer-class-types` and `--no-new-deferred-split`.
@@ -2167,6 +2209,19 @@ breaking changes:
21672209
parameter provided in the constructor. This will be used by tooling to allow
21682210
for better filtering of timeline events.
21692211

2212+
#### `dart:ffi`
2213+
2214+
- **Breaking change**: Changed `Pointer.asFunction()` and
2215+
`DynamicLibrary.lookupFunction()` to extension methods. Invoking them
2216+
dynamically previously already threw an exception, so the runtime behavior
2217+
stays the same. However, the extension methods are only visible if `dart:ffi`
2218+
is imported directly. This breaks code where `dart:ffi` is not directly
2219+
imported. To fix, add:
2220+
2221+
```dart
2222+
import 'dart:ffi';
2223+
```
2224+
21702225
#### `dart:html`
21712226

21722227
- **Breaking change** [#39627][]: Changed the return type of several HTML native
@@ -2306,19 +2361,6 @@ breaking changes:
23062361
- `Dart_IsNonNullableType()`
23072362
- `Dart_IsNullableType()`
23082363

2309-
### Foreign Function Interface (`dart:ffi`)
2310-
2311-
- **Breaking change**: Changed `Pointer.asFunction()` and
2312-
`DynamicLibrary.lookupFunction()` to extension methods. Invoking them
2313-
dynamically previously already threw an exception, so the runtime behavior
2314-
stays the same. However, the extension methods are only visible if `dart:ffi`
2315-
is imported directly. This breaks code where `dart:ffi` is not directly
2316-
imported. To fix, add:
2317-
2318-
```dart
2319-
import 'dart:ffi';
2320-
```
2321-
23222364
### Tools
23232365

23242366
#### Dart Dev Compiler (DDC)
@@ -2700,18 +2742,7 @@ documentation.
27002742
- Added optional `parent` parameter to `TimelineTask` constructor to allow for
27012743
linking of asynchronous timeline events in the DevTools timeline view.
27022744

2703-
#### `dart:io`
2704-
2705-
- Added `enableTimelineLogging` property to `HttpClient` which, when enabled,
2706-
will post HTTP connection and request information to the developer timeline
2707-
for all `HttpClient` instances.
2708-
2709-
### Dart VM
2710-
2711-
- Added a new tool for AOT compiling Dart programs to native, self-contained
2712-
executables. See https://dart.dev/tools/dart2native for additional details.
2713-
2714-
### Foreign Function Interface (`dart:ffi`)
2745+
#### `dart:ffi`
27152746

27162747
- **Breaking change**: The API now makes use of static extension members. Static
27172748
extension members enable the `dart:ffi` API to be more precise with types, and
@@ -2731,6 +2762,17 @@ documentation.
27312762
- The dartanalyzer (commandline and IDEs) now reports `dart:ffi` static errors.
27322763
- Callbacks are now supported in AOT (ahead-of-time) compiled code.
27332764

2765+
#### `dart:io`
2766+
2767+
- Added `enableTimelineLogging` property to `HttpClient` which, when enabled,
2768+
will post HTTP connection and request information to the developer timeline
2769+
for all `HttpClient` instances.
2770+
2771+
### Dart VM
2772+
2773+
- Added a new tool for AOT compiling Dart programs to native, self-contained
2774+
executables. See https://dart.dev/tools/dart2native for additional details.
2775+
27342776
### Dart for the Web
27352777

27362778
#### Dart Dev Compiler (DDC)

0 commit comments

Comments
 (0)