Releases: souporserious/renoun
[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.
[email protected]
Patch Changes
- f35df99: Fixes the
getGitMetadata
utility erroring when running MDXTS in a project that does not have git instantiated. - fa4d329: Fixes the Webpack loader not updating dynamic imports when the
createSource
file pattern directory changes. - d651cd0: Filter empty lines from git log to avoid
getGitMetadata
erroring related to #81. - d3fc5ac: Throw more helpful error if MDX code block is empty.
[email protected]
Minor Changes
-
a7bae02: Reformat
createSource.all
method to return an array instead of an object.const allDocs = createSource('docs/*.mdx') ---Object.values(allDocs.all()).map((doc) => ...) +++allDocs.all().map((doc) => ...)
-
7942259: Move source item
gitMetadata
to top-level fields.import { MetadataRoute } from 'next' import { allData } from 'data' export default function sitemap(): MetadataRoute.Sitemap { return Object.values(allData.all()).map((data) => ({ url: `https://mdxts.dev/${data.pathname}`, --- lastModified: data.gitMetadata.updatedAt, +++ lastModified: data.updatedAt, })) }
-
305d1a4: Throw error if attempting to use git metadata and repo is shallowly cloned.
-
ba37a05: Adds
url
field to source item that concatenatessiteUrl
withpathname
. -
e487e1f: Adds a remark plugin to transform relative ordered links:
--- [./02.rendering.mdx] +++ [./rendering]
Patch Changes
[email protected]
Minor Changes
-
90863ba: Adds RSS feed helper for
createSource
andmergeSources
:// app/rss.xml/route.js import { allData } from "data"; export async function GET() { const feed = allData.rss({ title: "MDXTS - The Content & Documentation SDK for React", description: "Type-safe content and documentation.", copyright: `©${new Date().getFullYear()} @souporserious`, }); return new Response(feed, { headers: { "Content-Type": "application/rss+xml", }, }); }
-
4121eb9: Replaces
remark-typography
with the more popularremark-smartypants
package. -
7367b1d: Adds ISO 8601 duration to
readingTime
metadata for easier use withtime
HTML element. -
e04f4f6: Adds
createdAt
,updatedAt
, andauthors
fields tocreateSource
item. This implementation is inspired by unified-infer-git-meta. -
9c6d65a: Adds
readingTime
field tocreateSource
item using rehype-infer-reading-time-meta. -
fb0299d: Adds support for Codesandbox embeds in MDX.
Patch Changes
- 6e68e11: Fixes an issue where saving content did not trigger a fast refresh locally. This adds a web socket server component to the Content component to ensure a refresh is always triggered.
- fafdcc6: Adds default
feedLinks.rss
option when creating rss feeds. - df41a98: Fixes empty
createSource
when targeting JavaScript/TypeScript without anindex
file.