Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 00:51
Immutable release. Only release title and notes can be modified.
13b2a08

Release Notes

Projections 0.3.1 answers a round of downstream feedback: a faster projections check loop for renderer work, new kit pieces for quantitative and categorical renderers (chips, tones, a shared scale and order), dashes kept for removals only, and fixes from setting Projections up in real repositories. Read Behaviour changes in 0.3.1 and For renderer authors in 0.3.1 before upgrading.

Behaviour changes in 0.3.1

  • Only a renderer that honors the Changes scope opens on it (#240). Hosts open a comparison on Changes, offer the scope switch and say what it hides ("3 unchanged setups hidden") only for a renderer that declares the new changesScope capability (with filter). A renderer that doesn't draws everything, so it now opens on All, as before 0.3.0, instead of claiming items are hidden that are on screen; the presentation.changesOnly: false workaround is no longer needed. Kit renderers that pass MountOptions.scope declare it; one that folds RendererProps.scope itself (useFolds, DataTable) declares capabilities: {changesScope: true}. Of the built-ins, graph, database, dependency-injection, file-packing, runtime-policy, api and text-diff declare it; agentic-workflows, gallery and code-statistics (whose charts draw every language) don't fold yet, and open on All. The controller's new changesScope says whether the scope is offered.
  • runChecks rejects a check ID it doesn't know (#214). @githubnext/projections/testing's runChecks (and projections check --only) fails naming the valid IDs, instead of running nothing for a misspelt one.
  • Dashes mean removed (#238, #242, #256). The kit's graph compound boundary, the database view card and Changes-scope folds are dotted instead of dashed, and the SDK's subtle annotation badge has a muted fill instead of a dashed edge. Dependency-injection collection and runtime-resolution links draw plain lines, and the legend loses its "Resolved at runtime" entry. A new renderer check, dashes-removed, holds custom renderers to the same rule (see For renderer authors in 0.3.1).
  • projections help agents create-projection prints an overview (#216). The full guide was 48 KB; it now prints the task, the parts of a projection and a table of sections. Name sections (projections help agents create-projection extractor custom-renderer) or pass --all for the whole guide.

For renderer authors in 0.3.1

Upgrade @githubnext/projections to https://github.com/githubnext/projections/releases/download/v0.3.1/githubnext-projections-0.3.1.tgz together with the 0.3.1 CLI.

  • Renamed classes: ChangePills is built on the new Chip (#223), so its markup uses pk-chips, pk-chip and pk-chip-* classes; pk-change-pills, pk-change-pill-item, pk-pill-label and pk-pill-sign are gone. Rules that targeted them need the new names. Its props are unchanged, plus change: 'modified', drawn with ~.
  • Default styles that changed: dotted instead of dashed for the graph compound boundary and folds, and a filled subtle badge (#238); wrapped pk-labels are a whole number of pixels tall (#230).
  • New kit pieces: Chip and Chips (#223); tones quiet and flag for domain meaning that isn't a change (#222); useCategories and countFact, and summary kinds that count their items by a key (#225, #226); Group's padded option (#220).
  • A shared scale and order (#228): sharedScale/useSharedScale and sharedOrder/useSharedOrder size and rank by both revisions, so a value has one size in the diff, either held pane and every step. Mark scaled elements with scaleAttributes(name) and ordered lists with orderAttributes; the neutral-endpoints check then allows exactly that difference from a one-revision presentation and stays strict everywhere else.
  • Declare changesScope to open on Changes (#240): hosts open a comparison on the Changes scope, and say what it hides, only for a renderer declaring capabilities: {changesScope: true} with filter. The kit declares it for a renderer that passes mountRenderer's scope; a renderer folding props.scope itself (useFolds, DataTable) declares it. Without it the host shows All and offers no scope switch.
  • New renderer check dashes-removed (#256), run by default in projections check and expectScenarioToPass, and failing: an SVG stroke with dashes longer than 2px, or a dashed CSS border or outline (including on ::before/::after), must be on or inside something marked removed (data-change="removed") or drawn in the removed hue. Use dotted lines (dashes of 2px or less, or CSS dotted) for any other meaning; focus rings are exempt.
  • Faster checks while you work (#214): projections check --scenario <id> checks only those renderer scenarios (only scenarios.json ones skip extraction), --only <check> runs only those checks, and a failure ends with the command that reruns just it. CI should keep running the full check.
  • status-text passes each held pane's pane (#229), as hosts do, so props.emphasis emphasizes a held pane's own changes there too; a renderer can drop a presentedEmphasis workaround for side-by-side panes.
  • Renderer kit components gains a change-emphasis recipe and a Shared scale and order section (#217, #228).

Highlights

  • A faster renderer loop (#214): projections check --scenario and --only, with a rerun hint on each failure; the MCP and VS Code check tools take the same narrowing.
  • Kit chips, tones and shared scales (#222, #223, #225, #226, #228), adopted by the runtime-policy and code-statistics renderers.
  • Setup fixes from real repositories: Git inside the Copilot app, sweeps that fail when every extraction fails, workspaces with unnamed members, and the fixes below.

Renderers

  • runtime-policy: an Unchanged rows control folds what didn't change; chips use the kit's Chip; a changed value is a pair of padded, centred pills (#218, #224, #245).
  • dependency-injection: lifetime marks are icons that count instances (#241); collection and runtime-resolution links draw plain lines (#242).
  • file-packing: the root holding everything is the stage, not a selectable item: a click on empty space clears the selection, and keyboard focus starts on a top-level circle (#250).
  • code-statistics: the donut gives way to the list rather than the stage, and on a phone the share list keeps its rows inside it (#227, #233).

Authoring

  • explore says why a proposal failed, proposes typescript-public-api per package, and marks what a proposal needs (#215).
  • The agent guide's Custom renderer section starts with declaring comparisonModes and capabilities, and each built-in format lists the data fields the engine checks and which objects are closed (#216).
  • workspace-dependencies accepts an unnamed member (workspace:./<path>) and a root that shares a member's name (workspace-root); every ID that worked before is unchanged (#239).
  • The README's slogan is now "Review code changes (without reviewing code)" (#237).

Fixes

  • Git works inside the GitHub Copilot app (#243). Projections now passes GIT_EXEC_PATH and GIT_TEMPLATE_DIR to the Git it runs (and to a built-in extractor reading Git objects), so a Git bundled in an application finds its helpers. Before, in a partial (blobless) clone every lazy fetch failed with "git: 'remote-https' is not a git command", and so did every sweep cell. Custom extractors still don't receive them.
  • A sweep where every extraction failed fails (#246). explore --sweep exited 0 and showed each projection as ready with signal unknown, leaving the failures in cells[].stderr. Now each ready row of --json carries a failed count, the text ends by counting the failed extractions and giving the first reason, and the command exits nonzero when every extraction failed.
  • A Git timeout names the command, and says when the clone is partial (#244). projections: git timed out after 30000 ms: ended in an empty colon; now it reads projections: `git cat-file --batch` timed out after 30000 ms, and in a partial clone (remote.*.partialclonefilter set) adds that Git fetches each missing file from the remote as it reads it, and to download them first with git backfill. A failed process with no stderr no longer ends its message in a colon.
  • explore proposes django-schema only for a Django project (#247). Any models.py proposed it; now the project also needs a manage.py, or a pyproject.toml, setup.py, setup.cfg, Pipfile or requirements text file that names Django.
  • A proposed or adopted go-public-api works as written (#248). explore and adopt wrote it without execution.environment: ["HOME"], so it failed with "Cannot determine the Go module cache". Built-in descriptors gain template_execution, which go-public-api uses to grant HOME (and Windows' USERPROFILE, APPDATA and LOCALAPPDATA); init on an existing definition adds the grants to its own execution. And when go.mod needs a newer Go than the one that ran (GOTOOLCHAIN=local), the error names the version to install, or says to grant GOTOOLCHAIN=auto.
  • A whole-repository proposal skips generated files beside hand-written ones (#249). explore listed each vendored or generated file beside hand-written ones in inputs.exclude and kept the first 32, so repository-map and code-statistics proposals in a repository with 59 generated workflows still mapped 27 of them. Such files now collapse into one glob when they share a name prefix or a suffix beyond the extension, and it matches none of the hand-written files beside them (.github/workflows/__*.yml, src/*.gen.ts). Files with nothing in common are still listed one by one, up to 32 exclusions.
  • An extractor command that can't start says so (#252). A relative command Git ignores, such as .venv/bin/python, starts in the working tree but not from the definition's revision, where relative commands run. check blamed the extractor for reading files beside it; now it says the command could not start, and a comparison's failure says where relative commands run from and to start the extractor with a command on PATH. Environments documents the Python virtual environment pattern.
  • The api renderer doesn't repeat a container's label in a qualified name (#253). Labels that spell their full path joined along contains read specify.specify bundle.specify bundle add; a label that starts with its container's label and a separator now replaces it, giving specify bundle add. Response.headers is unchanged.
  • bookmark run without --trust says so once (#254). Bookmarks of a projection that runs repository code each failed with "Explicit --trust is required…", then "0 of 6 projections succeeded". When every failure needs trust, the command now prints one message naming the bookmarks, their projections and --trust (and the other bookmarks' results), and still exits nonzero; --json prints the batch as before.
  • Opening several canvases at once no longer damages their record (#259). The Copilot canvas extension writes its record of opened instances one at a time and atomically, and treats an unreadable record as empty instead of failing every action. Run projections canvas install --force to pick it up.
  • A failed sweep cell says what the extractor said (#260). In explore --sweep --json and the Inspector's Explore view, a failed cell's error is the extractor's own diagnostic (a traceback's last line, Node's Error: line), not only its exit status; it falls back to the exit message when the extractor said nothing.
  • check blames a concurrent write, not the extractor (#261). When something else writes to the working tree while check reads it, the Scope and "Reads through repository.root" steps warn that this wasn't verified and to run check again, instead of saying the extractor reads outside its scope.

Install projections-cli 0.3.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/githubnext/projections/releases/download/v0.3.1/projections-cli-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/githubnext/projections/releases/download/v0.3.1/projections-cli-installer.ps1 | iex"

Download projections-cli 0.3.1

File Platform Checksum
projections-cli-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
projections-cli-x86_64-apple-darwin.tar.xz Intel macOS checksum
projections-cli-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
projections-cli-x86_64-pc-windows-msvc.zip x64 Windows checksum
projections-cli-aarch64-unknown-linux-musl.tar.xz ARM64 MUSL Linux checksum
projections-cli-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo githubnext/projections

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo githubnext/projections