github whitphx/stlite @stlite/desktop@0.100.0

6 hours ago

Minor Changes

  • #2020 0e9ee30 Thanks @whitphx! - Add @stlite/cli (npm) and stlite-cli (PyPI / uv) — a unified stlite CLI with four conversion commands:

    • stlite share <path> — convert a local Streamlit project into a Stlite Sharing URL (Node + Python; produce byte-identical URLs across runtimes).
    • stlite html <path> — convert into a single self-contained HTML file that loads @stlite/browser from JSDelivr (Node + Python; byte-identical output).
    • stlite web <path> — convert into a multi-file Stlite web app directory that runs offline on any HTTP server (Node only).
    • stlite desktop <path> — convert into a Stlite Desktop project directory with stlite-manifest.json (Node only).

    Supporting changes:

    • New @stlite/app-packager library extracts the dump-artifacts pipeline (Pyodide vendoring, site-packages snapshot) so both stlite web/desktop and @stlite/desktop's existing bin can share it.
    • @stlite/sharing-common now owns exportAsHtml (moved from @stlite/sharing-editor) with a parameterized (appData, { runtimeVersion, debugComment? }) signature, plus a stable BASE64_DECODER_JS_SOURCE constant for the embedded HTML decoder. Bug fix: compress.ts now uses .replaceAll so the URL hash is true base64url; buffer.ts uses globals so the package loads in Node.
    • @stlite/desktop's dump-stlite-desktop-artifacts bin is deprecated (emits a DeprecationWarning at startup) in favor of stlite desktop. The bin keeps working for one release. Also exposes dumpManifest and the manifest schema via build/electron/manifest.js (ESM) so @stlite/cli can reuse them.

Patch Changes

  • #2026 bbc1c86 Thanks @whitphx! - Fix make venv failing during pyodide xbuildenv install after upstream Pyodide 0.29.4 shipped a pyodide-lock.json under a newer schema. Bump pyodide-lock 0.1.2 → 0.1.3 (which makes the dropped info.version field optional) and pin the xbuildenv install to the runtime Pyodide version so future upstream patch releases can no longer break the frozen build env.

What's Changed

🏕 Updates

  • ci: split E2E tests into a dedicated workflow that runs PR code by @whitphx in #1998
  • ci: remove dependabot-changeset workflow by @whitphx in #2007
  • ci(changeset-check): bypass check for Dependabot PRs by @whitphx in #2010
  • fix(kernel): empty DataFrame crashes the page render (#2011) by @whitphx in #2017
  • Version Packages by @whitphx-changesets-bot[bot] in #2018
  • fix(build): pin pyodide xbuildenv to runtime version and bump pyodide-lock by @whitphx in #2026
  • fix(inform-package-stats): show diff annotation when base size is 0 by @whitphx in #2024
  • fix(inform-package-stats): correct inverted isDiff sense by @whitphx in #2023
  • Add @stlite/cli + stlite-cli with share/html/web/desktop conversion commands by @whitphx in #2020
  • Version Packages by @whitphx-changesets-bot[bot] in #2027

👒 Dependencies

  • Bump actions/create-github-app-token from 3.0.0 to 3.1.1 by @dependabot[bot] in #2001
  • Bump ts-proto from 2.8.3 to 2.11.6 by @dependabot[bot] in #2009
  • Bump cloudflare/wrangler-action from 3.14.1 to 3.15.0 by @dependabot[bot] in #2008
  • Bump actions/upload-artifact from 7.0.0 to 7.0.1 by @dependabot[bot] in #2000
  • Chore(deps): Bump softprops/action-gh-release from 2.6.1 to 3.0.0 by @dependabot[bot] in #2002
  • Chore(deps-dev): Bump tsx from 4.20.6 to 4.21.0 by @dependabot[bot] in #2012
  • Chore(deps): Bump fs-extra from 11.3.2 to 11.3.4 by @dependabot[bot] in #2013
  • Chore(deps): Bump actions/setup-node from 6.3.0 to 6.4.0 by @dependabot[bot] in #2014

Full Changelog: https://github.com/whitphx/stlite/compare/@stlite/browser@1.7.2...@stlite/desktop@0.100.0

Don't miss a new stlite release

NewReleases is sending notifications on new releases.