Skip to content

[5.x] Antlers config backwards compatibility#14146

Merged
jasonvarga merged 7 commits into5.xfrom
antlers-stuff
Mar 4, 2026
Merged

[5.x] Antlers config backwards compatibility#14146
jasonvarga merged 7 commits into5.xfrom
antlers-stuff

Conversation

@jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Mar 3, 2026

This PR makes the heavy-handed-but-necessary breaking change in recent releases less heavy-handed and less breaking.

This PR adds a simplified parse method that will safely extract config placeholders before handing off to Antlers.
Now if you have things like '{{ config:foo:bar }}' in your yaml files, you don't need to add foo:bar to the allow list.

(More complicated usage like chaining modifiers will still require opt-ins.)

It also brings back the full config array when you are in an Antlers view.

# Conflicts:
#	tests/Antlers/ScratchTest.php
@jasonvarga jasonvarga changed the title [5.x] Antlers backwards compatibility [5.x] Antlers config backwards compatibility Mar 4, 2026
@jasonvarga jasonvarga merged commit 7a9356a into 5.x Mar 4, 2026
29 checks passed
@jasonvarga jasonvarga deleted the antlers-stuff branch March 4, 2026 19:32
ryanmitchell added a commit to ryanmitchell/statamic-translation-manager that referenced this pull request Mar 11, 2026
* build: update dependencies, especially Statamic 6
No efforts to get code updated for Statamic 6 yet, just the composer
dependencies and enough modification to get tests running again.

* build: remove unused use statements.

* feat: Statamic 6 compatible main page
Also includes Vite for building components. Probably some work still to
do to get the dist files built at the right time/place. Baby steps.

* fix: tooling for generating dist JS file

* fix: add semantic release automation

* fix: missing dist files

* fix: downgrade semantic release
The 11 version had an issue with pre-release (alpha) numbering. At least according to AI.

* fix: configure semantic-release with main (stable) and alpha (prerelease) branches

Resolves ERELEASEBRANCHES error by making main the stable release branch
and adding a separate alpha branch for pre-release versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use Vue component for index page
Previously, this Vue component had been on a test route, but now that it has feature parity with the original, it can fill the original place.

* fix: include Statamic components per official doc

* fix: remove old Blade version of index page

* fix: missing cp nav menu icon

* fix: bring Vite and structure in alignment to doc

* fix: more component compiling fixing
Specifically, deduplicating JS file outputs and removing the external
bit from the Vite config, which was maybe blowing things up.

* fix: compact layout for selecting translation lang

* fix: add/edit/delete functionality for terms

* doc: update requirements list

* fix: obsolete edit blade removed

* fix: blueprint scan index converted to Vue 3

* fix: blade template scan convert to Vue

* fix: ellipsis throwing off translation key interpretation

* fix: remove obsolete scan blade template

* ci: ensure dist is up to date
It's easy to forget that the dist files (addon.js at present) weren't
rebuilt for a release. This workflow compares a freshly build dist to
the one in the commit. If they're the same, it's all good. If not, then
a warning message is provided.

* fix: forgotten dist file (didn't get published)

* build: update Statamic dependency version to 6.5
This avoids the breaking change introduced in 6.4 (which was somewhat improved in 6.5).
6.4 Release Notes: https://github.com/statamic/cms/releases/tag/v6.4.0
6.5 Release Notes: https://github.com/statamic/cms/releases/tag/v6.5.0
Specific fix to avoid breaking change: statamic/cms#14146

* doc: minor wording change

* build: update action to include composer dependencies
Because the Statami vite plugin is used, and comes from the Statamic CMS composer package, that package needs to be installed so it can be referenced.

* fix: update the dist
Well, I guess now we know that the dist files check GitHub action works. :-)

* build: update composer dependencies
Also including the composer.lock so that there's less chance of difference between the developer's build, and the CI's build.

* doc: Note the min required Statamic as 6.5

* standardize vite, tidy up

* use our release process

* remove composer lock for test suite

* update test flow

---------

Co-authored-by: Jared Carlow <jcarlow@fmamfg.org>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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