Skip to content

v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Jun 18:03

The primary focus of this release has been to optimize the performance of mdsf.

This has been accomplished in two ways:

Support for formatting using multiple threads

mdsf can now format using multiple threads.

The amount of threads used can be adjusted using the --threads <THREAD_COUNT> argument. The default value is 0 which uses all available cores.

Caching of formatted files

mdsf now supports caching formatting results. This can be enabled using the --cache argument.

Using --cache will in most cases result in a dramatic performance increase.

For now the --cache argument can only be supplied to the format command.

Stale caches can be removed using the cache-prune command.

mdsf cache-prune

All caches can be removed by supplying --all to the cache-prune command.

mdsf cache-prune --all

The cache key is based on the contents of the mdsf config and the file content of each document. A change to either will break the cache.

mdsf assumes that the available formatters has not changed since the cache was generated. This means you should prune your cache after updating the version of a formatter (mdsf cache-prune --all).

What's Changed

Full Changelog: v0.1.2...v0.2.0