@motionscript/browser 0.1.0-alpha.5 → 0.1.0-alpha.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @motionscript/browser
2
2
 
3
+ ## 0.1.0-alpha.6
4
+
5
+ ### Minor Changes
6
+
7
+ - aa75a19: A source-string node default-exports a component, and is written with calls.
8
+
9
+ - `Registry.addNodeFromSource`, `engine.registerNode(source)` and a string in `nodes` (browser and headless) take a script whose default export is a component (`export default component2d({ key: "…", … })`), not a class decorated with `@node(...)`.
10
+ - `DynamicNodeConfig.jsxRuntime` is gone, and browser's default compiler reads TypeScript without JSX or decorators: a script with JSX fails to compile, and one that requires `@motionscript/sdk/jsx-runtime` fails to link. The CDN build no longer imports `@motionscript/core/jsx/jsx-runtime`, so an import map need not name it.
11
+
12
+ ### Patch Changes
13
+
14
+ - @motionscript/skia-render@0.1.0-alpha.6
15
+
3
16
  ## 0.1.0-alpha.5
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -45,10 +45,11 @@ draws with.
45
45
  `setAssetByteSource` lets a host answer for an asset's bytes (a file the user just
46
46
  chose, say) before the adapter goes to the network; it applies to previews,
47
47
  exports and stills alike.
48
- - **Source-string nodes**: `createBrowserEngine({ nodes })` also accepts TS/JSX source
49
- strings (array form only), each declaring its key with `@node(...)`, compiled with
50
- `esbuild-wasm` on first use. `dynamicNodes` overrides the SDK, JSX runtime,
51
- extra importable `modules` or the compiler, each field defaulting on its own.
48
+ - **Source-string nodes**: `createBrowserEngine({ nodes })` also accepts TS source
49
+ strings (array form only), each default-exporting a component (`component2d({ key })`),
50
+ compiled with `esbuild-wasm` on first use. A script is written with calls: JSX
51
+ neither compiles nor links. `dynamicNodes` overrides the SDK, extra importable
52
+ `modules` or the compiler, each field defaulting on its own.
52
53
  - **Clock**: `WebTicker` synchronizes scene playback to `requestAnimationFrame` while calculating dt from audio context to ensure audio and animation line up.
53
54
  - **CanvasKit access**: `getCanvasKit` loads and caches the CanvasKit/Skia
54
55
  WebAssembly module used for rendering.
@@ -86,7 +87,6 @@ once, to one copy:
86
87
  ```
87
88
  @motionscript/core
88
89
  @motionscript/core/sdk
89
- @motionscript/core/jsx/jsx-runtime
90
90
  @motionscript/canvaskit
91
91
  ```
92
92