From 1bab403b8690c42b9bc55f7930476103375375f2 Mon Sep 17 00:00:00 2001 From: nilwurtz Date: Fri, 8 Dec 2023 22:58:53 +0900 Subject: [PATCH] :rocket: 0.8.0! --- CHANGELOG.md | 3 +++ README.md | 15 ++++++--------- e2e/pom.xml | 2 +- wiremock-graphql-extension/pom.xml | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 932f2ba..4785c04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added +### Changed + +## [0.8.0] - 2023-12-08 ### Changed - Implemented `graphql-java`'s `AstSorter` and `AstComparator` for GraphQL query normalization. This integration significantly aligns the supported GraphQL features of our extension with those of `graphql-java`. ([#14](https://github.com/wiremock/wiremock-graphql-extension/pull/14) from @kyle-winkelman) diff --git a/README.md b/README.md index b0af365..6aa5778 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ GraphqlBodyMatcherは[WireMock](https://wiremock.org/)の拡張で、GraphQLの ## Overview 📖 -- In addition to handling whitespaces, the extension sorts and normalizes queries. The GraphQL parsing is handled by `graphql-java`. +- In addition to handling whitespaces, the extension sorts and normalizes queries. The GraphQL parsing and normalizing is handled by `graphql-java`. - Beyond just queries, it also compares variables. For the comparison of JSON variables, `org.json.JSONObject.similar` is employed. It's important to note that the order of arrays must match. For a comprehensive understanding of our matching logic and details on our match strategy, please refer to our [MatchStrategy documentation](./docs/MatchStrategy.md). -- この拡張機能は、空白の取り扱いに加えて、クエリをソートし正規化します。GraphQLのパースには`graphql-java`を使用しています。 +- この拡張機能は、空白の取り扱いに加えて、クエリをソートし正規化します。GraphQLのパースおよび正規化には`graphql-java`を使用しています。 - クエリだけでなく、変数も比較されます。変数のJSONの比較には`org.json.JSONObject.similar`を使用しますが、配列の順番も一致している必要があります。 詳しいマッチングロジックなど関しては、[MatchStrategyのドキュメント](./docs/MatchStrategy.md)を参照してください。 @@ -30,7 +30,7 @@ repositories { } dependencies { - testImplementation 'io.github.nilwurtz:wiremock-graphql-extension:0.7.1' + testImplementation 'io.github.nilwurtz:wiremock-graphql-extension:0.8.0' } ``` @@ -40,7 +40,7 @@ dependencies { io.github.nilwurtz wiremock-graphql-extension - 0.7.1 + 0.8.0 test ``` @@ -103,7 +103,7 @@ Please download `wiremock-graphql-extension-x.y.z-jar-with-dependencies.jar` fro docker run -it --rm \ -p 8080:8080 \ --name wiremock \ - -v /path/to/wiremock-graphql-extension-0.7.1-jar-with-dependencies.jar:/var/wiremock/extensions/wiremock-graphql-extension-0.7.1-jar-with-dependencies.jar \ + -v /path/to/wiremock-graphql-extension-0.8.0-jar-with-dependencies.jar:/var/wiremock/extensions/wiremock-graphql-extension-0.8.0-jar-with-dependencies.jar \ wiremock/wiremock \ --extensions io.github.nilwurtz.GraphqlBodyMatcher ``` @@ -111,7 +111,7 @@ docker run -it --rm \ #### When building with `docker build`: ```dockerfile FROM wiremock/wiremock:latest -COPY ./wiremock-graphql-extension-0.7.1-jar-with-dependencies.jar /var/wiremock/extensions/wiremock-graphql-extension-0.7.1-jar-with-dependencies.jar +COPY ./wiremock-graphql-extension-0.8.0-jar-with-dependencies.jar /var/wiremock/extensions/wiremock-graphql-extension-0.8.0-jar-with-dependencies.jar CMD ["--extensions", "io.github.nilwurtz.GraphqlBodyMatcher"] ``` @@ -136,9 +136,6 @@ fun registerGraphQLWiremock(json: String) { } ``` -## Limitations 🚧 -This project currently focuses on supporting the fundamental parts of Queries. Some advanced features, such as mutations or aliases, are not yet fully supported. However, I aim to expand this scope over time. - ## License 📜 This project is licensed under the terms of the MIT License. diff --git a/e2e/pom.xml b/e2e/pom.xml index 1b006c4..3425a44 100644 --- a/e2e/pom.xml +++ b/e2e/pom.xml @@ -22,7 +22,7 @@ wiremock-graphql-extension io.github.nilwurtz - 0.7.1 + 0.8.0 com.thoughtworks.gauge diff --git a/wiremock-graphql-extension/pom.xml b/wiremock-graphql-extension/pom.xml index 36916e1..b94bc3c 100644 --- a/wiremock-graphql-extension/pom.xml +++ b/wiremock-graphql-extension/pom.xml @@ -6,7 +6,7 @@ wiremock-graphql-extension io.github.nilwurtz - 0.7.1 + 0.8.0 jar wiremock-graphql-extension A WireMock extension for handling GraphQL requests, allowing for easy mocking of GraphQL APIs in