browser-module-frameworks 0.0.0-stage → 0.0.2

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
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # browser-module-frameworks
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Convenient named imports of the framework adapters for [browser-module-runtime](https://www.npmjs.com/package/browser-module-runtime). No eager framework runtime or compiler loading is introduced.
4
+
5
+ ```js
6
+ import {createRuntime} from 'browser-module-runtime';
7
+ import {solid, svelte, octane, vue} from 'browser-module-frameworks';
8
+
9
+ const runtime=createRuntime({
10
+ plugins:[solid(),svelte({version:'5.39.0'}),octane({version:'0.2.3'}),vue({version:'3.5.18'})]
11
+ });
12
+ ```
13
+
14
+ Each adapter remains available through its own package. The aggregator is simply re-exports, not a new runtime or renderer. You can also import `normalizeInlineSvelte` for editor/source processing.
15
+
16
+ See the generic runtime's `browser-module-runtime/html` and `browser-module-runtime/web-components` exports for HTML and custom element registration.
17
+
18
+ Vue supports `.vue` SFCs (including `<script setup>`, templates, and scoped CSS) with the official lazy `vue/compiler-sfc` browser compiler. See `browser-runtime-vue`.
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export {solid} from 'browser-runtime-solid';
2
+ export {svelte,normalizeInlineSvelte} from 'browser-runtime-svelte';
3
+ export {octane} from 'browser-runtime-octane';
4
+ export {vue,normalizeInlineVue} from 'browser-runtime-vue';
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ /** Convenience imports; framework adapters remain separately installable. */
2
+ export {solid} from 'browser-runtime-solid';
3
+ export {svelte,normalizeInlineSvelte} from 'browser-runtime-svelte';
4
+ export {octane} from 'browser-runtime-octane';
5
+ export {vue,normalizeInlineVue} from 'browser-runtime-vue';
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "browser-module-frameworks",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "description": "Convenience re-exports for Solid, Svelte, Octane and Vue adapters.",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./index.d.ts",
9
+ "import": "./index.js"
10
+ }
11
+ },
12
+ "files": [
13
+ "index.js",
14
+ "index.d.ts",
15
+ "README.md"
16
+ ],
17
+ "dependencies": {
18
+ "browser-runtime-solid": "0.0.3",
19
+ "browser-runtime-svelte": "0.0.3",
20
+ "browser-runtime-octane": "0.0.3",
21
+ "browser-runtime-vue": "0.0.1"
22
+ },
23
+ "peerDependencies": {
24
+ "browser-module-runtime": "0.0.3"
25
+ },
26
+ "engines": {
27
+ "node": ">=20"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "keywords": [
33
+ "browser",
34
+ "runtime",
35
+ "solid",
36
+ "svelte",
37
+ "octane",
38
+ "frameworks",
39
+ "vue"
40
+ ]
41
+ }