Skip to content

Commit

Permalink
get ready for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBarnes committed Oct 25, 2021
1 parent 841887f commit 5490d94
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 2.0.0

We finalized support for Gatsby Cloud Content Sync Previews in this release. Content Sync is a Gatsby Cloud preview loader. Previously preview loading was handled within this plugin but we removed support for the legacy preview loader as the support burden for keeping the old and new preview methods around would be too much. Gatsby Cloud Content Sync is far more reliable than WPGatsby's preview loader as it has more context on the Gatsby build process.

For Content Sync to work you will need to upgrade to the latest version of `gatsby-source-wordpress` and either the latest `3.0.0` or `4.0.0` version of Gatsby core.

In addition this release comes with some bug fixes:

- Fixed double instantiation of ActionMonitor classes which caused double webhooks and potentially double saving of data in some cases.
- Makes preview routing more reliable by simplifying our logic and adding a `gatsby_preview=true` param to all preview links. For some users every second preview would fail to correctly route to the preview template. This is now fixed.

## 1.1.3

- The uri field was being overwritten during GraphQL requests, resulting in post uri's that included the content sync URL.
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: Gatsby, GatsbyJS, JavaScript, JAMStack, Static Site generator, GraphQL, He
Requires at least: 5.4.2
Tested up to: 5.6
Requires PHP: 7.3
Stable tag: 1.1.3
Stable tag: 2.0.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
4 changes: 2 additions & 2 deletions wp-gatsby.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: WP Gatsby
* Description: Optimize your WordPress site to be a source for Gatsby sites.
* Version: 1.1.3
* Version: 2.0.0
* Author: GatsbyJS, Jason Bahl, Tyler Barnes
* Author URI: https://gatsbyjs.org
* Text Domain: wp-gatsby
Expand Down Expand Up @@ -103,7 +103,7 @@ private function setup_constants()
{
// Plugin version.
if (! defined('WPGATSBY_VERSION') ) {
define('WPGATSBY_VERSION', '1.1.3');
define('WPGATSBY_VERSION', '2.0.0');
}

// Plugin Folder Path.
Expand Down

0 comments on commit 5490d94

Please sign in to comment.