Skip to content

Commit 1fff205

Browse files
authored
Merge pull request #1 from dart-lang/master
Update fork
2 parents 489f4fc + 710b8ce commit 1fff205

Some content is hidden

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

49 files changed

+701
-490
lines changed

.github/labeler.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
# Configuration for .github/workflows/pull_request_label.yml.
1+
# Configuration for .github/workflows/pull_request_label.yml.
22

3-
'infra':
3+
'type-infra':
44
- changed-files:
5-
- any-glob-to-any-file: '.github/**'
5+
- any-glob-to-any-file: '.github/**'
66

77
'package:shelf':
88
- changed-files:
9-
- any-glob-to-any-file: 'pkgs/shelf/**'
9+
- any-glob-to-any-file: 'pkgs/shelf/**'
1010

1111
'package:shelf_packages_handler':
1212
- changed-files:
13-
- any-glob-to-any-file: 'pkgs/shelf_packages_handler/**'
13+
- any-glob-to-any-file: 'pkgs/shelf_packages_handler/**'
1414

1515
'package:shelf_proxy':
1616
- changed-files:
17-
- any-glob-to-any-file: 'pkgs/shelf_proxy/**'
17+
- any-glob-to-any-file: 'pkgs/shelf_proxy/**'
1818

1919
'package:shelf_router':
2020
- changed-files:
21-
- any-glob-to-any-file: 'pkgs/shelf_router/**'
21+
- any-glob-to-any-file: 'pkgs/shelf_router/**'
2222

2323
'package:shelf_router_generator':
2424
- changed-files:
25-
- any-glob-to-any-file: 'pkgs/shelf_router_generator/**'
25+
- any-glob-to-any-file: 'pkgs/shelf_router_generator/**'
2626

2727
'package:shelf_static':
2828
- changed-files:
29-
- any-glob-to-any-file: 'pkgs/shelf_static/**'
29+
- any-glob-to-any-file: 'pkgs/shelf_static/**'
3030

3131
'package:shelf_test_handler':
3232
- changed-files:
33-
- any-glob-to-any-file: 'pkgs/shelf_test_handler/**'
33+
- any-glob-to-any-file: 'pkgs/shelf_test_handler/**'
3434

3535
'package:shelf_web_socket':
3636
- changed-files:
37-
- any-glob-to-any-file: 'pkgs/shelf_web_socket/**'
37+
- any-glob-to-any-file: 'pkgs/shelf_web_socket/**'

.github/workflows/dart.yml

Lines changed: 316 additions & 171 deletions
Large diffs are not rendered by default.

.github/workflows/no-response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: ${{ github.repository_owner == 'dart-lang' }}
2121
steps:
22-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
22+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f
2323
with:
2424
days-before-stale: -1
2525
days-before-close: 14

.github/workflows/publish.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ jobs:
1313
publish:
1414
if: ${{ github.repository_owner == 'dart-lang' }}
1515
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
16+
permissions:
17+
id-token: write
18+
pull-requests: write

.github/workflows/pull_request_label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pull-requests: write
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
19+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b
2020
with:
2121
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2222
sync-labels: true

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,25 @@ See the [package:shelf readme](pkgs/shelf/) for more information.
1616

1717
## Packages
1818

19-
| Package | Description | Version |
20-
| --- | --- | --- |
21-
| [shelf](pkgs/shelf/) | A model for web server middleware that encourages composition and easy reuse. | [![pub package](https://img.shields.io/pub/v/shelf.svg)](https://pub.dev/packages/shelf) |
22-
| [shelf_packages_handler](pkgs/shelf_packages_handler/) | A shelf handler for serving a `packages/` directory. | [![pub package](https://img.shields.io/pub/v/shelf_packages_handler.svg)](https://pub.dev/packages/shelf_packages_handler) |
23-
| [shelf_proxy](pkgs/shelf_proxy/) | A shelf handler for proxying HTTP requests to another server. | [![pub package](https://img.shields.io/pub/v/shelf_proxy.svg)](https://pub.dev/packages/shelf_proxy) |
24-
| [shelf_router](pkgs/shelf_router/) | A convenient request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations. | [![pub package](https://img.shields.io/pub/v/shelf_router.svg)](https://pub.dev/packages/shelf_router) |
25-
| [shelf_router_generator](pkgs/shelf_router_generator/) | A package:build-compatible builder for generating request routers for the shelf web-framework based on source annotations. | [![pub package](https://img.shields.io/pub/v/shelf_router_generator.svg)](https://pub.dev/packages/shelf_router_generator) |
26-
| [shelf_static](pkgs/shelf_static/) | Static file server support for the shelf package and ecosystem. | [![pub package](https://img.shields.io/pub/v/shelf_static.svg)](https://pub.dev/packages/shelf_static) |
27-
| [shelf_test_handler](pkgs/shelf_test_handler/) | A Shelf handler that makes it easy to test HTTP interactions. | [![pub package](https://img.shields.io/pub/v/shelf_test_handler.svg)](https://pub.dev/packages/shelf_test_handler) |
28-
| [shelf_web_socket](pkgs/shelf_web_socket/) | A shelf handler that wires up a listener for every connection. | [![pub package](https://img.shields.io/pub/v/shelf_web_socket.svg)](https://pub.dev/packages/shelf_web_socket) |
19+
| Package | Description | Issues | Version |
20+
| --- | --- | --- | --- |
21+
| [shelf](pkgs/shelf/) | A model for web server middleware that encourages composition and easy reuse. | [![issues](https://img.shields.io/badge/shelf-4774bc)][shelf_issues] | [![pub package](https://img.shields.io/pub/v/shelf.svg)](https://pub.dev/packages/shelf) |
22+
| [shelf_packages_handler](pkgs/shelf_packages_handler/) | A shelf handler for serving a `packages/` directory. | [![issues](https://img.shields.io/badge/shelf__packages__handler-4774bc)][shelf_packages_handler_issues] | [![pub package](https://img.shields.io/pub/v/shelf_packages_handler.svg)](https://pub.dev/packages/shelf_packages_handler) |
23+
| [shelf_proxy](pkgs/shelf_proxy/) | A shelf handler for proxying HTTP requests to another server. | [![issues](https://img.shields.io/badge/shelf__proxy-4774bc)][shelf_proxy_issues] | [![pub package](https://img.shields.io/pub/v/shelf_proxy.svg)](https://pub.dev/packages/shelf_proxy) |
24+
| [shelf_router](pkgs/shelf_router/) | A convenient request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations. | [![issues](https://img.shields.io/badge/shelf__router-4774bc)][shelf_router_issues] | [![pub package](https://img.shields.io/pub/v/shelf_router.svg)](https://pub.dev/packages/shelf_router) |
25+
| [shelf_router_generator](pkgs/shelf_router_generator/) | A package:build-compatible builder for generating request routers for the shelf web-framework based on source annotations. | [![issues](https://img.shields.io/badge/shelf__router__generator-4774bc)][shelf_router_generator_issues] | [![pub package](https://img.shields.io/pub/v/shelf_router_generator.svg)](https://pub.dev/packages/shelf_router_generator) |
26+
| [shelf_static](pkgs/shelf_static/) | Static file server support for the shelf package and ecosystem. | [![issues](https://img.shields.io/badge/shelf__static-4774bc)][shelf_static_issues] | [![pub package](https://img.shields.io/pub/v/shelf_static.svg)](https://pub.dev/packages/shelf_static) |
27+
| [shelf_test_handler](pkgs/shelf_test_handler/) | A Shelf handler that makes it easy to test HTTP interactions. | [![issues](https://img.shields.io/badge/shelf__test__handler-4774bc)][shelf_test_handler_issues] | [![pub package](https://img.shields.io/pub/v/shelf_test_handler.svg)](https://pub.dev/packages/shelf_test_handler) |
28+
| [shelf_web_socket](pkgs/shelf_web_socket/) | A shelf handler that wires up a listener for every connection. | [![issues](https://img.shields.io/badge/shelf__web__socket-4774bc)][shelf_web_socket_issues] | [![pub package](https://img.shields.io/pub/v/shelf_web_socket.svg)](https://pub.dev/packages/shelf_web_socket) |
29+
30+
[shelf_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf
31+
[shelf_packages_handler_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_packages_handler
32+
[shelf_proxy_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_proxy
33+
[shelf_router_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_router
34+
[shelf_router_generator_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_router_generator
35+
[shelf_static_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_static
36+
[shelf_test_handler_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_test_handler
37+
[shelf_web_socket_issues]: https://github.com/dart-lang/shelf/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ashelf_web_socket
2938

3039
## Publishing automation
3140

pkgs/shelf/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280

281281
## 0.6.1+2
282282

283-
* `logRequests` outputs a better message a request has a query string.
283+
* `logRequests` outputs a better message if a request has a query string.
284284

285285
## 0.6.1+1
286286

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# https://dart.dev/guides/language/analysis-options
2+
23
include: package:dart_flutter_team_lints/analysis_options.yaml
34

45
analyzer:
56
language:
6-
strict-casts: true
7-
strict-inference: true
87
strict-raw-types: true
9-
errors:
10-
comment_references: ignore # too many false positives
118

129
linter:
1310
rules:
@@ -17,5 +14,4 @@ linter:
1714
- missing_whitespace_between_adjacent_strings
1815
- no_adjacent_strings_in_list
1916
- no_runtimeType_toString
20-
- package_api_docs
2117
- unnecessary_await_in_return

pkgs/shelf/lib/src/body.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import 'dart:async';
66
import 'dart:convert';
77

8+
import 'message.dart';
9+
810
/// The body of a request or response.
911
///
1012
/// This tracks whether the body has been read. It's separate from [Message]

pkgs/shelf/lib/src/hijack_exception.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'request.dart';
6+
57
/// An exception used to indicate that a request has been hijacked.
68
///
79
/// This shouldn't be captured by any code other than the Shelf adapter that

0 commit comments

Comments
 (0)