wcstack 1.30.0 → 1.32.0
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 +15 -5
- package/dist/auto.min.js +2 -0
- package/dist/auto.min.js.map +1 -0
- package/package.json +41 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# wcstack
|
|
2
2
|
|
|
3
|
-
**wcstack** is a set of
|
|
3
|
+
**wcstack** is a set of 45 zero-dependency Web Components packages: reactive data binding, declarative SPA routing, and 30+ Web APIs exposed as HTML tags. No build step, no bundler, no framework runtime. One CDN `<script>` tag per package — or one `wcstack/auto` tag for the whole SPA core.
|
|
4
4
|
|
|
5
5
|
Project site: **https://wcstack.github.io** · Source: **https://github.com/wcstack/wcstack**
|
|
6
6
|
|
|
@@ -23,9 +23,9 @@ Both are spelled out under [What does not work](#what-does-not-work).
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Loading wcstack — single packages, or this package's SPA-core bundle
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
wcstack is buildless — load what you need from a CDN. The default is one tag per package, paying only for what the page uses:
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
31
|
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
@@ -33,9 +33,19 @@ This package contains documentation only. wcstack is buildless — load what you
|
|
|
33
33
|
<script type="module" src="https://esm.run/@wcstack/fetch/auto"></script>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Each `/auto` script registers its custom elements and does nothing else. No initialization call, no bootstrap. Tags activate when the browser parses them.
|
|
36
|
+
Each `/auto` script registers its custom elements and does nothing else. No initialization call, no bootstrap. Tags activate when the browser parses them. The tags fetch in parallel (every `/auto` is self-contained), so multiple tags cost requests, not a waterfall.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
For an app that uses the SPA core anyway, **this package ships the bundle**: `wcstack/auto` is `@wcstack/state` + `@wcstack/router` + `@wcstack/fetch` + `@wcstack/storage` + `@wcstack/autoloader` pre-linked by Rollup into one self-contained file (219 KB min / 61 KB gzip) — one request, and in production one `integrity` hash covering every line of the core that runs (digests ship with each GitHub Release; see `docs/sri.md`):
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<script type="module"
|
|
42
|
+
src="https://cdn.jsdelivr.net/npm/wcstack@1.32.0/dist/auto.min.js"
|
|
43
|
+
integrity="sha384-…"></script>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Loading the bundle alongside an individual package's `/auto` is safe: whichever copy evaluates first owns the page; the second is inert. Do **not** merge the files yourself through jsDelivr's `/combine/` endpoint — concatenated minified ESM does not even parse (`docs/sri.md` §3.1).
|
|
47
|
+
|
|
48
|
+
If you want npm packages for local development, install the individual ones (`@wcstack/state`, `@wcstack/router`, …); this package publishes only the bundle and this guide.
|
|
39
49
|
|
|
40
50
|
---
|
|
41
51
|
|