@startside/swa 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -90,13 +90,16 @@ Since 1.0.3, for a page that runs SWA widget files the way Startside's dashboard
90
90
  - `swa/1.0/frame.js`: the runtime a host writes into a widget's frame (not `runtime.js`, which runs a file on its own
91
91
  page);
92
92
  - `swa/1.0/frame.css`: its base styles, for the frame's host layer;
93
- - `swa/1.0/host.md`: how: the frame, its document, the config the runtime reads, and the messages a host must answer.
93
+ - `swa/1.0/host.md`: how: the frame, its document, the config the runtime reads, and the messages a host must answer;
94
+ - since 1.0.4, `swa/1.0/host.js`: the host's side as code, from the code Startside runs: a widget file read, its
95
+ settings' values, the frame's document written, a message checked. A plain ES module for the browser.
94
96
 
95
- RWA files need RWA's runtime, which isn't in this package.
97
+ RWA files need RWA's runtime: `@startside/rwa`, whose `host.js` reads SWA and RWA files alike.
96
98
 
97
99
  ## Versions
98
100
 
99
- The package has its own version. A patch is a runtime fix, the texts brought up to date, or the command's changes; a
101
+ The package's version is `@startside/rwa`'s: they are released together, at the same version (since 1.0.4), so a
102
+ host taking both takes one number. A patch is a runtime fix, the texts brought up to date, or the command's changes; a
100
103
  minor release can add a version of the API beside the others (`swa/1.1/` beside `swa/1.0/`); a major release would
101
104
  remove one. The API's version is the one in the path.
102
105