Releases: souporserious/renoun
Releases · souporserious/renoun
[email protected]
Patch Changes
[email protected]
[email protected]
[email protected]
Minor Changes
-
435c5e8: Allow overriding
frontMatter
type throughcreateSource
generic.import { createSource } from "mdxts"; export const allDocs = createSource<{ frontMatter: { title: string; description: string; date: string; tags?: string[]; }; }>("docs/*.mdx");
-
fac626b: Adds front matter type validation using the generic passed to
createSource
:import { createSource } from "mdxts"; export const allPosts = createSource<{ frontMatter: { title: string; date: Date; summary: string; tags?: string[]; }; }>("posts/**/*.mdx", { baseDirectory: "posts" });
--- title: Hello World date: 2021-01-01 --- # Hello World This is a post.
Results in the following type error:
Error: Front matter data is incorrect or missing [/posts/markdown-guide.mdx] Type '{}' does not satisfy the expected type 'frontMatter'. Type '{}' is missing the following properties from type 'frontMatter': summary
Patch Changes
-
7327000: Fixes WebSocket error during local development when first loading the page:
InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
[email protected]
Minor Changes
- 32c9686: Removes private
Editor
andPreview
components and related dependencies to reduce bundle size. - 6fcd390: Adds initial support for Next.js Turbopack locally.
Patch Changes
- 9feac19: Removes processing MDX files with Webpack loader since it is now handled through remark and
getAllData
.
[email protected]
Patch Changes
- 300587c: Fixes ESM chalk error by downgrading to previous version.
[email protected]
Patch Changes
- 24f9a9b: Fixes fetching the wrong version when reformatting the mdxts package version downloaded from examples.
- acfc425: Fixes
undefined
in message when using example option in CLI. - 9a69392: Adds link to blog example when first onboarding through the CLI.
- 96e401b: Fixes incorrect CLI outdated version comparison.
[email protected]
Patch Changes
- 77c4c10: Improves CLI onboarding by prompting to copy the blog example if not run in a project.
[email protected]
Minor Changes
- 88b9e10: Simplify
MDXContent
to not include plugins by default and instead expose newremarkPlugins
,rehypePlugins
, andbaseUrl
props. - ad09ddb: Moves
frontMatter
from Webpack loader to staticgetAllData
utility so front matter metadata is available when using thecreateSource.all
method. - b42a275: Removes
ShouldRenderTitle
transformation from Webpack loader and now adds it through a remark plugin.
Patch Changes
- e76e18e: Fixes headings getting incremented ids when duplicates do not exist.
[email protected]
Patch Changes
- 332af8f: Only install
mdxts
dependency when onboarding.