create-puck-app 0.17.0-canary.fcdf346 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-puck-app",
3
- "version": "0.17.0-canary.fcdf346",
3
+ "version": "0.17.0",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -4,7 +4,7 @@ The `next` recipe showcases one of the most powerful ways to implement Puck usin
4
4
 
5
5
  ## Demonstrates
6
6
 
7
- - Next.js 13 App Router implementation
7
+ - Next.js App Router implementation
8
8
  - JSON database implementation with HTTP API
9
9
  - Catch-all routes to use puck for any route on the platform
10
10
  - Incremental static regeneration (ISR) for all Puck pages
@@ -16,10 +16,11 @@ import { Metadata } from "next";
16
16
  import { getPage } from "../../lib/get-page";
17
17
 
18
18
  export async function generateMetadata({
19
- params: { puckPath = [] },
19
+ params,
20
20
  }: {
21
- params: { puckPath: string[] };
21
+ params: Promise<{ puckPath: string[] }>;
22
22
  }): Promise<Metadata> {
23
+ const { puckPath = [] } = await params;
23
24
  const path = `/${puckPath.join("/")}`;
24
25
 
25
26
  return {
@@ -28,10 +29,11 @@ export async function generateMetadata({
28
29
  }
29
30
 
30
31
  export default async function Page({
31
- params: { puckPath = [] },
32
+ params,
32
33
  }: {
33
- params: { puckPath: string[] };
34
+ params: Promise<{ puckPath: string[] }>;
34
35
  }) {
36
+ const { puckPath = [] } = await params;
35
37
  const path = `/${puckPath.join("/")}`;
36
38
  const data = getPage(path);
37
39
 
@@ -17,10 +17,11 @@ import { Metadata } from "next";
17
17
  import { getPage } from "../../../lib/get-page";
18
18
 
19
19
  export async function generateMetadata({
20
- params: { puckPath = [] },
20
+ params,
21
21
  }: {
22
- params: { puckPath: string[] };
22
+ params: Promise<{ puckPath: string[] }>;
23
23
  }): Promise<Metadata> {
24
+ const { puckPath = [] } = await params;
24
25
  const path = `/${puckPath.join("/")}`;
25
26
 
26
27
  return {
@@ -29,10 +30,11 @@ export async function generateMetadata({
29
30
  }
30
31
 
31
32
  export default async function Page({
32
- params: { puckPath = [] },
33
+ params,
33
34
  }: {
34
- params: { puckPath: string[] };
35
+ params: Promise<{ puckPath: string[] }>;
35
36
  }) {
37
+ const { puckPath = [] } = await params;
36
38
  const path = `/${puckPath.join("/")}`;
37
39
  const data = getPage(path);
38
40
 
@@ -2,4 +2,4 @@
2
2
  /// <reference types="next/image-types/global" />
3
3
 
4
4
  // NOTE: This file should not be edited
5
- // see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5
+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
@@ -11,14 +11,14 @@
11
11
  "dependencies": {
12
12
  "@measured/puck": "{{puckVersion}}",
13
13
  "classnames": "^2.3.2",
14
- "next": "^14.2.11",
15
- "react": "^18.2.0",
16
- "react-dom": "^18.2.0"
14
+ "next": "^15.1.0",
15
+ "react": "^19.0.0",
16
+ "react-dom": "^19.0.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^17.0.12",
20
- "@types/react": "^18.0.22",
21
- "@types/react-dom": "^18.0.7",
20
+ "@types/react": "^19.0.1",
21
+ "@types/react-dom": "^19.0.2",
22
22
  "eslint-config-custom": "*",
23
23
  "typescript": "^5.5.4"
24
24
  }