You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the helper API to be `graphql_operation`. This more explicitly calls out that the Ruby heredoc can be more than just a query operation, but a mutation as well.
Bumps the version to 0.4.0
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,26 @@ Release notes for various versions of RSpec::GraphQLResponse
4
4
5
5
See [the upgrade guide](/UPGRADE.md) for details on changes between versions and how to upgrade.
6
6
7
+
## v0.4.0 - Helper API change
8
+
9
+
### Breaking Changes
10
+
11
+
The helper `graphql_query` was renamed to `graphql_operation` to better communicate the use of the helper. Naming the helper with `_query` lead to an association that its use was meant for GraphQL query operations and could not also be used for a mutation.
12
+
7
13
## v0.2.0 - GraphQL Configuration DSL and Refactorings
8
14
9
15
Misc changes and corrections, some new features, and generally trying to create a more robust
10
16
and usable experience, right out of the box.
11
17
12
18
### New Features
13
19
14
-
* Significantly improved documentation
15
-
*`have_operation` matcher
16
-
* GraphQL configuration DSL
17
-
*`graphql_query`
18
-
*`graphql_variables`
19
-
*`graphql_context`
20
-
* Describe/Context level RSpec helper methods via `.add_context_helper` DSL
20
+
- Significantly improved documentation
21
+
-`have_operation` matcher
22
+
- GraphQL configuration DSL
23
+
-`graphql_query`
24
+
-`graphql_variables`
25
+
-`graphql_context`
26
+
- Describe/Context level RSpec helper methods via `.add_context_helper` DSL
21
27
22
28
### Breaking Changes
23
29
@@ -32,8 +38,8 @@ Lots of misc bug fixes, including caching of values, ensuring things work in nes
32
38
33
39
Early beta work to get this out the door and begin adoption
34
40
35
-
*`have_errors` matcher
36
-
*`operation` helper
37
-
*`response` helper
38
-
*`execute_graphql` helper
39
-
* DSL for adding custom matchers, validators, and helpers
41
+
-`have_errors` matcher
42
+
-`operation` helper
43
+
-`response` helper
44
+
-`execute_graphql` helper
45
+
- DSL for adding custom matchers, validators, and helpers
Copy file name to clipboardExpand all lines: UPGRADE.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
1
# Upgrade Guide
2
2
3
+
## v0.3.0 to v0.4.0
4
+
5
+
There is a breaking change between v0.3.0 and v0.4.0 where the helper `graphql_query` was renamed to `graphql_operation`. In order to migrate to v0.4.0 all references to `graphql_query` can be replaced with `graphql_operation`.
6
+
3
7
## v0.1.0 to v0.2.0
4
8
5
-
There is a breaking change between v0.1.0 and v0.2.0 regarding the configuration of graphql queries, variables and context.
9
+
There is a breaking change between v0.1.0 and v0.2.0 regarding the configuration of graphql queries, variables and context.
6
10
Previously, you defined these three items with `let` in rspec:
0 commit comments