Skip to content

Releases: nuxt/content

v3.0.0

16 Jan 15:54
Compare
Choose a tag to compare

Content version 3 is out - introducing SQL based storage, collections, preview API for a better Studio integration and tons of performance improvements.

Read the Announcement to find out more about changes in version 3.

Checkout 📖 Content module's official docs

✨ Highlights

  • 🚀 Performance Improvements
    • Serverless Compatibility
    • WASM SQLite in Browser
  • 🗄️ Content Collections
    • Define Collections
    • Collections Schema
  • 🔧 Simplified Vue Utils
  • 📦 Built-in Components
  • 🔷 TypeScript Integration
  • 🖼️ Studio Integration
    • Preview API

Note

The new database system enhances the way your data files are stored and structured, ensuring better performance and scalability. This update is entirely behind the scenes and does not affect the file types you can use in Content (yml, json, and markdown).


Breaking changes from previous alpha version

  • A new generic Preview API has been implemented directly into Nuxt Content. To preview your website in Studio, you just need to enable the preview mode in the Nuxt configuration file by binding the Studio API.
export default defineNuxtConfig({
  content: {
    preview: {
      api: 'https://api.nuxt.studio/
    }
  },
})
  • To keep the app config file updatable from Studio we just need to update the helper import of the nuxt.schema.ts file from @nuxthq/studio/theme to @nuxt/content/preview.

v3.0.0-alpha.9

15 Jan 13:51
Compare
Choose a tag to compare
v3.0.0-alpha.9 Pre-release
Pre-release

✨ Highlights

  • Adopt Bun's native Sqlite connector
  • Smaller production bundle
  • Content parser hooks

🚀 Enhancements

  • module: Integrate with unifiedjs VFile (#2911)
  • Pre / post parsing hooks (#2925)
  • config: Enable watch for all layer configs and load in parallel (#2929)
  • Update import path for shiki languages (#2942)
  • database: Add support for BunSQLite (#2944)
  • sources: Define custom sources (#2941)

🔥 Performance

  • Reduce zod bundle size (#2900)

🩹 Fixes

  • module: Mark build.pathMeta as optional in module config (8329a633)
  • shiki: Preserve style priority on compress (b95e807e)
  • module: Update dump template on new file creation (e0981155)
  • Prevent import cache in development (8ea4de1f)
  • shiki: Inline codes syntax highlighting (f124c953)
  • docs: Ensure card prose on the homepage matches the correct title (#2919)
  • module: Split big sql queries into two (#2917)
  • sqlite: Remove extra / from database filename in windows (8a9af695)
  • typos: CollectionQureyBuilder (#2953)
  • sqlite: Remove leading / from file path (85010c11)
  • Refine json and boolean fields after retrieving content (#2957)
  • Undefined ssr event & and invalid column update (#2962)
  • navigation: Prevent duplicate nodes (#2959)
  • hooks: Generate missing dirname & extension in vFile (e048a55a)
  • Vfile extension format (12aef723)
  • navigation: Respect user defined order (#2974)
  • types: Inject content types to server tsConfig (203ac906)

📖 Documentation

  • studio: Update helpers import path (#2901)
  • Fix typo (#2905)
  • Update migration (2caa4864)
  • Lint markdown files with mdclint (ed72d8a2)
  • Spelling mistakes in the migration guide (#2908)
  • Typos and syntax fixes (#2920)
  • migration: State how to register components in content folder as global components (#2935)
  • migration: Add types (#2945)
  • Fixed names slots prop name (#2963)
  • Disable open on github shortcut (5e12ce17)

🏡 Chore

🎨 Styles

  • website: Fix horizontal scrollbar (#2951)

🤖 CI

❤️ Contributors

v3.0.0-alpha.8

09 Dec 15:47
Compare
Choose a tag to compare
v3.0.0-alpha.8 Pre-release
Pre-release

✨ Highlights

  • Integrate with Nuxt Studio and allow managing Content 3 sites on Studio 🚀
  • Collection can now load contents from multiple sources
  • Improve query builder to support complex where conditions

🚀 Enhancements

  • studio: Integration (#2836)
  • Multi source collection (acfbe96a)
  • Support where & order in navigation & surround utils (e8df390c)
  • Support authentication token for private repositories (66cd3727)
  • query: Support complex SQL where conditions (#2878)
  • watch: Watch for cahnges in all local sources (c5b1a4f8)
  • config: Provide defineContentConfig utility (#2891)
  • build: Allow modifying slugify options (#2898)

🔥 Performance

  • Broadcase changes before templates update (29577721)

🩹 Fixes

  • studio: Use minimatch for browser (a1582b6e)
  • lint: Single function argument (c96fd9d5)
  • Typecheck (48909976)
  • query: No trailing slash on path (a2e5c9f4)
  • collection: Path route matching (8ae885dd)
  • query: Ensure fields are unique in query (9b4635e2)
  • preview: Prerendering issue on load (b955f769)
  • preview: Move comment (72e894e8)
  • Correct typos in comments within mergeDraft function (006c615e)
  • collection: Respect default value in null fields (9fdc4d63)
  • hot reload: Normalize files path in windows (f8832736)
  • ContentRenderer: Render empty slot if body is empty (c3251514)
  • surround: Do not use parent item if it exists as first child (5810fc69)
  • docs: Prerendering issues (c9a0cda1)
  • surround: Handle missing path (59c69bc4)
  • surround: Remove all posible dupplicate paths (d5299960)
  • Typecheck prepack (dae41497)
  • navigation: Mobile display (0525e9d6)
  • navigation: Highlight (862a8b45)
  • studio: Find index file collection by route path (c3f2b9ba)
  • renderer: Bundle prose/alias components (bd9e15b5)
  • module: Postgres database types (36d3b087)

💅 Refactors

  • studio: Move main logic in runtime (b49f1d0a)
  • studio: Dynamic import (4676e51b)

📖 Documentation

  • app: Transform navigation to improve search (d24e76c1)
  • Typos (515a4f24)
  • Duplicate section in 3.files/1.markdown.md (#2866)
  • Update markdown page (e0aa63db)
  • Fix README.md (#2875)
  • Switch between v2 and v3 docs (3db7fdf6)
  • studio: Dedicated section (2aa3e5e3)
  • Update query builder docs (3d55b0a8)
  • home: Move to markdown (b51cbdf5)
  • Apply studio parsing (9f194234)
  • landing: Update studio block (7d87f7e3)
  • studio: Update setup video (2bb88758)
  • migration: Added migration instructions for ProsePre, ProseCode, and ProseCodeInline (#2892)
  • Fix typo (#2893)
  • Replace mdcslot docs with native (3fdf8879)
  • Update defineContentConfig (ed704c46)

🏡 Chore

✅ Tests

  • Add unit tests for query builder, navigation, and search (9443f1f9)

❤️ Contributors

v3.0.0-alpha.7

20 Nov 16:58
Compare
Choose a tag to compare
v3.0.0-alpha.7 Pre-release
Pre-release

✨ Highlights

  • New LibSQL database adapter
  • source.path accepts glob pattern but the name was misleading, now it has been renamed to source.include
  • Automatic slot unwrap comes to Nuxt Content. If a component has a single paragraph as a child, the paragraph will unwrap and its children will pass to the component slot.
  • useContentHead dropped in favor of useSeoMeta

🚀 Enhancements

  • Add support for LibSQL (e345fdc5)
  • Enable remark-mdc automatic unwrap (b5b77596)
  • Provice default value for seo title & description (c8d88489)

🩹 Fixes

  • Typo (e0f7bf5b)
  • deps: Use @nuxt/content from workspace (4d891411)
  • Dev: Update dump on file modification and deletion (21a04d7e)
  • Drop useContentHead in favor of useSeoMeta (ca78aaf4)
  • Use version for info collection (a79040d9)
  • source: Do not edit source.include (fa591ff1)
  • icons: Use local server bundle (a440e2fe)
  • Broken util (89352b85)
  • Drop markdown.mdc option, plugin can be controlled vie markdown.remarkPlugins (1cf4cbdc)
  • ContentRenderer: Typo in class props (e8170352)
  • Deprioritise ~/components/content directory (0a7077ab)
  • Unshift components dirs to prevent getting prefixed (8f8b3739)
  • Drop content tables to start local server with a clean state (#2859)
  • build: Do not return database in dropContentTables (668bc157)

💅 Refactors

  • Simplify source definition (3ca01f44)
  • Update tables name and schema and better checksum check (893252b5)

📖 Documentation

🏡 Chore

✅ Tests

❤️ Contributors

v3.0.0-alpha.6

07 Nov 00:58
Compare
Choose a tag to compare
v3.0.0-alpha.6 Pre-release
Pre-release

🚀 Enhancements

  • Generate full database sql dump (1cfdbe94)
  • Export useContentHead for seo header (0e02c091)
  • Load content config of each Nuxt layer (6a9eb838)
  • Register component/content as non-global components (cda951f1)
  • Count query (691b2e33)

🩹 Fixes

  • highlight: Preload typescript language (36953f5c)
  • module: Re-parse contents when change is detected in parser options (16682844)
  • module: Content module options has priority over MDC module options (19f1b5de)
  • Remove postinstall script (9e0b0f76)
  • Delete checksum row before inserting (d4199e5a)
  • Remove c12 default value (606c73e6)
  • Collections default value (705aab77)
  • ContentRenderer: Update existed entries in componets map (92adce37)
  • Rehype/remark plugin in module options (3c376d6c)

💅 Refactors

  • Improve collection source management (53a86aeb)
  • Simplify collection definition (99f25dfc)

📖 Documentation

  • Add full-text search snippets (79629dc1)
  • Link to full text search in migration guide (8f06edd2)
  • useContentHead docs (c233f694)
  • Add postgres database (ebc88b20)

🌊 Types

🏡 Chore

🤖 CI

  • Use pkg-pr-new to deploy commits (b922f5ec)

❤️ Contributors

v2.13.4

15 Oct 14:29
Compare
Choose a tag to compare

🏡 Chore

v2.13.3

15 Oct 12:22
Compare
Choose a tag to compare

🩹 Fixes

  • module: Allow using @nuxtjs/mdc utils via content module (#2775)
  • search: Add charset=utf-8 to headers of indexed mode (#2729)
  • docs: Add warning about using ssr: false with Content (#2776)
  • Corrected .gradient class (#2723)
  • build: Keep parser deps out of main bundle (#2780)
  • navigation: Respect query locale (#2772)
  • Import defineNitroPlugin from #imports (34f65172)
  • Respect draft key as _draft (#2738)
  • Draft field order (b0b5eb2d)

📖 Documentation

  • Fix incorrect TS types import path in documentation (#2773)
  • Missing imports and typo in code blocks (#2741)
  • Changed types path (#2735)
  • Fix typo in SSR warning on Installation page (#2777)
  • Update link to downloads count badge (c1d6ad14)

🏡 Chore

❤️ Contributors

v2.13.2

19 Jul 16:29
Compare
Choose a tag to compare

🩹 Fixes

  • search: Add string type to gt/lt/gte/lte type definitions (#2704)
  • search: Non-md file might not have dscription file (#2706)
  • module: Disable MDC plugin if user disabled it (#2707)
  • module: Unwatch storage on nitro close (ec7105ad)

📖 Documentation

  • home: Update studio section (#2696)
  • landing: Design review (#2703)
  • Add missing await for searchContent docs (#2692)
  • Prerender home (4253f0bf)
  • Update nuxt-og-image and add postinstall script (#2705)
  • Update ContentSlot Documentation (#2713)

🤖 CI

❤️ Contributors

v2.13.1

05 Jul 09:16
Compare
Choose a tag to compare

NOTE As of Nuxt@3.12.0 there is a regression which cause removing / from prerendered routes. because of this, nuxi generate might not work as expected. As a workaround you can add / into nitro.prerender.routes inside nuxt.config.ts to solve this issue.

🔥 Performance

  • dev-cache: Improve localhost markdown page navigation performance (when having 2,000+ pages) (#2675)

🩹 Fixes

  • module: Do not force prerender index page (#2681)
  • Hot reload on dev server for documentDriven: false (#2686)

📖 Documentation

  • Typo in configuration (#2677)
  • Add missing await keyword in search documentation (#2687)

🏡 Chore

❤️ Contributors

v2.13.0

20 Jun 15:02
Compare
Choose a tag to compare

Note: Content module ignores files extension in sorting contents.

🚀 Enhancements

  • Top level content/ directory in Nuxt 4 compatibility version (#2649)

🩹 Fixes

  • Optimise nested dependencies (#2583)
  • Opt in to import.meta.* properties (#2597)
  • Ignore unsupported files from contents list (#2607)
  • module: Convert content-slot to MDCSlot (#2632)
  • Fix typo in logger warning message (#2626)
  • search: Keep page's beginning paragraphs (#2658)
  • Add Nitro hooks types declarations (#2655)
  • Filter draft files in production (#2648)
  • search: Use page title as default title for sections (9d81acc2)
  • Init storage only when used (#2670)
  • Use runtimeconfig only when necessary (6f06f356)
  • Do not update devDependencies (062fb97f)
  • search: Improve sections with root node (#2672)
  • prerender: Ensure / exists inside prerender rotues (#2673)

📖 Documentation

  • Update to @nuxt/fonts (40b3a070)
  • Update ui-pro ui props (#2585)
  • Use new nuxi module add command in installation (#2603)
  • Add multiple slots example (#2619)
  • Better excerpt description (#2633)
  • Update version (cc894eb2)
  • Resolution for nuxt/ui (b581635e)
  • Fix and update transformers (#2639)
  • Fix social card in README (#2659)

🏡 Chore

❤️ Contributors