From 85aa963f0946b072f5a7e9559d539e9c31a502be Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 24 Apr 2019 13:56:11 -0400 Subject: [PATCH] angel_graphql@1.0.0 --- angel_graphql/CHANGELOG.md | 3 +++ angel_graphql/analysis_options.yaml | 1 + angel_graphql/example/main.dart | 1 + angel_graphql/lib/src/graphiql.dart | 4 ++-- angel_graphql/lib/src/resolvers.dart | 8 ++++---- angel_graphql/pubspec.yaml | 6 ++---- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/angel_graphql/CHANGELOG.md b/angel_graphql/CHANGELOG.md index 25b7ed5c..c26a73cd 100644 --- a/angel_graphql/CHANGELOG.md +++ b/angel_graphql/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.0.0 +* Apply `package:pedantic`. + # 1.0.0-rc.0 * Finish `graphQLWS`. diff --git a/angel_graphql/analysis_options.yaml b/angel_graphql/analysis_options.yaml index eae1e42a..c230cee7 100644 --- a/angel_graphql/analysis_options.yaml +++ b/angel_graphql/analysis_options.yaml @@ -1,3 +1,4 @@ +include: package:pedantic/analysis_options.yaml analyzer: strong-mode: implicit-casts: false \ No newline at end of file diff --git a/angel_graphql/example/main.dart b/angel_graphql/example/main.dart index 45865fc6..4cb357ed 100644 --- a/angel_graphql/example/main.dart +++ b/angel_graphql/example/main.dart @@ -1,3 +1,4 @@ +// ignore_for_file: deprecated_member_use import 'package:angel_framework/angel_framework.dart'; import 'package:angel_framework/http.dart'; import 'package:angel_graphql/angel_graphql.dart'; diff --git a/angel_graphql/lib/src/graphiql.dart b/angel_graphql/lib/src/graphiql.dart index d27e8db4..6483a768 100644 --- a/angel_graphql/lib/src/graphiql.dart +++ b/angel_graphql/lib/src/graphiql.dart @@ -6,7 +6,7 @@ import 'package:http_parser/http_parser.dart'; /// By default, the interface expects your backend to be mounted at `/graphql`; this is configurable /// via [graphQLEndpoint]. RequestHandler graphiQL( - {String graphQLEndpoint: '/graphql', String subscriptionsEndpoint}) { + {String graphQLEndpoint = '/graphql', String subscriptionsEndpoint}) { return (req, res) { res ..contentType = new MediaType('text', 'html') @@ -18,7 +18,7 @@ RequestHandler graphiQL( } String renderGraphiql( - {String graphqlEndpoint: '/graphql', String subscriptionsEndpoint}) { + {String graphqlEndpoint = '/graphql', String subscriptionsEndpoint}) { var subscriptionsScripts = '', subscriptionsFetcher = '', fetcherName = 'graphQLFetcher'; diff --git a/angel_graphql/lib/src/resolvers.dart b/angel_graphql/lib/src/resolvers.dart index 6f915fd1..b130eff2 100644 --- a/angel_graphql/lib/src/resolvers.dart +++ b/angel_graphql/lib/src/resolvers.dart @@ -52,7 +52,7 @@ GraphQLFieldResolver /// service will receive [Providers.graphql]. GraphQLFieldResolver resolveViaServiceRead(Service service, - {String idField: 'id'}) { + {String idField = 'id'}) { return (_, arguments) async { var _requestInfo = _fetchRequestInfo(arguments); var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL} @@ -90,7 +90,7 @@ GraphQLFieldResolver /// service will receive [Providers.graphql]. GraphQLFieldResolver resolveViaServiceModify(Service service, - {String idField: 'id'}) { + {String idField = 'id'}) { return (_, arguments) async { var _requestInfo = _fetchRequestInfo(arguments); var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL} @@ -113,7 +113,7 @@ GraphQLFieldResolver /// To avoid this, use [resolveViaServiceModify] instead. GraphQLFieldResolver resolveViaServiceUpdate(Service service, - {String idField: 'id'}) { + {String idField = 'id'}) { return (_, arguments) async { var _requestInfo = _fetchRequestInfo(arguments); var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL} @@ -132,7 +132,7 @@ GraphQLFieldResolver /// service will receive [Providers.graphql]. GraphQLFieldResolver resolveViaServiceRemove(Service service, - {String idField: 'id'}) { + {String idField = 'id'}) { return (_, arguments) async { var _requestInfo = _fetchRequestInfo(arguments); var params = {'query': _getQuery(arguments), 'provider': Providers.graphQL} diff --git a/angel_graphql/pubspec.yaml b/angel_graphql/pubspec.yaml index a73492d2..b3406bb3 100644 --- a/angel_graphql/pubspec.yaml +++ b/angel_graphql/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_graphql -version: 1.0.0-rc.0 +version: 1.0.0 description: The fastest + easiest way to get a GraphQL backend in Dart, using Angel. homepage: https://github.com/angel-dart/graphql author: Tobe O @@ -18,6 +18,4 @@ dependencies: dev_dependencies: angel_serialize: ^2.0.0 logging: ^0.11.0 -# dependency_overrides: -# graphql_server: -# path: ../graphql_server \ No newline at end of file + pedantic: ^1.0.0 \ No newline at end of file