fix(deps): update contentlayer to v0.3.3 - abandoned - #233
Open
renovate[bot] wants to merge 2 commits into
Open
renovate[bot] wants to merge 2 commits into
renovate[bot] wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
renovate
Bot
force-pushed
the
renovate/contentlayer
branch
from
May 12, 2023 15:28
24c9e8e to
437755a
Compare
renovate
Bot
force-pushed
the
renovate/contentlayer
branch
from
May 12, 2023 15:48
437755a to
4598922
Compare
renovate
Bot
force-pushed
the
renovate/contentlayer
branch
from
May 31, 2023 16:26
4598922 to
68d4433
Compare
renovate
Bot
force-pushed
the
renovate/contentlayer
branch
from
June 5, 2023 23:05
68d4433 to
400e892
Compare
renovate
Bot
force-pushed
the
renovate/contentlayer
branch
from
June 6, 2023 18:07
400e892 to
057b0b2
Compare
tylersmalley
force-pushed
the
renovate/contentlayer
branch
from
June 6, 2023 18:39
759e377 to
ce0f459
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
Signed-off-by: Tyler Smalley <[email protected]>
tylersmalley
force-pushed
the
renovate/contentlayer
branch
from
June 6, 2023 18:42
f18d71d to
52f5424
Compare
Contributor
Author
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.2.8->0.3.30.2.8->0.3.3Release Notes
contentlayerdev/contentlayer
v0.3.3: 0.3.3Compare Source
ℹ️ [TLDR] New onSuccess callback that runs after completing a build successfully
✨
onSuccessCallbackA 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.
Running a build with the above configuration would yield something like the following on the console.
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
bodyfield in frontmatter. Now, both Markdown and MDX files behave in the same way, supporting abodyfield in the frontmatter. See #451 for details.Upgraded Dependencies
Dependencies have been upgraded to avoid warning messages. Fixes #360.
v0.3.2: 0.3.2Compare Source
ℹ️ [TLDR] Bug fixes for
next dev, Support fornext export, bug fixes and updated dependenciesImproved
next-contentlayerintegrationAs part of
0.3.2we've overhauled thenext-contentlayerintegration with the goal of making it more stable and less dependent on implementation details of Next.js. This fixes #415 and #416 (thanks @kamto7).As part of this effort (and by no longer relying on the
redirectsworkaround) Contentlayer now also works withnext export. (closes #426)Other Improvements
contentDirIncludedidn't work in some cases (closes #383 - thanks to @teobler)Note about state of the project
Please also take a look at #429 to read about the current state of the project. 💜
v0.3.1: 0.3.1Compare Source
ℹ️ [TLDR] React Server Components support, Dynamic content fetching (experimental), updated dependencies, bug fixes
React Server Components (RSC) support
We're super excited to announce that Contentlayer now supports React Server Components (RSC) out of the box! 🎉
We've updated our Next.js example to use RSC and it works like a charm. You can find the full example here. (Our docs will be updated shortly as well.)
We now recommend using RSC over the old
getStaticProps/getStaticPathsapproach. RSC is much more flexible and even allows you to use Contentlayer's dynamic content fetching API (see below).Note: While it's theoretically also possible to use Contentlayer combined with the
'use client'approach, we don't recommend it as it massively increases page sizes and thus the page load time.Experimental: Dynamic content fetching (e.g. in React Server Components)
Contentlayer is mostly used to build content-based static sites. However, in some cases it can be required/useful to fetch & process (remote) content dynamically at runtime (e.g. via React Server Components). This is now possible with the new (still experimental)
fetchContentAPI for thecontentlayer/source-remote-filescontent source. (Closes #85).Here is a shortend example of how to use it (see full example for full details):
Other Improvements
v0.3.0: 0.3.0Compare Source
ℹ️ [TLDR] New experimental source and required peer dependency update.
0.3.0requires use of esbuild0.17.0. You may need to update peer dependencies if experiencing installation issues.✨ New Source: Remote Files [experimental]
While still focused on content coming from files, you can begin to explore loading content from files not located in your repository.
This works by syncing content from a remote location into your local workspace, and then behaves similarly to the files source. Contentlayer provides the hook (via a
syncFilesproperty) for syncing the files, but you must write the code that pulls the files in.Here is simple example with a remote Git repo and documentation.
✨ New helper functions:
defineComputedFields&defineFieldsYou can now use a
defineComputedFieldsfunction to leverage the document type, including its static fields. Here's an example:Other Improvements
mdxOptionsnow always applies default Contentlayer remark plugins.v0.2.9: 0.2.9Compare Source
Changes
Next.js 13 Support
Slightly delayed (sorry about that) Contentlayer now finally supports the Next.js version 13. Things should work just as they did before when using
getStaticProps. 🚀However, unfortunately React Server Components (RSC) can't yet be used with Contentlayer as there's a number of blocking bugs in Next.js itself (e.g. https://github.com/vercel/next.js/issues/41865) which need to be fixed first. You can track the progress here: https://github.com/contentlayerdev/contentlayer/issues/311
Other changes
useMDXComponent(https://github.com/contentlayerdev/contentlayer/pull/312 - thanks @Andrey-Bazhanov)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 PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.