Skip to content

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

Compare Source

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

Docs

Misc

New Contributors

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

v2.0.0

Compare Source

@​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

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports