Skip to content

Releases: nuxt/content

v3.7.1

16 Sep 16:06
Compare
Choose a tag to compare
  • remove zod and zod-to-json-schema from optional deps (#3541) (8e038f0)

v3.7.0

12 Sep 14:31
Compare
Choose a tag to compare

🎉 Highlights

  • Support multiple validator libraries Zod v4 and Valibot
  • Collection fields can inherit their schema from Vue components

Note

The z re-export from @nuxt/content is deprecated and will be removed in a future release. Import z from zod (or zod/v3) instead.

🚀 Enhancements

  • Adopt standard schema spec and support different validators (#3524)
  • Inherit component prop types in content collection (#3451)

🩹 Fixes

  • Ignore OSX meta file .DS_Store (fe5d7f91)
  • Ignore .DS_Store files in all subdirectories (c7a9af3f)
  • nuxthub: Missing line separator in database migrations (#3464)
  • Do not register close hook if websocket is disabled (#3474)
  • ProseCode preview syntax highlighting (#3491)
  • Improve websocket and watcher cleanup handling (#3478)
  • Deprecate nitro export in favor of server (ec97064f)
  • Block experimental sqlite warning on node (5ac31da0)
  • Use listhen's publicUrl if available (#3500)
  • Add dependency at Nuxt root dir (#3525)
  • inherit: Type generation (63500f33)
  • Normalize source cwd (#3532)
  • inherit: Issue with property definition in arrays (873b7687)
  • inherit: Try resolve component from root directory (b0073f1d)
  • inherit: Cache component meta (e9658de3)

📖 Documentation

  • Use vue <slot> (#3460)
  • collections: Remove useless docs (55e34ad3)
  • Document sqliteConnector (f97ea701)
  • Extend tip for azure static web apps (#3472)
  • Create examples and integrations section (#3473)
  • template: Update docus base dir (6a028d19)
  • template: Update docus and add i18n as draft (a9fed2f9)
  • Fix typo in content editors (#3486)
  • I18n example useless import (#3479)
  • Fixed example syntax (#3495)
  • ui: Update green to match with nuxt (31baffb9)
  • Fix nativeSqlite configuration link (#3508)
  • studio: IconLibraries option in editor schema def (8c3b55ac)
  • Use kbd for keyboard shortcuts (9979388d)

🏡 Chore

  • announcement: Nuxtlabs joins vercel (80acc862)
  • Upgrade deps (17af59c6)
  • Upgrade @nuxtjs/i18n (81bf914c)
  • Examples with the right argument order (#3493)
  • Upgrade deps (#3498)
  • Upgrade to Nuxt 4 (#3499)
  • Update WebSocket content reload logger prefix for clarity (#3522)
  • Use NuxtHub nightly (#3536)

❤️ Contributors

v3.6.3

04 Jul 11:19
Compare
Choose a tag to compare

🩹 Fixes

📖 Documentation

  • templates: Add server route (e8634432)

🏡 Chore

❤️ Contributors

v3.6.2

02 Jul 14:53
Compare
Choose a tag to compare

🚀 Enhancements

  • schema: Set navigation.icon of page as icon for preview (eff825d9)

🩹 Fixes

  • dev: Dont ignore subfolders (#3421)
  • Check sqlite connector only if database type is sqlite (#3425)
  • docs: Update query method to use first() for consistency (#3430)
  • Fallback to api call if webassembly is not supported (#3399)

📖 Documentation

  • Add findPageHeadline utils (#3420)
  • markdown: Refine tree (ca86d97b)
  • Migration to docus (#3417)
  • github: Set rootDir to fix edit page link (832228cb)
  • Sub list with double dot (#3437)

🌊 Types

  • Markdown option should be optional (#3427)

🏡 Chore

❤️ Contributors

v3.6.1

20 Jun 14:15
Compare
Choose a tag to compare

🚀 Enhancements

  • Warn if nuxthub is loaded before without database (#3405)
  • Support Cloudflare Workers (#3407)
  • Support <= and >= sql operators (#3413)
  • Add findPageHeadline utils (#3416)

🩹 Fixes

  • Disable ref strategy of JsonSchema (#3403)
  • Support extension patterns like **/*.md (#3414)

📖 Documentation

❤️ Contributors

v3.6.0

12 Jun 13:28
Compare
Choose a tag to compare

🎉 Highlights

  • Forward SSR cookies in internal API requests to support authenticated requests
  • Improve development performance by excluding content files from Nuxt Watcher
  • Move better-sqlite3 to peer dependency

Note

Due to various requests and issues related to native bindings, we have moved better-sqlite3 to a peer dependency.
This allows users to choose their preferred SQLite connector.
Upon first run, module will ask you to install better-sqlite3 or sqlite3 if its necessary.

Note

If you were importing internal queryCollectionWithEvent in your server routes, you need to remove the import and use import { queryCollection } from '@nuxt/content/nitro'.

🚀 Enhancements

  • parser: Allow extra transformers to provide components used (#3355)
  • Add findPageBreadcrumb, findPageChildren and findPageSiblings utils (#3393)
  • Use json schema instead of zod for internal routines (#3347)
  • source: Do not watch for excluded files (2ee1149d)
  • Toggle content heading extraction (#3400)
  • Make better-sqlite3 dependency optional (#3349)

🩹 Fixes

  • module: Check modules existence using import (#3348)
  • Do not escape newlines (#3320)
  • Add sql_dump file extension (#3339)
  • websocket: Client url (#3344)
  • module: Ignore files in content folder in nuxt building (#3380)
  • Forward SSR cookies in internal API requests (#3385)
  • preview: Handle deleted key in object (231ef50b)
  • collections: Default values (10f3a066)
  • templates: Populate preview template schema (b7230cdb)

📖 Documentation

  • Hydration issue in full-text-search page (a396d391)
  • template: Portfolio (f5a50a15)
  • examples: Add key to dynamic asyncData (#3332)
  • Limit TOC depth in prose components page (68283237)
  • Fix a few spelling issues and misc changes (#3371)
  • Fix missing quote in collection sources glob pattern (#3368)
  • Update on querying blog collection docs (#3363)
  • Fix design-kit image path (#3366)
  • Fix typos, add useful information and examples (#3376)
  • templates: Update portfolio demo (080c8d21)
  • advanced: Rename LLMs title (c3343847)
  • advanced: Update llms page (7f98a3a5)
  • Improve the csv documentation to align with the other pages (#3388)
  • Correct configuration property name (#3386)
  • Dockerfile ENV LegacyKeyValueFormat (#3394)
  • blog: Docus v2 (d98bf491)
  • Generated SQL in queryCollection conditions (b3d2cfba)
  • Missing classes (2d517634)
  • Add note about SQL connector (e2e69347)

🏡 Chore

  • Switch to tinyglobby (#3370)
  • Integrate minimark and generate markdown for docs pages (#3381)
  • Upgrade deps (#3389)
  • Upgrade deps (6f98ef39)

❤️ Contributors

v3.5.1

24 Apr 15:23
Compare
Choose a tag to compare
  • prevent hydration issue when content contains \r (c10269d)

v3.5.0

23 Apr 15:53
Compare
Choose a tag to compare

🎉 Highlights

  • Easy deployment on AWS Amplify. Docs
  • Reactively load components when body changes
  • Faster dev startup

🚀 Enhancements

  • Aws amplify preset (#3316)
  • LLMS: Call hook before generating markdown (#3323)

🩹 Fixes

  • cache: Split large queries (ef50925b)
  • Generate correct collection insert for object and array default values (#3277)
  • cloudflare: Load sql dump from assets (#3275)
  • Reactively load components when body changes (#3283)
  • dev: Do not create hash column on local cache table (8fff15c3)
  • Disallow crawlers from crawling /__nuxt_content paths. (#3299)
  • Update csv docs & fix csv options typo (#3300)
  • templates: Props definition (997fc652)
  • preview: Transform value based on schema for sql query generation (994ae98c)
  • preview: Handle strings format when generating insert query (c18e0943)
  • Explicitly set the dump's content type (#3302)
  • collection: Avoid double update of some record by using the hash column as index (#3304)
  • module: Invalid rootDir of layer sources (#3308)
  • preview: Remove prefix when parsing files (498168f2)
  • preview: Handle collection search with prefixed sources (#3317)

📖 Documentation

  • Add docs about experimental nativeSqlite flag (96a9c4a4)
  • Use <slot> instead of <ContentSlot> (#3281)
  • Add clarification about schema definitions in frontmatter blocks (#3284)
  • Return CollectionQueryGroup instead of void from andWhere and orWhere (#3292)
  • Leave note about changes in module options (#3296)
  • Minor typo in nuxt/content documentation (c06cea88)
  • components: ContentRenderer only works with Markdown files (a3d8c5c9)
  • studio: Integrate props components edition (b7f20e83)
  • Fixed minor typo in V3 announcement blog-post (#3311)
  • templates: Hide carousel when no images (32e372a2)
  • template: Publish saas template (1f66e8b3)
  • template: Landing (cd42fb73)
  • templates: Update thumbnails (13e55b90)
  • templates: Remove subtitle (d316ea8c)
  • templates: Update landing slug (9e0dd3c1)
  • templates: Update descriptions (b3456fcf)

📦 Build

🏡 Chore

❤️ Contributors

v3.4.0

20 Mar 13:43
Compare
Choose a tag to compare

🎉 Highlights

  • Support Node.js native SQLite driver (Can be enabled in nuxt.config.ts using content.experimental.nativeSqlite
  • Support BitBucket repositories as collection source

Note

Due to various issues, the internal API route moved to /__nuxt_content/:collection/query (from /api/content/:collection/query'). And database.sql is renamed to sql_dump. These are internal functionalities of modules and you should not see any changes in module behaviour.

🚀 Enhancements

  • collection: Add support for Bitbucket repository (#3226)
  • db: Experimental node:sqlite under flag (#3230)
  • search: Retrieve extra fields in search sections (#3178)

🩹 Fixes

  • Check for ws existence before closing (#3238)
  • parser: Recreate highlighter when options did change (53875b1e)
  • module: Prevent conflict with auth & security tools (#3245)

📖 Documentation

  • Update source options (#3253)
  • templates: Set docs branch to main (e7a500f7)
  • schema: Reusable schema generation (98276ff1)
  • Remove unused packages (be99f3ac)

🌊 Types

  • Fix strict null checks (#3265)

🏡 Chore

❤️ Contributors

v3.3.0

05 Mar 17:13
Compare
Choose a tag to compare

🎉 Highlights

  • Page level caching and faster database update (Thanks to @elevatebart)
  • Typescript custom transformers.

🚀 Enhancements

  • Page level caching (#3158)

🩹 Fixes

  • module: Prevent adding css modules in components template (1a480955)
  • collection: Detect two part branches (b0a743b7)
  • preview: Remove db (ad629710)
  • module: Load ts transformers (#3218)
  • Warn about using ./ and ../ in source (7a7b3b20)
  • database: Remove comments form dump queries (#3221)

📖 Documentation

  • studio: Update pricing button links (ad87033d)
  • Add missing section for the count method and fix some typos in the same file (#3209)
  • studio: Add arrays type in editor (72d56bde)
  • changelog: Add new type arrays (af3c7285)
  • changelog: Add video (91210ef1)
  • Fix watch option usage (4e8cf05b)
  • Update ordering files (f5dbe7f1)
  • templates: Unpublish canvas (cc32ceb6)
  • template: Publish canvas (e9207fa0)

🏡 Chore

❤️ Contributors