Repository navigation
docs: document single-schema-line-at-a-time policy - #4
Merged
Merged
Conversation
@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.
scottbenton
approved these changes
Jul 17, 2026
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.
Why
@scottbenton asked on the initial-port review:
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 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.