Skip to content

Commit

Permalink
chore: version packages (next)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 11, 2023
1 parent 569662b commit 4a2ff3c
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 14 deletions.
22 changes: 22 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@headstartwp/core": "1.0.6",
"@10up/react-hooks": "1.2.3",
"@headstartwp/next": "1.0.6",
"@10up/next-redis-cache-provider": "0.1.5",
"@10up/headless-docs": "1.0.0",
"@10up/wp-multisite-i18n-nextjs": "0.2.0",
"@10up/wp-multisite-nextjs": "0.2.0",
"@10up/wp-nextjs": "0.2.0",
"@10up/wp-nextjs-ts": "0.2.1-next.2",
"@headstartwp/headstartwp": "1.0.8"
},
"changesets": [
"bright-jokes-learn",
"lovely-chicken-sparkle",
"mighty-stingrays-pay",
"two-cats-vanish"
]
}
19 changes: 19 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @headstartwp/core

## 1.1.0-next.0

### Minor Changes

- df3e65ce: Introduces `SafeHtml` and `HtmlDecoder` components.
- d3ec9d83: Introduces the `decodeHtmlSpecialChars` function.

### Patch Changes

- 24f8a99f: Fix theme.json handling in `useBlockColors` and `useBlockTypography`.

Thanks @riccardodicurti @dhamibirendra for [the bug report](https://github.com/10up/headstartwp/issues/541).

- 569662b6: Improves the Next.js preview cookie handling and fixes a bug where the locale was not properly being passed from WP when previewing.

First of all, it sets the preview cookie to expire within 5 minutes which aligns with the JWT token expiration.

Secondly, it will narrow the cookie to the post path being previewed so that `context.preview` is not true for other paths and thus avoiding bypassing getStaticProps until the cookies are cleared (either expires or the browser closes).

## 1.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@headstartwp/core",
"version": "1.0.6",
"version": "1.1.0-next.0",
"description": "`@headstartwp/core` is the core package that houses framework-agnostic components and utilities for building headless sites with WordPress.",
"homepage": "https://github.com/10up/headstartwp/blob/develop/packages/core/README.md",
"license": "MIT",
Expand Down
18 changes: 18 additions & 0 deletions packages/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @headstartwp/next

## 1.1.0-next.0

### Minor Changes

- 569662b6: Improves the Next.js preview cookie handling and fixes a bug where the locale was not properly being passed from WP when previewing.

First of all, it sets the preview cookie to expire within 5 minutes which aligns with the JWT token expiration.

Secondly, it will narrow the cookie to the post path being previewed so that `context.preview` is not true for other paths and thus avoiding bypassing getStaticProps until the cookies are cleared (either expires or the browser closes).

### Patch Changes

- Updated dependencies [24f8a99f]
- Updated dependencies [569662b6]
- Updated dependencies [df3e65ce]
- Updated dependencies [d3ec9d83]
- @headstartwp/core@1.1.0-next.0

## 1.0.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@headstartwp/next",
"version": "1.0.6",
"version": "1.1.0-next.0",
"description": "`@headstartwp/next` is the Next.js bindings for the headless framework.",
"homepage": "https://github.com/10up/headstartwp/blob/develop/packages/next/README.md",
"license": "MIT",
Expand Down Expand Up @@ -48,7 +48,7 @@
"lint": "eslint src"
},
"dependencies": {
"@headstartwp/core": "^1.0.5",
"@headstartwp/core": "^1.1.0-next.0",
"modify-source-webpack-plugin": "^4.1.0",
"loader-utils": "^3.2.0",
"schema-utils": "^4.0.0"
Expand Down
4 changes: 2 additions & 2 deletions projects/wp-multisite-i18n-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"lint": "eslint ."
},
"dependencies": {
"@headstartwp/core": "^1.0.6",
"@headstartwp/next": "^1.0.6",
"@headstartwp/core": "^1.1.0-next.0",
"@headstartwp/next": "^1.1.0-next.0",
"@linaria/babel-preset": "^4.4.5",
"@linaria/core": "^4.2.10",
"@linaria/react": "^4.3.8",
Expand Down
4 changes: 2 additions & 2 deletions projects/wp-multisite-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"lint": "eslint ."
},
"dependencies": {
"@headstartwp/core": "^1.0.6",
"@headstartwp/next": "^1.0.6",
"@headstartwp/core": "^1.1.0-next.0",
"@headstartwp/next": "^1.1.0-next.0",
"@linaria/babel-preset": "^4.4.5",
"@linaria/core": "^4.2.10",
"@linaria/react": "^4.3.8",
Expand Down
4 changes: 2 additions & 2 deletions projects/wp-nextjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"lint": "eslint ."
},
"dependencies": {
"@headstartwp/core": "^1.0.6",
"@headstartwp/next": "^1.0.6",
"@headstartwp/core": "^1.1.0-next.0",
"@headstartwp/next": "^1.1.0-next.0",
"@linaria/babel-preset": "^4.4.5",
"@linaria/core": "^4.2.10",
"@linaria/react": "^4.3.8",
Expand Down
4 changes: 2 additions & 2 deletions projects/wp-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"lint": "eslint ."
},
"dependencies": {
"@headstartwp/core": "^1.0.6",
"@headstartwp/next": "^1.0.6",
"@headstartwp/core": "^1.1.0-next.0",
"@headstartwp/next": "^1.1.0-next.0",
"@10up/next-redis-cache-provider": "^0.1.5",
"@linaria/babel-preset": "^4.4.5",
"@linaria/core": "^4.2.10",
Expand Down
10 changes: 10 additions & 0 deletions wp/headless-wp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @headstartwp/headstartwp

## 1.0.9-next.0

### Patch Changes

- 569662b6: Improves the Next.js preview cookie handling and fixes a bug where the locale was not properly being passed from WP when previewing.

First of all, it sets the preview cookie to expire within 5 minutes which aligns with the JWT token expiration.

Secondly, it will narrow the cookie to the post path being previewed so that `context.preview` is not true for other paths and thus avoiding bypassing getStaticProps until the cookies are cleared (either expires or the browser closes).

## 1.0.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion wp/headless-wp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@headstartwp/headstartwp",
"version": "1.0.8",
"version": "1.0.9-next.0",
"private": true,
"description": "10up Headless WordPress Plugin",
"homepage": "https://github.com/10up/headstartwp/blob/develop/wp/headless-wp/README.md",
Expand Down
4 changes: 2 additions & 2 deletions wp/headless-wp/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: HeadstartWP
* Plugin URI: https://github.com/10up/headstartwp-plugin
* Description: Adds functionality to the WordPress admin and REST API for 10up's headless framework.
* Version: 1.0.8
* Version: 1.0.9-next.0
* Author: 10up
* Author URI: https://10up.com
* Text Domain: headstartwp
Expand All @@ -17,7 +17,7 @@
use HeadlessWP\Preview\PreviewToken;

// Useful global constants.
define( 'HEADLESS_WP_PLUGIN_VERSION', '1.0.8' );
define( 'HEADLESS_WP_PLUGIN_VERSION', '1.0.9-next.0' );
define( 'HEADLESS_WP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'HEADLESS_WP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'HEADLESS_WP_PLUGIN_INC', HEADLESS_WP_PLUGIN_PATH . 'includes/' );
Expand Down

0 comments on commit 4a2ff3c

Please sign in to comment.