diff --git a/.github/labeler.yml b/.github/labeler.yml index 3add1c1717..36a48e9c4b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -27,3 +27,7 @@ 'package:http_client_conformance_tests': - changed-files: - any-glob-to-any-file: 'pkgs/http_client_conformance_tests/**' + +'package:web_socket_channel': + - changed-files: + - any-glob-to-any-file: 'pkgs/web_socket_channel/**' diff --git a/pkgs/web_socket_channel/.github/workflows/test-package.yml b/.github/workflows/web_socket_channel.yaml similarity index 86% rename from pkgs/web_socket_channel/.github/workflows/test-package.yml rename to .github/workflows/web_socket_channel.yaml index e07c713640..ecc98b89f7 100644 --- a/pkgs/web_socket_channel/.github/workflows/test-package.yml +++ b/.github/workflows/web_socket_channel.yaml @@ -1,14 +1,23 @@ -name: CI +name: package:web_socket_channel on: - # Run on PRs and pushes to the default branch. push: - branches: [ master ] + branches: + - master + paths: + - '.github/workflows/web_socket_channel.yaml' + - 'pkgs/web_socket_channel/**' pull_request: - branches: [ master ] + paths: + - '.github/workflows/web_socket_channel.yaml' + - 'pkgs/web_socket_channel/**' schedule: - cron: "0 0 * * 0" +defaults: + run: + working-directory: pkgs/web_socket_channel/ + env: PUB_ENVIRONMENT: bot.github diff --git a/README.md b/README.md index 31fc6500b1..912afe20da 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ and the browser. | [http_profile](pkgs/http_profile/) | A library used by HTTP client authors to integrate with the DevTools Network View. | [![pub package](https://img.shields.io/pub/v/http_profile.svg)](https://pub.dev/packages/http_profile) | | [ok_http](pkgs/ok_http/) | An Android Flutter plugin that provides access to the [OkHttp](https://square.github.io/okhttp/) HTTP client and the OkHttp [WebSocket](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-web-socket/index.html) API. | [![pub package](https://img.shields.io/pub/v/ok_http.svg)](https://pub.dev/packages/ok_http) | | [web_socket](pkgs/web_socket/) | Any easy-to-use library for communicating with WebSockets that has multiple implementations. | [![pub package](https://img.shields.io/pub/v/web_socket.svg)](https://pub.dev/packages/web_socket) | +| [web_socket_channel](pkgs/web_socket_channel/) | StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. | [![package issues](https://img.shields.io/badge/package:web_socket_channel-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aweb_socket_channel) | [![pub package](https://img.shields.io/pub/v/web_socket_channel.svg)](https://pub.dev/packages/web_socket_channel) | | [web_socket_conformance_tests](pkgs/web_socket_conformance_tests/) | A library that tests whether implementations of `package:web_socket`'s `WebSocket` class behave as expected. | | ## Contributing diff --git a/pkgs/web_socket_channel/.github/dependabot.yml b/pkgs/web_socket_channel/.github/dependabot.yml deleted file mode 100644 index cde02ad6a8..0000000000 --- a/pkgs/web_socket_channel/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Dependabot configuration file. -# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates -version: 2 - -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly - labels: - - autosubmit - groups: - github-actions: - patterns: - - "*" diff --git a/pkgs/web_socket_channel/.github/workflows/no-response.yml b/pkgs/web_socket_channel/.github/workflows/no-response.yml deleted file mode 100644 index ab1ac49842..0000000000 --- a/pkgs/web_socket_channel/.github/workflows/no-response.yml +++ /dev/null @@ -1,37 +0,0 @@ -# A workflow to close issues where the author hasn't responded to a request for -# more information; see https://github.com/actions/stale. - -name: No Response - -# Run as a daily cron. -on: - schedule: - # Every day at 8am - - cron: '0 8 * * *' - -# All permissions not specified are set to 'none'. -permissions: - issues: write - pull-requests: write - -jobs: - no-response: - runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'dart-lang' }} - steps: - - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e - with: - # Don't automatically mark inactive issues+PRs as stale. - days-before-stale: -1 - # Close needs-info issues and PRs after 14 days of inactivity. - days-before-close: 14 - stale-issue-label: "needs-info" - close-issue-message: > - Without additional information we're not able to resolve this issue. - Feel free to add more info or respond to any questions above and we - can reopen the case. Thanks for your contribution! - stale-pr-label: "needs-info" - close-pr-message: > - Without additional information we're not able to resolve this PR. - Feel free to add more info or respond to any questions above. - Thanks for your contribution! diff --git a/pkgs/web_socket_channel/.github/workflows/publish.yaml b/pkgs/web_socket_channel/.github/workflows/publish.yaml deleted file mode 100644 index 27157a046a..0000000000 --- a/pkgs/web_socket_channel/.github/workflows/publish.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# A CI configuration to auto-publish pub packages. - -name: Publish - -on: - pull_request: - branches: [ master ] - push: - tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] - -jobs: - publish: - if: ${{ github.repository_owner == 'dart-lang' }} - uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main - permissions: - id-token: write # Required for authentication using OIDC - pull-requests: write # Required for writing the pull request note diff --git a/pkgs/web_socket_channel/CHANGELOG.md b/pkgs/web_socket_channel/CHANGELOG.md index aff1de9dd5..4677fbf161 100644 --- a/pkgs/web_socket_channel/CHANGELOG.md +++ b/pkgs/web_socket_channel/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.0.2 + +- Move to `dart-lang/http` monorepo. + ## 3.0.1 - Remove unnecessary `dependency_overrides`. diff --git a/pkgs/web_socket_channel/README.md b/pkgs/web_socket_channel/README.md index 3ff06372cf..39db951570 100644 --- a/pkgs/web_socket_channel/README.md +++ b/pkgs/web_socket_channel/README.md @@ -1,4 +1,3 @@ -[![CI](https://github.com/dart-lang/web_socket_channel/actions/workflows/test-package.yml/badge.svg?branch=master)](https://github.com/dart-lang/web_socket_channel/actions/workflows/test-package.yml) [![pub package](https://img.shields.io/pub/v/web_socket_channel.svg)](https://pub.dev/packages/web_socket_channel) [![package publisher](https://img.shields.io/pub/publisher/web_socket_channel.svg)](https://pub.dev/packages/web_socket_channel/publisher) @@ -70,4 +69,4 @@ WebSocket protocol. The [`WebSocketChannel.connect` constructor][connect] connects to a listening server using the appropriate implementation for the platform. -[connect]: https://pub.dev/documentation/web_socket_channel/latest/web_socket_channel/WebSocketChannel/WebSocketChannel.connect.html \ No newline at end of file +[connect]: https://pub.dev/documentation/web_socket_channel/latest/web_socket_channel/WebSocketChannel/WebSocketChannel.connect.html diff --git a/pkgs/web_socket_channel/pubspec.yaml b/pkgs/web_socket_channel/pubspec.yaml index 5522d57343..580c9d2029 100644 --- a/pkgs/web_socket_channel/pubspec.yaml +++ b/pkgs/web_socket_channel/pubspec.yaml @@ -1,5 +1,5 @@ name: web_socket_channel -version: 3.0.1 +version: 3.0.2 description: >- StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API, a cross-platform implementation of that API that