From e248e5a6c4ea174a6d4bf30094b0c4a11310a4f2 Mon Sep 17 00:00:00 2001 From: Joachim Viide Date: Tue, 21 Jan 2020 17:42:16 +0200 Subject: [PATCH 1/3] Prepare README.md and package.json files for v3 release --- README.md | 6 +++--- package.json | 2 +- packages/babel-plugin-htm/package.json | 4 ++-- packages/babel-plugin-transform-jsx-to-htm/package.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e89f479..28aeb8f 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ 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`Hello!`, document.body); ``` @@ -83,7 +83,7 @@ render(html`Hello!`, document.body); Similarly, for React: ```js -import ReactDOM from 'react-dom'; +import ReactDOM from 'react-dom'; import { html } from 'htm/react'; ReactDOM.render(html`Hello!`, document.body); ``` @@ -266,7 +266,7 @@ The original goal for `htm` was to create a wrapper around Preact that felt natu 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. -As of 2.1.0, `htm` is stable, well-tested and ready for production use. +As of 3.0.0, `htm` is stable, 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 diff --git a/package.json b/package.json index 3111673..63bd296 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/babel-plugin-htm/package.json b/packages/babel-plugin-htm/package.json index b4bf19e..a405519 100644 --- a/packages/babel-plugin-htm/package.json +++ b/packages/babel-plugin-htm/package.json @@ -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", @@ -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" diff --git a/packages/babel-plugin-transform-jsx-to-htm/package.json b/packages/babel-plugin-transform-jsx-to-htm/package.json index da74966..f3f43ee 100644 --- a/packages/babel-plugin-transform-jsx-to-htm/package.json +++ b/packages/babel-plugin-transform-jsx-to-htm/package.json @@ -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": { @@ -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" From 4b0b58330e57831741ad0d6f4f696da50b734a94 Mon Sep 17 00:00:00 2001 From: Joachim Viide Date: Tue, 21 Jan 2020 18:50:20 +0200 Subject: [PATCH 2/3] Update README.md Co-Authored-By: Jason Miller --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28aeb8f..54f4327 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ The original goal for `htm` was to create a wrapper around Preact that felt natu 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. -As of 3.0.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 From 1aa860b48d5d9985375f196dd11a0804f7649751 Mon Sep 17 00:00:00 2001 From: Joachim Viide Date: Tue, 21 Jan 2020 18:50:37 +0200 Subject: [PATCH 3/3] Update README.md Co-Authored-By: Jason Miller --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54f4327..8ecf860 100644 --- a/README.md +++ b/README.md @@ -264,7 +264,7 @@ 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. `htm` is stable, fast, well-tested and ready for production use.