wrec 0.26.0 → 0.27.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
CHANGED
|
@@ -152,8 +152,13 @@ to one of those strings.
|
|
|
152
152
|
## SSR Support
|
|
153
153
|
|
|
154
154
|
Server-side rendering (SSR) is supported.
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
Components can always import from "wrec".
|
|
156
|
+
When that import is resolved in a browser build,
|
|
157
|
+
it gets the normal client bundle.
|
|
158
|
+
When it is resolved in Node for SSR, it gets the SSR-enabled bundle.
|
|
159
|
+
This allows the same component source file to work in both environments.
|
|
160
|
+
|
|
161
|
+
"wrec/ssr" can still be imported explicitly by server code if desired.
|
|
157
162
|
That bundle is much larger because it bundles the node-html-parser package.
|
|
158
163
|
However, the size increase is not likely an issue
|
|
159
164
|
because it is used on the server-side rather than downloaded to web browsers.
|
|
@@ -623,7 +623,7 @@ var U = class e extends p {
|
|
|
623
623
|
!this.#a || !N(t) || (this.#a.set(e, t), this.#s?.setFormValue(this.#a));
|
|
624
624
|
}
|
|
625
625
|
static ssr(e = {}) {
|
|
626
|
-
throw new h("
|
|
626
|
+
throw new h("SSR is not available in the browser build.");
|
|
627
627
|
}
|
|
628
628
|
#j(e, t, n) {
|
|
629
629
|
let r = e instanceof HTMLElement ? e.localName : "CSS rule";
|
package/dist/wrec-ssr.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./wrec-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./wrec-Cc-aiaWO.js";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (e && (t = e(e = 0)), t), u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t) => {
|
|
4
4
|
let n = {};
|
package/dist/wrec.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./wrec-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./wrec-Cc-aiaWO.js";
|
|
2
2
|
export { i as Wrec, e as WrecState, n as createElement, r as css, t as html };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "wrec",
|
|
3
3
|
"description": "a small library that greatly simplifies building web components",
|
|
4
4
|
"author": "R. Mark Volkmann",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.27.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./dist/wrec.d.ts",
|
|
22
|
-
"
|
|
22
|
+
"browser": "./dist/wrec.es.js",
|
|
23
|
+
"node": "./dist/wrec-ssr.es.js",
|
|
24
|
+
"default": "./dist/wrec.es.js"
|
|
23
25
|
},
|
|
24
26
|
"./ssr": {
|
|
25
27
|
"types": "./dist/wrec-ssr.d.ts",
|