Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed May 6, 2019
1 parent 691ba83 commit 8164b3d
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .jsdocrc
Expand Up @@ -52,9 +52,9 @@
"openGraph": {
"title": "pHTML",
"type": "website",
"image": "https://phtmlorg.github.io/phtml/logo.svg",
"image": "https://phtml.io/logo.svg",
"site_name": "Docdash",
"url": "https://phtmlorg.github.io/phtml"
"url": "https://phtml.io/"
}
}
}
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -3,7 +3,7 @@
language: node_js

node_js:
- 10
- 8

install:
- npm install --ignore-scripts
Expand Down
28 changes: 16 additions & 12 deletions CHANGELOG.md
@@ -1,22 +1,26 @@
# Changes to pHTML

### 4.0.0 (May 6, 2019)

- Updated: Node 8+ compatibility

### 3.3.1 (May 3, 2019)

- Fixed: Issue with `Attribute` modification.
- Fixed: Issue with `Attribute` modification

### 3.3.0 (May 3, 2019)

- Fixed: `Attribute` values and `Text` data now preserve raw HTML entities.
- Fixed: `Attribute` values and `Text` data now preserve raw HTML entities
- Fixed: An issue where function plugins now consistently runs _after_ rather
than _before_ the `Root` node is visited.
- Added: Settable `innerHTML` and `outerHTML`.
- Added: Getable and settable `textContent`.
than _before_ the `Root` node is visited
- Added: Settable `innerHTML` and `outerHTML`
- Added: Getable and settable `textContent`
- Added: The `use` method now also accepts multiple arguments for multiple
plugins.
- Added: A string argument passed to `Comment` defines the comment.
- Added: A string argument passed to `Doctype` defines the doctype name.
- Added: A string argument passed to `Element` defines the element tag name.
- Added: A string argument passed to `Text` defines the text data.
plugins
- Added: A string argument passed to `Comment` defines the comment
- Added: A string argument passed to `Doctype` defines the doctype name
- Added: A string argument passed to `Element` defines the element tag name
- Added: A string argument passed to `Text` defines the text data

### 3.2.1 (April 22, 2019)

Expand All @@ -26,8 +30,8 @@
### 3.2.0 (April 22, 2019)

- Added: `AttributeList` supports Regular Expression searching when using
`get`, `contains`, `add`, `remove`, `toggle`, and `indexOf`.
- Fixed: An issue where an `AttributeList` might be missing attributes.
`get`, `contains`, `add`, `remove`, `toggle`, and `indexOf`
- Fixed: An issue where an `AttributeList` might be missing attributes

### 3.1.0 (April 18, 2019)

Expand Down
19 changes: 15 additions & 4 deletions README.md
@@ -1,12 +1,20 @@
# pHTML [<img src="https://phtmlorg.github.io/phtml/logo.svg" alt="pHTML" width="90" height="90" align="right">][pHTML]
# pHTML [<img src="https://phtml.io/logo.svg" alt="pHTML" width="90" height="90" align="right">][pHTML]

[![NPM Version][npm-img]][npm-url]
[![Build Status][cli-img]][cli-url]
[![Support Chat][git-img]][git-url]

[pHTML] is a tool for transforming HTML with JavaScript. Its plugin system
can lint your HTML, support variables and mixins, transpile future HTML syntax,
inline images, and more.
[pHTML] is a tool for transforming HTML with JavaScript.

It fully embraces the HTML language, and aims to help you write and maintain
HTML that you _and_ future you feel good about.

It can help you compose reusable templates and components, or automate image
size attributes and schema.org microdata and heading levels, or transform
modern CSS and JS with Babel and PostCSS.

It works in the command line, Node, [Grunt], [Gulp], [11ty], and even the
browser itself.

## Usage

Expand Down Expand Up @@ -161,4 +169,7 @@ module.exports = new Plugin('phtml-plugin-name', pluginOptions => {
[npm-img]: https://img.shields.io/npm/v/phtml.svg
[npm-url]: https://www.npmjs.com/package/phtml

[11ty]: https://github.com/phtmlorg/phtml-11ty
[Grunt]: https://github.com/phtmlorg/grunt-phtml
[Gulp]: https://github.com/phtmlorg/gulp-phtml
[pHTML]: https://github.com/phtmlorg/phtml
2 changes: 1 addition & 1 deletion babel.config.js
Expand Up @@ -14,7 +14,7 @@ module.exports = {
corejs: 3,
loose: true,
modules: false,
targets: { node: 6 },
targets: { node: 8 },
useBuiltIns: 'entry'
}]
]
Expand Down
8 changes: 4 additions & 4 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "phtml",
"version": "3.3.1",
"version": "4.0.0",
"description": "A tool for transforming HTML with JavaScript",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
Expand Down Expand Up @@ -40,7 +40,7 @@
"test:tape": "node test"
},
"engines": {
"node": ">=6.0.0"
"node": ">=8.0.0"
},
"dependencies": {
"parse5": "^5.1.0"
Expand All @@ -56,9 +56,9 @@
"cross-env": "^5.2.0",
"docdash": "^1.1.0",
"eslint": "^5.16.0",
"jsdoc": "^3.5.5",
"jsdoc": "^3.6.1",
"pre-commit": "^1.2.2",
"rollup": "^1.11.0",
"rollup": "^1.11.3",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.3",
Expand Down

0 comments on commit 8164b3d

Please sign in to comment.