Changelog

Discover the latest Nuxt Content updates.


Important notes

Since #1176, we've modified the descending sorting behavior to be -1 instead of 0 to stick with Mongo sort syntax.

- queryContent('/my-directory').sort({ createdAt: 0 })+ queryContent('/my-directory').sort({ createdAt: -1 }) 

Features

We added content:file:beforeParse and content:file:afterParse hooks to manipulate the data before and after its transformation, you can read more in the advanced section of the documentation. PR #1160 by @farnabaz

Fixes

Docs

Misc

  • chore(deps): update devdependency lint-staged to ^12.4.3 by @renovate in #1173
  • chore(deps): update all non-major dependencies by @renovate in #1134
  • chore(deps): lock file maintenance by @renovate in #1172
  • chore(deps): update devdependency lint-staged to ^12.5.0 by @renovate in #1186

New Contributors

Full Changelog: https://github.com/nuxt/content/compare/2.0.0...2.0.1

👍 5

v2.0.1

@Tahul

May 31, 2022

@nuxt/content v2

After months of work we are finally officially releasing @nuxt/content v2.

This update main objective was to be fully compatible with Nuxt 3.

It also comes with new features and possibilities to discover:

  • <ContentDoc>, <ContentList>, and other powerful new components
  • A Markdown syntax made for Vue components (MDC)
  • Navigation generation
  • Code highlighting with Shiki

In addition to all the current features from @nuxt/content v1:

  • Powerful query builder (MongoDB like)
  • Blazing fast hot module replacement in development
  • Table of contents generation
  • Queries into CSV, YAML and JSON(5) content
  • Extend with hooks and content plugins
  • ...and more

❤️ Thanks

This could not have been possible without the hard work from the @nuxt community!

A special thanks to @farnabaz, @Atinux, @pi0, @danielroe, @clemcode who all closely contributed to this release.

👍 18🎉 17❤️ 14🚀 13

v2.0

@Tahul

May 24, 2022

🚀 Features

🐛 Bug Fixes

v1.14.0

@pi0

March 2, 2021

🐛 Bug Fixes

v1.13.1

@pi0

March 2, 2021

🚀 Features

  • #243 Add content:ready hook
  • #258 Add classes for live editing
  • #254 Allow override of createdAt and updatedAt properties
  • #256 Add custom parsers
  • #284 Ignore content/ folder on generate for NuxtJS v2.14
  • #285 Add option to disable live edit
  • #289 Handle textarea tab + shift tab events

🐛 Bug Fixes

  • #230 Properly handle anchor tags without href fields
  • #238 Use compound sort + apply skip and limit at the very end
  • #248 Join array props in nuxt-content component
  • #249 Replace fs with graceful-fs
  • #251 Pass globalName to client plugin
  • #280 Ensure path and extension on dev mode
  • #279 Improve toc heading parsing
  • #223 Improve nuxt-content attributes handling
  • #287 Improve options merging when no default value

💖 Thanks to

🐛 Bug Fixes

  • #208 Add without method to types

📖 Documentation

The documentation has been improved with design and content updates, a new "Examples" section has been added, ...

🚀 Features

  • #182 Support .xml file format
  • #190 Support where query params in API middleware
  • #164 Global components import using @nuxt/components
  • #179 Add .without() method to exclude fields
  • #167 Parse .yml file format
  • #125 Live editing markdown content
  • #126 Option to return unparsed markdown in text
  • #121 Slots in rendering Vue.js components
  • #65 / #183 Customization of rehype plugins

🐛 Bug Fixes

  • #165 Handle classes on nuxt-content component
  • #180 SPA mode
  • #149 Promise type on fetch
  • #143 Attributes case in html rendering

💖 Thanks to

Bug Fixes

  • avoid date mismatch with API #119
  • use router basepath in client plugin #53
  • handle router base #78

Documentation

Bug Fixes

  • types: args can be an array of strings / objects (b2c2c13)

Features

  • support custom return types by the fetch method (#42)
  • support nested properties query using dot-notation (#60)
  • support fetching files from subdirectories (#63)

Bug Fixes

  • decodeURI before searching query (#55)

Features

Add support for Markdown footnotes

Added TypeScript support.

Read more on https://content.nuxtjs.org/installation/#typescript

The official version is out ✨

Read more on https://content.nuxtjs.org

v1.0.0

@Atinux

May 22, 2020

Bug Fixes

🎉 6

v1.15.1

@pi0

November 17, 2021

Bug Fixes

  • content: add missing :is="tag" to nuxt-content-container (ef7b18d)
  • content: merge class and style attribute (#905) (d905ffe)
  • content: prevent editor extending on typing (#933) (d4dce1e)
  • content: update type definition for QueryBuilder.fetch() (#825) (4cc224e)
  • terminal time log information display error (#891) (1f12dd5)

Features

👍 3😂 1🎉 3❤️ 12

v1.15.0

@pi0

October 25, 2021

🚀 Features

  • Support PrismJS diff-highlight plugin (#755) · 3c2186a

🐛 Bug Fixes

  • Use top 2 level of nodes to generate table of contents (#757) · fe4de6b

💖 Thanks to

v1.13.0

@benjamincanac

February 10, 2021

🚀 Features

🐛 Bug Fixes

  • Failed ci on windows and enhance file name detection regex (#680) · f445444
  • Properly treat falsy values in context (#685) · 228f7e0
  • Codeblock parse lang should support other meta (#691) · 881f6d4
  • Change types (#732) · a6274e4

💖 Thanks to

v1.12.0

@benjamincanac

January 29, 2021

🚀 Features

  • #600 Support dynamic table of contents
  • #607 Support markdown excerpt
  • #618 Add content:options hook

🐛 Bug Fixes

  • #620 Fix websockets with alternative server
  • #621 Support space after codeblock for filename
  • #625 Add missing types
  • #636 Fix named slots rendering

💖 Thanks to

v1.11.0

@benjamincanac

November 19, 2020

🚀 Features

  • #486 Handle json array parsing

🐛 Bug Fixes

  • #509 Fix tab key handling of editor component with IME
  • #518 Fix incorrect typings for fetch method
  • #525 Includes types folder in package files
  • #548 Register components/global/ folder only if exists

💖 Thanks to

v1.10.0

@benjamincanac

October 12, 2020

🚀 Features

  • #467 Add custom highlighter
  • #462 #444 Improve types
  • #453 Add content:file:beforeParse hook

💖 Thanks to

v1.9.0

@benjamincanac

September 16, 2020

🐛 Bug Fixes

  • 39fd508 Add other missing dependencies

v1.8.1

@benjamincanac

September 3, 2020

🚀 Features

  • #442 Add database as second argument to beforeInsert hook

🐛 Bug Fixes

  • #449 Add missing package detab

💖 Thanks to

v1.8.0

@benjamincanac

September 3, 2020

🐛 Bug Fixes

  • #429 Offline mode with pwa module
  • #438 Write db.json with hash in name

💖 Thanks to

v1.7.1

@benjamincanac

August 31, 2020

🚀 Features

  • #312 Add custom editor API

🐛 Bug Fixes

  • #404 Fix v-bind inside nuxt-content component
  • #408 Use defu.arrayFn instead of custom merger
  • #409 Improve typings

💖 Thanks to

v1.7.0

@benjamincanac

August 25, 2020

🚀 Features

  • #327 Better typescript typings

🐛 Bug Fixes

  • #350 Options (text) were not forwarded on client-side when using nuxt generate
  • #359 Use property-information to convert hast attributes

💖 Thanks to

v1.6.0

@benjamincanac

August 6, 2020

🐛 Bug Fixes

  • 7700762 Remove @nuxt/content cycle dependency

v1.5.3

@benjamincanac

August 1, 2020

📖 Documentation

  • 699fdf3 Publish README.md to npm following refactor to lerna

v1.5.2

@benjamincanac

August 1, 2020

🐛 Bug Fixes

  • #231 Comply with possible custom dir
  • 4b3417e Improve update of document in database when dev mode watch