Comparing version 6.4.15 to 6.4.16
@@ -1,2 +0,6 @@ | ||
# 6.5.0 | ||
# 6.4.16 | ||
- Fixes #27 | ||
- Makes `props` an optional parameter in `createElement`. | ||
# 6.4.14 | ||
- Update type definitions with React upstream. | ||
@@ -3,0 +7,0 @@ - Introduce `useText`, `useClassList` API. |
@@ -207,2 +207,7 @@ "use strict" | ||
function createElement(tag, attr, ...children) { | ||
if (isString(attr) || Array.isArray(attr)) { | ||
children.unshift(attr) | ||
attr = {} | ||
} | ||
attr = attr || {} | ||
@@ -460,2 +465,4 @@ | ||
exports.isRef = isRef | ||
exports.jsx = createElement | ||
exports.jsxs = createElement | ||
exports.memo = identity | ||
@@ -462,0 +469,0 @@ exports.preventDefault = preventDefault |
@@ -203,2 +203,7 @@ const keys = Object.keys | ||
function createElement(tag, attr, ...children) { | ||
if (isString(attr) || Array.isArray(attr)) { | ||
children.unshift(attr) | ||
attr = {} | ||
} | ||
attr = attr || {} | ||
@@ -457,2 +462,4 @@ | ||
isRef, | ||
createElement as jsx, | ||
createElement as jsxs, | ||
identity as memo, | ||
@@ -459,0 +466,0 @@ preventDefault, |
@@ -93,2 +93,7 @@ "use strict" | ||
function createElement(tag, attr, ...children) { | ||
if (isString(attr) || Array.isArray(attr)) { | ||
children.unshift(attr) | ||
attr = {} | ||
} | ||
attr = attr || {} | ||
@@ -306,2 +311,4 @@ | ||
exports.isRef = isRef | ||
exports.jsx = createElement | ||
exports.jsxs = createElement | ||
exports.memo = identity | ||
@@ -308,0 +315,0 @@ exports.preventDefault = preventDefault |
@@ -89,2 +89,7 @@ const keys = Object.keys | ||
function createElement(tag, attr, ...children) { | ||
if (isString(attr) || Array.isArray(attr)) { | ||
children.unshift(attr) | ||
attr = {} | ||
} | ||
attr = attr || {} | ||
@@ -303,2 +308,4 @@ | ||
isRef, | ||
createElement as jsx, | ||
createElement as jsxs, | ||
identity as memo, | ||
@@ -305,0 +312,0 @@ preventDefault, |
{ | ||
"name": "jsx-dom", | ||
"version": "6.4.15", | ||
"version": "6.4.16", | ||
"description": "JSX to document.createElement.", | ||
@@ -22,4 +22,3 @@ "main": "lib/index.cjs.js", | ||
"dependencies": { | ||
"csstype": "^2.6.10", | ||
"tslib": "^1.11.1" | ||
"csstype": "^2.6.10" | ||
}, | ||
@@ -50,2 +49,3 @@ "devDependencies": { | ||
"ts-node": "^8.9.0", | ||
"tslib": "^1.11.1", | ||
"typescript": "^3.9.0-beta" | ||
@@ -63,3 +63,3 @@ }, | ||
"tabWidth": 2, | ||
"printWidth": 95, | ||
"printWidth": 97, | ||
"semi": false, | ||
@@ -66,0 +66,0 @@ "singleQuote": false, |
@@ -20,6 +20,6 @@ # jsx-dom | ||
**Note:** Using HyperScript? `h` pragma is also supported. | ||
**Note:** Using HyperScript? `h` pragma is also supported. **Experimental:** If you are using [React Automatic Runtime](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx), simply set `jsxImportSource` to `jsx-dom`. | ||
```jsx | ||
import * as React from "jsx-dom" | ||
import React from "jsx-dom" | ||
@@ -26,0 +26,0 @@ // DOM Elements. |
Sorry, the diff of this file is too big to display
111292
1
3243
25
9
- Removedtslib@^1.11.1
- Removedtslib@1.14.1(transitive)