Skip to content

release: 0.151.1 - require djc-core 1.3.1 (multiline string fix) - #1669

Merged
JuroOravec merged 1 commit into
masterfrom
jo-bump-djc-core-1.3.1
Jun 25, 2026
Merged

JuroOravec merged 1 commit into
masterfrom
jo-bump-djc-core-1.3.1

Conversation

@JuroOravec

@JuroOravec JuroOravec commented Jun 25, 2026 •

Copy link
Copy Markdown
Collaborator

(Opus 4.8)

Release django-components 0.151.1, raising the djc-core floor to 1.3.1.

Why

djc-core 1.3.0 introduced a SyntaxError regression: a component input whose
value is a quoted string spanning multiple lines and containing no {{ }}
expressions (e.g. an Alpine.js / hyperscript handler) failed to compile:

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

djc-core 1.3.1 (published to PyPI) fixes it. This PR raises our minimum so users
get the fix.

Changes

  • pyproject.toml: djc-core>=1.3.1 (runtime + dev), version 0.151.1
  • tox.ini: djc-core==1.3.1 (testenv + e2e)
  • uv.lock: refreshed to djc-core 1.3.1 (surgical - only the djc-core wheels + project version changed)
  • CHANGELOG.md: v0.151.1 entry
  • tests/test_tag_parser.py: regression test for the multiline case, mirroring
    djc-core's source-of-truth test_template_parser__tag.py (which previously had
    no such case)

Verification (against djc-core==1.3.1 from PyPI)

  • ruff check ., ruff format --check ., mypy . - all clean
  • Full non-e2e suite green: 1209 passed + 58 passed / 6 skipped (provide, serial)
  • New test_string_multiline_value passes (it raises SyntaxError on 1.3.0, passes on 1.3.1)

After merge

Tag 0.151.1 to trigger the PyPI publish.

🤖 Generated with Claude Code

Raise the djc-core floor to 1.3.1 so component tags accept multiline
plain-string values again (regression from djc-core 1.3.0, fixed in
djc-core 1.3.1 / PR #37).

- pyproject.toml: djc-core>=1.3.1 (runtime + dev), version 0.151.1
- tox.ini: djc-core==1.3.1 (testenv + e2e)
- uv.lock: refreshed to djc-core 1.3.1 / django-components 0.151.1
- CHANGELOG.md: v0.151.1 entry
- tests/test_tag_parser.py: regression test mirroring djc-core's
  source-of-truth (test_template_parser__tag.py)

Verified against djc-core 1.3.1 from PyPI: ruff, ruff format, and mypy
clean; full non-e2e suite green (1209 + 58 passed); the multiline
regression test passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Performance Benchmark Results

Comparing PR changes against master branch:

Benchmarks that have stayed the same:

Change Before [6513d0a] After [8fef93b] Ratio Benchmark (Parameter)
71.0±2ms 70.0±1ms 0.99 Components vs Django.timeraw_render_lg_first('django')
246±5ms 249±5ms 1.01 Components vs Django.timeraw_render_lg_first('django-components')

@JuroOravec
JuroOravec merged commit 5d597de into master Jun 25, 2026
16 checks passed
@JuroOravec
JuroOravec deleted the jo-bump-djc-core-1.3.1 branch June 25, 2026 10:36
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.

1 participant