1 | # Changes to pHTML
|
2 |
|
3 | ### 4.1.0 (May 6, 2019)
|
4 |
|
5 | - Added: Read-only access to a NodeList `parent`
|
6 | - Added: Shorthand Element creation where the 1st argument is the element name,
|
7 | the 2nd argument are the attributes, and all arguments after that are
|
8 | children of the element
|
9 |
|
10 | ### 4.0.0 (May 6, 2019)
|
11 |
|
12 | - Updated: Node 8+ compatibility
|
13 |
|
14 | ### 3.3.1 (May 3, 2019)
|
15 |
|
16 | - Fixed: Issue with `Attribute` modification
|
17 |
|
18 | ### 3.3.0 (May 3, 2019)
|
19 |
|
20 | - Fixed: `Attribute` values and `Text` data now preserve raw HTML entities
|
21 | - Fixed: An issue where function plugins now consistently runs _after_ rather
|
22 | than _before_ the `Root` node is visited
|
23 | - Added: Settable `innerHTML` and `outerHTML`
|
24 | - Added: Getable and settable `textContent`
|
25 | - Added: The `use` method now also accepts multiple arguments for multiple
|
26 | plugins
|
27 | - Added: A string argument passed to `Comment` defines the comment
|
28 | - Added: A string argument passed to `Doctype` defines the doctype name
|
29 | - Added: A string argument passed to `Element` defines the element tag name
|
30 | - Added: A string argument passed to `Text` defines the text data
|
31 |
|
32 | ### 3.2.1 (April 22, 2019)
|
33 |
|
34 | - Fixed: An issue where `AttributeList#add` and `AttributeList#remove` might
|
35 | return the wrong value.
|
36 |
|
37 | ### 3.2.0 (April 22, 2019)
|
38 |
|
39 | - Added: `AttributeList` supports Regular Expression searching when using
|
40 | `get`, `contains`, `add`, `remove`, `toggle`, and `indexOf`
|
41 | - Fixed: An issue where an `AttributeList` might be missing attributes
|
42 |
|
43 | ### 3.1.0 (April 18, 2019)
|
44 |
|
45 | - Added: Ability to override visitors on `visit()`
|
46 | - Added: Ability to clone `Comment` and `Doctype` nodes
|
47 |
|
48 | ### 3.0.0 (March 16, 2019)
|
49 |
|
50 | - Changed: `Node.observe()` to `Node.visit()`
|
51 | - Changed: `Node` visitors occur before its children are visited, while `afterNode` visitors occur afterward
|
52 | - Fixed: Issue with walkers walking nodes that had been moved or removed
|
53 | - Fixed: Issue with `NodeList.from` not returning nodes
|
54 |
|
55 | ### 2.0.4 (March 11, 2019)
|
56 |
|
57 | - Fixed: Issue with Node observe for pHTML and Plugin process
|
58 |
|
59 | ### 2.0.3 (March 9, 2019)
|
60 |
|
61 | - Fixed: Issue with NodeList not normalizing Node-like comments and doctypes
|
62 |
|
63 | ### 2.0.2 (February 25, 2019)
|
64 |
|
65 | - Fixed: Issue with NodeList not normalizing Node-like objects
|
66 | - Improved: CLI usage, allowing for shorthand options and hot-installed plugins
|
67 | - Improved: Source documentation and configuration
|
68 |
|
69 | ### 2.0.1 (February 18, 2019)
|
70 |
|
71 | - Fixed: Issue running the CLI
|
72 |
|
73 | ### 2.0.0 (February 18, 2019)
|
74 |
|
75 | - Added: Browser version
|
76 | - Added: CLI version
|
77 | - Added: Plugins now allow observers
|
78 | - Added: `Fragment` can now take nodes
|
79 | - Added: `#Result.messages` to contain warnings and other types of messages
|
80 | - Changed: Parser is now smaller, synchronous, and can be run in the browser
|
81 | - Changed: `Result` returns the `root` fragment syncronously
|
82 | - Changed: Raw HTML spacing is added and used to stringify tags and attributes
|
83 | - Changed: Tag case-sensitivity is preserved
|
84 | - Changed: `source.input` is now an Object containing `html`, `from,` and `to`
|
85 |
|
86 | ### 1.2.0 (February 13, 2019)
|
87 |
|
88 | - Added: `NodeList.from()` creates a NodeList from an array or Nodes and Strings
|
89 | - Added: `Node.prepend()` to prepend items to a Node parent
|
90 | - Fixed: `AttributeList.from()` to correctly parse attribute-like values
|
91 | - Fixed: Issue with `new Element()` not correctly creating or moving nodes
|
92 |
|
93 | ### 1.1.6 (February 12, 2019)
|
94 |
|
95 | - Fixed: Issue walking nodes as they change
|
96 |
|
97 | ### 1.1.5 (February 12, 2019)
|
98 |
|
99 | - Fixed: Issue with null settings and linked attributes during cloning
|
100 |
|
101 | ### 1.1.4 (February 11, 2019)
|
102 |
|
103 | - Fixed: Issue with empty Attributes not returning null
|
104 |
|
105 | ### 1.1.3 (February 10, 2019)
|
106 |
|
107 | - Fixed: Issue with Plugins not being executable
|
108 |
|
109 | ### 1.1.2 (February 10, 2019)
|
110 |
|
111 | - Fixed: Issue with resolving the parser
|
112 | - Fixed: Issue with potentially generated empty text nodes around JSX
|
113 |
|
114 | ### 1.1.1 (February 10, 2019)
|
115 |
|
116 | - Fixed: Issue with closing JSX partials breaking the parser
|
117 |
|
118 | ### 1.1.0 (February 10, 2019)
|
119 |
|
120 | - Added: Nodes return `type` String
|
121 | - Added: Nodes contain `warn` Function
|
122 | - Added: Results contain `currentPlugin` property
|
123 | - Added: Plugins get second `result` argument
|
124 |
|
125 | ### 1.0.0 (February 10, 2019)
|
126 |
|
127 | - Initial version
|