Skip to content

Commit 6e4fb5d

Browse files
authored
Merge pull request #77 from dadish/main
Release
2 parents 003d1e4 + 9827469 commit 6e4fb5d

File tree

106 files changed

+488
-822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+488
-822
lines changed

.circleci/config.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ workflows:
1212
main:
1313
jobs:
1414
- test:
15-
name: test-php-7.2
15+
name: test-php-7.4
1616
context:
1717
- github-credentials
1818
- dockerhub-credentials
19-
php: "7.2"
20-
phpunit: "7.5"
19+
php: "7.4"
20+
phpunit: "9.6"
2121
mysql: "5.7.34"
2222

2323
- test:
24-
name: test-php-8.1
24+
name: test-php-8.2
2525
context:
2626
- github-credentials
2727
- dockerhub-credentials
28-
php: "8.1"
29-
phpunit: "9.5.10"
28+
php: "8.2"
29+
phpunit: "10.1"
3030
mysql: "8.0.25"
3131

3232
- approve_release:
3333
name: approve-release
3434
<<: *release_branches
3535
type: approval
3636
requires:
37-
- test-php-7.2
38-
- test-php-8.1
37+
- test-php-7.4
38+
- test-php-8.2
3939

4040
- release:
4141
name: release
@@ -118,7 +118,7 @@ jobs:
118118
119119
release:
120120
docker:
121-
- image: dadish/processgraphql-primary:0.6.0
121+
- image: dadish/processgraphql-primary:1.0.0
122122
auth:
123123
username: $DOCKERHUB_USERNAME
124124
password: $DOCKERHUB_PASSWORD

.circleci/images/primary/Dockerfile

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
FROM alpine:3.14
2+
FROM alpine:3.18.0
33

44
RUN apk update && apk upgrade
55

@@ -11,14 +11,14 @@ RUN apk add \
1111
ca-certificates \
1212
nodejs \
1313
npm \
14-
php7 \
15-
php7-gd \
16-
php7-tokenizer \
17-
php7-dom \
18-
php7-mysqli \
19-
php7-xmlwriter \
20-
php7-xml \
21-
php7-ctype \
14+
php \
15+
php-gd \
16+
php-tokenizer \
17+
php-dom \
18+
php-mysqli \
19+
php-xmlwriter \
20+
php-xml \
21+
php-ctype \
2222
composer
2323

2424
ENTRYPOINT ["echo", "Started!"]

Changelog.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# [2.0.0-rc.2](https://github.com/dadish/ProcessGraphQL/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2023-08-17)
2+
3+
4+
### Features
5+
6+
* **deps:** upgrade webonyx/graphql-php to version 15.6.2 ([eb8939f](https://github.com/dadish/ProcessGraphQL/commit/eb8939fa3c1e8ac9026fdedb16a11f11f14a0359))
7+
8+
# [2.0.0-rc.1](https://github.com/dadish/ProcessGraphQL/compare/v1.4.2...v2.0.0-rc.1) (2023-05-15)
9+
10+
11+
### Bug Fixes
12+
13+
* **test:** make tests compatible with phpunit 9 and 10. ([91ac9c7](https://github.com/dadish/ProcessGraphQL/commit/91ac9c7bc1aabb86b5aa95f7088ae418e225de89))
14+
15+
16+
### Features
17+
18+
* **deps:** update webonyx/graphql-php into latest version ([395c9b5](https://github.com/dadish/ProcessGraphQL/commit/395c9b5215d6f4f2e05ff1f7f0c8847cb927b33a))
19+
20+
21+
### BREAKING CHANGES
22+
23+
* **deps:** The webonyx/graphql-php from now on requires PHP version 7.4 and higher. So do we from now on.
24+
125
## [1.4.2](https://github.com/dadish/ProcessGraphQL/compare/v1.4.1...v1.4.2) (2023-05-14)
226

327

ProcessGraphQL.module

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class ProcessGraphQL extends Process implements Module {
1515
{
1616
return array(
1717
'title' => 'GraphQL',
18-
'version' => '1.4.2',
18+
'version' => '2.0.0-rc.2',
1919
'summary' => 'GraphQL for ProcessWire.',
2020
'href' => 'https://github.com/dadish/ProcessGraphql',
2121
'singular' => true,
2222
'autoload' => 'process=ProcessTemplate',
2323
'icon' => 'object-group',
24-
'requires' => array("PHP>=7.2", "ProcessWire>=3.0.210"),
24+
'requires' => array("PHP>=7.4", "ProcessWire>=3.0.210"),
2525
);
2626
}
2727

@@ -164,9 +164,9 @@ class ProcessGraphQL extends Process implements Module {
164164
} else {
165165
$requestData = $_POST;
166166
}
167-
$payload = isset($requestData['query']) ? $requestData['query'] : null;
168-
if (is_null($payload)) {
169-
$payload = isset($requestData['payload']) ? $requestData['payload'] : null;
167+
$payload = isset($requestData['query']) ? $requestData['query'] : "";
168+
if (empty($payload)) {
169+
$payload = isset($requestData['payload']) ? $requestData['payload'] : "";
170170
}
171171
$variables = isset($requestData['variables']) ? $requestData['variables'] : null;
172172

@@ -184,7 +184,7 @@ class ProcessGraphQL extends Process implements Module {
184184
* Executes GraphQL api.
185185
* @return string GraphQL api JSON response.
186186
*/
187-
public function ___executeGraphQL($payload = null, $variables = null)
187+
public function ___executeGraphQL($payload = "", $variables = null)
188188
{
189189
if (!$payload) {
190190
$request = $this->getRequest();

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.1||^8.0",
14-
"webonyx/graphql-php": "^14.11.3"
13+
"php": "^7.4||^8.0",
14+
"webonyx/graphql-php": "^15.6.2"
1515
},
1616
"require-dev": {
1717
"processwire/processwire": "dev-dev",
1818
"processwire/site-default": "1.0.0",
1919
"ryancramerdesign/fieldtypemapmarker": "2.0.9",
2020
"dadish/graphqlfieldtypemapmarker": "2.0.0",
21-
"phpunit/phpunit": "9.5.10"
21+
"phpunit/phpunit": "10.1"
2222
},
2323
"repositories": [
2424
{

0 commit comments

Comments
 (0)