Skip to content

docs: document single-schema-line-at-a-time policy - #4

Merged
tbsvttr merged 1 commit into
mainfrom
docs/schema-version-policy
Jul 17, 2026
Merged

tbsvttr merged 1 commit into
mainfrom
docs/schema-version-policy

Conversation

@tbsvttr

@tbsvttr tbsvttr commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Why

@scottbenton asked on the initial-port review:

On the viewer, how would you handle different rulesets being on different schema versions? Is that something we should support?

Documenting the intentional shape rather than leaving it implicit.

What this says

The viewer pins to one Datasworn schema line at a time. Rulesets that ship on a different schema line get dropped from the picker with a TODO until they catch up. When `@datasworn-community/core` bumps its line, we bump every content dep to a matching version and release a new viewer; users who need the old line install the previous viewer release.

Why single-line

Multi-version-per-page was considered and rejected:

  • The shared `@datasworn-community/core` types would validate one line and reject another
  • Working around that would need per-package version branching in every renderer
  • Not worth it unless there's real cross-line-playset demand — which there isn't yet

The loader already degrades gracefully (dynamic import failure → `console.warn`, ruleset omitted from picker), so bumping the schema line before every ruleset publishes on the new line means "some rulesets temporarily missing from the picker" rather than a broken build.

Not changed

The behavior itself. This is a docs-only PR — no code changes, no dep changes. Just naming the convention we're already following.

@scottbenton asked on the initial-port review: how does the viewer
handle different rulesets on different schema versions? Right now it
doesn't — the loader dynamic-imports each package's `.default` export
at whatever version is on npm, and the shared @datasworn-community/core
types would validate one line and reject another.

Documented the intentional shape here: the viewer pins to one Datasworn
schema line at a time. When core bumps its line, we bump all content
deps to matching versions and release a new viewer. Users who need to
browse content on the old line install the previous viewer release.

Multi-version-per-page support was considered and rejected — every
renderer would need per-package version branching, not worth it unless
there's real cross-line-playset demand.

Also noted the loader's graceful-degradation behavior (dynamic import
failure → console.warn, ruleset omitted). So bumping the schema line
before every ruleset has caught up degrades to "some rulesets missing
from the picker temporarily", not a broken build.
@tbsvttr tbsvttr self-assigned this Jul 16, 2026
@tbsvttr
tbsvttr requested a review from scottbenton July 16, 2026 10:30
@tbsvttr
tbsvttr merged commit 6c251ec into main Jul 17, 2026
1 check passed
@tbsvttr
tbsvttr deleted the docs/schema-version-policy branch July 17, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants