@lukekaalim/act-web 3.4.0-alpha.1 → 3.4.0-alpha.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lukekaalim/act-web
2
2
 
3
+ ## 3.4.0-alpha.2
4
+
5
+ ### Minor Changes
6
+
7
+ - Add support for data-\* attributes on HTML elements
8
+
3
9
  ## 3.4.0-alpha.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-web",
3
- "version": "3.4.0-alpha.1",
3
+ "version": "3.4.0-alpha.2",
4
4
  "type": "module",
5
5
  "main": "mod.ts",
6
6
  "dependencies": {
package/props.ts CHANGED
@@ -64,6 +64,12 @@ export const setHTMLElementProps = (
64
64
  setEventProp(node as any, eventName, next, prev);
65
65
  return true;
66
66
  }
67
+ if (name.startsWith('data-')) {
68
+ if (next === undefined)
69
+ node.removeAttribute(name);
70
+ else
71
+ node.setAttribute(name, next as string);
72
+ }
67
73
  switch (name) {
68
74
  case 'ref':
69
75
  (next as any).current = node;