What’s new
What changed in the framework and the CLI, newest first, with the page that explains each change. Releases are tagged on git.splent.io and published on PyPI. Your product takes a release by pinning it under [tool.splent.runtime], which product:build writes.
Table of contents
splent_framework
Not released yet
- Cheap password hashes in tests. The framework’s fixtures make werkzeug hash with
pbkdf2:sha256:1in the test process. See Fixtures. MARIADB_TEST_HOSTNAME, a database server for the tests alone. See Test environment.SPLENT_APP_DIR, the folder of the workspace the product is checked out in, when it is not called like the product. See Environment variables.
1.33
/versionnames the product and the release it is running. See Which release is running.
1.30
- Storage per feature. Each feature keeps its files in a folder of its own. See Storage.
- HTTP APIs. problem+json errors, cursor pages, ETag and deprecation headers, and
accepted()for work that runs later. See HTTP APIs. - Background tasks report their progress, and
run_isolatedruns heavy work in a child process with a time and memory limit. See Background tasks. - A shared rate limit for every feature, and
form_guardfor public forms. See Rate limits and forms. - Safe fetching of an address someone else chose, with a total time limit. See Fetching URLs.
- Search fields, facets and sorts one feature adds to another’s. See Search.
- Content helpers such as
unique_slug,summary(),page_of()andpager(), and a sitemap built from what features register. See Content helpers. - The site’s own address and time zone, with
site_root(),absolute_url(),site_name()andlocal_now(). See The site. feature_cache, the product’s Redis or each process’s memory. See Cache.- Every template escapes, and
| safetrusts only markup. See Template system. - Icons, empty states and page behaviours (
icon(),empty_state,data-confirm,data-copy,data-reveal) on every shell. optional_moduleandoptional_attr, for a feature the product may not have.
1.29
- An editable product’s version is its checkout’s. See The product’s version.
- The framework names what a feature does, not which feature does it, for sessions and task queues. See Framework defaults.
1.28
- A feature’s bundle, drawn from its manifest, with
feature_scriptandfeature_style. See A feature’s bundle. register_assettakesscope,typeandintegrity. Seeregister_asset.- A Content-Security-Policy per page, from the features the page drew. See Content-Security-Policy per page.
1.27
register_menu_matchlights another feature’s menu entry on your screens. See The current entry.- A
listwithout choices can select a node of the feature model. See Letting a value select features. - A model of a feature the app does not load cannot break every query. See Database.
1.26
- A key per purpose with
SPLENT_DERIVED_KEYS. See Keys per purpose.
1.25
- The audit API,
record_eventandregister_audit_recorder. See Audit and reports. report_degraded,request_idand readiness listeners.
1.24
MARIADB_PORTin every config class. See Environment variables.
1.23
has_rolein every template. See Access control.param()reads a runtime value whichever API stored it. See Reading a parameter.- Protected files are denied by default. See Protected files.
- Tests start on an empty database and keep their files apart. See Fixtures.
1.22
- Typed parameters in
[tool.splent.config_schema]. See Typing a setting.
1.21
- A stronger configuration layer wins. See Configuration.
- Background tasks,
@taskandenqueue. See Background tasks. - Health probes,
/healthzand/readyz. See Health probes. - SameSite from the environment. See SameSite.
- The
sitemenu section. See Menus and shells.
splent_cli
Not released yet
- What a folder is comes from what it holds, never from its name. A feature is one by its
[tool.splent.contract], a product by its[tool.splent]features, a product line by itsmetadata.toml. See What each folder is. - A product in a folder of another name.
SPLENT_APPis the product’s name andSPLENT_APP_DIRits folder;product:selecttakes either and writes both. Containers, images and Compose projects get a name Docker takes. See A product in a folder of another name. workspace:statusshows the products, features and product lines of the workspace, and which products use each feature, editable or pinned. Seeworkspace:status.- A pinned feature is tested at the version the product pins, even when the workspace holds a working copy of it.
--withnames a working copy to test, found by what it holds. See Which copy is tested. product:ui-audituses several browsers at once, as many as the grid’s Chrome node offers, which a new product’s development compose sets from this machine (SPLENT_BROWSER_SESSIONS). It measures each page once less, and the report reads as before.--sessionsuses fewer. See Several browsers at once.product:test-profileruns the product’s tests and shows where their time goes, per feature, test and fixture, and how much is password hashing, sleeping, the network or the database, with what to do about each. Seeproduct:test-profile.- The tests’ own database server. A new product’s development compose has
<product>_db_test, in memory and without durable commits, and the tests use it throughMARIADB_TEST_HOSTNAME. See Test environment. product:upgradeupgrades a product’s features and keeps only what the running product passes with: it installs, migrates, validates and runs the tests for the whole plan, then for one upgrade at a time when the plan fails, and brings the product back when nothing passes. Seeproduct:upgrade.feature:upgradetakes tags PyPI does not serve, checking them through their dependencies, keeps the version requirements of every contract, and validates the planned product in every phase before it changes anything.--pypi-onlyplans from PyPI alone. Seefeature:upgrade.workspace:syncbrings the whole workspace up to date: it fast-forwards every checkout, the framework and the CLI included, and clones the features, product lines and products of the marketplace the workspace lacks. What it cannot update safely it leaves alone and reports. Seeworkspace:sync.feature:pullupdates likeworkspace:sync. A feature with uncommitted changes or local commits is skipped and reported instead of failing, no product needs to be selected, and--dry-runshows what is behind. Seefeature:pull.product:drift --checkexits 1 when a SPLENT-owned file drifted, so a CI job can stop on it. See Failing a CI job on drift.- A failing product workflow opens an issue.
splent-validate.ymlandsplent-upgrade.ymlend with analertjob that opens an issue on the product’s repository while the workflow fails onmainand closes it when it passes again. Bring it to an existing product withproduct:sync-template --ci. See When a workflow fails.
1.63
feature:releaselists the feature in the marketplace when you are signed in, andmarketplace:indexreads those listings. No pull request to the index. See Listing in the marketplace.
1.54
product:ui-auditopens every page in a real browser, at five widths and in both themes, and fails on what leaves the screen, is cut off or covered, text too faint to read and pictures that fade away.product:testruns it when the product asks. Seeproduct:ui-audit.- A command’s name has one colon.
feature:hook-add,feature:hook-remove,feature:frontend-initandproduct:frontend-auditreplace the names with two, which keep working.
1.50
- SQL and XSS sinks. A command reads a feature’s sources for them,
product:validatechecks them in an eighth phase, andfeature:releaserefuses a feature that has one. - The product’s storage in one volume, migrated at start.
feature:contractreads the framework’soptional_moduleandoptional_attras optional dependencies.
1.49
feature:releaserefuses a revision id longer than 32 characters. See Migrations.feature:contractmakes a link underhas_endpointan optional dependency. See Optional dependencies.- The neutral app finds its platform by what each piece does. See The platform.
feature:translateworks on any working copy. Seefeature:translate.- The CLI writes from its own templates, never a checkout in the workspace. See The CLI.
1.48
F-CSP-UNAPPROVEDgives one line per directive to approve. See Phase 7. Frontend.- Every build lints a feature’s globals against the page it declared. See Globals of the page.
- Vendored wheels are fetched and checked. See Vendored wheels.
F-CDNis an error for a feature withfrontend/.- The shell bundles the singleton it provides. See A feature with
frontend/.
1.47
product:validatechecks the features’ bundles in a seventh phase. See Phase 7. Frontend.docker/frontend.lock.jsonrecords every bundle the image installs. Seedocker/frontend.lock.json.product:frontend-auditaudits the bundles and writes their SBOM. Seeproduct:frontend-audit.splent.licenseTextsgives a package its licence file. See Licences and audit.
1.46
- A feature’s own JavaScript dependencies in
frontend/, built in the SPLENT toolchain image. See A feature withfrontend/. feature:compile,feature:npmandfeature:frontend-init. Seefeature:compile,feature:npmandfeature:frontend-init.- The release builds and gates the bundle, its licences and its audit. See Licences and audit.
1.45
spl:publishwith a product selected. Seespl:publish.- The deploy artifacts follow the pins. See After a pin changes.
product:validate --modeland--pyprojectcheck candidates. See A candidate pyproject or model.product:derive --dev --skip-validate. See Deriving past a failed pre-flight.- Nothing of root’s in the working copies. See Startup scripts.
1.44
SPLENT_APP=<product> splent <command>for another product. See Another product for one command.
1.43
- A feature’s tag carries its frontend bundle. See
feature:release. - The CI test job fetches the line’s model. See Continuous delivery.
1.42
- A product’s own commands,
splent product:<name>. Seeproduct:commands. [tool.splent.test] envfor a product’s own tests. Seeproduct:test.
1.41
product:params. Seeproduct:params.SPLENT_MIGRATE_ON_STARTanddb:status --check. See Startup script integration.
1.40
- Parameter nodes in the feature model. See Letting a value select features.
1.39
product:validatechecks parameters in a sixth phase. See Phase 6.- A breaking schema change needs a major version. See Parameters.
1.38
- A feature’s tests run in a neutral app when the product does not declare it. See The neutral app.
1.37
product:testruns the product’s own tests.check:vendorfinds Keenthemes code. Seecheck:vendor.- The start migrates once, under a database lock. See
db:upgrade. clear:uploadsempties the protected uploads. Seeclear:uploads.