Skip to content

Commit

Permalink
go beta (#72)
Browse files Browse the repository at this point in the history
* Bump lints, fix new lints, remove duplicates
* Prepare for 0.2.0-beta
* helpers - streams: make mutable map private
  • Loading branch information
kevmoo authored Sep 19, 2023
1 parent 66c1779 commit b3d9a9b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.2.0-wip
## 0.2.0-beta

- Added `helpers.dart` top-level library.
- Require Dart 3.2 pre-release.
Expand Down
4 changes: 0 additions & 4 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,13 @@ linter:
- avoid_returning_this
- avoid_unused_constructor_parameters
- cancel_subscriptions
- comment_references
- join_return_with_assignment
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- no_runtimeType_toString
- package_api_docs
- prefer_const_constructors
- prefer_const_declarations
- prefer_expression_function_bodies
- prefer_final_locals
- prefer_relative_imports
- test_types_in_equals
- unnecessary_await_in_return
- use_string_buffers
8 changes: 4 additions & 4 deletions lib/src/helpers/events/streams.dart
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class Events {
}

class ElementEvents extends Events {
static final webkitEvents = {
static final _webkitEvents = {
'animationend': 'webkitAnimationEnd',
'animationiteration': 'webkitAnimationIteration',
'animationstart': 'webkitAnimationStart',
Expand All @@ -327,14 +327,14 @@ class ElementEvents extends Events {
'speechchange': 'webkitSpeechChange'
};

ElementEvents(html.Element ptr) : super(ptr);
ElementEvents(html.Element super.ptr);

@override
Stream<html.Event> operator [](String type) {
if (webkitEvents.keys.contains(type.toLowerCase())) {
if (_webkitEvents.keys.contains(type.toLowerCase())) {
if (Device.isWebKit) {
return _ElementEventStreamImpl(
_ptr, webkitEvents[type.toLowerCase()]!, false);
_ptr, _webkitEvents[type.toLowerCase()]!, false);
}
}
return _ElementEventStreamImpl(_ptr, type, false);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: web
description: >-
Lightweight DOM and JS bindings built around JS static interop.
version: 0.2.0-wip
version: 0.2.0-beta

repository: https://github.com/dart-lang/web

Expand All @@ -11,7 +11,7 @@ environment:
dev_dependencies:
args: ^2.4.0
code_builder: ^4.4.0
dart_flutter_team_lints: ^1.0.0
dart_flutter_team_lints: ^2.0.0
dart_style: ^2.2.4
io: ^1.0.4
path: ^1.8.3
Expand Down

0 comments on commit b3d9a9b

Please sign in to comment.