Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
import { defineContentConfig, defineCollection, property, z } from '@nuxt/content'

const createPricingPlanSchema = () => z.object({
title: z.string(),
Expand Down Expand Up @@ -46,8 +46,9 @@ export default defineContentConfig({
onboarding: z.object({
title: z.string(),
image: z.object({
// TODO: update editor usage to new syntax. This is kept to maintain backwards compatibility.
dark: z.string().editor({ input: 'media' }),
light: z.string().editor({ input: 'media' }),
light: property(z.string()).editor({ input: 'media' }),
}),
}),
plans: z.object({
Expand Down Expand Up @@ -121,19 +122,19 @@ export default defineContentConfig({
source: 'templates/*.md',
schema: z.object({
draft: z.boolean().default(false),
slug: z.string().editor({ hidden: true }),
slug: property(z.string()).editor({ hidden: true }),
subtitle: z.string(),
baseDir: z.string(),
branch: z.string(),
category: z.enum(['docs', 'blog', 'minimal', 'saas']),
demo: z.string(),
licenseType: z.enum(['nuxt-ui-pro', 'free']),
mainScreen: z.string().editor({ input: 'media' }),
mainScreen: property(z.string()).editor({ input: 'media' }),
name: z.string(),
owner: z.string(),
image1: z.string().editor({ input: 'media' }),
image2: z.string().editor({ input: 'media' }),
image3: z.string().editor({ input: 'media' }),
image1: property(z.string()).editor({ input: 'media' }),
image2: property(z.string()).editor({ input: 'media' }),
image3: property(z.string()).editor({ input: 'media' }),
}),
}),
posts: defineCollection({
Expand All @@ -155,7 +156,7 @@ export default defineContentConfig({
category: z.enum(['studio', 'content']).optional(),
date: z.date(),
image: z.object({
src: z.string().editor({ input: 'media' }),
src: property(z.string()).editor({ input: 'media' }),
alt: z.string(),
}),
}),
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@nuxtjs/plausible": "^2.0.1",
"@vueuse/nuxt": "^13.9.0",
"better-sqlite3": "^12.2.0",
"docus": "4.0.4",
"docus": "4.1.3",
"minisearch": "^7.1.2",
"nuxt": "^4.0.3"
"nuxt": "^4.1.1"
}
}
2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"dependencies": {
"@nuxt/content": "latest",
"nuxt": "^4.0.3"
"nuxt": "^4.1.1"
}
}
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
},
"dependencies": {
"@nuxt/content": "latest",
"nuxt": "^4.0.3"
"nuxt": "^4.1.1"
}
}
6 changes: 3 additions & 3 deletions examples/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"dependencies": {
"@nuxt/content": "latest",
"@nuxt/ui-pro": "^3.3.0",
"@nuxt/ui-pro": "^3.3.3",
"@nuxthub/core": "0.9.0",
"@nuxtjs/i18n": "^10.0.3",
"nuxt": "^4.0.3"
"@nuxtjs/i18n": "^10.1.0",
"nuxt": "^4.1.1"
}
}
4 changes: 2 additions & 2 deletions examples/ui-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@nuxt/content": "latest",
"@nuxt/ui-pro": "^3.3.0",
"nuxt": "^4.0.3"
"@nuxt/ui-pro": "^3.3.3",
"nuxt": "^4.1.1"
}
}
48 changes: 34 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@
"verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
},
"dependencies": {
"@nuxt/kit": "^4.0.3",
"@nuxtjs/mdc": "^0.17.3",
"@shikijs/langs": "^3.12.1",
"@sqlite.org/sqlite-wasm": "3.50.3-build1",
"@nuxt/kit": "^4.1.1",
"@nuxtjs/mdc": "^0.17.4",
"@shikijs/langs": "^3.12.2",
"@sqlite.org/sqlite-wasm": "3.50.4-build1",
"@standard-schema/spec": "^1.0.0",
"@webcontainer/env": "^1.1.1",
"c12": "^3.2.0",
"chokidar": "^4.0.3",
Expand Down Expand Up @@ -92,12 +93,13 @@
"pkg-types": "^2.3.0",
"remark-mdc": "^3.6.0",
"scule": "^1.3.0",
"shiki": "^3.12.1",
"shiki": "^3.12.2",
"slugify": "^1.6.6",
"socket.io-client": "^4.8.1",
"tar": "^7.4.3",
"tinyglobby": "^0.2.14",
"tinyglobby": "^0.2.15",
"ufo": "^1.6.1",
"unctx": "^2.4.1",
"unified": "^11.0.5",
"unist-util-stringify-position": "^4.0.0",
"unist-util-visit": "^5.0.0",
Expand All @@ -108,8 +110,12 @@
"peerDependencies": {
"@electric-sql/pglite": "*",
"@libsql/client": "*",
"@valibot/to-json-schema": "^1.0.0",
"better-sqlite3": "^12.2.0",
"sqlite3": "*"
"sqlite3": "*",
"valibot": "^1.0.0",
"zod": "*",
"zod-to-json-schema": "*"
},
"peerDependenciesMeta": {
"@electric-sql/pglite": {
Expand All @@ -123,36 +129,50 @@
},
"better-sqlite3": {
"optional": true
},
"zod": {
"optional": true
},
"zod-to-json-schema": {
"optional": true
},
"valibot": {
"optional": true
},
"@valibot/to-json-schema": {
"optional": true
}
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250831.0",
"@cloudflare/workers-types": "^4.20250910.0",
"@nuxt/content": "link:.",
"@nuxt/devtools": "^2.6.3",
"@nuxt/eslint-config": "^1.9.0",
"@nuxt/kit": "^4.0.3",
"@nuxt/kit": "^4.1.1",
"@nuxt/module-builder": "^1.0.2",
"@nuxt/schema": "^4.0.3",
"@nuxt/schema": "^4.1.1",
"@nuxt/test-utils": "^3.19.2",
"@release-it/conventional-changelog": "^10.0.1",
"@types/better-sqlite3": "^7.6.13",
"@types/bun": "^1.2.21",
"@types/micromatch": "^4.0.9",
"@types/minimatch": "^6.0.0",
"@types/node": "^24.3.0",
"@types/node": "^24.3.1",
"@types/pg": "^8.15.5",
"@types/ws": "^8.18.1",
"@valibot/to-json-schema": "^1.3.0",
"csvtojson": "^2.0.10",
"eslint": "^9.34.0",
"eslint": "^9.35.0",
"happy-dom": "^18.0.1",
"mdclint": "^0.0.3",
"micromark-util-types": "^2.0.2",
"nuxt": "^4.0.3",
"nuxt": "^4.1.1",
"release-it": "^19.0.4",
"typescript": "5.9.2",
"valibot": "^1.1.0",
"vitest": "^3.2.4",
"vue-tsc": "^3.0.6",
"wrangler": "^4.33.1"
"wrangler": "^4.35.0"
},
"resolutions": {
"@nuxt/content": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@nuxt/content": "latest",
"@nuxt/ui-pro": "^3.3.3",
"@nuxthub/core": "^0.9.0",
"nuxt": "^4.0.3",
"nuxt": "^4.1.1",
"remark-code-import": "^1.2.0",
"shiki-transformer-color-highlight": "^1.0.0"
}
Expand Down
Loading
Loading