Skip to content

Commit 23dd792

Browse files
authored
Merge branch 'master' into issue-106
2 parents 790771c + f3129a4 commit 23dd792

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ It uses standard JavaScript [Tagged Templates] and works in [all modern browsers
1919

2020
⚛️ **< 500 bytes** when used with Preact _(thanks gzip 🌈)_
2121

22-
🥚 **< 400 byte** `htm/mini` version
22+
🥚 **< 420 byte** `htm/mini` version
2323

2424
🏅 **0 bytes** if compiled using [babel-plugin-htm]
2525

@@ -45,6 +45,7 @@ Here's some ergonomic features you get for free that aren't present in JSX:
4545
- Component end-tags: `<${Footer}>footer content<//>`
4646
- Syntax highlighting and language support via the [lit-html VSCode extension] and [vim-jsx-pretty plugin].
4747
- Multiple root element (fragments): `<div /><div />`
48+
- Support for HTML-style comments: `<div><!-- comment --></div>`
4849

4950
## Installation
5051

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "htm",
3-
"version": "2.1.1",
3+
"version": "2.2.0",
44
"description": "The Tagged Template syntax for Virtual DOM. Only browser-compatible syntax.",
55
"main": "dist/htm.js",
66
"umd:main": "dist/htm.umd.js",

packages/babel-plugin-htm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "babel-plugin-htm",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "Babel plugin to compile htm's Tagged Template syntax to hyperscript or inline VNodes.",
55
"main": "dist/babel-plugin-htm.js",
66
"module": "dist/babel-plugin-htm.mjs",
@@ -33,7 +33,7 @@
3333
"license": "Apache-2.0",
3434
"homepage": "https://github.com/developit/htm/tree/master/packages/babel-plugin-htm",
3535
"dependencies": {
36-
"htm": "^2.0.0"
36+
"htm": "^2.2.0"
3737
},
3838
"devDependencies": {
3939
"microbundle": "^0.10.1"

packages/babel-plugin-transform-jsx-to-htm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "babel-plugin-transform-jsx-to-htm",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Babel plugin to compile JSX to Tagged Templates.",
55
"main": "dist/babel-plugin-transform-jsx-to-htm.js",
66
"scripts": {
@@ -32,7 +32,7 @@
3232
"homepage": "https://github.com/developit/htm/tree/master/packages/babel-plugin-transform-jsx-to-htm",
3333
"dependencies": {
3434
"@babel/plugin-syntax-jsx": "^7.2.0",
35-
"htm": "^2.0.0"
35+
"htm": "^2.2.0"
3636
},
3737
"devDependencies": {
3838
"microbundle": "^0.10.1"

src/integrations/preact/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "htm_preact",
3-
"module": "index.mjs",
3+
"module": "index.module.js",
44
"main": "index.js",
5-
"umd:main": "index.js",
5+
"umd:main": "index.umd.js",
66
"unpkg": "standalone.js",
77
"scripts": {
88
"build": "npm run -s build:main && npm run -s build:standalone && npm run -s build:static",
9-
"build:main": "microbundle index.mjs -o ../../../preact/index.js -f es,umd --external preact,htm --no-sourcemap --target web",
9+
"build:main": "microbundle index.mjs -o ../../../preact/index.js --external preact,htm --no-sourcemap --target web",
1010
"build:static": "cp index.d.ts package.json ../../../preact/",
1111
"build:standalone": "microbundle standalone.mjs -o ../../../preact/standalone.js -f es,umd --no-sourcemap --target web"
1212
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "htm_react",
3-
"module": "index.mjs",
3+
"module": "index.module.js",
44
"main": "index.js",
5-
"umd:main": "index.js",
5+
"umd:main": "index.umd.js",
66
"unpkg": "index.js",
77
"scripts": {
88
"build": "npm run -s build:main && npm run -s build:static",
9-
"build:main": "microbundle index.mjs -o ../../../react/index.js -f es,umd --external react,htm --no-sourcemap --target web",
9+
"build:main": "microbundle index.mjs -o ../../../react/index.js --external react,htm --no-sourcemap --target web",
1010
"build:static": "cp index.d.ts package.json ../../../react/"
1111
}
1212
}

0 commit comments

Comments
 (0)