All notable changes to this project will be documented in this file.
Minor versions will be bundled with more important versions.
The format is influenced by Keep a Changelog.
Subsequently, the date entry follows YYYY-MM-DD format in accordance with the ISO 8601 standard.
This project adheres to Semantic Versioning.
- Fixed
- Fix: Library not compatible with flutter 3.16.0 - incorrect type definition
- Add
- Fixed
- #160: Downgrade collection to 1.17.1 due to incompability;
Special thanks to sebastianbuechler
- Updated
- Bump up sdk and dependency versions:
- sdk: >=3.0.0
- collection: ^1.18.0
- dio: ^5.3.2
- Bump up sdk and dependency versions:
- Updated
- Fix: remove unused import dart:ffi
- Add
- Response like Protocol Buffer will have byte response body. Add support for mock response of byte data.
- unit tests for RequestHandler class. #146
- Updated
- Downgrade dependency constraints to match minimum
dio
requirements
- Downgrade dependency constraints to match minimum
- Updated
- Downgrade collection to 1.15.0 due to incompability (issue #141)
- Update package homepage
-
Updated
- Dio dependency to
5.0.0
- Github Workflow (release on tag)
- Codecov token
- Collection to 1.17.1
- Dio dependency to
-
Removed
- Recursive export of matchers.dart
- Unnecessary ListParam
-
Added
delay
property toMockServer
methods: (reply & throws)HttpRequestMatcher
super class & its implementationsFullHttpRequestMatcher
,UrlRequestMatcher
.- Utilities file for tests.
-
Updated
- Docs in
README.md
andexample/main.dart
. - Tests for
DioAdapter
.
- Docs in
-
Added
- Automatic wrapping of
FormData
in a fitting matcher.
- Automatic wrapping of
-
Fixed
- Missing expectation in map not causing test failures.
-
Removed
- Header matcher.
-
Updated
- Tests for
DioAdapter
andDioInterceptor
by combining them.
- Tests for
-
Removed
- Unused import and code regarding
io_adapter
that reduced the overall score of the package.
- Unused import and code regarding
-
Updated
pub
badge link inREADME.md
.
-
Added
- Remaining tests for formal 100% coverage;
- Code coverage badge;
- New, official Dart linter (
lints
) and some custom rules; - Constructors to
DioAdapter
andDioInterceptor
; ClosedException
, thrown whenDioAdapter
is closed yet used;- Builder method for
Signature
extension.
-
Removed
- Unused package and code, such as
mockito
and/orDioAdapterMockito
; - Some portion of seemingly excessive documentation;
- Generally unnecessary pieces of code.
- Unused package and code, such as
-
Updated
- Tests and lots of files due to refactoring;
- Packages;
- Names of types, methods and variables for better clarity.
-
Removed
- Unused and artificially deprecated code.
-
Updated
- CI workflow;
- Packages.
- Added
- Null safety.
-
Added
- Ability to match routes based on pattern;
- Tests;
- Straightforward way to reset history;
- Query parameters to
RequestRouted
's methods.
-
Fixed
Response
problems regarding closed streams.
-
Removed
- Singleton instances of
DioAdapter
andDioInterceptor
;
- Singleton instances of
-
Updated
Match
variable names;matches
function to include null check;.gitignore
now includespubspec.lock
;- Request mock method chaining variation.
-
Added
Matchers
class that contains various types of request data matchers for dynamic signature matching;Dart CI
workflow;git
tags for untagged releases/publications;- Specific imports by utilizing
Dart
'sshow
keyword.
-
Removed
- Unnecessary
node_modules/
directory with its content; - Unnecessary
workflows/
directory with its content in.github/ISSUE_TEMPLATE/
directory; - Unnecessary
package-lock.json
file; - Unnecessary
.metadata
file.
- Unnecessary
-
Updated
- Issue templates;
- Pull request template;
example/main.dart
code;- Source code formatting/style;
- Source code documentation;
- License's
Copyright (c)
year; http
andtest
dev_dependencies
' version;- Header setting logic for both request and response (Defaults to JSON and matches any
Headers.contentTypeLength
); - Project's meta files;
- Tests by relocating, reformatting, organizing them.
-
Added
throws
method to testDio
exceptions.
-
Fixed
Signature
related bug.
-
Updated
- Package architecture.
- Updated
- Package's documentation;
- Request handling through headers.
- Updated
GitHub Actions
workflow upon each version update on each push made tomain
branch.
-
Added
- Author metadata;
- Automatic publishing on https://pub.dev through
GitHub Actions
.
-
Updated
- Routing logic;
- Package documentation.
-
Added
History
mixin to keep track of request history;- HTTP methods;
RequestRouted
- exposes developer-friendly methods which take in routes;RequestHandler
- The handler of requests sent by clients;DioAdapter
without mockito;- Mocked version of
DioAdapter
; - Tast cases;
- Non-sequential responding.
-
Removed
MockHandler
- Temporarily deprecated (ensures that mock data is saved and retrieved from the disk).
- Added
- The MIT License.