Skip to content

Commit 287bd41

Browse files
authored
Rename ShortcakeClient to ShortcakeApi (#23)
1 parent 4dd230b commit 287bd41

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].
66

7+
## [0.0.3-nullsafety]
8+
9+
### Changed
10+
- Renamed `ShortcakeClient` to `ShortcakeApi` to prevent naming confusion
11+
712
## [0.0.2-nullsafety]
813

914
- Only repo/meta changes
@@ -12,7 +17,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
1217

1318
- Initial release
1419

15-
[0.0.2-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/compare/v0.0.1...v0.0.2
20+
[0.0.3-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/compare/v0.0.1...v0.0.2
21+
[0.0.2-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/compare/v0.0.2...v0.0.3
1622
[0.0.1-nullsafety]: https://github.com/shortcake-dev/shortcake-api-dart/releases/tag/v0.0.1
1723

1824
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/

lib/src/client.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import 'package:graphql/client.dart';
22

3-
class ShortcakeClient extends GraphQLClient {
3+
class ShortcakeApi extends GraphQLClient {
44
final String uri;
55

6-
ShortcakeClient(this.uri) : super(link: HttpLink(uri), cache: GraphQLCache());
6+
ShortcakeApi(this.uri) : super(link: HttpLink(uri), cache: GraphQLCache());
77

88
Future<QueryResult> introspect() async {
99
const query = r'''

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: shortcake
22
description: 'Shortcake API for Dart'
3-
version: 0.0.2-nullsafety
3+
version: 0.0.3-nullsafety
44
homepage: https://github.com/shortcake-dev/shortcake-api-dart
55

66
environment:

test/client_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:test/test.dart';
33

44
void main() {
55
group('ShortcakeClient.introspect()', () {
6-
var client = ShortcakeClient('http://localhost:8000');
6+
var client = ShortcakeApi('http://localhost:8000');
77

88
test('does not create an exception', () async {
99
var result = await client.introspect();

0 commit comments

Comments
 (0)