Repository navigation
v2.0.0-beta.79
Pre-release
Pre-release
·
492 commits
to main
since this release
An app goes to a store's testers with crossbind app upload and out to everyone with crossbind app release, which builds nothing, and crossbind app store --send sends a store's page alone; an empty std::optional is null on every runtime, a function that takes a std::unique_ptr stays out of the bridge, and in WebAssembly curl's multi interface runs through fetch, so GDAL's /vsicurl/, /vsis3/ and WMS tile requests reach their servers.
Highlights
Upload to testers, release to everyone
crossbind app upload [store], the formercrossbind app publish, builds the app and sends it to the store's
testers, changing nothing its users see: a Google Play testing track, internal unless--tracknames another; App
Store Connect, whose TestFlight hands it to testers; a Microsoft Store submission it leaves for the release; and a
draft GitHub release.crossbind app release [store]puts out to everyone what the testers have, with no build, and sends the page the
store's folder instore/holds with it. Google Play puts its newest testing release out on production, App Store
Connect hands App Review the version ofpackage.json's number with its newest TestFlight build, the Microsoft Store
submits the upload's submission for certification, and GitHub puts the draft release out.--rollout 10, or10%, starts a release with that share of the users: Google Play stages it, the Microsoft Store
rolls it out gradually and App Store Connect releases the version in phases over 7 days. A share below 100 stops the
release before any store releases where one of its stores has no stages, as GitHub.app.storesincrossbind.config.jsnames the stores a barecrossbind app upload,releaseandstoreact on, in
its order.crossbind app store --sendsends a store's page, the listing, screenshots and settingsstore/holds, with no build;
-psends one platform's.crossbind app storealso tells what each store has now, with the credentials at hand:
Google Play's tracks, App Store Connect's versions and newest builds, and Partner Center's submissions.crossbind app upload app-storewithout-psends the iOS app, then the macOS one, as App Store Connect keeps both in
one record. Each platform is checked before the first build, and where one fails after the other went, the error says
which went and the-pthat sends the rest.crossbind app keysays which keys sign the app and where each is kept.crossbind app key uploadmakes this
machine's upload key andcrossbind app key updaterthe updater's pair; an extension'skeysadd their own.- For extension authors: a publisher may give
release,sendandstatesteps andcanStage, and its
guide(api)gives{ uploads, sends, releases, problems, where, steps }.
Bindings
- An empty
std::optionalisnullon every runtime, as a null pointer is; it wasundefinedon wasm, which also
refusednullfor an optional number. An optional parameter takesnullorundefinedfor an empty one. - On React Native and in a Node-API addon, a function's or method's trailing optional arguments may be left out, as on
wasm, and a vector's or map'sgetpast the end answersnull. - A function, method or constructor that takes a
std::unique_ptr, by value, as an rvalue, through a const reference
or through an alias such as GEOS'sGeometry::Ptr, is left out of the bridge, with a line in the build for each: a
call destroyed the object its argument's JavaScript handle still held, and freeing the handle destroyed it again. A
returnedstd::unique_ptrbinds as before, and JavaScript owns the object. - In a hand-written interface beside a header, a
%templateinstance binds, a function template's under the name
%templategives it, and so do the methods an%extendblock adds to a class; the bridge of either did not compile. - Builds run on toolchain image family 1.0.23, from 1.0.21, whose SWIG makes these changes. The bridges' format moves
with it, so the first build after the upgrade makes each bridge again. - The C++ binding rules, the SWIG escape page and troubleshooting say what the binder does, each line measured on wasm
and on a Node-API addon, and troubleshooting names the messages the runtimes print.
curl in WebAssembly
curl_multi_performruns the transfers added to a multi handle through fetch, each ascurl_easy_performdoes, and
all of them are done when it returns. In WebAssembly curl has no sockets of its own, so such a transfer could not
connect, and GDAL's/vsicurl/,/vsis3/and WMS tile requests failed with it.
Docs and the site
- The guide, the API reference, the playbooks and the READMEs say the same with less, and their wide tables became
lists. Wrong statements went: crossbind needs Node.js 26, as its engines say, not 24, and the Vite plugin sets
COOP/COEP in dev and preview only. - The tutorial is 23 lessons in five parts, Start, C++, Rust, Libraries and Runtime, each with a runnable sample and a
"Try it", and the playground has 25 samples.
Reference: "Publishing" and "Releasing to everyone" in docs/api/app.md, "Publishers" and "Keys" in
docs/api/extensions.md, docs/api/cpp-binding-rules.md.
Breaking changes
crossbind app publishiscrossbind app upload,crossbind app upload-keyiscrossbind app key uploadand
crossbind app updater-keyiscrossbind app key updater; the old names are gone.- An upload puts nothing out:
crossbind app uploadtakes no--submit,--phased,--draftor--rollout, refuses
--track productionand sends no store page. An upload to the Microsoft Store leaves its submission for the release,
and one to GitHub leaves the release a draft. - A publisher's
guide(api)gives what an upload sends asuploads;sendsis now what--sendsends. - An empty
std::optionalisnullon wasm, where it wasundefined. - A function, method or constructor that takes a
std::unique_ptris no longer bound.
Migration notes
- Upgrade the crossbind packages a project uses to
2.0.0-beta.79together. - In scripts and CI, write
crossbind app uploadforcrossbind app publish,crossbind app key uploadfor
crossbind app upload-keyandcrossbind app key updaterforcrossbind app updater-key. - Where a publish put the app out, upload it and then release it:
--submitand--track productionbecome
crossbind app release app-storeandcrossbind app release google-play, and--phasedand--rolloutbecome the
release's--rollout. Send a store's page withcrossbind app store --send, or with the release. - Code that tells an empty optional by
=== undefinedon wasm tests== null. - A function that took a
std::unique_ptrtakes a reference or astd::shared_ptrto stay bound; returning a
std::unique_ptris fine.
Fixes
crossbind app dev -p ios --deviceloads the page from the phone's ownhttp://localhost, which the app's debug
host relays to the dev server, asadb reversedoes for an Android device. From the Mac's address WebKit ran the page
without its JavaScript compiler and outside a secure context: its JavaScript ran about 34 times slower than in the
built app and its wasm about 26 times, with no OPFS,crypto.subtle, clipboard or WebGPU. iOS asks the phone's user
to allow the app on the local network first.initNative.terminate()rejects each call the worker has not answered with anAbortError, as it does a later call
on the old module and aninitNative()still starting; they never settled. A collected handle of a terminated worker
no longer releases an object of the next worker.paths.wasm,paths.data,paths.jsandpaths.workertake a full address, ablob:or anhttps:one, a Windows
drive or a path from the root, as it is; they were always looked up underpath.- Where Xcode 27's sign-in has lapsed ("Failed to Use Accounts"), an upload to App Store Connect ends on the hint to sign
in again under Xcode › Settings › Accounts, and on a terminal the export runs again once the user has signed in and
pressed Enter.
Known limitations
- No app has been released with
crossbind app release, or had its page sent withcrossbind app store --send, on a
real store yet; tests stand in for the stores' APIs. - The Microsoft Store refuses the Windows setup program, which downloads WebView2 when it is missing (policy 10.2.9).
The MSIX package is the way in, and the Store has not certified a crossbind app's package yet. - The Mac App Store path is verified up to Xcode's signed export; no crossbind app has been uploaded, tested on
TestFlight or through App Review on it yet. A sandboxed app opens only the files its user picks, so a dataset's
companion files, as a Shapefile's, need picking too. - In WebAssembly, curl's multi transfers run one after another, so they do not overlap. In a browser,
/vsis3/needs
the bucket's CORS rules to exposeContent-Range. - A class binds with its first base only, and a template binds nothing but the instances
%templatenames in a
hand-written interface; the build prints no line for either. CROSSBIND_SCCACHEcaches neither a wasm build's compiles, as sccache can cache none of emscripten's, nor Rust's.crossbind-licenses.jsonleaves out a file a stylesheet inlines, under Vite's 4 KBassetsInlineLimit, and worker
bundles; the webpack and Metro plugins do not write it.- Conan packages come from ConanCenter only and have no WASI builds. An option a recipe gives no default and drops
for a target is read as one the recipe does not have. - The Node.js wasm
fsyncworkaround reaches the operating system but does not force data to disk. - The Android app image's Gradle and Android build tools still carry the Guava issue tracked in
docs/known-issues.md, under the existing scan exception until 15 December 2026.
Package: crossbind@2.0.0-beta.79