Lektor v3.3.2 Release Notes

Release Date: 2022-03-01 // almost 3 years ago
  • ๐Ÿ”‹ Features

    ๐Ÿ’ป Command Line
    • Enabled the [Jinja debug extension][jinja-dbg-ext] when the LEKTOR_DEV env var is set to 1 and lektor server is used. (#984)

    License

    ๐Ÿ› Bugs

    Markdown Renderer
    • ๐Ÿ›  Fix overzealous HTML-entity escaping of link and image attributes. (#989)
    Admin API
    • Fix a bug in make_editor_session when editing non-existant pages with a non-primary alt. (#964)
    • ๐Ÿ›  Fix the ability to add an initial flowblock to a page. (Broken in 3.3.1.)
    • ๐Ÿ”จ Refactor API views to move business logic back into the Tree adapter (#967). This fixes #962.
    ๐Ÿ’ป Admin UI
    • ๐Ÿ”„ Changed the structure of the URLs used by the GUI single-page app (#976). This fixes problems with the "edit" pencil when using alternatives (#975), and issues when page ids include colons (#610).
    • ๐Ÿ”จ Other React refactors and fixes (#988).
    Database
    • Fix Attachment.url_path when alternatives are in use. There is only one copy of each attachment emitted โ€” the url_path should always be that corresponding to the primary alternative. (#958)
    • Pad.get, if not passed an explicit value for the alt parameter, now returns the record for the primary alternative rather than the fallback record. Similarly, Pad.root now returns the root record for the primary alternative. (#958, #965)
    • ๐Ÿ›  Fix for uncaught OSError(error=EINVAL) on Windows when Pad.get was called with a path containing characters which are not allowed in Windows filenames (e.g. <>*?|\/":).
    ๐Ÿ— Builder
    • ๐Ÿ— Pages now record a build dependency on their datamodel .ini file.
    • ๐Ÿ›  Fix sqlite version detection so that we use "without rowid" optimization with current versions of sqlite. (#1002)
    ๐Ÿ’ป Command Line
    • When running lektor dev new-theme: fix check for ability to create symlinks under Windows. (#996)
    • Fix rsync publisher when deletion enabled on macOS. (#946, #954)
    โœ… Tests
    • ๐Ÿ›  Fix for test failures when git is not installed. (#998, #1000)

    ๐Ÿ”จ Refactorings

    • Cleaned up EditorSession to split mapping methods (for access to record data) to a separate class, now available as EditorSession.data. (#969)
    โœ… Testing
    • ๐Ÿ‘• Cleaned up and moved our pylint and coverage configuration to pyproject.toml. (#990, #991)
    ๐Ÿ’ป Admin UI
    • ๐Ÿšš Move frontend source from lektor/admin/static/ to frontend/. Compiled frontend code moved from lektor/admin/static/gen/ to 'lektor/admin/static/`. (#1003)
    Packaging
    • Omit example subdirectory, frontend source code, developer-centric config files, as well as other assorted cruft from sdist. (#986)

    โœ… [jinja-dbg-ext]: https://jinja.palletsprojects.com/en/latest/extensions/#debug-extension