website
website copied to clipboard
chore(deps-dev): bump next-mdx-remote from 3.0.8 to 5.0.0
Bumps next-mdx-remote from 3.0.8 to 5.0.0.
Release notes
Sourced from next-mdx-remote's releases.
v5.0.0
Major Changes
- #448
67a221f
Thanks@dstaley
! - Update to MDX v3 and add support for React 19. Fix various TypeScript errors. Remove usage of Rollup.v4.4.1
What's Changed
- chore(types): remove unused imports by
@thiskevinwang
in hashicorp/next-mdx-remote#348- fix: Make sure frontmatter types flow through to MDXRemote by
@BRKalow
in hashicorp/next-mdx-remote#351Full Changelog: https://github.com/hashicorp/next-mdx-remote/compare/v4.4.0...v4.4.1
v4.4.0
This release includes a few fixes for frontmatter types, as well as a way to provide a frontmatter type to
serialize
orcompileMDX
and have it propagate through to the returnedfrontmatter
property. See the documentation for an example.
serialize
:import { serialize } from 'next-mdx-remote/serialize'
interface Frontmatter { title: string published: string description?: string }
// 👇 should have type Frontmatter const { frontmatter } = serialize<Record<string, unknown>, Frontmatter>(source)
compileMDX
:import { compileMDX } from 'next-mdx-remote/rsc'
interface Frontmatter { title: string published: string description?: string }
export default async function Page({ source }) { // 👇 should have type Frontmatter const { content, frontmatter } = await compileMDX<Frontmatter>(source)
return ( <> <h1>{frontmatter.title}</h1> {content} </> )
</tr></table>
... (truncated)
Commits
0d8438f
fix: add release script634b3b7
Version Packages (#461)67a221f
next-mdx-remote
v5 (#448)5ca1064
Merge pull request #453 from hashicorp/compliance/add-headersa868874
[COMPLIANCE] Add Copyright and License Headers5b97c4b
chore: add issue templatesda4412a
Merge pull request #446 from hashicorp/ds.canary-releasesbab00c7
feat: add support for canary releases995a3b2
Merge pull request #440 from navidadelpour/fix-access-frontmatter-exampleb4de901
fix: remove indentations that cause issue in parsing frontmatter- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by hashibot-web, a new releaser for next-mdx-remote since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)