@ilusiv/fyug-js 2026.11.2 → 2026.11.3

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
@@ -6,8 +6,9 @@ and its audio may drop out, especially when it runs on a page's main thread;
6
6
  for the full app, install Fyug on your desktop:
7
7
  https://github.com/Ilusiv-media/fyug
8
8
 
9
- The browser engine builds the module types listed in each release's
10
- `fyug-player-modules.json`. Check a piece before loading it with
9
+ The browser engine builds the module types listed in each engine release's
10
+ `fyug-player-modules.json` (release `fyug-js-v<version>` of
11
+ [Ilusiv-media/fyug](https://github.com/Ilusiv-media/fyug/releases)). Check a piece before loading it with
11
12
  `unsupportedModuleTypes(invention, list)`, which names every type the list
12
13
  lacks.
13
14
 
@@ -48,7 +49,7 @@ const player = await FuguePlayer.create({
48
49
  });
49
50
  ```
50
51
 
51
- Each release's engine files are also served at stable, exact-version URLs from
52
+ Each version's engine files are also served at stable, exact-version URLs from
52
53
  the npm package, with `Access-Control-Allow-Origin: *`:
53
54
 
54
55
  ```ts
@@ -60,13 +61,13 @@ const player = await FuguePlayer.create({
60
61
  ```
61
62
 
62
63
  The worklet script is standalone (it imports nothing), and its bytes and the
63
- wasm's match `fyug-player-worklet.js` and `fyug-player.wasm` in the release's
64
+ wasm's match `fyug-player-worklet.js` and `fyug-player.wasm` in the engine release's
64
65
  `SHA256SUMS.txt`. npm never changes a published version, so the bytes at a
65
66
  version's URL never change.
66
67
 
67
68
  ## Single-File Player
68
69
 
69
- Each release also carries `fyug-player.html`, one self-contained page for
70
+ Each engine release also carries `fyug-player.html`, one self-contained page for
70
71
  hosts that can show a page but not install anything (such as a chat
71
72
  artifact). Put an invention's JSON as the text of its
72
73
  `<script type="application/json" id="fyug-invention">` element, writing every
@@ -102,17 +103,18 @@ pnpm --filter @ilusiv/fyug-js test
102
103
 
103
104
  ## Publishing
104
105
 
105
- The package is published to npm as part of a product release, never from an
106
- ordinary push:
106
+ The package has its own version, the `version` in this `package.json`
107
+ (`YYYY.M.P`, set on its own rather than following the product's), and is
108
+ published by its own workflow, never from an ordinary push:
107
109
 
108
- 1. `Release` type-checks, tests and builds the package from the pinned core,
109
- then `packaging/scripts/stage-browser-preview.sh` packs it at the product
110
- release's version (the `version` in this `package.json` is not used) and
111
- stages the tarball, its provenance and the preview files in the draft.
112
- 2. `Promote Release` publishes that exact tarball with npm trusted publishing
113
- (OIDC). No npm token exists anywhere.
110
+ 1. Set a version npm does not have yet, and merge it.
111
+ 2. Run **Publish Browser Engine** (`.github/workflows/publish-engine.yml`). It
112
+ refuses a version npm already has, type-checks, tests and builds the
113
+ package from the pinned core, publishes the player and engine files on the
114
+ release `fyug-js-v<version>` of `Ilusiv-media/fyug`, then publishes the
115
+ package with npm trusted publishing (OIDC). No npm token exists anywhere.
114
116
 
115
- So every product release `V` publishes `@ilusiv/fyug-js@V`.
117
+ See "Browser engine" in `docs/releasing.md`.
116
118
 
117
119
  `@ilusiv/fyug-js` replaces `@ilusiv/fugue-js`, which stays on npm at 2026.5.2
118
120
  and is deprecated there. npm offers trusted publishing settings only for a
@@ -123,4 +125,4 @@ hand publish is needed. To make the old name point at the new one, run
123
125
 
124
126
  Trusted publishing is configured on npmjs.com under the package's settings:
125
127
  publisher GitHub Actions, repository `Ilusiv-media/fyug-product`, workflow
126
- `promote.yml`, environment `public-release`.
128
+ `publish-engine.yml`, environment `public-release`.