Skip to content

Commit e99d537

Browse files
authored
Remove implements JSObject from all types and publish 0.4.0 (#97)
This is needed to be able to move JS types to extension types.
1 parent f0ce684 commit e99d537

File tree

221 files changed

+997
-984
lines changed

Some content is hidden

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

221 files changed

+997
-984
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
## 0.4.0
2+
3+
- Remove `implements JSObject` from all types. This is needed to move the JS
4+
types exposed in `dart:js_interop` to extension types. This subtyping will be
5+
added back in a future version when we move all `package:web` types to extension
6+
types.
7+
18
## 0.3.1-dev
9+
210
- Add `onMessage` getter to `WindowEventGetters` extension methods.
311
- `helpers.dart`: expose the `EventStreamProviders` class.
412
- Add `createIFrameElement` method to `helpers.dart`.

lib/src/dom/accelerometer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class GravitySensor implements Accelerometer {
4949
@JS()
5050
@staticInterop
5151
@anonymous
52-
class AccelerometerReadingValues implements JSObject {
52+
class AccelerometerReadingValues {
5353
external factory AccelerometerReadingValues({
5454
required num? x,
5555
required num? y,

lib/src/dom/ambient_light.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extension AmbientLightSensorExtension on AmbientLightSensor {
1919
@JS()
2020
@staticInterop
2121
@anonymous
22-
class AmbientLightReadingValues implements JSObject {
22+
class AmbientLightReadingValues {
2323
external factory AmbientLightReadingValues({required num? illuminance});
2424
}
2525

lib/src/dom/anchors.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'webxr.dart';
88

99
@JS('XRAnchor')
1010
@staticInterop
11-
class XRAnchor implements JSObject {}
11+
class XRAnchor {}
1212

1313
extension XRAnchorExtension on XRAnchor {
1414
external JSPromise requestPersistentHandle();
@@ -18,6 +18,6 @@ extension XRAnchorExtension on XRAnchor {
1818

1919
@JS('XRAnchorSet')
2020
@staticInterop
21-
class XRAnchorSet implements JSObject {}
21+
class XRAnchorSet {}
2222

2323
extension XRAnchorSetExtension on XRAnchorSet {}

lib/src/dom/angle_instanced_arrays.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'webgl1.dart';
88

99
@JS('ANGLE_instanced_arrays')
1010
@staticInterop
11-
class ANGLE_instanced_arrays implements JSObject {
11+
class ANGLE_instanced_arrays {
1212
external static GLenum get VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE;
1313
}
1414

lib/src/dom/attribution_reporting_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'dart:js_interop';
77
@JS()
88
@staticInterop
99
@anonymous
10-
class AttributionReportingRequestOptions implements JSObject {
10+
class AttributionReportingRequestOptions {
1111
external factory AttributionReportingRequestOptions({
1212
required bool eventSourceEligible,
1313
required bool triggerEligible,

lib/src/dom/audio_output.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'dart:js_interop';
77
@JS()
88
@staticInterop
99
@anonymous
10-
class AudioOutputOptions implements JSObject {
10+
class AudioOutputOptions {
1111
external factory AudioOutputOptions({String deviceId});
1212
}
1313

lib/src/dom/background_fetch.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typedef BackgroundFetchFailureReason = String;
1414

1515
@JS('BackgroundFetchManager')
1616
@staticInterop
17-
class BackgroundFetchManager implements JSObject {}
17+
class BackgroundFetchManager {}
1818

1919
extension BackgroundFetchManagerExtension on BackgroundFetchManager {
2020
external JSPromise fetch(
@@ -29,7 +29,7 @@ extension BackgroundFetchManagerExtension on BackgroundFetchManager {
2929
@JS()
3030
@staticInterop
3131
@anonymous
32-
class BackgroundFetchUIOptions implements JSObject {
32+
class BackgroundFetchUIOptions {
3333
external factory BackgroundFetchUIOptions({
3434
JSArray icons,
3535
String title,
@@ -83,7 +83,7 @@ extension BackgroundFetchRegistrationExtension on BackgroundFetchRegistration {
8383

8484
@JS('BackgroundFetchRecord')
8585
@staticInterop
86-
class BackgroundFetchRecord implements JSObject {}
86+
class BackgroundFetchRecord {}
8787

8888
extension BackgroundFetchRecordExtension on BackgroundFetchRecord {
8989
external Request get request;

lib/src/dom/background_sync.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'service_workers.dart';
88

99
@JS('SyncManager')
1010
@staticInterop
11-
class SyncManager implements JSObject {}
11+
class SyncManager {}
1212

1313
extension SyncManagerExtension on SyncManager {
1414
external JSPromise register(String tag);

lib/src/dom/capture_handle_identity.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'dart:js_interop';
77
@JS()
88
@staticInterop
99
@anonymous
10-
class CaptureHandleConfig implements JSObject {
10+
class CaptureHandleConfig {
1111
external factory CaptureHandleConfig({
1212
bool exposeOrigin,
1313
String handle,
@@ -27,7 +27,7 @@ extension CaptureHandleConfigExtension on CaptureHandleConfig {
2727
@JS()
2828
@staticInterop
2929
@anonymous
30-
class CaptureHandle implements JSObject {
30+
class CaptureHandle {
3131
external factory CaptureHandle({
3232
String origin,
3333
String handle,

0 commit comments

Comments
 (0)