Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2023

Bumps next-contentlayer from 0.2.4 to 0.3.0.

Release notes

Sourced from next-contentlayer's releases.

0.3.0

ℹ️ [TLDR] New experimental source and required peer dependency update.

⚠️ Breaking Change: Updated esbuild Dependency

0.3.0 requires use of esbuild 0.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 syncFiles property) 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.

import { makeSource } from 'contentlayer/source-remote-files'
export default makeSource({
syncFiles: () => syncContentFromGit(),
contentDirPath: 'remote-content',
documentTypes: [Post],
disableImportAliasWarning: true,
})
const syncContentFromGit = async () => {
const syncRun = async () => {
const repoAlreadyCloned = false
if (repoAlreadyCloned) {
// TODO git clone the repo
} else {
// TODO git pull the repo
}
}
let wasCancelled = false
let syncInterval
const syncLoop = async () => {
await syncRun()
if (wasCancelled) return
syncInterval = setTimeout(syncLoop, 1000 * 60)

}
syncLoop()
return () => {
wasCancelled = true
</tr></table>

... (truncated)

Commits
  • 3a8ca11 Merge pull request #354 from contentlayerdev/feat/v0.3.0
  • 237b1a9 Released 0.3.0
  • 899684e Merge pull request #355 from hafidzamr/hafidz/url
  • 177c4e9 update url using contentlayer
  • bc5a857 Released 0.2.10-dev.5
  • 71eda53 remote content source (experimental)
  • 75d8ad9 Released 0.2.10-dev.4
  • 90aaa11 upgrade stackbit dep
  • 92626eb new example: node-script-mdx
  • bb4f4af introduce defineComputedFields & defineFields
  • Additional commits viewable in compare view

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 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.4 to 0.3.0.
- [Release notes](https://github.com/contentlayerdev/contentlayer/releases)
- [Commits](contentlayerdev/contentlayer@v0.2.4...v0.3.0)

---
updated-dependencies:
- dependency-name: next-contentlayer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant