You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Public API tracking with PublicAPI.Shipped.txt and PublicAPI.Unshipped.txt.
CONTRIBUTING.md, SECURITY.md, docs/decisions/ and the build/dod.ps1 Definition of Done gate.
A dev container, .devcontainer/devcontainer.json and .devcontainer/Dockerfile, so a GitHub Codespace or VS Code's Dev Containers opens with PowerShell 7 and the .NET SDK installed (ADR-0062).
CI's Markdown checks job fails on a relative link or heading anchor in a tracked Markdown file that points nowhere, dependency-review.yml fails a pull request that adds a dependency with a known vulnerability of moderate severity or above, and merge-gate.yml checks the default branch's merge gate every week (ADR-0064).
Decision records for the release line (ADR-1000), publishing through trusted publishing (ADR-1001), what the 2.0.0 major breaks (ADR-1002), the documentation site's address (ADR-1003) and the NCode Review pin bump's auto-merge exception (ADR-1004) (#47).
Decision records describe the library's design: how a provider aggregates its data sources' change tokens and rebuilds its collection, the four kinds of data source, who disposes a data source or its items, what the periodic polling callbacks receive and return, and what a provider guarantees under concurrent reads and refreshes (#52, ADR-1007, ADR-1008, ADR-1009, ADR-1010, ADR-1011).
A documentation site of narrative guides at https://livecollections.ncode.io/, which is also each package's project page: a quick start, guides to combining data sources, reacting to changes, polling a remote source, owning and disposing, and implementing a data source, each with its pitfalls, concept pages on rebuilds, data sources and polling, and an API map. Every C# sample on it is a test in tests/NCode.LiveCollections.Site.Tests, and ./build/gate.ps1 fails when the API map and the public API differ (#51, ADR-1012).
PeriodicPollingCollectionDataSource takes an optional timeProvider, and DefaultCollectionDataSourceFactory a constructor that takes a TimeProvider, which the polling timer ticks on; AddLiveCollections() registers TimeProvider.System unless a TimeProvider is registered, so a test drives polling with FakeTimeProvider.Advance instead of waiting (#74, ADR-1014).
Changed
Updated from project-template v0.41.0 to v0.61.2: build settings, analyzers, CI, Dependabot configuration and agent workflow files. The public API is unchanged and is now tracked in PublicAPI.Shipped.txt.
AssemblyVersion now moves only with the major version (<major>.0.0.0) instead of following the package version, so a 1.x release keeps the assembly identity 1.0.0.0.
Updated from project-template v0.61.2 to v0.145.1, recording the contribution policy curated: issues and discussion are welcome, and code is by invitation while the design settles, as CONTRIBUTING.md and README.md say (#25).
Package and assembly versions come from version.json through Nerdbank.GitVersioning, and each pack is validated against the published 1.0.0 packages (#25).
Each package carries a readme of its own, so nuget.org shows the package's usage instead of the repository's README (#25).
README.md opens with the template's header and follows the .NET library layout, and the solution is NCode.Collections.Providers.slnx (#25).
GOVERNANCE.md names the maintainer and the owners, ROADMAP.md lists the plans for the next twelve months and what is ruled out, and docs/assurance-case.md states the security requirements, the threat model, the design principles and the weaknesses they counter (#33).
Updated from project-template v0.145.1 to v0.153.0: agent workflow commands, decision records and CI; AGENTS.md's Landing section names merge: person, so a person still merges every pull request.
Each package readme opens with the template's header block, the package id with its CI, target framework and license badges, and README.md's ## Project list opens with the template's block; CI fails on a gap in either (ADR-0061).
.github/workflows/code-review.yml drops its commented ADR-0009 exception for the NCode Review v1.7.0 pin, which is past the three-day cooldown, and ROADMAP.md no longer lists that work (#30, ADR-0009).
Updated from project-template v0.153.0 to v0.154.1: agent workflow commands, decision records, CI and comment lines wrapped at 120 columns; README.md's ## Project list links CHANGELOG.md; the template's update script ends with the command that brings the repository's GitHub settings up to the template version, which derives the required checks from the repository's answers, Landing section and workflows (ADR-0068).
Updated from project-template v0.154.1 to v0.154.5: agent workflow commands, the template's update, plan-state and merge-gate scripts, and codeql.yml's comment on why its language detection skips scripts in folders whose names start with a dot.
Updated from project-template v0.154.5 to v0.156.0: agent workflow commands; /run-epic takes an epic in this repository from open to closed, one pass at a time; merge recommendations open with Autopilot: ready to merge at <head commit>.; and /plan-template-update and /ship-plan judge every open follow-up issue against a template update, so its pull request closes each one the update completes.
Updated from project-template v0.156.0 to v0.158.0: agent workflow commands, decision records and the template's release and update scripts; Stop the Line leaves Dependabot's update jobs out of the default branch's runs (ADR-0069), /plan-template-update takes a project-owned hunk an open follow-up deferred once its wait has passed, and /run-epic runs an epic in another repository and holds a story until its blocker's release is published (ADR-0070).
Updated from project-template v0.158.0 to v0.162.0: agent workflow commands, decision records, the template's release, plan-state, merge-gate and update scripts, and workflows; code-review-auto-merge.yml turns auto-merge on for an NCode Review pin bump only where the default branch's rules require a status check, tag-release.yml reads whether the repository is public through the REST API, a Claude Code cloud session's clone runs .githooks/pre-push, and Stop the Line counts a push workflow that never ran on a merge commit within two hours as failed (ADR-0080).
Updated from project-template v0.162.0 to v0.165.0: agent workflow commands, decision records ADR-0081 to ADR-0086, and the template's release, plan-state, merge-gate and update scripts; each plan now writes its changelog entries to a file of its own in changelog.d/ (ADR-0081), codeql.yml skips its jobs in a merge queue (ADR-0084), and Stop the Line also counts a push workflow with no run on a merge commit two hours after it landed (ADR-0080).
Updated from project-template v0.165.0 to v0.166.0: agent workflow commands, decision record ADR-0087, the template's release and update scripts, and the comments on the visibility step in scorecard.yml, dependency-review.yml and tag-release.yml; under release: none, .template/Publish-Release.ps1 -Fold also writes the changelog entry files no release published into CHANGELOG.md's ## [Unreleased], and -Notes <version> -OutFile <file> writes a release's notes for a release made by hand (ADR-0087).
Updated from project-template v0.166.0 to v0.167.1: agent workflow commands and decision records ADR-0088 and ADR-0089; /run-epic asks once whether to run one pass or run on autopilot, which mode:pass or mode:autopilot answers up front (ADR-0088), and a pull request that a renumber or merge step merged the default branch into lands with a merge commit or a squash, never by rebasing (ADR-0089).
Breaking: The library is NCode.LiveCollections, and its repository is NCodeGroup/LiveCollections. Change the package references NCode.Collections.Providers to NCode.LiveCollections and NCode.Collections.Providers.Abstractions to NCode.LiveCollections.Abstractions, the namespaces NCode.Collections.Providers to NCode.LiveCollections, NCode.Collections.Providers.DataSources to NCode.LiveCollections.DataSources and NCode.Collections.Providers.PeriodicPolling to NCode.LiveCollections.PeriodicPolling, and the registration call AddCollectionProviders() to AddLiveCollections(); type names are unchanged (#55, ADR-1005).
The packages carry no package validation baseline until NCode.LiveCollections 2.0.0 is published, since the new package IDs have no earlier package (#55, ADR-1005).
Each merged pull request whose description has a Release: line is tagged, released and published to nuget.org with no further step: AGENTS.md's Landing section says release: tag+release, tag-release.yml also runs every hour to finish a release whose push event GitHub dropped, and publish.yml packs the tagged commit, pushes the packages through nuget.org trusted publishing, attaches them with signed build provenance and an SBOM to the release through release-provenance.yml, and starts raise-baseline.yml, which opens the pull request that raises the package validation baseline after each stable release (#48, ADR-1000, ADR-1001).
Breaking: The packages target only net10.0, the LTS release of .NET that Microsoft supports; net8.0, past its end of support, is no longer a target. An application on .NET 8 moves to .NET 10 to take 2.0.0 (#49, #31, ADR-1002).
Breaking: The periodic polling delegates are HandleExceptionCallback and RefreshCollectionCallback<TItem, TState>, in NCode.LiveCollections.PeriodicPolling, with the same signatures and parameter names. Change HandleExceptionAsyncDelegate to HandleExceptionCallback and RefreshCollectionAsyncDelegate<TItem, TState> to RefreshCollectionCallback<TItem, TState> where your code names them (#49, ADR-1002).
Every 2.x assembly carries the assembly version 2.0.0.0, so a 2.x minor or patch upgrade needs no binding redirect (#49, ADR-1002).
The source follows the template's .NET layout: the packages are built from src/NCode.LiveCollections and src/NCode.LiveCollections.Abstractions, and the tests are in tests/NCode.LiveCollections.Tests (#49).
GOVERNANCE.md and docs/assurance-case.md say a package publishes from a release tag whose commit the default branch or a protected release line holds, as publish.yml checks (#69, ADR-0074).
AGENTS.md lists ADR-1002's departure from the template's ADR-0136 deprecate-then-remove rule for the renamed polling delegates (#63, ADR-1002).
./build/Assert-Markdown.ps1 fails, naming the root, when it finds no Markdown file or no snippet marker; its self-test covers CRLF readmes, and ./build/gate.ps1 runs build/Test-Gate.ps1, which proves the gate's stage order, arguments and exit codes (#71).
README.md points to CHANGELOG.md and the GitHub releases for each release's notes, in place of a hand-kept list that stopped at 1.0.0 (#68).
Removed
.github/workflows/main.yml: ci.yml builds, tests and packs every pull request and merge group, and publish.yml publishes the packages (#48, ADR-1001).
Fixed
The packages carry their description and tags again: the project.props files that set them were imported by no project (#25).
The C# samples in README.md and each package's readme compile against the current API and run as tests: the periodic polling sample handles a null response and returns a completed ValueTask from its exception handler, and the data source sample disposes its CancellationTokenSource (#50, ADR-1006).
The periodic polling documentation says what the code does: with no exception handler, or a handler that throws, the first refresh failure ends polling, and the timer ticks on a fixed period, so a refresh slower than the interval is followed at once by the next (#52, ADR-1010).
Security
main.yml pins every action it uses by full commit SHA (#33).
No secret holds a nuget.org API key: publish.yml's publish job exchanges its OIDC token for a key that expires within the hour, in the nuget environment, which takes release tags only, and SECURITY.md says how to verify a package's build provenance and a release tag's gitsign signature (#48, ADR-1001).