Skip to content

Releases: souporserious/renoun

[email protected]

18 Apr 00:20
7af2f21
Compare
Choose a tag to compare

Patch Changes

  • bf65891: Fixes inferred front matter for createSource.get method.
  • 94fd7fe: Silence jju warnings used by @manypkg/find-root.
  • a79d453: Handles nested fields when type checking front matter.
  • 635de6c: Bail early if not a git repository to avoid printing git errors when not initialized yet.

[email protected]

18 Apr 00:20
7af2f21
Compare
Choose a tag to compare

Patch Changes

  • 1468536: Add .gitignore file when cloning example.
  • dcf722b: Fixes specifying a custom directory to copy examples to.

[email protected]

18 Apr 06:23
46f02c6
Compare
Choose a tag to compare

Patch Changes

  • 4be36bc: Save version check to local cache.
  • 29c8865: Uses the correct working directory when creating example files.

[email protected]

16 Apr 20:01
Compare
Choose a tag to compare

Minor Changes

  • 435c5e8: Allow overriding frontMatter type through createSource 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]

04 Apr 00:08
faad5c7
Compare
Choose a tag to compare

Minor Changes

  • 32c9686: Removes private Editor and Preview 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]

04 Apr 17:55
1296956
Compare
Choose a tag to compare

Patch Changes

  • 300587c: Fixes ESM chalk error by downgrading to previous version.

[email protected]

04 Apr 17:10
c74bfbf
Compare
Choose a tag to compare

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]

04 Apr 00:08
faad5c7
Compare
Choose a tag to compare

Patch Changes

  • 77c4c10: Improves CLI onboarding by prompting to copy the blog example if not run in a project.

[email protected]

03 Apr 08:22
9f692de
Compare
Choose a tag to compare

Minor Changes

  • 88b9e10: Simplify MDXContent to not include plugins by default and instead expose new remarkPlugins, rehypePlugins, and baseUrl props.
  • ad09ddb: Moves frontMatter from Webpack loader to static getAllData utility so front matter metadata is available when using the createSource.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]

03 Apr 08:22
9f692de
Compare
Choose a tag to compare

Patch Changes

  • 332af8f: Only install mdxts dependency when onboarding.