Releases: mburumaxwell/markdownlayer
Releases · mburumaxwell/markdownlayer
[email protected]
[email protected]
[email protected]
Minor Changes
- c4af058: Support transforming links and images with exclusion of document files
[email protected]
Patch Changes
- 96d03a0: Allow empty strings for slugs such as when dealing with
index.md
orindex/index.md
files
[email protected]
[email protected]
Patch Changes
- 2d70707: Use path relative to collection in
id
schema since it is scoped to it
[email protected]
Minor Changes
- cf47c01: Move
format
fromDocumentDefinition
andmdAsMarkdoc
from the config to the body schema.
This allows settingmdAdMarkdoc
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
andindex.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.
- Updated caching mechanism to store unique identifiers, addressing a bug introduced in version
-
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]
[email protected]
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]
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