Very Popular
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project try to adheres to Semantic Versioning.
Go to the v1
branch to see the changelog of Lume 1.
2.2.4 - 2024-07-18
Added
- New middleware
redirect_as2
#632.
Fixed
page.sourcePath
wrongly returns the remote url instead of the path for remote files.- Reload remote files #633.
- Vento components must be sync.
- Updated dependencies:
std
,terser
,sass
,xml
,liquid
,highlight.js
,unocss
,decap_cms
,tailwindcss
,vento
,preact-render-to-string
. - Use a pinned version of
npm:decap-server
package for stability. - DecapCMS script: switch from
unpkg
tojsDelivr
for performance. - Add
Server.addr
for getting local address #634. - Bug calculating the filename of remote files.
2.2.3 - 2024-07-05
Added
- New option
caseSensitiveUrls
to allow to export two urls with the same name but different cases #625. - Support for
npm
specifiers to postcss and lightningcss plugins #621. - Redirects middleware: added
strict
option to configure whether distinguish the trailing slash or not. For backward compatibility istrue
by default.
Changed
- Nav plugin: Improved behavior for sites with pretty urls disabled.
Fixed
- Nav plugin: the
order
option is not applied. - Updated dependencies:
std
,postcss
,esbuild
,katex
,preact
,xml
,vento
,satori
,unocss
. - Vento plugin for component doesn’t support multiline code.
- Removed
jxl
intransform_images
plugin because it’s not supported by Sharp #630.
2.2.2 - 2024-06-21
Fixed
search.data()
doesn’t return data for source files (likesearch.data("index.md")
).- esbuild plugin: Fixed
basename
support #617. - Apply
mergedKeys
configuration in layouts #618. - Extended Preact types with Lume’s custom attributes #619.
- Hot reload: Ensure sockets are open before send updates #614, #615.
- Updated dependencies:
tailwindcss
,terser
,sass
,std
,react-render-to-string
,xml
,esbuild
,vento
,unocss
,liquidjs
,unified
.
2.2.1 - 2024-06-04
Added
- Allow to run a server with
deno serve -A _config.ts
. - New
noCors
middleware to prevent CORS errors during development.
Changed
- Use
lume_init
dependency to upgrade Lume
Fixed
- Port detection in
lume cms
command. - Show an error when trying to copy a file from outside the src folder #610.
- Updated dependencies:
std
,preact-render-to-string
,vento
,lightningcss
,unocss
,pug
,cms
,liquid
,lightningcss
,esbuild
,react-types
,deno_dom
,sass
,unocss
,xml
,unidecode
,react-render-to-string
.
2.2.0 - 2024-05-17
LuÃsa Villalta edition.
Added
- Feed plugin: Add image support #599, #598.
- New middleware
shutdown
. - Esbuild plugin: support for
jsr:
specifiers. - New
Lume.Loader
type. - New
afterLoad
event, triggered just after all files are (re)loaded. - Show the error if a file cannot be copied.
- New option
theme
to download the theme CSS file automatically for theprism
andcode_highlight
plugins. - Metas plugin: allow to add custom metas #604, #608.
Changed
- BREAKING: Removed
lume/cms.ts
module. Use import maps instead. - The minimum Deno version supported is
1.43
. - For better predictability, the
_cache
folder is generated in the root folder, instead ofsrc
folder. - Simplified Esbuild plugin.
- Import
std
packages fromjsr
because they are not longer updated onland/x
. - The default port when lume build the site (not serving) is
80
or443
, depending whether the location protocol is http or https. Previously it was3000
.
Deprecated
liquid
plugin. It never worked well withsearch.pages()
#600.
Removed
- PostCSS plugin: Don’t use nesting plugin by default since CSS nesting feature works across the latest devices and browser versions.
Fixed
- Updated dependencies:
unocss
,liquid
,postcss-nesting
,terser
,xml
,react
,std
,sass
,preact
,esbuild
,svgo
,cms
,sheetjs
. - FFF plugin: fix
getGitDate
priority #603. - Esbuild plugin:
- Resolve bare specifiers mapped to
npm:
. - Renamed imports to
.js
when bundle isfalse
#594.
- Resolve bare specifiers mapped to
- Redirect plugin: resolve urls when site location has a subfolder #606.
- Bug merging options from CLI and _config file #607.
- The option
--port
no longer depends on--serve
.
2.1.4 - 2024-04-17
Added
- Pagefind plugin: Updated the
ui
object with the new options introduced in v1.1.0.
Deprecated
init.ts
file.
Fixed
esbuild
timeout #591.- Updated dependencies:
unocss
,pagefind
,postcss-nesting
,sass
,terser
,vento
,std
,preact
,unocss
,liquid
,react
types,sass
,tailwind
,magic-string
,lume_cms
,sharp
,esbuild
.
2.1.3 - 2024-03-28
Added
- PostCSS plugin: new option
name
with the default valuepostcss
#582. - date plugin: new formats
HUMAN_SINCE
andHUMAN_SINCE_STRICT
exposeformatDistanceToNow
andformatDistanceToNowStrict
in the date-fns package, so you can refer to the amount of time that has passed since the an article was last written/modified, rather than just the date it was written #589.
Changed
- Do not ignore the
/.well-known
folder by default #585.
Fixed
- Reload site on rename/delete file.
- Updated dependencies:
std
,esbuild
,lightningcss
,unocss
,date-fns
,cms
,eta
,katex
,liquid
,markdown-it
,postcss
,postcss-import
,autoprefixer
,preact
,sharp
,tailwindcss
,terser
,vento
.
2.1.2 - 2024-03-14
Added
transform_images
plugin: added the.webp
extension to the default options.vento
plugin: New optionplugins
to use Vento plugins.- Added
vento
andaddVentoPlugin
hooks.
Fixed
- UnoCSS plugin: the async process of adding
<style>
elements is not awaited #578. - Updated dependencies:
std
,terser
,cms
,postcss
,react
types,unocss
,vento
,date-fns
,sass
,terser
. - Replace Sharp with
svg2png
as the library to convert svg to png. - Init script creates always the
_cms.ts
file.
2.1.1 - 2024-03-01
Fixed
- Bug on init command generating the _cms.ts file #575
- Updated dependencies:
lightningcss
,terser
,cms
,postcss
,postcss-nesting
,std
,vento
,react
types.
2.1.0 - 2024-02-22
Added
- Support
x-default
for unmatched languages #528 & #532multilanguage
pluginsitemap
plugin
- New plugin:
fff
#529. - New plugin:
redirects
#534. - New plugin:
og_images
#534. - New plugin:
robots
#570. - New command
lume cms
. onDemand
plugin: support async extraData function #560, #561.- Core:
lume:*
global events. - Core:
lume.getWatcher()
function.
Changed
- BREAKING: Removed deprecated
--unstable
flag to the defaultlume
task. Use theunstable
configuration indeno.json
. - BREAKING: Upgrade
date-fns
dependency to version 3 #541. This affects to how to import locales in the _config file:// Old import gl from "npm:date-fns/locale/gl"; // New import { gl } from "npm:date-fns/locale/gl";
- Allow to get value from attribute in CSS query of
getDataValue()
function #556, #558. Seemetas
plugin for a clear example. favicon
plugin: #562- Default ico size changed to 48.
- Add
sizes="any"
to the svg icon. - Place the svg icon at end.
- logging:
deno task lume upgrade
removes thedeno.lock
file #527.transform_images
plugin: don’t enlarge images by default #530.
Fixed
- Pages filtered with
filter_pages
plugin are exported to the sitemap. - Ensure
site.options.server.middlewares
array is always defined. - Updated dependencies:
std
,date-fns
,lightningcss
,vento
,terser
,autoprefixer
,esbuild
,sass
,unocss
,deno-dom
,esbuild
,postcss
,postcss-import
,preact
,preact-render-to-string
,mdx
,terser
,liquid
,react
types. site.hooks.addMarkdownItPlugin
accepts multiple optionscli
commands are loaded dynamically.- Added missing
Lume.Data.nav
variable #567. - BREAKING:
slugify_urls
plugin only slugify.html
files by default. The reason is to avoid unexpected behaviors like renaming the_headers
file #569. Useextensions
option to add more file extensions. - Bug in
multilanguage
plugin that add non-html pages in the list of alternates.
2.0.3 - 2024-01-12
Added
metas
&feed
plugins: Suppport for functions to configure the data fields.mdx
plugin: Newmdx
filter #550.
Changed
md
filter fromremark
plugin is async.
Fixed
- esbuild plugin: Fix support for subextensions added to JSX files.
For example:
file.client.jsx
. - Conflict between
jsx
and esbuild plugin withjsx
#547. - Don’t break if env variables are not granted #551.
- Nested components doesn’t work in Vento #552
- Updated deps:
std
,unocss
,svgo
,sass
,postcss
,postcss-import
,vento
,tailwindcss
,react
types,remark
,sharp
.
2.0.2 - 2024-01-01
Added
- Add critical log on rare case where developer forget to export the Site instance in the
_config.ts
Changed
decap_cms
plugin: Add a script in the homepage to redirect to /admin/ when an invite token or recovery token is detected from netlify identity.getOptionsFromCli
is moved frommod.ts
toutils/cli_options.ts
#535, #540.
Fixed
sitemap
plugin: Add thexmlns
namespace for localized urls.- Files with all caps extensions are ignored #542.
multilanguage
plugin:- Fix error of two pages with the same id, type and lang.
- Fix the error of a page with lang, but undefined id.
- Removed unused
imagick
dependency. - Added
Lume.PaginateResult
type. - Apply merge data strategies between multiple _data files/folders in the same folder.
- Date recovery from Git repositories #544.
- Updated dependencies:
std
,esbuild
,liquid
,postcssNesting
,react-dom
types,sharp
,svgo
,vento
,tailwindcss
,minify_html
,unocss
,sass
.
2.0.1 - 2023-12-10
Added
mdx
plugin: NewrehypeOptions
option #517
Fixed
lightningcss
plugin: use the correct includes folder #523.mdx
andremark
plugins: improved types.- Lume needs Deno >= 1.38.
- Type of
Lume.Data.results
. - Improved log messages of empty and ondemand pages #525.
picture
plugin using the wrong attribute name #526.- Updated deps:
markdown-it
,preact
,terser
,esbuild
.
2.0.0 - 2023-12-08
Added
- New plugin
unocss
, to replacewindi_css
. - New plugin
transform_images
, to replaceimagick
. - New option
server.root
toSite
. - New
basename
variable to change the final name of files/directories. #494 - New function
site.getOrCreatePage()
. - Allow to copy files/directories inside ignored directories #520
- Added generics to
search
functions. For example:search.pages<PageType>()
. - New environment variable
LUME_NOCACHE
to disable the cache of the remote files. - TOML plugin: New option
pageSubExtension
with the default value.page
. - YAML plugin: New option
pageSubExtension
. - JSX plugin: New option
pageSubExtension
. - JSON plugin: New option
pageSubExtension
. - Eta plugin: New option
pageSubExtension
. - Liquid plugin: New option
pageSubExtension
. - Nunjucks plugin: New option
pageSubExtension
. - Pug plugin: New option
pageSubExtension
. - Vento plugin: New option
pageSubExtension
. - Markdown plugin: New option
useDefaultPlugins
that it’strue
by default. - Postcss plugin: new option
useDefaultPlugins
that it’strue
by default. - Module plugin:
- New option
pageSubExtension
. - New option
includes
- New option
- MDX plugin:
- New option
useDefaultPlugins
that it’strue
by default. - New option
recmaPlugins
#521. - New option
includes
- New option
- JSX Preact plugin
- New option
pageSubExtension
. - New
precompile
option for faster jsx transform.
- New option
- Pagefind plugin: New option
highlightParam
. - Not found middleware: Added default options.
- Remark plugin:
Changed
- Revamp of types.
- Removed
core.ts
and createdtypes.ts
. - New global namespace
Lume
. - Use the lib
dom
anddom.iterable
types instead ofdeno-dom
.
- Removed
- Changed the signature of
process
andpreprocess
to behave likeprocessAll
andpreprocessAll
. - Changed the signature of
Page.create()
. It has a single argument with an object with the page content. - Renamed the interface method
Engine.renderSync
toEngine.renderComponent
. - Changed the
Format
interface. - Pretty URLs option doesn’t affect to the
/404.html
page by default. - Replace
fn-date
withTemporal
polyfill to convert dates. - Refactor of
Server
class to work withDeno.serve()
API #501. - Renamed
core/filesystem.ts
tocore/file.ts
. - Picture plugin: Renamed the attribute
imagick
totransform-images
. - TOML plugin:
- is installed by default
- Changed
extensions
option type tostring[]
.
- Slugify URL: Slugify static files by default. #447
- JSX plugin:
- Removed
window.React
#332. - Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Removed
- NetlifyCMS plugin:
- Renamed to
decap_cms
. - Changed
netlifyIdentity
option toidentity: "netlify"
- Renamed to
- Markdown plugin: Disable indented code blocks by default #376
- Postcss plugin: The
includes
folder is automatically ignored. - MDX plugin:
- Updated to MDX v3.
- The
includes
folder is automatically ignored.
- Module plugin
- Changed
extensions
option type tostring[]
. - Replaced
.tmpl
subextension with.page
. - The
includes
folder is automatically ignored.
- Changed
- Eta plugin
- Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Changed
- JSON plugin
- Changed
extensions
option type tostring[]
. - Replaced
.tmpl
subextension with.page
.
- Changed
- JSX Preact plugin
- Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Changed
- Liquid plugin
- Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Changed
- Nunjucks plugin
- Disabled by default
- Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Pug plugin
- Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Changed
- Vento plugin
- Enabled by default
- Changed
extensions
option type tostring[]
. - The
includes
folder is automatically ignored.
- Multilanguage plugin
- Apply the default language to all pages with undefined language.
- Removed the ability to insert translations in the middle of the data object.
- The uniqueness of a page is defined by the combination of id + type.
- SASS plugin: The
includes
folder is automatically ignored. - LightningCSS plugin: The
includes
folder is automatically ignored. - Feed plugin
- Renamed the option
info.date
toinfo.published
; - Renamed the option
item.date
toitem.published
; - New option
item.updated
;
- Renamed the option
Removed
- Removed plugin
windi_css
. Useunocss
instead. - Removed plugin
imagick
. Usetransform_images
instead. - Removed output extension detection in the filename: #430
- Removed
processAll
andpreprocessAll
. - Removed
Page.dest
property #290. - Removed
Page.updateDest
function. - Removed
Page.src.lastModified
andPage.src.created
because they are already inPage.src.entry
. - Removed
Page.src.remote
because it’s already inPage.src.entry
. - Removed
Page.src.slug
because it’s already inPage.data.basename
. - Removed
--dev
mode #244, #201. Use the env variableLUME_DRAFTS=true
to output draft pages. - Removed
--quiet
argument Use the env variableLUME_LOGS=DEBUG|INFO|WARNING|ERROR|CRITICAL
. - Removed
site.includes()
function. - Renamed
site.searcher
tosite.search
. - The
pageSubExtension
is used only to load pages, but not for layouts, components, etc. - Removed
site.loadComponents()
. It’s included insite.loadPages()
options. - Removed
site.engine()
. It’s included insite.loadPages()
options. - Removed
site.cacheFile()
- Removed
Entry.setContent()
- Removed message to upgrade Lume.
- Removed
Error
class to print the errors.Deno.inspect()
is used instead. - Removed
lume/core/utils.ts
and moved all utilities to different files under/lume/core/utils/
folder. - Search plugin:
- Removed
returnPageData
option. Pages always return thedata
object #251 - Removed
search.tags()
function. Usesearch.values("tags")
. - Removed
data
filter.
- Removed
- YAML plugin: Changed
extensions
option type tostring[]
. - Removed WindiCSS plugin.
- Markdown plugin: removed
keepDefaultPlugins
- Postcss plugin: removed
keepDefaultPlugins
- MDX plugin:
- Removed
overrideDefaultPlugins
- Removed
pragma
option.
- Removed
- Remark plugin: Removed
overrideDefaultPlugins
option
Fixed
- Updated dependencies:
std
,deno_dom
,eta
,lightningcss
,liquidjs
,nunjucks types
,pagefind
,preact
,react types
,pug
,svgo
,esbuild
,svgo
,terser
,unocss
,vento
,xml
,postcss
,markdown-it-defllist
.