Skip to content

Commit

Permalink
Merge pull request #141 from jviide/prep-v3
Browse files Browse the repository at this point in the history
Prepare README.md and package.json files for v3 release
  • Loading branch information
jviide committed Jan 21, 2020
2 parents edab3dc + 1aa860b commit c08b583
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ If you're using Preact or React, we've included off-the-shelf bindings to make y
They also have the added benefit of sharing a template cache across all modules.

```js
import { render } from 'preact';
import { render } from 'preact';
import { html } from 'htm/preact';
render(html`<a href="/">Hello!</a>`, document.body);
```

Similarly, for React:

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

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.

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.
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.

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

[Tagged Templates]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Tagged_templates
[lit-html]: https://github.com/Polymer/lit-html
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htm",
"version": "2.2.1",
"version": "3.0.0",
"description": "The Tagged Template syntax for Virtual DOM. Only browser-compatible syntax.",
"main": "dist/htm.js",
"umd:main": "dist/htm.umd.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-htm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-htm",
"version": "2.2.0",
"version": "3.0.0",
"description": "Babel plugin to compile htm's Tagged Template syntax to hyperscript or inline VNodes.",
"main": "dist/babel-plugin-htm.js",
"module": "dist/babel-plugin-htm.mjs",
Expand Down Expand Up @@ -33,7 +33,7 @@
"license": "Apache-2.0",
"homepage": "https://github.com/developit/htm/tree/master/packages/babel-plugin-htm",
"dependencies": {
"htm": "^2.2.0"
"htm": "^3.0.0"
},
"devDependencies": {
"microbundle": "^0.10.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-transform-jsx-to-htm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-transform-jsx-to-htm",
"version": "1.1.0",
"version": "2.0.0",
"description": "Babel plugin to compile JSX to Tagged Templates.",
"main": "dist/babel-plugin-transform-jsx-to-htm.js",
"scripts": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"homepage": "https://github.com/developit/htm/tree/master/packages/babel-plugin-transform-jsx-to-htm",
"dependencies": {
"@babel/plugin-syntax-jsx": "^7.2.0",
"htm": "^2.2.0"
"htm": "^3.0.0"
},
"devDependencies": {
"microbundle": "^0.10.1"
Expand Down

0 comments on commit c08b583

Please sign in to comment.