Skip to content

Releases: mburumaxwell/markdownlayer

[email protected]

18 Sep 19:26
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • 0bf3162: Restore support for CJS.
    This solves some issues in NextJS config files.
    Setting "type": "module" in applications is no longer required.
  • 0f7bc8e: Support NextJS 15 and React 19

[email protected]

23 Jul 18:09
fca4b3f
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • 2cfb6c0: Split images logic away from remark-transform-links

Patch Changes

  • c03e1ce: Add issue for each esbuild error from mdx compilation
  • 72a2404: Skip links without extension in remark-transform-links
  • 6c507d8: Continue gracefully if transform link or image fails in remark plugins

[email protected]

23 Jul 15:30
bbb1465
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • c4af058: Support transforming links and images with exclusion of document files

[email protected]

21 Jul 10:46
b190960
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 96d03a0: Allow empty strings for slugs such as when dealing with index.md or index/index.md files

[email protected]

21 Jul 07:44
072f0a6
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • e4b284e: Allow configuration of min, max, and regex fields in the slug and id schemas
  • 2609fab: Support for alt in image schema specified in frontmatter

[email protected]

21 Jul 15:36
ac99798
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 2d70707: Use path relative to collection in id schema since it is scoped to it

[email protected]

20 Jul 16:51
d988765
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • cf47c01: Move format from DocumentDefinition and mdAsMarkdoc from the config to the body schema.
    This allows setting mdAdMarkdoc per definition.

Patch Changes

  • 379c0c8: Quality of life improvements and fix caching bug.

    • Updated caching mechanism to store unique identifiers, addressing a bug introduced in version 0.4.0-beta.6. If build fails, try deleting the .markdownlayer directory in your project root.
    • Enhanced output file generation for entry files (index.d.ts and index.mjs), ensuring they are generated once unless the config file changes.
    • Refactored custom schemas to accept a config object instead of selective properties, providing more flexibility and improving code maintainability.
  • 112326f: Only watch for file changes based on provided patterns (or the default)

  • c0b6f5f: Allow opt out of default values for slug and id schemas

  • 097e776: Wait for files to be written when watching while being responsive

[email protected]

19 Jul 06:38
6f47c7e
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 39e7215: Remove entries in uniques cache when a file changes.
    Without this dev crashes when a file is edited.
  • 88477a0: Added a logger (mostly copied from velite)
  • cb6bccb: Catch errors thrown in watcher, log, and continue gracefully.

[email protected]

18 Jul 21:32
377f713
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • 237b0b8: Redo sections of the engine to support custom schemas such as images, slug, etc
    This is inspired in part by velite and astro.

[email protected]

11 Jul 15:58
24ce25f
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Minor Changes

  • 3348332: No longer need to produce package.json in the generated folder
  • ecbefbf: Infer types from config file by reference instead of generating them.
    This improves the dev experience because changes in schema reflect instantly instead of waiting for a fresh build.
  • 11a32b5: Revert to using a mix of JSON and MJS for generated files.
    This was originally introduced in the engine rewrite in #109 (363bb66) to avoid losing type information. However, that comes at a performance penalty that is not worth it.
  • f6fb7fd: Added react export to replace the hooks export and included a default react component to reduce boilerplate code.
  • 69d0193: Improve watcher for files.
    Using one watcher is more efficient since we can merge the files/directories for which we expect changes. This allows watching on config-related files such as additional remark plugins.
    Consequently, the config is only rebuilt when there are changes to it or its related files.
  • afc25b5: No longer support passing of config via plugin.
    This paves way for type inference from the config file.
  • 9cefc89: Support passing of a custom config file and improve config processing as inspired by velite
  • 7352ab1: Support for turbopack.
    withMarkdownlayer must be the last plugin in the chain because the plugin returns a Promise, which is compatible with Next.js, but other plugins may not expect this behavior.
  • 2f94329: Ignore files starting with a dot or underscore

Patch Changes

  • 32d8fdf: Replace shelljs with child_process