From 6e038d3191314e19bd1832ccd0a770cc71d323ff Mon Sep 17 00:00:00 2001 From: Brion Date: Sat, 28 Nov 2026 11:18:41 +0530 Subject: [PATCH] Tell agents that samples use the latest SDK release The Samples section said each sample pins a released version of this SDK. Samples now always use the latest release, and keep no compatibility with older ones, so the section says that and points to the samples repository's SDK versions rules for moving them after a release. Refs thunder-id/samples#39 Signed-off-by: Brion --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0df07d41..55a5a844 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -111,9 +111,9 @@ A component that changes here usually needs the same change in the sibling SDKs. ## Samples -The quickstarts and integration samples live in [thunder-id/samples](https://github.com/thunder-id/samples), and each one pins a released version of this SDK. A change here therefore can't break a sample until the sample bumps its version, which is exactly when a break would surface for a real app. Before raising a pull request, check every sample that uses this SDK: +The quickstarts and integration samples live in [thunder-id/samples](https://github.com/thunder-id/samples), and every sample uses the latest release of this SDK: each sample depends on its `@thunderid/*` packages as `"latest"`, and its committed `package-lock.json` records the release it resolved. Do not pin a sample to an older release. The samples keep no compatibility with earlier releases either, so there are no fallback settings, aliased variables or notes for older versions. A release that changes what a sample relies on therefore breaks the sample at its next install. Before raising a pull request, check every sample that uses this SDK: -- **A sample stops compiling or behaving the same** (a renamed type or package, a changed signature, a moved default): raise a samples pull request that bumps the SDK version and fixes the sample. Keep it as a draft until the SDK release it needs is out. +- **A sample stops compiling or behaving the same** (a renamed type or package, a changed signature, a moved default): raise a samples pull request that changes the sample for the release that carries this change, without keeping the old behaviour working beside it. Keep it as a draft until that release is out. Then move the samples to the release, as the samples repository's [SDK versions](https://github.com/thunder-id/samples/blob/main/AGENTS.md#sdk-versions) rules describe, and mark it ready. - **The change adds something a sample exists to show** (a self-service capability for `self-service/myaccount-react`, a management component or operation for `management/admin-react`, a new sign-in option for the quickstarts): update that sample in the same samples pull request, so it demonstrates the new capability rather than working around its absence. - Link the samples pull request from this pull request's **Related PRs**, or say why no sample is affected.