Skip to content

Release 3.0.0 - #1

Merged
micschk merged 15 commits into
mainfrom
ss6-upgrade
Sep 24, 2026
Merged

micschk merged 15 commits into
mainfrom
ss6-upgrade

Conversation

@micschk

@micschk micschk commented Sep 24, 2026

Copy link
Copy Markdown
Member

See CHANGELOG.md.

framework ^5 || ^6 on PHP ^8.1, vendor-plugin ^2 || ^3 to match. Correct the
composer description and keywords (they described a cookie notice), add PSR-4
autoload, recipe-testing as a dev requirement, and the funding property.
Set the composer.json license field and add the licence text.
InfoField returned object content (a DBHTMLText from DBField::create_field() or
renderWith()) bare, as LiteralField does, so the info box went missing; it is
now rendered and then boxed like string content.

InlineInfoField wrote the target field name into the data-target attribute
unescaped. It is now attribute-escaped; the content stays raw HTML by contract.
Covers both fields' markup (the contract with the CMS script and stylesheet),
HTML content, extra classes, readonly transformation and rendering in a form;
the LeftAndMain requirements, that each resolves to a file inside an exposed
directory, including the icon the stylesheet references; and a real CMS page
edit form rendered as an admin. Regression tests for both fixes in the
previous commit.
One job per supported major at the PHP floor and ceiling used with it, with a
consumer-shape database test, plus a lint job. Keep tests and dev files out of
dist installs.
The README described a different field (a help question mark); it now says
what InfoField and InlineInfoField do, how to use them, the assets they load
and where the inline field works. Add requirements, installation, the
compatibility table, test instructions, the sponsorship line, a changelog and
upgrade notes.
This reverts commit 2041ee6.
Drop the composer.json license key that came with the SS5/6 retarget: the
first commits are by another author and InlineInfoField derives from
nathancox/silverstripe-helpfield, which declares no licence, so choosing one
is left to the owner. Restore the README credit for helpfield that 2.1 dropped.
_config/config.yml configures LeftAndMain unconditionally and both fields exist
for CMS forms, so the admin is a real dependency, not an optional one.
A silverstripe-vendormodule is installed under vendor/ by vendor-plugin;
installer-name only applied to the composer/installers module-dir installs of
Silverstripe 3.
The stub page was listed in extra_dataobjects statically, so the temp database
build in setUpBeforeClass() errored on the missing class before setUp() could
skip. List it only when SiteTree exists.
CMSEditLink() is deprecated in Silverstripe 6; Silverstripe 5 pages only have
CMSEditLink().
DBHTMLText renders the same through forTemplate() as through a string cast, so
the object branch could be narrowed or dropped without a test failing. A stub
whose two outputs differ pins it, and the customise() of FieldHolder()
properties with it.
Copy the module's phpunit.xml.dist and append only the consumer suite instead of
keeping a second copy of the same settings. Check the module suite reports the
expected number of tests, and fail an SS6 suite that ran nothing.
….0.0

The "OK (N tests" guard failed passing runs whenever PHPUnit printed
"OK, but there were issues!" or "OK, but some tests were skipped!"
(exit 0), and never covered the consumer suite. Every leg now runs with
--fail-on-empty-test-suite, which PHPUnit 9.6 accepts as well as 11.
CHANGELOG: 3.0.0 dated 2026-09-25.
@micschk
micschk merged commit 70171c5 into main Sep 24, 2026
6 checks passed
@micschk
micschk deleted the ss6-upgrade branch September 24, 2026 20: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.

1 participant