Skip to content

Commit 6984b2b

Browse files
committed
upgraded deps
1 parent cc9c67e commit 6984b2b

File tree

14 files changed

+755
-464
lines changed

14 files changed

+755
-464
lines changed

examples/next-rsc-dynamic/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
},
1010
"dependencies": {
1111
"contentlayer": "latest",
12-
"date-fns": "2.29.3",
13-
"next": "13.3.1",
12+
"date-fns": "2.30.0",
13+
"next": "13.4.4",
1414
"next-contentlayer": "latest",
1515
"react": "18.2.0",
1616
"react-dom": "18.2.0"
1717
},
1818
"devDependencies": {
19-
"@types/react": "18.0.38",
19+
"@types/react": "18.2.7",
2020
"autoprefixer": "^10.4.14",
21-
"postcss": "^8.4.23",
22-
"tailwindcss": "^3.2.7",
21+
"postcss": "^8.4.24",
22+
"tailwindcss": "^3.3.2",
2323
"typescript": "5.0.4"
2424
}
2525
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"@changesets/cli": "2.19.0-temp.0",
3030
"@effect-ts/tracing-plugin": "^0.20.0",
3131
"@types/prettier": "^2.7.2",
32-
"@typescript-eslint/eslint-plugin": "^5.59.0",
33-
"@typescript-eslint/parser": "^5.59.0",
34-
"eslint": "^8.39.0",
32+
"@typescript-eslint/eslint-plugin": "^5.59.8",
33+
"@typescript-eslint/parser": "^5.59.8",
34+
"eslint": "^8.41.0",
3535
"eslint-config-prettier": "^8.8.0",
3636
"eslint-plugin-import": "^2.27.5",
3737
"eslint-plugin-react-hooks": "^4.6.0",

packages/@contentlayer/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"typanion": "^3.12.1"
2020
},
2121
"devDependencies": {
22-
"@types/node": "^18.16.0"
22+
"@types/node": "^20.2.5"
2323
}
2424
}

packages/@contentlayer/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"mdx-bundler": "^9.2.1",
3434
"rehype-stringify": "^9.0.3",
3535
"remark-frontmatter": "^4.0.1",
36-
"remark-parse": "^10.0.1",
36+
"remark-parse": "^10.0.2",
3737
"remark-rehype": "^10.1.0",
3838
"source-map-support": "^0.5.21",
39-
"type-fest": "^3.7.1",
39+
"type-fest": "^3.11.1",
4040
"unified": "^10.1.2"
4141
},
4242
"devDependencies": {
Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1 @@
1-
import type { AbsolutePosixFilePath, RelativePosixFilePath } from '@contentlayer/utils'
2-
import { filePathJoin, fs } from '@contentlayer/utils'
3-
import type { OT } from '@contentlayer/utils/effect'
4-
import { pipe, T } from '@contentlayer/utils/effect'
5-
import type { GetContentlayerVersionError } from '@contentlayer/utils/node'
6-
import { getContentlayerVersion } from '@contentlayer/utils/node'
7-
8-
import type { HasCwd } from './cwd.js'
9-
import { getCwd } from './cwd.js'
10-
// import utilsPkg from '@contentlayer/utils/package.json'
11-
12-
export namespace ArtifactsDir {
13-
export const getDirPath = ({ cwd }: { cwd: AbsolutePosixFilePath }): AbsolutePosixFilePath =>
14-
filePathJoin(cwd, '.contentlayer' as AbsolutePosixFilePath)
15-
16-
export const mkdir: T.Effect<OT.HasTracer & HasCwd & fs.HasFs, fs.MkdirError, AbsolutePosixFilePath> = T.gen(
17-
function* ($) {
18-
const cwd = yield* $(getCwd)
19-
const dirPath = getDirPath({ cwd })
20-
21-
yield* $(fs.mkdirp(dirPath))
22-
23-
return dirPath
24-
},
25-
)
26-
27-
export const getCacheDirPath: T.Effect<
28-
OT.HasTracer & HasCwd & fs.HasFs,
29-
GetContentlayerVersionError,
30-
AbsolutePosixFilePath
31-
> = pipe(
32-
T.struct({
33-
contentlayerVersion: getContentlayerVersion(),
34-
cwd: getCwd,
35-
}),
36-
T.map(({ contentlayerVersion, cwd }) =>
37-
filePathJoin(
38-
getDirPath({ cwd }),
39-
'.cache' as RelativePosixFilePath,
40-
`v${contentlayerVersion}` as RelativePosixFilePath,
41-
),
42-
),
43-
)
44-
45-
export const mkdirCache: T.Effect<
46-
OT.HasTracer & HasCwd & fs.HasFs,
47-
fs.MkdirError | GetContentlayerVersionError,
48-
AbsolutePosixFilePath
49-
> = pipe(
50-
getCacheDirPath,
51-
T.tap((_) => fs.mkdirp(_)),
52-
)
53-
}
1+
export * as ArtifactsDir from './_ArtifactsDir.js'
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import type { AbsolutePosixFilePath, RelativePosixFilePath } from '@contentlayer/utils'
2+
import { filePathJoin, fs } from '@contentlayer/utils'
3+
import type { OT } from '@contentlayer/utils/effect'
4+
import { pipe, T } from '@contentlayer/utils/effect'
5+
import type { GetContentlayerVersionError } from '@contentlayer/utils/node'
6+
import { getContentlayerVersion } from '@contentlayer/utils/node'
7+
8+
import type { HasCwd } from './cwd.js'
9+
import { getCwd } from './cwd.js'
10+
// import utilsPkg from '@contentlayer/utils/package.json'
11+
12+
export const getDirPath = ({ cwd }: { cwd: AbsolutePosixFilePath }): AbsolutePosixFilePath =>
13+
filePathJoin(cwd, '.contentlayer' as AbsolutePosixFilePath)
14+
15+
export const mkdir: T.Effect<OT.HasTracer & HasCwd & fs.HasFs, fs.MkdirError, AbsolutePosixFilePath> = T.gen(function* (
16+
$,
17+
) {
18+
const cwd = yield* $(getCwd)
19+
const dirPath = getDirPath({ cwd })
20+
21+
yield* $(fs.mkdirp(dirPath))
22+
23+
return dirPath
24+
})
25+
26+
export const getCacheDirPath: T.Effect<
27+
OT.HasTracer & HasCwd & fs.HasFs,
28+
GetContentlayerVersionError,
29+
AbsolutePosixFilePath
30+
> = pipe(
31+
T.struct({
32+
contentlayerVersion: getContentlayerVersion(),
33+
cwd: getCwd,
34+
}),
35+
T.map(({ contentlayerVersion, cwd }) =>
36+
filePathJoin(
37+
getDirPath({ cwd }),
38+
'.cache' as RelativePosixFilePath,
39+
`v${contentlayerVersion}` as RelativePosixFilePath,
40+
),
41+
),
42+
)
43+
44+
export const mkdirCache: T.Effect<
45+
OT.HasTracer & HasCwd & fs.HasFs,
46+
fs.MkdirError | GetContentlayerVersionError,
47+
AbsolutePosixFilePath
48+
> = pipe(
49+
getCacheDirPath,
50+
T.tap((_) => fs.mkdirp(_)),
51+
)

packages/@contentlayer/core/src/generation/generate-dotpkg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { AbsolutePosixFilePath, RelativePosixFilePath } from '@contentlayer/utils'
22
import { filePathJoin, fs, relative } from '@contentlayer/utils'
33
import type { E, HasClock, HasConsole } from '@contentlayer/utils/effect'
4-
import { Array, Chunk, flow, OT, pipe, S, T } from '@contentlayer/utils/effect'
4+
import { Array, Chunk, OT, pipe, S, T } from '@contentlayer/utils/effect'
55
import type { GetContentlayerVersionError } from '@contentlayer/utils/node'
66
import { getContentlayerVersion } from '@contentlayer/utils/node'
77
import { camelCase } from 'camel-case'

packages/@contentlayer/source-contentful/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "echo No tests yet"
1414
},
1515
"devDependencies": {
16-
"@types/node": "^18.16.0"
16+
"@types/node": "^20.2.5"
1717
},
1818
"dependencies": {
1919
"@contentlayer/core": "workspace:*",

packages/@contentlayer/source-files/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
"gray-matter": "^4.0.3",
3636
"imagescript": "^1.2.16",
3737
"micromatch": "^4.0.5",
38-
"ts-pattern": "^4.2.2",
38+
"ts-pattern": "^4.3.0",
3939
"unified": "^10.1.2",
4040
"yaml": "^1.10.2",
4141
"zod": "^3.21.4"
4242
},
4343
"devDependencies": {
44-
"@faker-js/faker": "^7.6.0",
44+
"@faker-js/faker": "^8.0.2",
4545
"@types/micromatch": "^4.0.2",
46-
"@types/node": "^18.16.0",
47-
"@types/sharp": "^0.31.1",
46+
"@types/node": "^20.2.5",
47+
"@types/sharp": "^0.32.0",
4848
"@types/yaml": "^1.9.7",
49-
"sharp": "^0.32.0",
49+
"sharp": "^0.32.1",
5050
"vite": "^4.3.1",
5151
"vitest": "0.30.1"
5252
}

0 commit comments

Comments
 (0)