Skip to content

Conversation

@pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented May 8, 2022

This PR updates Lektor from 3.3.0 to 3.3.4.

Changelog

3.3.2

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

- The wording in the LICENSE file was standardized to that of the
current [BSD 3-Clause License][bsd]. ([972][])

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][])

[bsd]: https://opensource.org/licenses/BSD-3-Clause
[610]: https://github.com/lektor/lektor/issues/610
[946]: https://github.com/lektor/lektor/issues/946
[954]: https://github.com/lektor/lektor/pull/954
[958]: https://github.com/lektor/lektor/pull/958
[962]: https://github.com/lektor/lektor/issues/962
[964]: https://github.com/lektor/lektor/pull/964
[965]: https://github.com/lektor/lektor/issues/965
[967]: https://github.com/lektor/lektor/pull/967
[969]: https://github.com/lektor/lektor/pull/969
[972]: https://github.com/lektor/lektor/pull/972
[975]: https://github.com/lektor/lektor/issues/975
[976]: https://github.com/lektor/lektor/pull/976
[984]: https://github.com/lektor/lektor/pull/984
[986]: https://github.com/lektor/lektor/pull/986
[988]: https://github.com/lektor/lektor/pull/988
[989]: https://github.com/lektor/lektor/pull/989
[990]: https://github.com/lektor/lektor/pull/990
[991]: https://github.com/lektor/lektor/pull/991
[996]: https://github.com/lektor/lektor/pull/996
[998]: https://github.com/lektor/lektor/issues/998
[1000]: https://github.com/lektor/lektor/pull/1000
[1002]: https://github.com/lektor/lektor/pull/1002
[1003]: https://github.com/lektor/lektor/pull/1003
[jinja-dbg-ext]: https://jinja.palletsprojects.com/en/latest/extensions/#debug-extension

3.3.1

Bugs Fixed

- Fixed an import cycle which caused in `ImportError` if
`lektor.types` was imported before `lektor.environemnt`. [974][]

Deprecations

- Disuse deprecated `Thread.setDaemon()`. [979][]

Admin UI

- Fix spastic scroll behavior when editing flow elements. [640][]
- Fix admin GUI when page contains an unknown flowblock type. [968][]
- Fix admin GUI layout on mobile devices. [981][]

Tests

- Increased timeout in `test_watcher.IterateInThread` to prevent
random spurious failures during CI testing.
- Fix `tests/test_prev_next_sibling.py` so as to allow running
multiple test runs in parallel.
- Use per-testenv coverage files to prevent contention when running `tox --parallel`.
- Mark tests that require a working internet connections with pytest mark `requiresinternet`. [983][]

Refactors

Admin UI

- Finish rewriting React class-based components to function-based components. [977][]
- Finish adding types for all API endpoints. [980][]
- Remove disused event-source polyfill.

[640]: https://github.com/lektor/lektor/issues/640
[968]: https://github.com/lektor/lektor/issues/968
[974]: https://github.com/lektor/lektor/pull/974
[977]: https://github.com/lektor/lektor/pull/977
[979]: https://github.com/lektor/lektor/pull/979
[980]: https://github.com/lektor/lektor/pull/980
[981]: https://github.com/lektor/lektor/pull/981
[983]: https://github.com/lektor/lektor/pull/983
Links

@pyup-bot
Copy link
Contributor Author

Closing this in favor of #29

@pyup-bot pyup-bot closed this Jul 18, 2022
@DebVortex DebVortex deleted the pyup-update-lektor-3.3.0-to-3.3.4 branch July 18, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants