Skip to content

Commit 122d9ed

Browse files
authored
Merge pull request #160 from wp-graphql/release/v2.1.0
release: v2.1.0
2 parents 114a2fe + 04c5c82 commit 122d9ed

File tree

78 files changed

+1253
-861
lines changed

Some content is hidden

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

78 files changed

+1253
-861
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Keep develop in sync with main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
merge-main-back-to-develop:
10+
timeout-minutes: 2
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
token: ${{ secrets.SYNC_TOKEN }}
16+
- name: Set Git config
17+
run: |
18+
git config --local user.email "[email protected]"
19+
git config --local user.name "Github Actions"
20+
- name: Merge main back to develop
21+
run: |
22+
git fetch --unshallow
23+
git checkout develop
24+
git pull
25+
git merge --no-ff origin/main -m "Auto-merge main back to develop"
26+
git push

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## 2.1.0
4+
5+
## Upgrade Notice
6+
7+
While fixing some [performance issues](https://github.com/wp-graphql/wpgraphql-acf/pull/152) we had to adjust the fallback logic for mapping ACF Field Groups to the Schema if they do not have "graphql_types" defined.
8+
9+
ACF Field Groups that did not have "graphql_types" defined AND were assigned to Location Rules based on "post_status", "post_format", "post_category" or "post_taxonomy" _might_ not show in the Schema until their "graphql_types" are explicitly defined.
10+
11+
## New Features
12+
13+
- [#156](https://github.com/wp-graphql/wpgraphql-acf/pull/156): feat: Use published ACF values in resolvers for fields associated with posts that use the block editor, since the Block Editor has a bug preventing meta from being saved for previews. Adds a debug message if ACF fields are queried for with "asPreview" on post(s) that use the block editor.
14+
15+
### Chores / Bugfixes
16+
17+
- [#156](https://github.com/wp-graphql/wpgraphql-acf/pull/156): fix: ACF Fields not resolving when querying "asPreview"
18+
- [#155](https://github.com/wp-graphql/wpgraphql-acf/pull/155): fix: "show_in_graphql" setting not being respected when turned "off"
19+
- [#152](https://github.com/wp-graphql/wpgraphql-acf/pull/152): fix: performance issues with mapping ACF Field Groups to the Schema
20+
- [#148](https://github.com/wp-graphql/wpgraphql-acf/pull/148): fix: bug when querying taxonomy field on blocks
21+
- [#146](https://github.com/wp-graphql/wpgraphql-acf/pull/146): chore: update phpcs to match core WPGraphQL
22+
323
## 2.0.0
424

525
- [#142](https://github.com/wp-graphql/wpgraphql-acf/pull/142): Update README, versions, plugin assets for deploy to WordPress.org.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# WPGraphQL for Advanced Custom Fields
22

3+
![WPGraphQL for ACF plugin banner](/.wordpress-org/banner-1544x500.png)
4+
35
WPGraphQL for Advanced Custom Fields is a free, open-source WordPress plugin that adds ACF Fields and Field Groups to the WPGraphQL Schema.
46

7+
The plugin is [now available on WordPress.org!](https://wordpress.org/plugins/wpgraphql-acf/)
8+
59
Development of this plugin has been made possible by [WP Engine Atlas](https://wpengine.com/atlas)
610

11+
Learn more at [https://acf.wpgraphql.com](https://acf.wpgraphql.com)
12+
713
## Table of Contents
814

915
- [Upgrade Notice](#upgrade-notice)

access-functions.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<?php
22

33
/**
4-
* @param string $acf_field_type
5-
* @param array|callable $config
6-
*
7-
* @return void
4+
* @param string $acf_field_type
5+
* @param array<mixed>|callable $config
86
*/
97
function register_graphql_acf_field_type( string $acf_field_type, $config = [] ): void {
108
add_action(
119
'wpgraphql/acf/register_field_types',
1210
static function ( \WPGraphQL\Acf\FieldTypeRegistry $registry ) use ( $acf_field_type, $config ) {
1311
$registry->register_field_type( $acf_field_type, $config );
14-
}
12+
}
1513
);
1614
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"appsero/client": "1.2.1"
1515
},
1616
"require-dev": {
17-
"automattic/vipwpcs": "^2.3",
17+
"automattic/vipwpcs": "^3.0",
1818
"lucatume/wp-browser": "3.1.0",
1919
"codeception/module-asserts": "^1.3",
2020
"codeception/module-phpbrowser": "^1.0",

0 commit comments

Comments
 (0)