# DateVer

This project follows Jake Goldsborough's
[Date-Ver specification](https://github.com/ducks/date-ver/blob/main/DATE-VER.md),
as supplied in `~/dev/date-ver/DATE-VER.md`. Versions express release dates, not
compatibility promises. Read the changelog for breaking changes.

`VERSION` is authoritative: daily UTC `YYYYMMDD`, optionally `.N` for another
release that day (`N >= 1`, no leading zero). The initial development snapshot
uses `20261130`, the UTC date when implementation began; no release has been
published. Choose the actual UTC release date before publishing.

npm requires a three-integer version. Its transport representation is
`YYYYMMDD.N.0`, where N is zero for the day's first release. Examples:

| Source DateVer | npm transport  |
| -------------- | -------------- |
| `20260103`     | `20260103.0.0` |
| `20260103.2`   | `20260103.2.0` |

The trailing zero is padding, not a patch/compatibility indicator. Avoid relying
on semver compatibility ranges; pin the version you tested. This mapping keeps
the canonical zero-padded calendar date intact even in January.

Before a release:

1. Update `VERSION` to the UTC date/sequence and write actual changelog entries.
2. Run `node scripts/version.js sync` to synchronize package and lockfile versions.
3. Run `npm run check`, `npm run build`, and `npm pack --dry-run`.
4. Inspect the tarball and test it in a consumer. Tag using the source DateVer only
   when committing/tagging/publication is explicitly requested.

Builds fail on version drift. No automatic date bump happens at build time,
preserving reproducibility. No command here publishes or creates a tag.
