From 055bf46ff73d436908546b6db9238230f0a3db08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 24 Oct 2025 21:34:42 +0000 Subject: [PATCH] templates: bump templates for v3.61.1 --- templates/with-cloudflare-d1/package.json | 12 ++++---- templates/with-postgres/package.json | 12 ++++---- ...tial.json => 20251024_213307_initial.json} | 2 +- ..._initial.ts => 20251024_213307_initial.ts} | 0 .../with-postgres/src/migrations/index.ts | 8 ++--- templates/with-vercel-mongodb/package.json | 16 +++++----- templates/with-vercel-postgres/package.json | 16 +++++----- ...tial.json => 20251024_213226_initial.json} | 2 +- ..._initial.ts => 20251024_213226_initial.ts} | 0 .../src/migrations/index.ts | 8 ++--- templates/with-vercel-website/package.json | 30 +++++++++---------- .../src/app/(frontend)/[slug]/page.tsx | 11 ++++--- .../src/app/(frontend)/posts/[slug]/page.tsx | 10 +++++-- ...tial.json => 20251024_213247_initial.json} | 2 +- ..._initial.ts => 20251024_213247_initial.ts} | 0 .../src/migrations/index.ts | 8 ++--- .../src/utilities/generatePreviewPath.ts | 7 +++-- 17 files changed, 77 insertions(+), 67 deletions(-) rename templates/with-postgres/src/migrations/{20251009_155521_initial.json => 20251024_213307_initial.json} (99%) rename templates/with-postgres/src/migrations/{20251009_155521_initial.ts => 20251024_213307_initial.ts} (100%) rename templates/with-vercel-postgres/src/migrations/{20251009_155439_initial.json => 20251024_213226_initial.json} (99%) rename templates/with-vercel-postgres/src/migrations/{20251009_155439_initial.ts => 20251024_213226_initial.ts} (100%) rename templates/with-vercel-website/src/migrations/{20251009_155501_initial.json => 20251024_213247_initial.json} (99%) rename templates/with-vercel-website/src/migrations/{20251009_155501_initial.ts => 20251024_213247_initial.ts} (100%) diff --git a/templates/with-cloudflare-d1/package.json b/templates/with-cloudflare-d1/package.json index 126bd27cf07..dd15e61c7fa 100644 --- a/templates/with-cloudflare-d1/package.json +++ b/templates/with-cloudflare-d1/package.json @@ -26,16 +26,16 @@ }, "dependencies": { "@opennextjs/cloudflare": "^1.6.5", - "@payloadcms/db-d1-sqlite": "3.59.1", - "@payloadcms/next": "3.59.1", - "@payloadcms/richtext-lexical": "3.59.1", - "@payloadcms/storage-r2": "3.59.1", - "@payloadcms/ui": "3.59.1", + "@payloadcms/db-d1-sqlite": "3.61.1", + "@payloadcms/next": "3.61.1", + "@payloadcms/richtext-lexical": "3.61.1", + "@payloadcms/storage-r2": "3.61.1", + "@payloadcms/ui": "3.61.1", "cross-env": "^7.0.3", "dotenv": "16.4.7", "graphql": "^16.8.1", "next": "15.4.4", - "payload": "3.59.1", + "payload": "3.61.1", "react": "19.1.0", "react-dom": "19.1.0" }, diff --git a/templates/with-postgres/package.json b/templates/with-postgres/package.json index 380d9578dbb..79a65c575f5 100644 --- a/templates/with-postgres/package.json +++ b/templates/with-postgres/package.json @@ -19,15 +19,15 @@ "test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts" }, "dependencies": { - "@payloadcms/db-postgres": "3.59.1", - "@payloadcms/next": "3.59.1", - "@payloadcms/payload-cloud": "3.59.1", - "@payloadcms/richtext-lexical": "3.59.1", - "@payloadcms/ui": "3.59.1", + "@payloadcms/db-postgres": "3.61.1", + "@payloadcms/next": "3.61.1", + "@payloadcms/payload-cloud": "3.61.1", + "@payloadcms/richtext-lexical": "3.61.1", + "@payloadcms/ui": "3.61.1", "cross-env": "^7.0.3", "graphql": "^16.8.1", "next": "15.4.4", - "payload": "3.59.1", + "payload": "3.61.1", "react": "19.1.0", "react-dom": "19.1.0", "sharp": "0.34.2" diff --git a/templates/with-postgres/src/migrations/20251009_155521_initial.json b/templates/with-postgres/src/migrations/20251024_213307_initial.json similarity index 99% rename from templates/with-postgres/src/migrations/20251009_155521_initial.json rename to templates/with-postgres/src/migrations/20251024_213307_initial.json index 33b12ccbd01..848e7cdcdb0 100644 --- a/templates/with-postgres/src/migrations/20251009_155521_initial.json +++ b/templates/with-postgres/src/migrations/20251024_213307_initial.json @@ -1,5 +1,5 @@ { - "id": "26587b23-7412-4cee-88bc-555f1511ca75", + "id": "816f3c50-d7c3-4823-b2c4-08d6bf347839", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", diff --git a/templates/with-postgres/src/migrations/20251009_155521_initial.ts b/templates/with-postgres/src/migrations/20251024_213307_initial.ts similarity index 100% rename from templates/with-postgres/src/migrations/20251009_155521_initial.ts rename to templates/with-postgres/src/migrations/20251024_213307_initial.ts diff --git a/templates/with-postgres/src/migrations/index.ts b/templates/with-postgres/src/migrations/index.ts index de5b1457cac..35207f5dc2b 100644 --- a/templates/with-postgres/src/migrations/index.ts +++ b/templates/with-postgres/src/migrations/index.ts @@ -1,9 +1,9 @@ -import * as migration_20251009_155521_initial from './20251009_155521_initial' +import * as migration_20251024_213307_initial from './20251024_213307_initial' export const migrations = [ { - up: migration_20251009_155521_initial.up, - down: migration_20251009_155521_initial.down, - name: '20251009_155521_initial', + up: migration_20251024_213307_initial.up, + down: migration_20251024_213307_initial.down, + name: '20251024_213307_initial', }, ] diff --git a/templates/with-vercel-mongodb/package.json b/templates/with-vercel-mongodb/package.json index d1742631971..0128fa9a8be 100644 --- a/templates/with-vercel-mongodb/package.json +++ b/templates/with-vercel-mongodb/package.json @@ -18,16 +18,16 @@ "test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts" }, "dependencies": { - "@payloadcms/db-mongodb": "3.59.1", - "@payloadcms/next": "3.59.1", - "@payloadcms/payload-cloud": "3.59.1", - "@payloadcms/richtext-lexical": "3.59.1", - "@payloadcms/storage-vercel-blob": "3.59.1", - "@payloadcms/ui": "3.59.1", + "@payloadcms/db-mongodb": "3.61.1", + "@payloadcms/next": "3.61.1", + "@payloadcms/payload-cloud": "3.61.1", + "@payloadcms/richtext-lexical": "3.61.1", + "@payloadcms/storage-vercel-blob": "3.61.1", + "@payloadcms/ui": "3.61.1", "cross-env": "^7.0.3", "graphql": "^16.8.1", "next": "15.4.4", - "payload": "3.59.1", + "payload": "3.61.1", "react": "19.1.0", "react-dom": "19.1.0" }, @@ -49,7 +49,7 @@ "vite-tsconfig-paths": "5.1.4", "vitest": "3.2.3" }, - "packageManager": "pnpm@10.18.1", + "packageManager": "pnpm@10.19.0", "engines": { "node": "^18.20.2 || >=20.9.0" }, diff --git a/templates/with-vercel-postgres/package.json b/templates/with-vercel-postgres/package.json index c294c79279a..0b6077ba8d7 100644 --- a/templates/with-vercel-postgres/package.json +++ b/templates/with-vercel-postgres/package.json @@ -19,16 +19,16 @@ "test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts" }, "dependencies": { - "@payloadcms/db-vercel-postgres": "3.59.1", - "@payloadcms/next": "3.59.1", - "@payloadcms/payload-cloud": "3.59.1", - "@payloadcms/richtext-lexical": "3.59.1", - "@payloadcms/storage-vercel-blob": "3.59.1", - "@payloadcms/ui": "3.59.1", + "@payloadcms/db-vercel-postgres": "3.61.1", + "@payloadcms/next": "3.61.1", + "@payloadcms/payload-cloud": "3.61.1", + "@payloadcms/richtext-lexical": "3.61.1", + "@payloadcms/storage-vercel-blob": "3.61.1", + "@payloadcms/ui": "3.61.1", "cross-env": "^7.0.3", "graphql": "^16.8.1", "next": "15.4.4", - "payload": "3.59.1", + "payload": "3.61.1", "react": "19.1.0", "react-dom": "19.1.0" }, @@ -50,7 +50,7 @@ "vite-tsconfig-paths": "5.1.4", "vitest": "3.2.3" }, - "packageManager": "pnpm@10.18.1", + "packageManager": "pnpm@10.19.0", "engines": { "node": "^18.20.2 || >=20.9.0" }, diff --git a/templates/with-vercel-postgres/src/migrations/20251009_155439_initial.json b/templates/with-vercel-postgres/src/migrations/20251024_213226_initial.json similarity index 99% rename from templates/with-vercel-postgres/src/migrations/20251009_155439_initial.json rename to templates/with-vercel-postgres/src/migrations/20251024_213226_initial.json index 5826bce92b1..e61debe33e1 100644 --- a/templates/with-vercel-postgres/src/migrations/20251009_155439_initial.json +++ b/templates/with-vercel-postgres/src/migrations/20251024_213226_initial.json @@ -1,5 +1,5 @@ { - "id": "69900809-28b8-4674-a3d3-21bbb98f3e2e", + "id": "2f564965-b225-4a48-9c6c-0b76b116af04", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", diff --git a/templates/with-vercel-postgres/src/migrations/20251009_155439_initial.ts b/templates/with-vercel-postgres/src/migrations/20251024_213226_initial.ts similarity index 100% rename from templates/with-vercel-postgres/src/migrations/20251009_155439_initial.ts rename to templates/with-vercel-postgres/src/migrations/20251024_213226_initial.ts diff --git a/templates/with-vercel-postgres/src/migrations/index.ts b/templates/with-vercel-postgres/src/migrations/index.ts index 7f1651c7f83..e2bd432bfc8 100644 --- a/templates/with-vercel-postgres/src/migrations/index.ts +++ b/templates/with-vercel-postgres/src/migrations/index.ts @@ -1,9 +1,9 @@ -import * as migration_20251009_155439_initial from './20251009_155439_initial' +import * as migration_20251024_213226_initial from './20251024_213226_initial' export const migrations = [ { - up: migration_20251009_155439_initial.up, - down: migration_20251009_155439_initial.down, - name: '20251009_155439_initial', + up: migration_20251024_213226_initial.up, + down: migration_20251024_213226_initial.down, + name: '20251024_213226_initial', }, ] diff --git a/templates/with-vercel-website/package.json b/templates/with-vercel-website/package.json index d65f5ee7f49..7884fc8f408 100644 --- a/templates/with-vercel-website/package.json +++ b/templates/with-vercel-website/package.json @@ -23,19 +23,19 @@ "test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts" }, "dependencies": { - "@payloadcms/admin-bar": "3.59.1", - "@payloadcms/db-vercel-postgres": "3.59.1", - "@payloadcms/live-preview-react": "3.59.1", - "@payloadcms/next": "3.59.1", - "@payloadcms/payload-cloud": "3.59.1", - "@payloadcms/plugin-form-builder": "3.59.1", - "@payloadcms/plugin-nested-docs": "3.59.1", - "@payloadcms/plugin-redirects": "3.59.1", - "@payloadcms/plugin-search": "3.59.1", - "@payloadcms/plugin-seo": "3.59.1", - "@payloadcms/richtext-lexical": "3.59.1", - "@payloadcms/storage-vercel-blob": "3.59.1", - "@payloadcms/ui": "3.59.1", + "@payloadcms/admin-bar": "3.61.1", + "@payloadcms/db-vercel-postgres": "3.61.1", + "@payloadcms/live-preview-react": "3.61.1", + "@payloadcms/next": "3.61.1", + "@payloadcms/payload-cloud": "3.61.1", + "@payloadcms/plugin-form-builder": "3.61.1", + "@payloadcms/plugin-nested-docs": "3.61.1", + "@payloadcms/plugin-redirects": "3.61.1", + "@payloadcms/plugin-search": "3.61.1", + "@payloadcms/plugin-seo": "3.61.1", + "@payloadcms/richtext-lexical": "3.61.1", + "@payloadcms/storage-vercel-blob": "3.61.1", + "@payloadcms/ui": "3.61.1", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-label": "^2.0.2", "@radix-ui/react-select": "^2.0.0", @@ -49,7 +49,7 @@ "lucide-react": "^0.378.0", "next": "15.4.4", "next-sitemap": "^4.2.3", - "payload": "3.59.1", + "payload": "3.61.1", "prism-react-renderer": "^2.3.1", "react": "19.1.0", "react-dom": "19.1.0", @@ -82,7 +82,7 @@ "vite-tsconfig-paths": "5.1.4", "vitest": "3.2.3" }, - "packageManager": "pnpm@10.18.1", + "packageManager": "pnpm@10.19.0", "engines": { "node": "^18.20.2 || >=20.9.0" }, diff --git a/templates/with-vercel-website/src/app/(frontend)/[slug]/page.tsx b/templates/with-vercel-website/src/app/(frontend)/[slug]/page.tsx index 7a8d1037e85..1e274ff3e9f 100644 --- a/templates/with-vercel-website/src/app/(frontend)/[slug]/page.tsx +++ b/templates/with-vercel-website/src/app/(frontend)/[slug]/page.tsx @@ -46,12 +46,13 @@ type Args = { export default async function Page({ params: paramsPromise }: Args) { const { isEnabled: draft } = await draftMode() const { slug = 'home' } = await paramsPromise - const url = '/' + slug - + // Decode to support slugs with special characters + const decodedSlug = decodeURIComponent(slug) + const url = '/' + decodedSlug let page: RequiredDataFromCollectionSlug<'pages'> | null page = await queryPageBySlug({ - slug, + slug: decodedSlug, }) // Remove this code once your website is seeded @@ -81,8 +82,10 @@ export default async function Page({ params: paramsPromise }: Args) { export async function generateMetadata({ params: paramsPromise }: Args): Promise { const { slug = 'home' } = await paramsPromise + // Decode to support slugs with special characters + const decodedSlug = decodeURIComponent(slug) const page = await queryPageBySlug({ - slug, + slug: decodedSlug, }) return generateMeta({ doc: page }) diff --git a/templates/with-vercel-website/src/app/(frontend)/posts/[slug]/page.tsx b/templates/with-vercel-website/src/app/(frontend)/posts/[slug]/page.tsx index ab6ab19a31f..160bbbf0ac8 100644 --- a/templates/with-vercel-website/src/app/(frontend)/posts/[slug]/page.tsx +++ b/templates/with-vercel-website/src/app/(frontend)/posts/[slug]/page.tsx @@ -44,8 +44,10 @@ type Args = { export default async function Post({ params: paramsPromise }: Args) { const { isEnabled: draft } = await draftMode() const { slug = '' } = await paramsPromise - const url = '/posts/' + slug - const post = await queryPostBySlug({ slug }) + // Decode to support slugs with special characters + const decodedSlug = decodeURIComponent(slug) + const url = '/posts/' + decodedSlug + const post = await queryPostBySlug({ slug: decodedSlug }) if (!post) return @@ -77,7 +79,9 @@ export default async function Post({ params: paramsPromise }: Args) { export async function generateMetadata({ params: paramsPromise }: Args): Promise { const { slug = '' } = await paramsPromise - const post = await queryPostBySlug({ slug }) + // Decode to support slugs with special characters + const decodedSlug = decodeURIComponent(slug) + const post = await queryPostBySlug({ slug: decodedSlug }) return generateMeta({ doc: post }) } diff --git a/templates/with-vercel-website/src/migrations/20251009_155501_initial.json b/templates/with-vercel-website/src/migrations/20251024_213247_initial.json similarity index 99% rename from templates/with-vercel-website/src/migrations/20251009_155501_initial.json rename to templates/with-vercel-website/src/migrations/20251024_213247_initial.json index f4f7923a2f9..e0cea086e3a 100644 --- a/templates/with-vercel-website/src/migrations/20251009_155501_initial.json +++ b/templates/with-vercel-website/src/migrations/20251024_213247_initial.json @@ -1,5 +1,5 @@ { - "id": "61df5806-88a9-45d6-b81d-9f1316d50fa8", + "id": "e007c1b9-e880-4826-b065-f0c69eaf1cc8", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", diff --git a/templates/with-vercel-website/src/migrations/20251009_155501_initial.ts b/templates/with-vercel-website/src/migrations/20251024_213247_initial.ts similarity index 100% rename from templates/with-vercel-website/src/migrations/20251009_155501_initial.ts rename to templates/with-vercel-website/src/migrations/20251024_213247_initial.ts diff --git a/templates/with-vercel-website/src/migrations/index.ts b/templates/with-vercel-website/src/migrations/index.ts index 228ab3ebeda..f4bf8265356 100644 --- a/templates/with-vercel-website/src/migrations/index.ts +++ b/templates/with-vercel-website/src/migrations/index.ts @@ -1,9 +1,9 @@ -import * as migration_20251009_155501_initial from './20251009_155501_initial' +import * as migration_20251024_213247_initial from './20251024_213247_initial' export const migrations = [ { - up: migration_20251009_155501_initial.up, - down: migration_20251009_155501_initial.down, - name: '20251009_155501_initial', + up: migration_20251024_213247_initial.up, + down: migration_20251024_213247_initial.down, + name: '20251024_213247_initial', }, ] diff --git a/templates/with-vercel-website/src/utilities/generatePreviewPath.ts b/templates/with-vercel-website/src/utilities/generatePreviewPath.ts index df95ecc0d2e..e6e1130bb57 100644 --- a/templates/with-vercel-website/src/utilities/generatePreviewPath.ts +++ b/templates/with-vercel-website/src/utilities/generatePreviewPath.ts @@ -17,10 +17,13 @@ export const generatePreviewPath = ({ collection, slug }: Props) => { return null } + // Encode to support slugs with special characters + const encodedSlug = encodeURIComponent(slug) + const encodedParams = new URLSearchParams({ - slug, + slug: encodedSlug, collection, - path: `${collectionPrefixMap[collection]}/${slug}`, + path: `${collectionPrefixMap[collection]}/${encodedSlug}`, previewSecret: process.env.PREVIEW_SECRET || '', })