Skip to content

Commit

Permalink
release: 0.12.2 (#371)
Browse files Browse the repository at this point in the history
* chore: version bump

* chore: update changelog
  • Loading branch information
justlevine committed Jun 7, 2023
1 parent aabf281 commit 388b4f3
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 25 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
@@ -1,10 +1,17 @@
# Changelog

## Unreleased

## v0.12.1

This _minor_ release expands the ability to use database and global IDs interchangeably in more connections. We also now prime the `GFFormsLoader` dataloader, reducing the number of database queries and improving performance.

We've also implemented the new WPGraphQL Coding Standards ruleset for `PHP_CodeSniffer`. While many of the (over 1000+) addressed sniffs are cosmetic, numerous smells regarding performance, type safety, sanitization, and 3rd-party interoperability have been fixed as well.

- dev: Refactor database ID resolution when the GraphQL `ID` type is indeterminate. Note: The following input args now work with both database and global IDs: `GfEntriesConnectionWhereArgs.formIds`, `GfFormsConnectionwhereArgs.formIds`.
- dev: Remove usage of deprecated `WPGraphQL\Data\DataSource::resolve_post_object()` method.
- dev: Prime the GfForm dataloader when querying form connections, to prevent unnecessary database queries.
- chore: Implement `axepress/wp-graphql-cs` PHP_Codesniffer ruleset.
- chore: Implement `axepress/wp-graphql-cs` PHP_Codesniffer ruleset, and fix all resulting issues.
- docs: Add missing documentation regarding using `productValues` input when submitting forms.

## v0.12.1 - Bug fix
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@
A WordPress plugin that provides a GraphQL API for interacting with Gravity Forms.


![Packagist License](https://img.shields.io/packagist/l/harness-software/wp-graphql-gravity-forms?color=green) ![Packagist Version](https://img.shields.io/packagist/v/harness-software/wp-graphql-gravity-forms?label=stable) ![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/harness-software/wp-graphql-gravity-forms/v0.12.1) ![GitHub forks](https://img.shields.io/github/forks/harness-software/wp-graphql-gravity-forms?style=social) ![GitHub Repo stars](https://img.shields.io/github/stars/harness-software/wp-graphql-gravity-forms?style=social)<br />
![Packagist License](https://img.shields.io/packagist/l/harness-software/wp-graphql-gravity-forms?color=green) ![Packagist Version](https://img.shields.io/packagist/v/harness-software/wp-graphql-gravity-forms?label=stable) ![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/harness-software/wp-graphql-gravity-forms/v0.12.2) ![GitHub forks](https://img.shields.io/github/forks/harness-software/wp-graphql-gravity-forms?style=social) ![GitHub Repo stars](https://img.shields.io/github/stars/harness-software/wp-graphql-gravity-forms?style=social)<br />
[![Coverage Status](https://coveralls.io/repos/github/harness-software/wp-graphql-gravity-forms/badge.svg?branch=develop)](https://coveralls.io/github/harness-software/wp-graphql-gravity-forms?branch=develop) [![WordPress Coding Standards](https://github.com/harness-software/wp-graphql-gravity-forms/actions/workflows/code-standard.yml/badge.svg)](https://github.com/harness-software/wp-graphql-gravity-forms/actions/workflows/code-standard.yml) [![Code Quality](https://github.com/harness-software/wp-graphql-gravity-forms/actions/workflows/code-quality.yml/badge.svg)](https://github.com/harness-software/wp-graphql-gravity-forms/actions/workflows/code-quality.yml) [![Schema Linter](https://github.com/harness-software/wp-graphql-gravity-forms/actions/workflows/schema-linter.yml/badge.svg)](https://github.com/harness-software/wp-graphql-gravity-forms/actions/workflows/schema-linter.yml)

* [Join the WPGraphQL community on Slack.](https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA)
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phpstan/constants.php
Expand Up @@ -6,4 +6,4 @@
define( 'WPGRAPHQL_GF_AUTOLOAD', true );
define( 'CRGEARY_JAMSTACK_DEPLOYMENTS_OPTIONS_KEY', 'wp-jamstack-deployments' );
define( 'WPGRAPHQL_GF_PLUGIN_FILE', 'wp-graphql-gravity-forms.php' );
define( 'WPGRAPHQL_GF_VERSION', '0.12.1' );
define( 'WPGRAPHQL_GF_VERSION', '0.12.2' );
8 changes: 4 additions & 4 deletions readme.txt
@@ -1,12 +1,12 @@
=== WPGraphQL for Gravity Forms ===
Contributors: kellenmace, mtdbyanechko, justlevine, tinytoolbox
Tags: GraphQL, Gatsby, Headless, GF, Gravity, Forms, WPGraphQL,
Contributors: justlevine, kellenmace, mtdbyanechko, tinytoolbox
Tags: Forms, GraphQL, Gatsby, Headless, GF, Gravity, WPGraphQL, React
Requires at least: 5.4.1
Tested up to: 6.2
Tested up to: 6.2.2
Requires PHP: 7.4
Requires Gravity Forms: 2.5.0
Requires WPGraphQL: 1.9.0
Stable tag: 0.12.1
Stable tag: 0.12.2
Maintained at: https://github.com/harness-software/wp-graphql-gravity-forms
License: GPL-3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Expand Down
2 changes: 1 addition & 1 deletion src/Registry/FieldChoiceRegistry.php
Expand Up @@ -27,7 +27,7 @@ class FieldChoiceRegistry {
*
* Used to prevent duplicate type registration.
*
* @since 0.12.1
* @since 0.12.2
*
* @var array
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Registry/FieldInputRegistry.php
Expand Up @@ -27,7 +27,7 @@ class FieldInputRegistry {
*
* Used to prevent duplicate type registration.
*
* @since 0.12.1
* @since 0.12.2
*
* @var array
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Utils/Utils.php
Expand Up @@ -322,10 +322,10 @@ public static function get_ignored_gf_settings(): array {
/**
* Gets the entry databaseId from an indeterminate GraphQL ID.
*
* @since @todo
*
* @param int|string $id .
* @throws \GraphQL\Error\UserError .
*
* @since 0.12.2
*/
public static function get_entry_id_from_id( $id ): int {
return self::get_database_id_from_id( $id, EntriesLoader::$name );
Expand All @@ -334,10 +334,10 @@ public static function get_entry_id_from_id( $id ): int {
/**
* Gets the entry databaseId from an indeterminate GraphQL ID.
*
* @since @todo
*
* @param int|string $id .
* @throws \GraphQL\Error\UserError .
*
* @since 0.12.2
*/
public static function get_form_id_from_id( $id ): int {
return self::get_database_id_from_id( $id, FormsLoader::$name );
Expand All @@ -346,8 +346,8 @@ public static function get_form_id_from_id( $id ): int {
/**
* Gets the databaseId from an indeterminate GraphQL ID, ensuring it's the correct type.
*
* @since @todo
*
* @since 0.12.2
*
* @param int|string $id The provided ID.
* @param string $type The expected dataloader type.
*
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Expand Up @@ -3,7 +3,7 @@
'name' => 'harness-software/wp-graphql-gravity-forms',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'reference' => 'fae94d402f424d14d5d9e2d93dce0f6303e24844',
'reference' => 'aabf28139ef116405967dcd5eb4542929781aeda',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'harness-software/wp-graphql-gravity-forms' => array(
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'reference' => 'fae94d402f424d14d5d9e2d93dce0f6303e24844',
'reference' => 'aabf28139ef116405967dcd5eb4542929781aeda',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
6 changes: 3 additions & 3 deletions wp-graphql-gravity-forms.php
Expand Up @@ -7,11 +7,11 @@
* Author: Harness Software
* Author URI: https://www.harnessup.com
* Update URI: https://github.com/harness-software/wp-graphql-gravity-forms/releases
* Version: 0.12.1
* Version: 0.12.2
* Text Domain: wp-graphql-gravity-forms
* Domain Path: /languages
* Requires at least: 5.4.1
* Tested up to: 6.2
* Tested up to: 6.2.2
* Requires PHP: 7.4
* WPGraphQL requires at least: 1.9.0
* GravityForms requires at least: 2.5.0
Expand All @@ -35,7 +35,7 @@
function gf_graphql_constants() : void {
// Plugin version.
if ( ! defined( 'WPGRAPHQL_GF_VERSION' ) ) {
define( 'WPGRAPHQL_GF_VERSION', '0.12.1' );
define( 'WPGRAPHQL_GF_VERSION', '0.12.2' );
}

// Plugin Folder Path.
Expand Down

0 comments on commit 388b4f3

Please sign in to comment.