Changelog
v1.4.0 [2026-10-30]
-
Added support for themes! Themes can be easily added via npm, or can be defined locally. I'll also be releasing some themes myself.
- This brings the addition of the
configkey in the ume options; options that are directly parsed to themes and provided by themes.- Keys of type string inside the config object are automatically available as variables as well
- Themes can be written as either ESM or as CommonJS. They can of course also be written as TypeScript, but might need to be compiled first.
- This supports version compatibility for umejs as well, in a similar format as Nodejs; meaning themes can only be enabled if a certain minimum version is present for example.
- This brings the addition of the
-
Added asset routing in the
/_ume/assets/*route to serve static assets for themes (e.g. CSS and fonts). -
Added the
/v1variable, which automatically injects the Express base URL (e.g./blog) -
Added dynamic template resolution. This happens in the following order of preference:
- if a template is defined in frontmatter, that one is used. (Note: you would have to make this accessible via the
templateDirkey in ume options; themes can make theirs accessible as well) - the default template as defined in
templatePathis used - the default template chosen by the theme is used
umejs will first try number one, then two and then three.
- if a template is defined in frontmatter, that one is used. (Note: you would have to make this accessible via the
-
Helpers and builders now also receive the merged
configobject as their final argument -
Added inline includes; either via themes or regularly via the ume config. This allows creating {INCLUDE()} statements without creating a file for them; instead they're stored in memory.
-
Improved
index.mdfunctionality; it now works in sub-directories as well. For example, both/blog/and/blog/2026/october/can have anindex.mdfile.
v1.3.0 [2026-10-15]
Breaking change:
- umejs is now async by default, so it will no longer block Express'
app.listen(). The build is lazily resolved on first request. If any of your code relied on this behaviour of blocking the main thread (e.g. any code that has to run after umejs is done loading), pleaseume.ready()
Other changes:
- umejs can now cache your files, resulting in faster and more performant start-ups! It won't affect first startups much, but every subsequent one (provided no content changes) goes from about 50ms to just around 10ms!
- Alongside this, the configuration option
cachePathwas added; this allows you to either disable caching (set it tofalse) or set it to a custom file name and/or directory.
- Alongside this, the configuration option
- Added an experimental toggle for building your files in parallel! This can improve performance on larger projects. On smaller projects, improvements will be negligible. You can enable this by adding
parallel: trueto your umejs options. In the future, this is likely to become default behaviour. It utilises the module workerpool to lex the Markdown files across multiple CPU cores. - Updated the default formatter and formatting to feature some pink because I like that. Also added a cute 🌸 (cherry blossom) emoji because it's one of my favourites.
- Added
middleware.ready, a promise that is resolved to the list of built files. - Replaced dependancy gray-matter (responsible for parsing Frontmatter) with node-markdown-frontmatter-parser, due to lack of maintenance and security concerns.
- Added extra tests, primarily ones related to the async building.
v1.2.1 [2026-07-07]
- Removed
module-syncfrom package.json as it was causing issues.
v1.2.0 [2026-07-06]
- It is now possible to add a custom Markdown parser. These functions receive the Markdown content before it has been parsed and should return new Markdown/HTML.
- umejs now also supports simply parsing
next()when encountering a 404 error or 500 error. - Updated the
package.jsonto be a bit more competent, including things such as linting using eslint and formatting using Prettier and testing with c8. - umejs can now be used as an ES module.
- Added TypeScript as a dev dependancy and fixed issues that popped up there.
- Improved JSDoc support.
v1.1.0 [2026-07-03]
-
Added support for
index.mdfiles, to serve a similar purpose asindex.htmlfiles. -
Added support for
404.md, to be served when the user requests a slug that can not be found -
Added further tests