diff --git a/CHANGELOG.md b/CHANGELOG.md index 89eed4b..a70c967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning]. +## [0.0.3-nullsafety] + +### Changed +- Renamed `ShortcakeClient` to `ShortcakeApi` to prevent naming confusion + ## [0.0.2-nullsafety] - Only repo/meta changes @@ -12,7 +17,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic - Initial release -[0.0.2-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/compare/v0.0.1...v0.0.2 +[0.0.3-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/compare/v0.0.1...v0.0.2 +[0.0.2-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/compare/v0.0.2...v0.0.3 [0.0.1-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/releases/tag/v0.0.1 [Keep a Changelog]: https://keepachangelog.com/en/1.0.0/ diff --git a/lib/src/client.dart b/lib/src/client.dart index 5f88ddf..face686 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1,9 +1,9 @@ import 'package:graphql/client.dart'; -class ShortcakeClient extends GraphQLClient { +class ShortcakeApi extends GraphQLClient { final String uri; - ShortcakeClient(this.uri) : super(link: HttpLink(uri), cache: GraphQLCache()); + ShortcakeApi(this.uri) : super(link: HttpLink(uri), cache: GraphQLCache()); Future introspect() async { const query = r''' diff --git a/pubspec.yaml b/pubspec.yaml index a2c8b24..7b1d4fe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: shortcake description: 'Shortcake API for Dart' -version: 0.0.2-nullsafety +version: 0.0.3-nullsafety homepage: https://github.com/shortcake-dev/shortcake-api-dart environment: diff --git a/test/client_test.dart b/test/client_test.dart index 407d8af..74cf3c9 100644 --- a/test/client_test.dart +++ b/test/client_test.dart @@ -3,7 +3,7 @@ import 'package:test/test.dart'; void main() { group('ShortcakeClient.introspect()', () { - var client = ShortcakeClient('http://localhost:8000'); + var client = ShortcakeApi('http://localhost:8000'); test('does not create an exception', () async { var result = await client.introspect();