Bump trim and next-mdx-remote #19

Merged
dependabot[bot] merged 1 commit from dependabot/npm_and_yarn/trim-and-next-mdx-remote--removed into main 2023-08-17 04:54:39 +00:00
dependabot[bot] commented 2023-08-17 04:54:13 +00:00 (Migrated from github.com)

Removes trim. It's no longer used after updating ancestor dependency next-mdx-remote. These dependencies need to be updated together.

Removes trim

Updates next-mdx-remote from 3.0.4 to 4.4.1

Release notes

Sourced from next-mdx-remote's releases.

v4.4.1

What's Changed

Full 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 or compileMDX and have it propagate through to the returned frontmatter 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 (
	&lt;&gt;
		&lt;h1&gt;{frontmatter.title}&lt;/h1&gt;
		{content}
	&lt;/&gt;
)

}

What's Changed

... (truncated)

Commits

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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.
Removes [trim](https://github.com/Trott/trim). It's no longer used after updating ancestor dependency [next-mdx-remote](https://github.com/hashicorp/next-mdx-remote). These dependencies need to be updated together. Removes `trim` Updates `next-mdx-remote` from 3.0.4 to 4.4.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hashicorp/next-mdx-remote/releases">next-mdx-remote's releases</a>.</em></p> <blockquote> <h2>v4.4.1</h2> <h2>What's Changed</h2> <ul> <li>chore(types): remove unused imports by <a href="https://github.com/thiskevinwang"><code>@​thiskevinwang</code></a> in <a href="https://redirect.github.com/hashicorp/next-mdx-remote/pull/348">hashicorp/next-mdx-remote#348</a></li> <li>fix: Make sure frontmatter types flow through to MDXRemote by <a href="https://github.com/BRKalow"><code>@​BRKalow</code></a> in <a href="https://redirect.github.com/hashicorp/next-mdx-remote/pull/351">hashicorp/next-mdx-remote#351</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/hashicorp/next-mdx-remote/compare/v4.4.0...v4.4.1">https://github.com/hashicorp/next-mdx-remote/compare/v4.4.0...v4.4.1</a></p> <h2>v4.4.0</h2> <p>This release includes a few fixes for frontmatter types, as well as a way to provide a frontmatter type to <code>serialize</code> or <code>compileMDX</code> and have it propagate through to the returned <code>frontmatter</code> property. See the <a href="https://github.com/hashicorp/next-mdx-remote#access-frontmatter-outside-of-mdx">documentation</a> for an example.</p> <p><code>serialize</code>:</p> <pre lang="ts"><code>import { serialize } from 'next-mdx-remote/serialize' <p>interface Frontmatter { title: string published: string description?: string }</p> <p>// 👇 should have type Frontmatter const { frontmatter } = serialize&lt;Record&lt;string, unknown&gt;, Frontmatter&gt;(source) </code></pre></p> <p><code>compileMDX</code>:</p> <pre lang="tsx"><code>import { compileMDX } from 'next-mdx-remote/rsc' <p>interface Frontmatter { title: string published: string description?: string }</p> <p>export default async function Page({ source }) { // 👇 should have type Frontmatter const { content, frontmatter } = await compileMDX&lt;Frontmatter&gt;(source)</p> <pre><code>return ( &amp;lt;&amp;gt; &amp;lt;h1&amp;gt;{frontmatter.title}&amp;lt;/h1&amp;gt; {content} &amp;lt;/&amp;gt; ) </code></pre> <p>} </code></pre></p> <h2>What's Changed</h2> <ul> <li>docs: fix react server components example by <a href="https://github.com/greyhere"><code>@​greyhere</code></a> in <a href="https://redirect.github.com/hashicorp/next-mdx-remote/pull/334">hashicorp/next-mdx-remote#334</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/1c8acee5d1aa9e22814165e15c344b62f8aa284e"><code>1c8acee</code></a> 4.4.1</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/e4c7a698f96153e7996a8ca10b9b13b77fccef53"><code>e4c7a69</code></a> fix: Make sure frontmatter types flow through to MDXRemote (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/351">#351</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/e7f6ec10d4f8a5a956f679cda3e33e7a3a2a1dc2"><code>e7f6ec1</code></a> chore(types): remove unused imports (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/348">#348</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/ce066d791df7b30fd79b9dcce2d52d15582d9edc"><code>ce066d7</code></a> 4.4.0</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/2b3558220ab3c194db3df49adb34b5bfcb044530"><code>2b35582</code></a> feat: Improve frontmatter types, pass generic TFrontmatter type through (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/342">#342</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/697c6828800ca0e41727d7b6180d93ee21f47f51"><code>697c682</code></a> remove newline from template literal (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/346">#346</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/772d2132928ab1a7fede4d328a14e4e4cd9a9dd7"><code>772d213</code></a> fix: TFrontmatter type to unknown (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/340">#340</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/c559bdc6be1a94cb8a3c2e0d6d4d8a471bdbc037"><code>c559bdc</code></a> fix(rsc): do not require compiledSource in types (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/339">#339</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/1508a5300a514e80779d55d3ea4382f63081558d"><code>1508a53</code></a> Bump decode-uri-component from 0.2.0 to 0.2.2 (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/318">#318</a>)</li> <li><a href="https://github.com/hashicorp/next-mdx-remote/commit/e9c02751dc6cb7cc8ec50f6108da2204dd85af61"><code>e9c0275</code></a> Bump semver-regex from 2.0.0 to 3.1.4 (<a href="https://redirect.github.com/hashicorp/next-mdx-remote/issues/313">#313</a>)</li> <li>Additional commits viewable in <a href="https://github.com/hashicorp/next-mdx-remote/compare/3.0.4...v4.4.1">compare view</a></li> </ul> </details> <br /> 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/isyuricunha/website/network/alerts). </details>
Sign in to join this conversation.
No description provided.