Skip to content

Releases: souporserious/renoun

renoun@4.2.0

22 Sep 05:49
497c986
Compare
Choose a tag to compare

Minor Changes

  • 2d64da1: Adds a PackageInstall component for displaying a list of package manager install commands that can be copied.

Patch Changes

  • 2ad1db1: Removes unused createCollection title and label options.
  • 779df0a: Adds better error when trying to create a collection within a route group file pattern that needs to be escaped properly.
  • 170d382: Fixes error when collection baseDirectory does not have any additional segments after normalizing file paths.

@renoun/mdx@1.0.1

22 Sep 05:49
497c986
Compare
Choose a tag to compare

Patch Changes

  • ca8b35d: Enables old school dashes through SmartyPants remark plugin.

renoun@4.1.0

19 Sep 00:26
81c1bde
Compare
Choose a tag to compare

Minor Changes

  • 9f6c0f2: Moves config from .renoun/config.json to renoun.json. See configuration docs for more information.

  • 1a71061: Moves renoun package to ESM only. To upgrade in Next.js projects, modify the next.config.js file to include the following in the webpack extensionAlias configuration:

    export default {
      webpack(config) {
        config.resolve.extensionAlias = {
          '.js': ['.ts', '.tsx', '.js'],
        }
    
        // ...
    
        return config
      },
    }
  • 3c78b3e: Adds the ability to filter export sources when creating a collection:

    import {
      createCollection,
      isFileSystemSource,
      isExportSource,
    } from 'renoun/collections'
    
    export const ComponentsCollection = createCollection<
      Record<string, React.ComponentType>
    >('src/components/**/*.{ts,tsx}', {
      baseDirectory: 'components',
      basePath: 'components',
      filter: (source) => {
        if (isFileSystemSource(source)) {
          if (source.isFile()) {
            const allInternal = source
              .getExports()
              .every((exportSource) =>
                exportSource.getTags()?.every((tag) => tag.tagName === 'internal')
              )
    
            if (allInternal) {
              return false
            }
          }
        }
    
        if (isExportSource(source)) {
          if (source.getTags()?.find((tag) => tag.tagName === 'internal')) {
            return false
          }
        }
    
        return true
      },
    })

Patch Changes

  • aaf965c: Collections now respect the tsconfig ignore field if defined and will filter out sources that should be ignored.
  • e40258a: Fixes large font sizes on mobile devices. See this article for more info.
  • bf684ca: Fixes svg warning for logo asset.
  • af07785: Uses css container padding for CodeBlock internal padding if defined.
  • d207ecc: Fixes CodeBlock highlightedLines regression.
  • cb3843c: Fixes suspense fallback layout shift during local development.
  • 700969a: Normalizes custom CodeBlock padding values to offset CopyButton correctly.

@renoun/mdx@1.0.0

19 Sep 00:26
81c1bde
Compare
Choose a tag to compare

Major Changes

  • 3565fa9: Adds @renoun/mdx package that includes pre-configured and custom remark and rehype plugins.

renoun@4.0.0

16 Sep 05:51
1608806
Compare
Choose a tag to compare

Major Changes

  • 8e1a7e1: Renames the package from omnidoc to renoun.

@renoun/mdx-plugins@1.0.0

16 Sep 05:51
1608806
Compare
Choose a tag to compare

Major Changes

  • 52b18ed: Renames the package from @omnidoc/mdx-plugins to @renoun/mdx-plugins.

omnidoc@3.2.1

15 Sep 01:03
b16898b
Compare
Choose a tag to compare

Patch Changes

  • 677d117: Clean up formatting for source export errors.
  • 830724b: Prevents exiting the process in development when the collection does not target valid directories or source files to allow fixing without restarting the server.

@omnidoc/mdx-plugins@0.1.1

15 Sep 01:03
b16898b
Compare
Choose a tag to compare

Patch Changes

omnidoc@3.2.0

06 Sep 01:26
Compare
Choose a tag to compare

Minor Changes

  • c017f16: Adds @omnidoc/mdx-plugins package that includes pre-configured and custom remark and rehype plugins.
  • a2f85cb: Adds filter option to createCollection for filtering by specific file system sources.

Patch Changes

  • 8267207: Adds better error handling when trying to update the project based on a file system change.

@omnidoc/mdx-plugins@0.1.0

06 Sep 01:26
Compare
Choose a tag to compare

Minor Changes

  • c017f16: Adds @omnidoc/mdx-plugins package that includes pre-configured and custom remark and rehype plugins.