From 0fad2e88abf5343a6ef4fb80e5464d5c91e8a83e Mon Sep 17 00:00:00 2001 From: Brandon Trautmann Date: Thu, 13 Apr 2023 10:18:08 -0400 Subject: [PATCH] chore: export some things for use by consumers, docs fixes, updates to the match not found message (#26) * chore: export some things for use by consumers, docs fixes, and add additional data to the message printed when a match cannot be found * update test * back out changes to error logs * bump version, adjust CHANGELOG --- CHANGELOG.md | 4 ++++ lib/charlatan.dart | 2 ++ lib/src/charlatan_response_definition.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c4008b..ce1f1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.1 + +- Export `CharlatanHttpRequest` and `CharlatanRequestMatcher` + ## 0.3.0 - Add `whenMatch` for more complex matching scenarios diff --git a/lib/charlatan.dart b/lib/charlatan.dart index 7f0138d..d7756a2 100644 --- a/lib/charlatan.dart +++ b/lib/charlatan.dart @@ -7,7 +7,9 @@ export 'src/charlatan.dart'; export 'src/charlatan_http_client_adapter.dart'; export 'src/charlatan_response_definition.dart' show + CharlatanHttpRequest, CharlatanHttpResponse, + CharlatanRequestMatcher, requestMatchesAll, requestMatchesHttpMethod, requestMatchesPathOrTemplate; diff --git a/lib/src/charlatan_response_definition.dart b/lib/src/charlatan_response_definition.dart index c35d513..f41362a 100644 --- a/lib/src/charlatan_response_definition.dart +++ b/lib/src/charlatan_response_definition.dart @@ -84,7 +84,7 @@ class CharlatanResponseDefinition { /// The callback that produces the response. final CharlatanResponseBuilder responseBuilder; - /// The default status code to use if the [responseBuilder] does not return. + /// The default status code to use if the [responseBuilder] does not return /// a [CharlatanHttpResponse]. final int defaultStatusCode; diff --git a/pubspec.yaml b/pubspec.yaml index cd1b749..cf888e5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: charlatan description: A library for configuring and providing fake HTTP responses to your dio HTTP client. -version: 0.3.0 +version: 0.3.1 homepage: https://github.com/Betterment/charlatan repository: https://github.com/Betterment/charlatan