Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages #638

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/blue-pandas-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'next-contentlayer': minor
---

Support next 14
16 changes: 13 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["@contentlayer/*", "contentlayer", "next-contentlayer"]],
"fixed": [
[
"@contentlayer/*",
"contentlayer",
"next-contentlayer"
]
],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["examples-*"],
"ignore": [
"*-example",
"next-rsc-dynamic",
"next-images"
],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"useCalculatedVersionForSnapshots": true
}
}
}
5 changes: 5 additions & 0 deletions .changeset/fresh-buckets-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@contentlayer/core': minor
---

Update unified ecosystem dependencies
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
build-example-next-contentlayer-example:
strategy:
matrix:
node-version: [17, 18, 19, 20] # `app` dir requires 17+
node-version: [18, 19, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
build-example-next-rsc-dynamic-example:
strategy:
matrix:
node-version: [17, 18, 19, 20] # `app` dir requires 17+
node-version: [18, 19, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -55,7 +55,7 @@ jobs:
build-example-next-images-example:
strategy:
matrix:
node-version: [17, 18, 19, 20] # `app` dir requires 17+
node-version: [18, 19, 20]
# TODO re-enable windows
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
Expand Down
6 changes: 1 addition & 5 deletions examples/next-images/next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
const { withContentlayer } = require("next-contentlayer");

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
};
const nextConfig = {}

module.exports = withContentlayer(nextConfig);
2 changes: 1 addition & 1 deletion examples/next-images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"contentlayer": "latest",
"date-fns": "2.30.0",
"next": "13.4.7",
"next": "14.1.0",
"next-contentlayer": "latest",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
4 changes: 1 addition & 3 deletions examples/next-rsc-dynamic/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { withContentlayer } = require('next-contentlayer')

module.exports = withContentlayer({
experimental: { appDir: true, },
})
module.exports = withContentlayer({})
2 changes: 1 addition & 1 deletion examples/next-rsc-dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"contentlayer": "latest",
"date-fns": "2.30.0",
"next": "13.4.7",
"next": "14.1.0",
"next-contentlayer": "latest",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
18 changes: 9 additions & 9 deletions packages/@contentlayer/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "echo No tests yet"
},
"peerDependencies": {
"esbuild": "0.17.x || 0.18.x",
"esbuild": "0.17.x || 0.18.x || 0.19.x || 0.20.x",
"markdown-wasm": "1.x"
},
"peerDependenciesMeta": {
Expand All @@ -28,16 +28,16 @@
"@contentlayer/utils": "workspace:*",
"camel-case": "^4.1.2",
"comment-json": "^4.2.3",
"esbuild": "0.17.x || 0.18.x",
"esbuild": "0.17.x || 0.18.x || 0.19.x || 0.20.x",
"gray-matter": "^4.0.3",
"mdx-bundler": "^9.2.1",
"rehype-stringify": "^9.0.3",
"remark-frontmatter": "^4.0.1",
"remark-parse": "^10.0.2",
"remark-rehype": "^10.1.0",
"mdx-bundler": "^10.0.1",
"rehype-stringify": "^10.0.0",
"remark-frontmatter": "^5.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"source-map-support": "^0.5.21",
"type-fest": "^3.12.0",
"unified": "^10.1.2"
"type-fest": "^4.10.0",
"unified": "^11.0.4"
},
"devDependencies": {
"@types/source-map-support": "^0.5.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/@contentlayer/core/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type MDXOptions = {
resolveCwd?: 'relative' | 'contentDirPath'
} & Omit<mdxBundler.BundleMDXOptions<any>, 'mdxOptions'>

export type MDXBundlerMapOptions = (options: mdxEsbuild.ProcessorOptions) => mdxEsbuild.ProcessorOptions
export type MDXBundlerMapOptions = (options: mdxEsbuild.CompileOptions) => mdxEsbuild.CompileOptions

export type DateOptions = {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@stackbit/sdk": "~0.3.25"
},
"devDependencies": {
"vite": "^4.3.1",
"vitest": "0.30.1"
"vite": "^5.0.12",
"vitest": "1.2.2"
},
"license": "MIT"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'vitest/config'
import path from 'path'

export default defineConfig({
test: {
deps: {
moduleDirectories: ['node_modules', path.resolve('../../../packages')],
},
},
})
10 changes: 5 additions & 5 deletions packages/@contentlayer/source-files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"gray-matter": "^4.0.3",
"imagescript": "^1.2.16",
"micromatch": "^4.0.5",
"ts-pattern": "^4.3.0",
"unified": "^10.1.2",
"ts-pattern": "^5.0.6",
"unified": "^11.0.4",
"yaml": "^2.3.1",
"zod": "^3.21.4"
"zod": "^3.22.4"
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
Expand All @@ -47,8 +47,8 @@
"@types/sharp": "^0.32.0",
"@types/yaml": "^1.9.7",
"sharp": "^0.32.1",
"vite": "^4.3.1",
"vitest": "0.30.1"
"vite": "^5.0.12",
"vitest": "1.2.2"
},
"license": "MIT"
}
Loading