fix(deps): update dependency @nuxt/content to v2
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@nuxt/content | dependencies | major | ^1.15.1 -> ^2.0.0 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
nuxt/content
v2.0.1
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. MR #1160 by @farnabaz
Fixes
- fix: ContentQuery
_path
not used properly (#1141) by @GerryWilko in https://github.com/nuxt/content/pull/1143 - fix(frontmatter): issue with windows carriage return by @farnabaz in https://github.com/nuxt/content/pull/1161
- fix: typo that->than, highlight span to improve comprehension by @TheJoeSchr in https://github.com/nuxt/content/pull/1163
- fix(ContentQuery): generate cache key based on props by @farnabaz in https://github.com/nuxt/content/pull/1174
- fix(sort): use
-1
for descending same as mongo syntax by @farnabaz in https://github.com/nuxt/content/pull/1176 - fix(navigation): do not nest home page by @farnabaz in https://github.com/nuxt/content/pull/1179
- fix(sort): convert Date to ISO string by @farnabaz in https://github.com/nuxt/content/pull/1175
- fix(types):
_title
rename totitle
by @cawa-93 in https://github.com/nuxt/content/pull/1181 - fix(query): escape special chars in path by @farnabaz in https://github.com/nuxt/content/pull/1185
Docs
- docs: Update 1.query-content.md by @jhull in https://github.com/nuxt/content/pull/1138
- docs: correct spelling of ContentDoc by @nobkd in https://github.com/nuxt/content/pull/1144
- docs: fix template name by @manniL in https://github.com/nuxt/content/pull/1147
- docs: correctly link to catch-all documentation by @loilo in https://github.com/nuxt/content/pull/1148
- docs: content comment is now link to option docs by @ravenberg in https://github.com/nuxt/content/pull/1150
- docs: typo by @seanghay in https://github.com/nuxt/content/pull/1158
- docs: added information on sitemap generation by @heychazza in https://github.com/nuxt/content/pull/1145
- docs: typo Rendering Doc by @king-11 in https://github.com/nuxt/content/pull/1162
- docs: add
--shamefully-hoist
argument to pnpm install by @Julien-R44 in https://github.com/nuxt/content/pull/1159 - docs: fix querying example route is not defined by @Jclong98 in https://github.com/nuxt/content/pull/1166
- docs: correct path of ContentRenderer source code by @sudhakar-s in https://github.com/nuxt/content/pull/1165
- docs(redirects): remove configuration redirect by @clemcode in https://github.com/nuxt/content/pull/1183
- docs:fixing navigation comments re: default value by @MichaelJolley in https://github.com/nuxt/content/pull/1182
Misc
- chore(deps): update devdependency lint-staged to ^12.4.3 by @renovate in https://github.com/nuxt/content/pull/1173
- chore(deps): update all non-major dependencies by @renovate in https://github.com/nuxt/content/pull/1134
- chore(deps): lock file maintenance by @renovate in https://github.com/nuxt/content/pull/1172
- chore(deps): update devdependency lint-staged to ^12.5.0 by @renovate in https://github.com/nuxt/content/pull/1186
New Contributors
- @jhull made their first contribution in https://github.com/nuxt/content/pull/1138
- @nobkd made their first contribution in https://github.com/nuxt/content/pull/1144
- @GerryWilko made their first contribution in https://github.com/nuxt/content/pull/1143
- @loilo made their first contribution in https://github.com/nuxt/content/pull/1148
- @ravenberg made their first contribution in https://github.com/nuxt/content/pull/1150
- @seanghay made their first contribution in https://github.com/nuxt/content/pull/1158
- @king-11 made their first contribution in https://github.com/nuxt/content/pull/1162
- @Julien-R44 made their first contribution in https://github.com/nuxt/content/pull/1159
- @TheJoeSchr made their first contribution in https://github.com/nuxt/content/pull/1163
- @Jclong98 made their first contribution in https://github.com/nuxt/content/pull/1166
- @sudhakar-s made their first contribution in https://github.com/nuxt/content/pull/1165
- @cawa-93 made their first contribution in https://github.com/nuxt/content/pull/1181
- @MichaelJolley made their first contribution in https://github.com/nuxt/content/pull/1182
- @heychazza made their first contribution in https://github.com/nuxt/content/pull/1145
Full Changelog: https://github.com/nuxt/content/compare/2.0.0...2.0.1
v2.0.0
@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.
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.