Skip to content

release: 1.3.1 (multiline plain-string fix)#38

Merged
JuroOravec merged 2 commits into
mainfrom
release-1.3.1
Jun 25, 2026
Merged

release: 1.3.1 (multiline plain-string fix)#38
JuroOravec merged 2 commits into
mainfrom
release-1.3.1

Conversation

@JuroOravec

@JuroOravec JuroOravec commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

(Opus 4.8)

Release djc-core 1.3.1.

What's in this PR

  • Bump version 1.3.01.3.1 in pyproject.toml (the version maturin publishes).
  • CHANGELOG entry for v1.3.1.
  • Regression test for the multiline plain-string fix, added to the source-of-truth
    Python test file (tests/test_template_parser__tag.py::TestString::test_string_multiline_value).
    PR Fix multiline failure #37 fixed the bug and added a Rust test, but the Python test file had no case for it;
    this closes that gap.

Why 1.3.1

PR #37 (merged) fixed a SyntaxError regression from 1.3.0: a tag value that is a
quoted string spanning multiple lines and containing no {{ }} expressions (e.g. an
Alpine.js / hyperscript handler) compiled to an invalid single-line Python literal.

{% component "small_button"
    _="on click
        set replyForm to closest <form />"
%}{% endcomponent %}

Verification

Built a release wheel from this branch locally (djc_core-1.3.1-cp314-…-arm64.whl) and ran
the tests against the real build:

  • tests/test_template_parser__tag.py::TestString — 7 passed (incl. the new test).
  • The same case mirrored into django-components passes too.

After merge

Tag 1.3.1 to trigger the PyPI publish workflow. django-components will then raise its
floor to djc-core>=1.3.1.

🤖 Generated with Claude Code

JuroOravec and others added 2 commits June 25, 2026 11:24
Bump version to 1.3.1 and add CHANGELOG entry for the multiline
plain-string SyntaxError fix (PR #37).

NOTE: This commit only carries the release metadata (version + CHANGELOG).
It must sit on top of a `main` that already contains the PR #37 fix
(crates/djc-template-parser/src/tag_compiler.rs). Merge PR #37 first, then
apply/rebase this commit, then tag `1.3.1` to trigger the PyPI publish.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a compile test for a multiline plain-string tag value to the
source-of-truth Python test file. The file previously had no such case,
so the regression was only covered by the Rust test added in PR #37.

This is the regression test for the PR #37 fix: it asserts that
`{% component key="on click\n..." %}` compiles to a valid Python literal
instead of raising `SyntaxError`. It therefore PASSES only once the PR #37
fix is present on this branch (parse + expected_tag already pass on 1.3.0;
only the compile step fails pre-fix). Mirrors the same case added to
django-components' tests/test_tag_parser.py.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JuroOravec JuroOravec merged commit 9da80d4 into main Jun 25, 2026
10 checks passed
@JuroOravec JuroOravec deleted the release-1.3.1 branch June 25, 2026 09:59
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