handmadeweb/statamic-cloudflare
A Statamic addon for Cloudflare integration that automatically purges Cloudflare cache when content changes, helping keep published entries, assets, and URLs fresh while reducing stale pages. Includes configurable purge rules for your site’s Cloudflare setup.
This release (2.1.0) is a compatibility release: the package is a Statamic add-on, and 2.1.0 is the first version declaring Statamic 5 support. Nothing in the changelog suggests new end-user features, so treat this as an upgrade/unblock release rather than something to build new work on top of.
Minimal path to first use:
composer update, not at runtime.composer.json before anything else. Confirm the statamic/cms constraint on 2.1.0 (^4.0|^5.0 vs ^5.0 only). That single line tells you whether 2.1.0 is a dual-support release you can adopt pre-upgrade or a Statamic-5-only release that forces the platform bump in lockstep.composer require <vendor>/<package>:^2.1
php artisan vendor:publish --tag=<package>-config # if a config tag is documented
php artisan statamic:stache:clear
config/ file (defaults you'll actually override), its service provider (what it registers — fieldtypes, tags, modifiers, nav, permissions), and the README's version/compatibility table. For a Statamic add-on, the provider is the fastest map of surface area.First use case: install into a scratch Statamic 5 site, open the CP, and exercise whatever the add-on registers (a fieldtype in a blueprint, a tag in an Antlers template, or a nav item). Ten minutes here beats discovering a boot failure in staging.
Pin the constraint, don't float it. Use "^2.1" rather than "*" or a dev branch, and commit the lock file. With a minor version that changes framework support, floating constraints are how you get an unexpected Statamic major pulled into a deploy.
Upgrade sequencing when moving 4 → 5. Do it in this order, one commit each:
<vendor>/<package>:^2.1 and resolve.Keep a compatibility matrix in your own repo. If you maintain multiple sites on different Statamic majors, record "site X → Statamic 4.x → package 2.0.x" and "site Y → Statamic 5.x → package 2.1.x" somewhere durable. With dual-support releases people assume every 2.x works everywhere; that assumption is worth writing down explicitly.
CI matrix, if you're the one integrating. Test the package against both statamic/cms:^4.0 and ^5.0 if 2.1.0 claims both. This is the cheapest way to catch a framework-version regression before a client site does.
Treat 2.1.0 as behaviour-preserving. A minor bump that only adds support generally means no API changes on the Statamic 4 path. If you're staying on Statamic 4, upgrading 2.0.x → 2.1.x should be a low-risk patch-level change — worth doing to stay on a supported line, not worth a release ceremony.
composer.json requirement only after exercising the add-on's actual features on Statamic 5; a passing composer update proves resolution, not compatibility.stache:clear and config:clear after upgrading. Stale stache indexes and cached config are the two most common causes of "the add-on stopped working after upgrade" reports, and both are self-inflicted.vendor:publish overwrites a config file you'd customised, you lose settings silently. Copy the config out, upgrade, diff, merge.How can I help you explore Laravel packages today?