wrec 0.37.0 → 0.39.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
@@ -173,7 +173,7 @@ To run the examples in the `src/examples` directory:
173
173
  1. cd to the `wrec` project directory.
174
174
  1. Enter `npm install`.
175
175
  1. Enter `npm run dev`.
176
- 1. Browse `localhost:5173/src/examples/{name}.html` where `name`
176
+ 1. Browse `localhost:5173/examples/{name}.html` where `name`
177
177
  is the name of one of the `.html` files in that directory.
178
178
 
179
179
  `hello-world.html` demonstrates a basic Wrec component.
@@ -1,6 +1,6 @@
1
1
  import { a as e, i as t, n, r, t as i } from "./wrec-0J9-ZQRj.js";
2
2
  //#region \0rolldown/runtime.js
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) => {
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), e = null), t.exports), d = (e, t) => {
4
4
  let n = {};
5
5
  for (var r in e) a(n, r, {
6
6
  get: e[r],
@@ -8466,7 +8466,8 @@ var G, K, ve, q, J, ye = l((() => {
8466
8466
  return this.childNodes = this.childNodes.filter((t) => t !== e), this;
8467
8467
  }
8468
8468
  exchangeChild(e, t) {
8469
- return this.childNodes = this.childNodes.map((n) => n === e ? t : n), this;
8469
+ let n = this.childNodes;
8470
+ return this.childNodes = n.map((n) => n === e ? t : n), this;
8470
8471
  }
8471
8472
  get tagName() {
8472
8473
  return this.rawTagName ? this.rawTagName.toUpperCase() : this.rawTagName;
@@ -8493,7 +8494,8 @@ var G, K, ve, q, J, ye = l((() => {
8493
8494
  return d(this.rawText);
8494
8495
  }
8495
8496
  set textContent(e) {
8496
- this.childNodes = [new l.default(e, this)];
8497
+ let t = [new l.default(e, this)];
8498
+ this.childNodes = t;
8497
8499
  }
8498
8500
  get text() {
8499
8501
  return d(this.rawText);
@@ -8578,16 +8580,18 @@ var G, K, ve, q, J, ye = l((() => {
8578
8580
  }
8579
8581
  removeWhitespace() {
8580
8582
  let e = 0;
8581
- return this.childNodes.forEach((t) => {
8583
+ this.childNodes.forEach((t) => {
8582
8584
  if (t.nodeType === u.default.TEXT_NODE) {
8583
8585
  if (t.isWhitespace) return;
8584
8586
  t.rawText = t.trimmedRawText;
8585
8587
  } else t.nodeType === u.default.ELEMENT_NODE && t.removeWhitespace();
8586
8588
  this.childNodes[e++] = t;
8587
- }), this.childNodes.length = e, this.rawAttrs = Object.keys(this.rawAttributes).map((e) => {
8589
+ }), this.childNodes.length = e;
8590
+ let t = Object.keys(this.rawAttributes).map((e) => {
8588
8591
  let t = this.rawAttributes[e];
8589
8592
  return `${e}=${JSON.stringify(t)}`;
8590
- }).join(" "), delete this._rawAttrs, this;
8593
+ }).join(" ");
8594
+ return this.rawAttrs = t, delete this._rawAttrs, this;
8591
8595
  }
8592
8596
  querySelectorAll(e) {
8593
8597
  return (0, n.selectAll)(e, this, {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wrec",
3
3
  "description": "a library that greatly simplifies building web components",
4
4
  "author": "R. Mark Volkmann",
5
- "version": "0.37.0",
5
+ "version": "0.39.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -58,6 +58,7 @@
58
58
  "@playwright/test": "^1.59.1",
59
59
  "@types/node": "^25.5.2",
60
60
  "get-port": "^7.2.0",
61
+ "jsdom": "^29.0.2",
61
62
  "oxlint": "^1.58.0",
62
63
  "vite": "^8.0.3",
63
64
  "vite-plugin-dts": "^4.5.4"