diff --git a/.changeset/bright-bees-press.md b/.changeset/bright-bees-press.md deleted file mode 100644 index 4b860cc6c..000000000 --- a/.changeset/bright-bees-press.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@headstartwp/core": patch -"@headstartwp/next": patch ---- - -Lower compilation target diff --git a/.changeset/bright-jokes-learn.md b/.changeset/bright-jokes-learn.md deleted file mode 100644 index 176119258..000000000 --- a/.changeset/bright-jokes-learn.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@headstartwp/core": patch ---- - -Fix theme.json handling in `useBlockColors` and `useBlockTypography`. - -Thanks @riccardodicurti @dhamibirendra for [the bug report](https://github.com/10up/headstartwp/issues/541). diff --git a/.changeset/curly-apricots-stare.md b/.changeset/curly-apricots-stare.md deleted file mode 100644 index 1c9c622b5..000000000 --- a/.changeset/curly-apricots-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/next": patch ---- - -Fix: only convertUrls if url starts with sourceUrl diff --git a/.changeset/gentle-clouds-taste.md b/.changeset/gentle-clouds-taste.md deleted file mode 100644 index c15a0a43d..000000000 --- a/.changeset/gentle-clouds-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/next": patch ---- - -Fix typo in files to be published to npm diff --git a/.changeset/good-papayas-laugh.md b/.changeset/good-papayas-laugh.md deleted file mode 100644 index 807155d3b..000000000 --- a/.changeset/good-papayas-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/core": patch ---- - -Fixes useSearch error when Yoast SEO plugin is deactivated. diff --git a/.changeset/hot-papayas-relate.md b/.changeset/hot-papayas-relate.md deleted file mode 100644 index 4483c7a09..000000000 --- a/.changeset/hot-papayas-relate.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@headstartwp/core": minor -"@headstartwp/next": minor ---- - -Introducing `usePostOrPosts`. diff --git a/.changeset/lovely-chicken-sparkle.md b/.changeset/lovely-chicken-sparkle.md deleted file mode 100644 index be5c587f1..000000000 --- a/.changeset/lovely-chicken-sparkle.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@headstartwp/next": minor -"@headstartwp/headstartwp": patch -"@headstartwp/core": patch ---- - -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). diff --git a/.changeset/mighty-stingrays-pay.md b/.changeset/mighty-stingrays-pay.md deleted file mode 100644 index f1b222387..000000000 --- a/.changeset/mighty-stingrays-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/core": minor ---- - -Introduces `SafeHtml` and `HtmlDecoder` components. diff --git a/.changeset/popular-turkeys-sleep.md b/.changeset/popular-turkeys-sleep.md deleted file mode 100644 index 41538dba9..000000000 --- a/.changeset/popular-turkeys-sleep.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/core": minor ---- - -Introducing the `useSeo` hook. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 8772f19c7..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "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-bees-press", - "bright-jokes-learn", - "curly-apricots-stare", - "gentle-clouds-taste", - "good-papayas-laugh", - "hot-papayas-relate", - "lovely-chicken-sparkle", - "mighty-stingrays-pay", - "popular-turkeys-sleep", - "proud-dryers-repeat", - "silent-kiwis-compare", - "tame-squids-fail", - "two-cats-vanish" - ] -} diff --git a/.changeset/proud-dryers-repeat.md b/.changeset/proud-dryers-repeat.md deleted file mode 100644 index 26a01a43d..000000000 --- a/.changeset/proud-dryers-repeat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/core": patch ---- - -Fix theme.json handling for block settings diff --git a/.changeset/silent-kiwis-compare.md b/.changeset/silent-kiwis-compare.md deleted file mode 100644 index 802583fb2..000000000 --- a/.changeset/silent-kiwis-compare.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@headstartwp/core": patch -"@headstartwp/next": patch ---- - -Further Optimize next.js props by removing yoast seo bloat. diff --git a/.changeset/tame-squids-fail.md b/.changeset/tame-squids-fail.md deleted file mode 100644 index afc38e0db..000000000 --- a/.changeset/tame-squids-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/next": patch ---- - -Fix an annoying bug that would require deleting the .next/cache folder after changing headless.config.js or .env files. Now you only need to restart the next.js server after changing those files. diff --git a/.changeset/two-cats-vanish.md b/.changeset/two-cats-vanish.md deleted file mode 100644 index b63ce069a..000000000 --- a/.changeset/two-cats-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@headstartwp/core": minor ---- - -Introduces the `decodeHtmlSpecialChars` function. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index f59f14e16..d1bcfc928 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,31 @@ # @headstartwp/core +## 1.1.0 + +### Minor Changes + +- 4275962b: Introducing `usePostOrPosts`. +- df3e65ce: Introduces `SafeHtml` and `HtmlDecoder` components. +- e9064d69: Introducing the `useSeo` hook. +- d3ec9d83: Introduces the `decodeHtmlSpecialChars` function. + +### Patch Changes + +- e6a0c231: Lower compilation target +- 24f8a99f: Fix theme.json handling in `useBlockColors` and `useBlockTypography`. + + Thanks @riccardodicurti @dhamibirendra for [the bug report](https://github.com/10up/headstartwp/issues/541). + +- bb39a603: Fixes useSearch error when Yoast SEO plugin is deactivated. +- 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). + +- 56ddf9be: Fix theme.json handling for block settings +- 1494a332: Further Optimize next.js props by removing yoast seo bloat. + ## 1.1.0-next.5 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index d89680d86..4417c9df8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@headstartwp/core", - "version": "1.1.0-next.5", + "version": "1.1.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", diff --git a/packages/next/CHANGELOG.md b/packages/next/CHANGELOG.md index 2ee83604f..d3856bd7d 100644 --- a/packages/next/CHANGELOG.md +++ b/packages/next/CHANGELOG.md @@ -1,5 +1,35 @@ # @headstartwp/next +## 1.1.0 + +### Minor Changes + +- 4275962b: Introducing `usePostOrPosts`. +- 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 + +- e6a0c231: Lower compilation target +- 232f4e68: Fix: only convertUrls if url starts with sourceUrl +- 90d5fa3c: Fix typo in files to be published to npm +- 1494a332: Further Optimize next.js props by removing yoast seo bloat. +- 866551f2: Fix an annoying bug that would require deleting the .next/cache folder after changing headless.config.js or .env files. Now you only need to restart the next.js server after changing those files. +- Updated dependencies [e6a0c231] +- Updated dependencies [24f8a99f] +- Updated dependencies [bb39a603] +- Updated dependencies [4275962b] +- Updated dependencies [569662b6] +- Updated dependencies [df3e65ce] +- Updated dependencies [e9064d69] +- Updated dependencies [56ddf9be] +- Updated dependencies [1494a332] +- Updated dependencies [d3ec9d83] + - @headstartwp/core@1.1.0 + ## 1.1.0-next.3 ### Minor Changes diff --git a/packages/next/package.json b/packages/next/package.json index a0da1e892..081eb0a07 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -1,6 +1,6 @@ { "name": "@headstartwp/next", - "version": "1.1.0-next.3", + "version": "1.1.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", @@ -49,7 +49,7 @@ }, "dependencies": { "deepmerge": "^4.3.1", - "@headstartwp/core": "^1.1.0-next.4", + "@headstartwp/core": "^1.1.0", "modify-source-webpack-plugin": "^4.1.0", "loader-utils": "^3.2.0", "schema-utils": "^4.0.0" diff --git a/projects/wp-multisite-i18n-nextjs/package.json b/projects/wp-multisite-i18n-nextjs/package.json index ad98cd67a..bd413ef18 100644 --- a/projects/wp-multisite-i18n-nextjs/package.json +++ b/projects/wp-multisite-i18n-nextjs/package.json @@ -14,8 +14,8 @@ "lint": "eslint ." }, "dependencies": { - "@headstartwp/core": "^1.1.0-next.5", - "@headstartwp/next": "^1.1.0-next.3", + "@headstartwp/core": "^1.1.0", + "@headstartwp/next": "^1.1.0", "@linaria/babel-preset": "^4.4.5", "@linaria/core": "^4.2.10", "@linaria/react": "^4.3.8", diff --git a/projects/wp-multisite-nextjs/package.json b/projects/wp-multisite-nextjs/package.json index 992ea7d8c..bbf9d4379 100644 --- a/projects/wp-multisite-nextjs/package.json +++ b/projects/wp-multisite-nextjs/package.json @@ -14,8 +14,8 @@ "lint": "eslint ." }, "dependencies": { - "@headstartwp/core": "^1.1.0-next.5", - "@headstartwp/next": "^1.1.0-next.3", + "@headstartwp/core": "^1.1.0", + "@headstartwp/next": "^1.1.0", "@linaria/babel-preset": "^4.4.5", "@linaria/core": "^4.2.10", "@linaria/react": "^4.3.8", diff --git a/projects/wp-nextjs-ts/package.json b/projects/wp-nextjs-ts/package.json index b13a9fd29..a4ce7e92d 100644 --- a/projects/wp-nextjs-ts/package.json +++ b/projects/wp-nextjs-ts/package.json @@ -14,8 +14,8 @@ "lint": "eslint ." }, "dependencies": { - "@headstartwp/core": "^1.1.0-next.5", - "@headstartwp/next": "^1.1.0-next.3", + "@headstartwp/core": "^1.1.0", + "@headstartwp/next": "^1.1.0", "@linaria/babel-preset": "^4.4.5", "@linaria/core": "^4.2.10", "@linaria/react": "^4.3.8", diff --git a/projects/wp-nextjs/package.json b/projects/wp-nextjs/package.json index 1e83a070e..366d4dd17 100644 --- a/projects/wp-nextjs/package.json +++ b/projects/wp-nextjs/package.json @@ -14,8 +14,8 @@ "lint": "eslint ." }, "dependencies": { - "@headstartwp/core": "^1.1.0-next.5", - "@headstartwp/next": "^1.1.0-next.3", + "@headstartwp/core": "^1.1.0", + "@headstartwp/next": "^1.1.0", "@10up/next-redis-cache-provider": "^0.1.5", "@linaria/babel-preset": "^4.4.5", "@linaria/core": "^4.2.10", diff --git a/wp/headless-wp/CHANGELOG.md b/wp/headless-wp/CHANGELOG.md index 73ae8e38f..62aac2a54 100644 --- a/wp/headless-wp/CHANGELOG.md +++ b/wp/headless-wp/CHANGELOG.md @@ -1,5 +1,15 @@ # @headstartwp/headstartwp +## 1.0.9 + +### 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.9-next.0 ### Patch Changes diff --git a/wp/headless-wp/package.json b/wp/headless-wp/package.json index 206298aa1..eaf854b59 100644 --- a/wp/headless-wp/package.json +++ b/wp/headless-wp/package.json @@ -1,6 +1,6 @@ { "name": "@headstartwp/headstartwp", - "version": "1.0.9-next.0", + "version": "1.0.9", "private": true, "description": "10up Headless WordPress Plugin", "homepage": "https://github.com/10up/headstartwp/blob/develop/wp/headless-wp/README.md",