spark-html-websocket 0.1.2 → 1.0.0-rc.1
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 +6 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Or fully declarative, the way the router declares routes:
|
|
|
33
33
|
## Install
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
|
|
36
|
+
bun add spark-html-websocket
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## The store
|
|
@@ -75,11 +75,13 @@ Declarative attributes: `ws` (url), `store` (name), `raw` (skip JSON),
|
|
|
75
75
|
## The Spark family
|
|
76
76
|
|
|
77
77
|
Small, single-purpose packages that share one philosophy: no compiler, no
|
|
78
|
-
virtual DOM, no build step required
|
|
78
|
+
virtual DOM, no build step required — built for humans who love hand-writing
|
|
79
|
+
their web apps. Add only what you use.
|
|
79
80
|
|
|
80
81
|
| Package | What it does |
|
|
81
82
|
|---|---|
|
|
82
|
-
| [`spark-html`](https://www.npmjs.com/package/spark-html) | The runtime — components, reactivity, stores, forms, scoped styles.
|
|
83
|
+
| [`spark-html`](https://www.npmjs.com/package/spark-html) | The runtime — components, reactivity, stores, forms, scoped styles. ~14.4 kB gzip, 0 deps. |
|
|
84
|
+
| [`spark-html-bun`](https://www.npmjs.com/package/spark-html-bun) | Dev server, bundler & preview on Bun — scoped HMR, no-build dev, post-build pipeline. |
|
|
83
85
|
| [`spark-html-router`](https://www.npmjs.com/package/spark-html-router) | `<template route>` routing — nested routes/layouts, `route.query`, active links. |
|
|
84
86
|
| [`spark-html-theme`](https://www.npmjs.com/package/spark-html-theme) | Dark/light/system theming in one line — persisted, no flash. |
|
|
85
87
|
| [`spark-html-head`](https://www.npmjs.com/package/spark-html-head) | Reactive `<title>`/`<meta>` per route + a `head` store. |
|
|
@@ -89,6 +91,7 @@ virtual DOM, no build step required. Add only what you use.
|
|
|
89
91
|
| [`spark-html-persist`](https://www.npmjs.com/package/spark-html-persist) | Persist stores to localStorage/sessionStorage in one line. |
|
|
90
92
|
| [`spark-html-websocket`](https://www.npmjs.com/package/spark-html-websocket) | A WebSocket as a reactive store — auto-reconnect, JSON, `send()`. |
|
|
91
93
|
| [`spark-prerender`](https://www.npmjs.com/package/spark-prerender) | Build-time SEO prerender + sitemap/robots — no SSR server. |
|
|
94
|
+
| [`spark-ssr`](https://www.npmjs.com/package/spark-ssr) | Full-stack SSR on Bun — the template is the backend: inferred DB, REST CRUD, auth, live updates. Precompiled + response-cached: fast by default. |
|
|
92
95
|
| [`spark-html-image`](https://www.npmjs.com/package/spark-html-image) | Build-time image optimization — webp/avif + responsive `srcset`, zero config. |
|
|
93
96
|
| [`spark-html-font`](https://www.npmjs.com/package/spark-html-font) | Font loading optimizer — preload + size-adjusted fallbacks, no FOUT. |
|
|
94
97
|
| [`spark-html-manifest`](https://www.npmjs.com/package/spark-html-manifest) | PWA manifest + icons + head tags (and optional service worker) from one config. |
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spark-html-websocket",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "Declarative WebSocket for spark-html — a reactive store with auto-reconnect, JSON parsing, status, and send(). Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"types": "./src/index.d.ts",
|
|
8
|
-
"homepage": "https://wilkinnovo.github.io/spark",
|
|
8
|
+
"homepage": "https://wilkinnovo.github.io/spark-html",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./src/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
],
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/wilkinnovo/spark.git",
|
|
23
|
+
"url": "git+https://github.com/wilkinnovo/spark-html.git",
|
|
24
24
|
"directory": "packages/spark-html-websocket"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"spark-html": ">=0.
|
|
27
|
+
"spark-html": ">=1.0.0-rc.1 <2"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"spark-html",
|