Skip to content

v0.6.0

Choose a tag to compare

@williambdean williambdean released this 07 Sep 06:22
· 16 commits to main since this release
d58bb8a

v0.6.0

This release makes modist usable without Python: the widgets are now
available as a standalone client-side bundle for JS-only projects, shipped in the
same distribution story as the anywidget bundles.

Standalone JS for JS-only consumers

  • New dist/modist.js — a single-file ESM bundle (package.json: jstat dep)
    exposing normal, beta, gamma, studentT factories that mount a widget
    into any element and return a handle (params / set / reset / onChange
    / destroy). See site/index.html.
  • Live showcase: https://williambdean.github.io/modist/ — tabbed Normal /
    Beta / Gamma / StudentT widgets, copy-able import snippets, and a Python /
    marimo quickstart (including the reactive w.scipy / w.pymc adapters).
  • Pinned, immutable URLs: https://cdn.jsdelivr.net/gh/williambdean/modist@v0.6.0/dist/modist.js
    (jsDelivr GH tags serve the committed bundle; CORS *).

Supply-chain hygiene

  • jStat is now an npm-managed dependency (jstat@1.9.6) instead of a vendored
    esm.sh blob whose license header had been stripped when minified.
  • /*! banners on all bundles credit modist (MIT) and jStat (MIT), and the
    publish workflow gates releases on an MIT-only license-checker pass.
  • npm Dependabot keeps the JS deps monitored.

Showcase / packaging

  • Advertise the Pages showcase URL in [project.urls] (Showcase) and as the
    GitHub repo homepage.
  • The showcase inline-bundles the standalone JS (runs from file://), mounts
    families lazily in tabs, and self-updates its pinned-import snippet to the
    current release tag at build time.