-
Notifications
You must be signed in to change notification settings - Fork 71
Fixes various issues #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes various issues #110
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,20 +1,70 @@ | ||||||
| name: Dart CI | ||||||
|
|
||||||
| on: [push, pull_request] | ||||||
| on: | ||||||
| push: | ||||||
| branches: | ||||||
| - main | ||||||
| pull_request: | ||||||
|
|
||||||
| env: | ||||||
| PANA_SCORE_MAX_DIFFERENCE: 20 | ||||||
|
|
||||||
| jobs: | ||||||
| format: | ||||||
| name: Verify code formatting | ||||||
| runs-on: ubuntu-slim | ||||||
| steps: | ||||||
| - uses: actions/checkout@v3 | ||||||
| - uses: dart-lang/setup-dart@v1 | ||||||
| - name: Install dependencies | ||||||
| run: dart --version && dart pub get | ||||||
| - name: Verify formatting | ||||||
| run: dart format --set-exit-if-changed . | ||||||
| lints: | ||||||
| name: Analyze source code | ||||||
| needs: [format] | ||||||
| runs-on: ubuntu-slim | ||||||
terrier989 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| strategy: | ||||||
| fail-fast: false | ||||||
| matrix: | ||||||
| sdk: [3.6, stable, beta, dev] | ||||||
|
||||||
| sdk: [3.6, stable, beta, dev] | |
| sdk: [3.6.0, stable, beta, dev] |
Copilot
AI
Nov 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The runner is set to ubuntu-slim, but this is not a standard GitHub Actions runner. The valid GitHub-hosted runners are ubuntu-latest, ubuntu-22.04, ubuntu-20.04, etc. This will cause the workflow to fail. Change to ubuntu-latest or another valid runner name.
Copilot
AI
Nov 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The workflow uses actions/checkout@v3, but the latest major version is v4. Consider upgrading to actions/checkout@v4 for the latest features and bug fixes.
terrier989 marked this conversation as resolved.
Show resolved
Hide resolved
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Publish to pub.dev | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
|
||
| jobs: | ||
| publish: | ||
| permissions: | ||
| id-token: write | ||
| uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
| with: | ||
| environment: pub.dev |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,13 +3,13 @@ | |||||
| [](https://github.com/dint-dev/universal_html/actions) | ||||||
|
|
||||||
| # Introduction | ||||||
| A cross-platform `dart:html`: | ||||||
| A cross-platform replacement for `dart:html` (or `package:web`): | ||||||
| * __Eases cross-platform development__ | ||||||
| * You can use this package in browsers, mobile, desktop, and server-side VM, and Node.JS. | ||||||
| * Just replace `dart:html` imports with `package:universal_html/html.dart`. Normal | ||||||
| * Just replace `dart:html` / `package:web` imports with `package:universal_html/universal_html.dart`. Normal | ||||||
| _dart:html_ will continue to be used when application run in browsers. | ||||||
| * __Extensive support for processing HTML and XML documents__ | ||||||
| * Parse, manipulate, and print [DOM nodes](https://api.dart.dev/stable/2.19.3/dart-html/Node-class.html). | ||||||
| * Parse, manipulate, and print [DOM nodes](https://api.flutter.dev/flutter/dart-html/Node-class.html). | ||||||
| * Find DOM nodes with [querySelectorAll](https://api.dart.dev/stable/2.19.3/dart-html/querySelectorAll.html) | ||||||
| and other CSS query methods. | ||||||
| * __EventSource streaming support__ | ||||||
|
|
@@ -35,12 +35,12 @@ which is documented in the relevant files. | |||||
| In `pubspec.yaml`: | ||||||
| ```yaml | ||||||
| dependencies: | ||||||
| universal_html: ^2.2.5 | ||||||
| universal_html: ^2.2.7 | ||||||
| ``` | ||||||
|
|
||||||
| ## 2. Use | ||||||
| ```dart | ||||||
| import "package:universal_html/html.dart"; | ||||||
| import "package:universal_html/universal_html.dart"; | ||||||
|
||||||
| import "package:universal_html/universal_html.dart"; | |
| import "package:universal_html/html.dart"; |
Uh oh!
There was an error while loading. Please reload this page.