Description
🚀 Enhancements
- pnpm: Switch to pnpm (local / ci) (#1868)
🩹 Fixes
- query: Decode unicode params (#1871)
❤️ Contributors
- Yaël Guilloux yael.guilloux@gmail.com
Discover the latest release of nuxt Content.
undefined
url (b157500b)<!--more-->
(#1801)404
error on redirected pages (#1770)blank
prop with target
(#1828)_path
query (#1794)og:title,url,description
meta tags and prefix og:image
with host (#1769)baseURL
(#1833)sitemap.md
(#1772)ContentRenderer
source link (#1790)autoImport
(#1842)api.baseURL
and deprecate base
(#1695)start
and finish
hooks (#1744)stripQueryParameters
experimental flag)_locale
(#1748)navigation.redirect
from _dir
files (#1545)_dir
field in contents (#1613)documentDriven
configs optional (#1539).md
link (#1556)<ContentList>
: Respect query.path
when path
is missing (#1598)<ContentDoc>
: Render blink in SSG (#1600)defineEventHandler
(#1603)queryContent
: Use path argument as prefix if there is another condition (#1612)client only
-> client-only
(#1535)findSurround
usage (#1609)<Markdown>
is deprecated in favor of new <ContentSlot />
component. The usage is the same as before.only
and without
(#1200)MarkdownParsedContent
for improved type generics (#1199)fetchNavigation
or <ContentNavigation>
(#1206)_dir.yml
to filter navigation (#1261)@nuxt/content
feature (#1279)3adf4e5
)<head>
binding (#1295)web-types.json
for WebStorm (#1288)_dir.yml
(#1328)<markdown>
: Support fallback default slot (#1405)unist/mircomark
stack (#1468)navigation: false
(#1208)ParsedContentMeta
(#1196)QueryBuilderParams
keys to partial (#1203)null
data (#1230)h1-6
tags (#1223)findOne
(#1224)ellipsis.vue
) (855bb38
)6a05508
)caf9b83
)$in
operator (#1277)48fc30b
)97f1d74
)index
as substring (#1334)d41205a
)@nuxt/kit
from runtime bundle (#1346)a13cca9
)cbf08ad
)highlight
option (#1372)head.meta
before manipulating (#1370)components/content
in layers for extends (#1404)useRoute
(#1408)where
(c71c79b
)content
directory has higher priority (#1414)components/content
is on top in layers (#1418)10709ee
)_layers
(#1455)<ContentRenderer>
: Prioritize default slot (#1460)useContentHead
was not respecting og:image
props (#1461)5a64f46
)9b9b648
)<MarkDown>
: Prevent multiple deprecation log (#1497)extensions
correctly (#1204)remark-mdc
package (#1315)fff00b1
)04fe424
)96c161d
)7adaed1
)1b7fd92
)58cae1d
)fe1ebb5
)3dc1f25
)90d04bb
)6426160
)6e1ff3b
)a4ab944
),
(#1330)85e22ac
)4b23370
)93813f9
)e82fed4
)highlight.preload
(#1436)<Markdown>
(ac95d13
)_params
to api routes (#1463)d7bd2b1
)8cdae3e
)fd1c56d
)d0ee386
)3dd85b5
)07d7988
)8bf9154
)page:content:start
hook (45f696b
)63749d2
)unctx
from dependencies (#1413)ef5c3ec
)extensions
correctly (#1204)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