Repository navigation
The store commands built into xs (.append, .cat, .last, .get, .remove, .cas and .cas-post) can now be used with another store by setting XS_ADDR (#188).
Until now they ignored XS_ADDR, so Nushell code running in xs (an actor, a service, an action, or xs eval) could only reach the store it runs in. xs.nu in your own shell already took XS_ADDR; the builtins now do too:
with-env {XS_ADDR: /home/app/logs} {
"hi" | .append site.www
.cat --follow --topic site.www
}XS_ADDR=/home/app/logs # a store's folder
XS_ADDR=:3021 # a port on this machine
XS_ADDR=https://example.com # a URL
XS_ADDR=iroh://<ticket> # an iroh ticket
In an actor, an .append to the other store is written straight away and returns the frame. An .append to the actor's own store still lands when the closure returns, and returns nothing. xs serve ignores an XS_ADDR set in the shell that started it, since that one was meant for the xs command. Without XS_ADDR, nothing changes.
Code that embeds xs gets the same through xs::client::frames, which reads another store as a stream of Frames.
The docs moved to www.cross.stream/docs (#193)
They are plain Markdown now, served by http-nu from www/ in this repo, with no npm dependencies and no build step. CI runs each page's Nushell examples against a fresh store and compares the output with what the page shows, which caught some that were out of date with 0.16.
Fixes
.cat --followon another store closes its connection as soon as it's stopped (#188)- builds and passes its tests on Rust 1.100 (#186)
- clipboard-win 5.4.3, off a yanked version
Changelog
- docs: replace the Astro docs with http-nu (#193)
- ci: fail the docs check on a CSS value nothing uses (#194)
- ci: build the releases on the Dagger 1.0 beta (#191)
- fix: clear the remaining security alerts (#190)
- fix: update dependencies with open security alerts (#189)
- feat: XS_ADDR lets store commands use another store (#188)
- ci: run the docs deploy on ubuntu-24.04 (#187)
- fix: CI on Rust 1.100: find the plugin fixture, and iterate optional params directly (#186)
- chore: update clipboard-win to 5.4.3, off a yanked version