Skip to content

Commit 82f2dd5

Browse files
authored
Updated GraphiQL version to 4
1 parent 9f83c51 commit 82f2dd5

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ spring:
4444
<dependency>
4545
<groupId>ru.sadv1r.spring.graphql</groupId>
4646
<artifactId>graphql-voyager-spring-boot-starter</artifactId>
47-
<version>0.7.0</version>
47+
<version>0.8.0</version>
4848
</dependency>
4949
```
5050

5151
#### Gradle
5252

5353
```groovy
54-
implementation 'ru.sadv1r.spring.graphql:graphql-voyager-spring-boot-starter:0.7.0'
54+
implementation 'ru.sadv1r.spring.graphql:graphql-voyager-spring-boot-starter:0.8.0'
5555
```
5656

5757
## Graph*i*QL
@@ -106,12 +106,12 @@ spring:
106106
<dependency>
107107
<groupId>ru.sadv1r.spring.graphql</groupId>
108108
<artifactId>graphql-graphiql-spring-boot-starter</artifactId>
109-
<version>0.7.0</version>
109+
<version>0.8.0</version>
110110
</dependency>
111111
```
112112

113113
#### Gradle
114114

115115
```groovy
116-
implementation 'ru.sadv1r.spring.graphql:graphql-graphiql-spring-boot-starter:0.7.0'
116+
implementation 'ru.sadv1r.spring.graphql:graphql-graphiql-spring-boot-starter:0.8.0'
117117
```

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313

1414
subprojects {
1515
group 'ru.sadv1r.spring.graphql'
16-
version '0.7.0'
16+
version '0.8.0'
1717

1818
repositories {
1919
mavenCentral()

graphql-graphiql-spring-boot-starter/src/main/resources/templates/graphiql.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<script crossorigin th:src="|${cdnHost}/react@18/umd/react.production.min.js|"></script>
1919
<script crossorigin th:src="|${cdnHost}/react-dom@18/umd/react-dom.production.min.js|"></script>
2020

21-
<script th:src="|${cdnHost}/graphiql/graphiql.min.js|" type="application/javascript"></script>
22-
<link rel="stylesheet" th:href="|${cdnHost}/graphiql/graphiql.min.css|"/>
21+
<script th:src="|${cdnHost}/graphiql@4/graphiql.min.js|" type="application/javascript"></script>
22+
<link rel="stylesheet" th:href="|${cdnHost}/graphiql@4/graphiql.min.css|"/>
2323

2424
<script th:if="${plugins.contains(T(ru.sadv1r.spring.graphql.editor.graphiql.configuration.GraphiqlProperties.Plugin).EXPLORER)}"
25-
crossorigin th:src="|${cdnHost}/@graphiql/plugin-explorer/dist/index.umd.js|"></script>
25+
crossorigin th:src="|${cdnHost}/@graphiql/plugin-explorer@4/dist/index.umd.js|"></script>
2626
<link th:if="${plugins.contains(T(ru.sadv1r.spring.graphql.editor.graphiql.configuration.GraphiqlProperties.Plugin).EXPLORER)}"
27-
rel="stylesheet" th:href="|${cdnHost}/@graphiql/plugin-explorer/dist/style.css|"/>
27+
rel="stylesheet" th:href="|${cdnHost}/@graphiql/plugin-explorer@4/dist/style.css|"/>
2828

2929
<link th:if="${stylePath}" rel="stylesheet" th:href="|${stylePath}|"/>
3030
</head>

samples/web-sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies {
1111
implementation project(':graphql-graphiql-spring-boot-starter')
1212

1313
testImplementation 'org.springframework.boot:spring-boot-starter-test'
14-
testImplementation 'com.microsoft.playwright:playwright:1.49.0'
14+
testImplementation 'com.microsoft.playwright:playwright:1.53.0'
1515
}
1616

1717
java {

samples/web-sample/src/test/java/org/springframework/graphql/editor/example/GraphQlEditorWebMvcExampleApplicationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ void testGraphiQlSnapshot() {
5252
.setPath(Paths.get("../../screenshots/webmvc-graphiql.png"))
5353
);
5454

55-
assertThat(page.getByTestId("graphiql-container")).matchesAriaSnapshot("""
55+
assertThat(page.locator(".graphiql-container")).matchesAriaSnapshot("""
5656
- button "Show Documentation Explorer":
57-
- img "docs icon"
57+
- img "icon"
5858
- button "Show History"
5959
- button "Show GraphiQL Explorer"
6060
- button "Re-fetch GraphQL schema"
6161
- button "Open short keys dialog"
6262
- button "Open settings dialog"
6363
- tablist "Select active operation"
64-
- button "Add tab"
64+
- button "New tab"
6565
- link "GraphiQL":
6666
- emphasis: i
6767
- tabpanel:
@@ -70,7 +70,7 @@ void testGraphiQlSnapshot() {
7070
- text: "query($id: ID!) { artifactRepository(id: $id) { name url } }"
7171
- toolbar "Editor Commands":
7272
- button "Execute query (Ctrl-Enter)":
73-
- img "play icon"
73+
- img "icon"
7474
- button "Prettify query (Shift-Ctrl-P)"
7575
- button "Merge fragments into query (Shift-Ctrl-M)"
7676
- button "Copy query (Shift-Ctrl-C)"

samples/webflux-sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies {
1111
implementation project(':graphql-graphiql-spring-boot-starter')
1212

1313
testImplementation 'org.springframework.boot:spring-boot-starter-test'
14-
testImplementation 'com.microsoft.playwright:playwright:1.49.0'
14+
testImplementation 'com.microsoft.playwright:playwright:1.53.0'
1515
}
1616

1717
java {

samples/webflux-sample/src/test/java/org/springframework/graphql/editor/example/GraphQlEditorWebFluxExampleApplicationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ void testGraphiQlSnapshot() {
5252
.setPath(Paths.get("../../screenshots/webflux-graphiql.png"))
5353
);
5454

55-
assertThat(page.getByTestId("graphiql-container")).matchesAriaSnapshot("""
55+
assertThat(page.locator(".graphiql-container")).matchesAriaSnapshot("""
5656
- button "Show Documentation Explorer":
57-
- img "docs icon"
57+
- img "icon"
5858
- button "Show History"
5959
- button "Show GraphiQL Explorer"
6060
- button "Re-fetch GraphQL schema"
6161
- button "Open short keys dialog"
6262
- button "Open settings dialog"
6363
- tablist "Select active operation"
64-
- button "Add tab"
64+
- button "New tab"
6565
- link "GraphiQL":
6666
- emphasis: i
6767
- tabpanel:
@@ -70,7 +70,7 @@ void testGraphiQlSnapshot() {
7070
- text: "query($id: ID!) { artifactRepository(id: $id) { name url } }"
7171
- toolbar "Editor Commands":
7272
- button "Execute query (Ctrl-Enter)":
73-
- img "play icon"
73+
- img "icon"
7474
- button "Prettify query (Shift-Ctrl-P)"
7575
- button "Merge fragments into query (Shift-Ctrl-M)"
7676
- button "Copy query (Shift-Ctrl-C)"

0 commit comments

Comments
 (0)