docs(examples): bring examples and cookbooks to Samva 0.8 and the defineTemplate model - #45
Merged
Merged
Conversation
Contributor
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format Release preview
Changelogs in this PR
Run Managed by Tegami. |
aryasaatvik
marked this pull request as ready for review
October 2, 2026 18:41
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bring the runnable examples, cookbooks, and workspace packages up to the published Samva packages:
samva0.8,@samva/markup0.9,@samva/vite0.9, and@samva/cli0.5.What a reader now gets:
examples/tsx-template-samvaandcookbooks/tsx-templates.mdteachdefineTemplatewith anemailchannel, schema and named fixtures, the static profile (&&,?:,.map,fmt, partials), atemplates/directory withtheme.css, and the CLI loop (dev,check,render,snapshot,types,git push,publish). The example dropsvite.config.tsbecausesamva templates devneeds none, and carries a second template (receipt) that exercises the static-profile forms.packages/*depends onsamva@^0.8.0, the Supabase import map pinsnpm:samva@0.8.0, and the Effect example moves to the SDK'seffect@4.0.0-rc.117peer. Call sites that 0.6 to 0.8 changed are fixed: the inbound example passesidempotencyKeyas an option instead of a raw header, and test fixtures drop the removedoperationerror field andruleName.@samva/email-sdk. ReportsDeliveryUnavailableError(Samva could not hand the send to delivery, and a retry with the same idempotency key is safe) asdelivery: "not_sent", with a test and a pending Tegami changelog.For review:
examples/effect-sdk/tsconfig.jsonnow includes theDOMlib; its typecheck already failed onRequestbefore this change.bun run buildandtypecheckforsupabase-auth-hookrundeno check, which refusessamva@0.8.0until Deno's minimum dependency age passes (24 hours by default;samva@0.8.0was published at 2026-10-02 13:53 UTC). They pass with--minimum-dependency-age=0.