Skip to content

Commit c08b583

Browse files
authored
Merge pull request #141 from jviide/prep-v3
Prepare README.md and package.json files for v3 release
2 parents edab3dc + 1aa860b commit c08b583

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ If you're using Preact or React, we've included off-the-shelf bindings to make y
7575
They also have the added benefit of sharing a template cache across all modules.
7676

7777
```js
78-
import { render } from 'preact';
78+
import { render } from 'preact';
7979
import { html } from 'htm/preact';
8080
render(html`<a href="/">Hello!</a>`, document.body);
8181
```
8282

8383
Similarly, for React:
8484

8585
```js
86-
import ReactDOM from 'react-dom';
86+
import ReactDOM from 'react-dom';
8787
import { html } from 'htm/react';
8888
ReactDOM.render(html`<a href="/">Hello!</a>`, document.body);
8989
```
@@ -264,9 +264,9 @@ console.log(html`
264264

265265
The original goal for `htm` was to create a wrapper around Preact that felt natural for use untranspiled in the browser. I wanted to use Virtual DOM, but I wanted to eschew build tooling and use ES Modules directly.
266266

267-
This meant giving up JSX, and the closest alternative was [Tagged Templates]. So, I wrote this library to patch up the differences between the two as much as possible. As it turns out, the technique is framework-agnostic, so it should work great with most Virtual DOM libraries.
267+
This meant giving up JSX, and the closest alternative was [Tagged Templates]. So, I wrote this library to patch up the differences between the two as much as possible. The technique turns out to be framework-agnostic, so it should work great with any library or renderer that works with JSX.
268268

269-
As of 2.1.0, `htm` is stable, well-tested and ready for production use.
269+
`htm` is stable, fast, well-tested and ready for production use.
270270

271271
[Tagged Templates]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Tagged_templates
272272
[lit-html]: https://github.com/Polymer/lit-html

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.2.1",
3+
"version": "3.0.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.2.0",
3+
"version": "3.0.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.2.0"
36+
"htm": "^3.0.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.1.0",
3+
"version": "2.0.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.2.0"
35+
"htm": "^3.0.0"
3636
},
3737
"devDependencies": {
3838
"microbundle": "^0.10.1"

0 commit comments

Comments
 (0)