Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,199 of 9,199 pages
About the help in other languages
All help pages

Versions, tags and pinning in a bundle

How Exponential and its extensions are versioned, why a published release tag never changes and what that means for a bundle, how to find the newest release correctly (version sort, not name sort), how the tilde…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/bundlers/versions-tags-and-pinning.md

On this page

Versions, tags and pinning in a bundle

This page is for bundlers who decide which versions go into a bundle and how the bundle itself is numbered.

Contents

  1. How Exponential is versioned
  2. A published release never changes
  3. Find the newest release correctly
  4. Tilde constraints
  5. Pinning in a bundle
  6. Versioning your own bundle

How Exponential is versioned

WhatNameGives you
Release tagsv6.0.0 to v6.0.14 (the 6.0 line)an exact, permanent release
Default branchmainthe current development of the 6.0 line, today 6.0.15
Release branches6.0.7 to 6.0.14the state of each release line

Source: 3.1 Versions, tags and branches. main identifies itself as 6.0.15stable (lib/version.php), and composer.json gives it the branch alias 6.0.x-dev, so packages that require se7enxweb/exponential with a constraint such as ^6.0.14 still resolve against it.

Every extension is its own Composer package with its own tags; ezinfo.php and extension.xml of a release carry that release's number (Extension metadata).

A published release never changes

"Once published, a tag and the package version Packagist built from it are permanent; a fix always arrives as the next version" (3.1). SECURITY.md says the same for security fixes: "a fix for a problem in v6.0.14 or an earlier tag reaches you as the next release, not as a corrected copy of the old one".

For a bundle that means:

  • A pinned tag gives you the same files every time. That is what makes reproducible bundles possible.
  • A fix you need is in the next version. Plan to re-release your bundle, not to wait for a corrected tag.
  • The same rule applies to your own bundle: never move, delete or re-cut a tag you have published. If a published bundle is wrong, publish the next version and say in its notes what was wrong with the previous one.

Find the newest release correctly

git ls-remote --tags https://github.com/se7enxweb/exponential.git 'v6*'
git tag -l 'v*' --sort=version:refname | tail -5      # inside a clone, after git fetch --tags

"Always sort by version (--sort=version:refname or sort -V), never by name: by name v6.0.10 sorts before v6.0.8, and a script that takes the last line of a name sort picks the wrong release." Check the release notes on https://github.com/se7enxweb/exponential/releases as well, because a tag can exist before its notes do.

Tilde constraints

The root composer.json pins extensions with ~, for example "se7enxweb/ezoracle": "~2.3.15". "The version constraints use ~, which lets the last position float: ~6.0.8 accepts 6.0.9 and 6.0.10 but not 6.1.0" (Default extension distribution).

The last position keeps counting: after .9 comes .10, and a four-part version such as ~1.1.6.6 (bcgooglesitemaps) floats its fourth position the same way.

Pinning in a bundle

LayerPin withWhy
The kernelan exact tag (v6.0.14) or a recorded commit of mainthe base must be identical in every build
Extensionsthe kernel's ~ constraints plus your composer.lockthe constraint says what may come; the lock says what came
Your own extensionsexact tags of your repositoriesyou control their releases
Site packagesthe package version in package.xml and the file you shipsee Site packages in a bundle
Runtimeimage digests, OS package versionsso a rebuild does not change PHP under you

Versioning your own bundle

  • Give the bundle its own version, independent of Exponential's, and state the Exponential version inside it in the release notes ("Example Bundle 3.2, based on Exponential 6.0.14").
  • Increase only the last position for fixes; move a higher position only as a deliberate decision about what the release means.
  • Write the version into the files of the bundle in the commit you tag, never after the tag.
  • Keep a changelog with the categories Added, Updated, Removed, Renamed so recipients see what changed.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x