Repository navigation
v0.2.0
Added
- Targets in another React root (#1). A Laravel layout mounts its chrome as
separate roots (Blade islands) beside the Inertia page, and context cannot
cross roots, so a target there never registered and its step waited forever.
Create one registry withcreateWalkthroughRegistry(), pass it to
<Walkthrough registry>, and register targets with it from any root:
<Walkthrough.Target registry>,useWalkthroughTarget(id, { registry })
(oruseWalkthroughTarget(id, registry)), or
<WalkthroughTargetsProvider registry>around a whole root with no
<Walkthrough>above it. An explicit registry wins over context. Nothing
queries the DOM. - Markdown step bodies.
bodyFormat: "markdown"on a step, or
<Walkthrough bodyFormat="markdown">for every step, rendersbodythrough
react-fancy'sContentRenderer, sanitised. A step's ownbodyFormatwins. - The body element carries
data-walkthrough-body("text"or"markdown"). - Types:
WalkthroughTargetOptions,WalkthroughTargetsProviderProps.
Nothing to do: plain string bodies stay plain text by default, and a
walkthrough with no registry keeps its own, exactly as before. The
react-fancy peer range is unchanged.
Fixed
CHANGELOG.mdis now in the published tarball.filesdid not whitelist it, so npm never shipped it — and this package puts breaking changes in MINOR releases and tells you in the README to read the entry before taking one. The instruction existed for the author, who has the file, and not for the consumer, who is the only one being instructed. Nothing for you to do; the file simply arrives from this release on.
Security
source-map-jsis pinned forward to^1.2.2viaoverrides. Versions up to
1.2.1 allow an event-loop denial of service through indexed source-map section
offsets, and it arrives here transitively through the build toolchain.
Nothing for a consumer to do, and no runtime change: an npm package does
not ship a lockfile, so this governs builds OF this repo, not anything
installed FROM it. Recorded rather than left silent because the override it
sits beside —shell-quote^1.9.0, added for an earlier advisory — was
carried with no note of why, and had drifted back inside the vulnerable range
before anyone looked.