Discover the latest Nuxt Content updates.
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 })
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
_path
not used properly (#1141) by @GerryWilko in #1143-1
for descending same as mongo syntax by @farnabaz in #1176_title
rename to title
by @cawa-93 in #1181--shamefully-hoist
argument to pnpm install by @Julien-R44 in #1159Full Changelog: https://github.com/nuxt/content/compare/2.0.0...2.0.1
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 componentsIn addition to all the current features from @nuxt/content v1:
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.
content:ready
hookcreatedAt
and updatedAt
propertiescontent/
folder on generate for NuxtJS v2.14tab
+ shift tab
eventsskip
and limit
at the very endnuxt-content
componentfs
with graceful-fs
globalName
to client pluginpath
and extension
on dev modetoc
heading parsingnuxt-content
attributes handlingwithout
method to typesThe documentation has been improved with design and content updates, a new "Examples" section has been added, ...
.xml
file formatwhere
query params in API middleware.without()
method to exclude fields.yml
file formattext
nuxt-content
componentAdd 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
:is="tag"
to nuxt-content-container
(ef7b18d)QueryBuilder.fetch()
(#825) (4cc224e)json
array parsingtab
key handling of editor component with IMEfetch
methodcomponents/global/
folder only if existsdatabase
as second argument to beforeInsert
hookdetab
v-bind
inside nuxt-content
componentdefu.arrayFn
instead of custom mergertext
) were not forwarded on client-side when using nuxt generate
property-information
to convert hast attributes@nuxt/content
cycle dependencynpm
following refactor to lerna