Repository navigation
Tell agents that samples use the latest SDK release #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Merge the samples guidance before relying on it. The linked
|
||
| - **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. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the next-install claim.
If a sample lockfile records release A, publishing release B does not make an ordinary
npm installmove to B. The sample keeps A until its lockfile is updated, so the release does not necessarily break it at its next install. State that the lockfile must be refreshed to test against B. (docs.npmjs.com)