diff --git a/.changeset/short-steaks-bow.md b/.changeset/short-steaks-bow.md deleted file mode 100644 index 6a4303a9f..000000000 --- a/.changeset/short-steaks-bow.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@headstartwp/next": patch -"@headstartwp/core": patch ---- - -Fix: Improve types for better page props type inference. - -It also updates types for data fetching hooks to better reflect the fact that `data` is treated as though it is always there and if users do not check for `loading` or `error` by themselves and there's no preloaded data, a runtime fatal error will be issued instead. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 4cc39f9c2..97275e1a7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,13 @@ # @headstartwp/core +## 1.4.4 + +### Patch Changes + +- f6e005c: Fix: Improve types for better page props type inference. + + It also updates types for data fetching hooks to better reflect the fact that `data` is treated as though it is always there and if users do not check for `loading` or `error` by themselves and there's no preloaded data, a runtime fatal error will be issued instead. + ## 1.4.3 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 73f3e29a5..ab8fcc9c4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@headstartwp/core", - "version": "1.4.3", + "version": "1.4.4", "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 26ddcba87..f913acb08 100644 --- a/packages/next/CHANGELOG.md +++ b/packages/next/CHANGELOG.md @@ -1,5 +1,16 @@ # @headstartwp/next +## 1.4.3 + +### Patch Changes + +- f6e005c: Fix: Improve types for better page props type inference. + + It also updates types for data fetching hooks to better reflect the fact that `data` is treated as though it is always there and if users do not check for `loading` or `error` by themselves and there's no preloaded data, a runtime fatal error will be issued instead. + +- Updated dependencies [f6e005c] + - @headstartwp/core@1.4.4 + ## 1.4.2 ### Patch Changes diff --git a/packages/next/package.json b/packages/next/package.json index a2f3e4c7a..f28870f4b 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -1,6 +1,6 @@ { "name": "@headstartwp/next", - "version": "1.4.2", + "version": "1.4.3", "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", @@ -50,7 +50,7 @@ }, "dependencies": { "deepmerge": "^4.3.1", - "@headstartwp/core": "^1.4.3", + "@headstartwp/core": "^1.4.4", "loader-utils": "^3.2.0", "schema-utils": "^4.0.0", "@isaacs/ttlcache": "^1.4.1" diff --git a/projects/wp-multisite-i18n-nextjs/package.json b/projects/wp-multisite-i18n-nextjs/package.json index bbfdfa40c..99f163633 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.4.3", - "@headstartwp/next": "^1.4.2", + "@headstartwp/core": "^1.4.4", + "@headstartwp/next": "^1.4.3", "@linaria/core": "^5.0.2", "@linaria/react": "^5.0.3", "clsx": "^1.1.1", diff --git a/projects/wp-multisite-nextjs/package.json b/projects/wp-multisite-nextjs/package.json index 02f5fa3d2..b0e5cc05d 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.4.3", - "@headstartwp/next": "^1.4.2", + "@headstartwp/core": "^1.4.4", + "@headstartwp/next": "^1.4.3", "@linaria/core": "^5.0.2", "@linaria/react": "^5.0.3", "clsx": "^1.1.1", diff --git a/projects/wp-nextjs/package.json b/projects/wp-nextjs/package.json index 1e6d22138..0279cede8 100644 --- a/projects/wp-nextjs/package.json +++ b/projects/wp-nextjs/package.json @@ -15,14 +15,14 @@ "tsc": "tsc --noEmit" }, "dependencies": { - "@headstartwp/core": "^1.4.3", - "@headstartwp/next": "^1.4.2", + "@headstartwp/core": "^1.4.4", + "@headstartwp/next": "^1.4.3", "@10up/next-redis-cache-provider": "^1.0.0", "@linaria/core": "^5.0.2", "@linaria/react": "^5.0.3", "clsx": "^1.1.1", "next": "^14.1.0", - "nprogress": "^0.2.0", + "nprogress": "^0.2.0", "react": "^18.2.0", "react-dom": "^18.2.0" },