0.2.3
0.2.3 のリリースノート。
Released: 2026-06-15
バグ修正
A host
color-scheme-changedevent (light/dark toggle) no longer wipes the user'sspacing/typography/sizetweaks from the live panel. The scheme-change handler now clears only the color cluster's inline:rootvars and re-seeds only thecolor(and optionalsecondary) slices, leaving the scheme-independent non-color slices — and their applied inline vars — intact. Previously it called the fullclearAppliedStyles()+freshTweakState(), which stripped every spacing/font/size var and emptied those live slices, so the next in-panel edit permanently persisted the loss. A new internalclearAppliedColorStyles()performs the color-only clear; full resets (Reset / Apply) keep usingclearAppliedStyles(). (#347)
機能
Make
ColorScheme.shikiThemeoptional so hosts can pass their color-scheme maps without a dummyshikiThemeor anas unknown ascast — the runtime already falls back to the cluster'sdefaultShikiTheme. The hydratedColorTweakState.shikiThemestays required (it is always defaulted, andTweakStateis re-exported, so keeping it required avoids widening the publicstate.color.shikiThemetype). (e057388, fd87423, #342)
その他の変更
docs: document the global (not scheme-scoped) tweak model in README §9 — on a host
color-scheme-changedevent the panel drops its inline overrides and re-seeds the live state from the new scheme, leavinglocalStorageuntouched until the next edit. (238b4db, #343)ci: drop the stale npm
nextdist-tag on stable releases when it lagslatest, so@takazudo/zdtp@nextcan no longer silently resolve to an older prerelease. (215ec59, #345)