Bump next-contentlayer from 0.2.9 to 0.3.3 #30

Closed
dependabot[bot] wants to merge 1 commit from dependabot/npm_and_yarn/next-contentlayer-0.3.3 into main
dependabot[bot] commented 2024-02-26 14:52:58 +00:00 (Migrated from github.com)

Bumps next-contentlayer from 0.2.9 to 0.3.3.

Release notes

Sourced from next-contentlayer's releases.

0.3.3

ℹ️ [TLDR] New onSuccess callback that runs after completing a build successfully

✨ onSuccess Callback

A new callback will now be called when a successful build has completed.

The callback function receives a single argument that is an asynchronous function from which you can access data objects processed and generated by Contentlayer.

import { makeSource } from '@contentlayer/source-files'

export default makeSource({ onSuccess: async (importData) => { const { allDocuments } = await importData() console.log('allDocuments', allDocuments.length) } })

Running a build with the above configuration would yield something like the following on the console.

allDocuments 3

Closes #473

Better Non-Latin Character Support

Support has improved for characters in non-Latin languages. Fixes #337.

🙌 Thanks to @​huanfe1 for help!

Other Improvements

Here are the other improvements shipped with this version.

Fix Body Field Handling for MDX

@​stefanprobst resolved the discrepancy in handling a body field in frontmatter. Now, both Markdown and MDX files behave in the same way, supporting a body field in the frontmatter. See #451 for details.

Upgraded Dependencies

Dependencies have been upgraded to avoid warning messages. Fixes #360.

0.3.2

ℹ️ [TLDR] Bug fixes for next dev, Support for next export, bug fixes and updated dependencies

Improved next-contentlayer integration

As part of 0.3.2 we've overhauled the next-contentlayer integration with the goal of making it more stable and less dependent on implementation details of Next.js. This fixes #415 and #416 (thanks @​kamto7).

... (truncated)

Commits

Dependabot compatibility score

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)
Bumps [next-contentlayer](https://github.com/contentlayerdev/contentlayer) from 0.2.9 to 0.3.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/contentlayerdev/contentlayer/releases">next-contentlayer's releases</a>.</em></p> <blockquote> <h2>0.3.3</h2> <p>ℹ️ <strong>[TLDR]</strong> New onSuccess callback that runs after completing a build successfully</p> <h2>✨ <code>onSuccess</code> Callback</h2> <p>A new callback will now be called when a successful build has completed.</p> <p>The callback function receives a single argument that is an asynchronous function from which you can access data objects processed and generated by Contentlayer.</p> <pre lang="ts"><code>import { makeSource } from '@contentlayer/source-files' <p>export default makeSource({ onSuccess: async (importData) =&gt; { const { allDocuments } = await importData() console.log('allDocuments', allDocuments.length) } }) </code></pre></p> <p>Running a build with the above configuration would yield something like the following on the console.</p> <pre><code>allDocuments 3 </code></pre> <blockquote> <p>Closes <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/473">#473</a></p> </blockquote> <h2>Better Non-Latin Character Support</h2> <p>Support has improved for characters in non-Latin languages. Fixes <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/337">#337</a>.</p> <p>🙌 Thanks to <a href="https://github.com/huanfe1"><code>@​huanfe1</code></a> for help!</p> <h2>Other Improvements</h2> <p>Here are the other improvements shipped with this version.</p> <h3>Fix Body Field Handling for MDX</h3> <p><a href="https://github.com/stefanprobst"><code>@​stefanprobst</code></a> resolved the discrepancy in handling a <code>body</code> field in frontmatter. Now, both Markdown and MDX files behave in the same way, supporting a <code>body</code> field in the frontmatter. See <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/451">#451</a> for details.</p> <h3>Upgraded Dependencies</h3> <p>Dependencies have been upgraded to avoid warning messages. Fixes <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/360">#360</a>.</p> <h2>0.3.2</h2> <p>ℹ️ <strong>[TLDR]</strong> Bug fixes for <code>next dev</code>, Support for <code>next export</code>, bug fixes and updated dependencies</p> <h2>Improved <code>next-contentlayer</code> integration</h2> <p>As part of <code>0.3.2</code> we've overhauled the <code>next-contentlayer</code> integration with the goal of making it more stable and less dependent on implementation details of Next.js. This fixes <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/415">#415</a> and <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/416">#416</a> (thanks <a href="https://github.com/kamto7"><code>@​kamto7</code></a>).</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/6ce3fc60e7bcda298d87e23159ed3c389a5892a4"><code>6ce3fc6</code></a> release 0.3.3</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/74e2d32b48bbd015f4d8e3df91aa11473a13bde0"><code>74e2d32</code></a> onSuccess callback + prerelease</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/a374d248fc4c3ff591a807fbbb377a7ed4741bbd"><code>a374d24</code></a> upgrade deps</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/c5b60d4f4914568df694631c49c4c49d0a4874c9"><code>c5b60d4</code></a> better support non-latin file names (continued)</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/b87a1873e04762e025202d1d042c2d0f2121e57d"><code>b87a187</code></a> fix TS error</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/2ec10396d29faa08d6eec984766ac6d1e9bce405"><code>2ec1039</code></a> fix linting</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/7e9732a96a9f7a0627ee1dce4f9e04c9871d0b12"><code>7e9732a</code></a> better support non-latin file names (continued)</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/5364d4fc5f5ae5351c8d46f2ceda0326a5cc16c3"><code>5364d4f</code></a> Merge pull request <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/451">#451</a> from stefanprobst/fix/frontmatter-body-field</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/6984b2b35daa7d8ac06272354962d25e05a3244f"><code>6984b2b</code></a> upgraded deps</li> <li><a href="https://github.com/contentlayerdev/contentlayer/commit/cc9c67ed032c5734e13d27d48929390a4b41f78f"><code>cc9c67e</code></a> Merge pull request <a href="https://redirect.github.com/contentlayerdev/contentlayer/issues/466">#466</a> from wshow/main</li> <li>Additional commits viewable in <a href="https://github.com/contentlayerdev/contentlayer/compare/v0.2.9...v0.3.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=next-contentlayer&package-manager=npm_and_yarn&previous-version=0.2.9&new-version=0.3.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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) </details>
vercel[bot] commented 2024-02-26 14:53:00 +00:00 (Migrated from github.com)

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
beta-website ❌ Failed (Inspect) Feb 26, 2024 2:55pm
[vc]: #uSAndsEHTtGRjKK/nRQxiiVUaCFK3YdL1CZOqTwpaww=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJiZXRhLXdlYnNpdGUiLCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vaXN5dXJpY3VuaGEvYmV0YS13ZWJzaXRlLzduYWVIZlEyNXJHTWdMRmNvYW5zYkI2NmY0dUoiLCJwcmV2aWV3VXJsIjoiIiwibmV4dENvbW1pdFN0YXR1cyI6IkZBSUxFRCIsImxpdmVGZWVkYmFjayI6eyJyZXNvbHZlZCI6MCwidW5yZXNvbHZlZCI6MCwidG90YWwiOjAsImxpbmsiOiIifSwicm9vdERpcmVjdG9yeSI6bnVsbH1dfQ== **The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more) | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **beta-website** | ❌ Failed ([Inspect](https://vercel.com/isyuricunha/beta-website/7naeHfQ25rGMgLFcoansbB66f4uJ)) | | | Feb 26, 2024 2:55pm |
dependabot[bot] commented 2024-02-26 23:50:24 +00:00 (Migrated from github.com)

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting `@dependabot ignore this major version` or `@dependabot ignore this minor version`. You can also ignore all major, minor, or patch releases for a dependency by adding an [`ignore` condition](https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#ignore) with the desired `update_types` to your config file. If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

Pull request closed

Sign in to join this conversation.
No description provided.