1 | ## [3.3.1](https://github.com/snabbdom/snabbdom/compare/v3.3.0...v3.3.1) (2022-01-18)
|
2 |
|
3 |
|
4 | ### Bug Fixes
|
5 |
|
6 | * ensure SVG namespaces are added to nodes ([#996](https://github.com/snabbdom/snabbdom/issues/996)) ([f89f085](https://github.com/snabbdom/snabbdom/commit/f89f085f558baf6a41b43ffa50c9b5b1b1c6b034)), closes [#388](https://github.com/snabbdom/snabbdom/issues/388) [#867](https://github.com/snabbdom/snabbdom/issues/867)
|
7 |
|
8 | # [3.3.0](https://github.com/snabbdom/snabbdom/compare/v3.2.0...v3.3.0) (2022-01-17)
|
9 |
|
10 | ### Features
|
11 |
|
12 | - support JSX fragments ([#974](https://github.com/snabbdom/snabbdom/issues/974)) ([50ff2db](https://github.com/snabbdom/snabbdom/commit/50ff2db40701380cd49b854ab27e475783b543a9)), closes [#560](https://github.com/snabbdom/snabbdom/issues/560)
|
13 |
|
14 | # [3.2.0](https://github.com/snabbdom/snabbdom/compare/v3.1.0...v3.2.0) (2021-12-13)
|
15 |
|
16 | ### Bug Fixes
|
17 |
|
18 | - assert that fragment functions are implemented ([df0f031](https://github.com/snabbdom/snabbdom/commit/df0f031255f3dafa6b30522fc5c2f3d8234ca5d6))
|
19 |
|
20 | ### Features
|
21 |
|
22 | - allow DocumentFragment as a container ([3505879](https://github.com/snabbdom/snabbdom/commit/35058798ae0aac46c0f4252a9c54497c44eff243))
|
23 | - support DocumentFragment ([7e86386](https://github.com/snabbdom/snabbdom/commit/7e863862929bd2ed0b01a778a90e5458180ac925)), closes [#560](https://github.com/snabbdom/snabbdom/issues/560)
|
24 |
|
25 | # [3.1.0](https://github.com/snabbdom/snabbdom/compare/v3.0.3...v3.1.0) (2021-09-03)
|
26 |
|
27 | ### Features
|
28 |
|
29 | - allow String and Number objects to be used as children ([#979](https://github.com/snabbdom/snabbdom/issues/979)) ([19d1d29](https://github.com/snabbdom/snabbdom/commit/19d1d29260e63e49b619e7a2abe2e1def08dda57)), closes [#977](https://github.com/snabbdom/snabbdom/issues/977)
|
30 |
|
31 | ## [3.0.3](https://github.com/snabbdom/snabbdom/compare/v3.0.2...v3.0.3) (2021-06-04)
|
32 |
|
33 | ### Bug Fixes
|
34 |
|
35 | - build and test code before release ([b8707ad](https://github.com/snabbdom/snabbdom/commit/b8707ad68e2cb7257528f22157a18ded53379d0a))
|
36 |
|
37 | ## [3.0.2](https://github.com/snabbdom/snabbdom/compare/v3.0.1...v3.0.2) (2021-06-01)
|
38 |
|
39 | ### Bug Fixes
|
40 |
|
41 | - avoid className check to handle SVG elements within shadow DOM ([#966](https://github.com/snabbdom/snabbdom/issues/966)) ([95fa8ad](https://github.com/snabbdom/snabbdom/commit/95fa8ad6b6957adfbbd6d080ffc82a9381ae19fc)), closes [#965](https://github.com/snabbdom/snabbdom/issues/965)
|
42 |
|
43 | ## [3.0.1](https://github.com/snabbdom/snabbdom/compare/v3.0.0...v3.0.1) (2021-03-28)
|
44 |
|
45 | ### Bug Fixes
|
46 |
|
47 | - reference type declarations in package.json ([995b983](https://github.com/snabbdom/snabbdom/commit/995b983f04f3f2a888c290ac485aa5b49478a1b9))
|
48 |
|
49 | # [3.0.0](https://github.com/snabbdom/snabbdom/compare/v2.1.0...v3.0.0) (2021-03-28)
|
50 |
|
51 | ### Bug Fixes
|
52 |
|
53 | - node similarity checking ([#949](https://github.com/snabbdom/snabbdom/issues/949)) ([d669054](https://github.com/snabbdom/snabbdom/commit/d66905438dc6866b2a7ab21d719c45a156d1252e))
|
54 | - remove the hero module ([#953](https://github.com/snabbdom/snabbdom/issues/953)) ([30b7df6](https://github.com/snabbdom/snabbdom/commit/30b7df61ab45c2c4b1c52e36b07274011eb1d9af)), closes [#517](https://github.com/snabbdom/snabbdom/issues/517)
|
55 | - **package:** rm script mark-pr-head-as-trusted ([d74b847](https://github.com/snabbdom/snabbdom/commit/d74b8478cd4fb7cd59305beb92b4ee4d4186906f))
|
56 |
|
57 | ### Features
|
58 |
|
59 | - add JSX namespace to jsx factory ([5d5fc5a](https://github.com/snabbdom/snabbdom/commit/5d5fc5a362384b3d6377b2671a20f16d89e1006b))
|
60 | - allow symbols as keys ([#954](https://github.com/snabbdom/snabbdom/issues/954)) ([ad80c6e](https://github.com/snabbdom/snabbdom/commit/ad80c6ea530a058501465cfcb45698e380ceb96a)), closes [#124](https://github.com/snabbdom/snabbdom/issues/124)
|
61 | - export everything from 'snabbdom' ([7af7e3f](https://github.com/snabbdom/snabbdom/commit/7af7e3f684f0854a3466a94ac4d1bb7737993875)), closes [#913](https://github.com/snabbdom/snabbdom/issues/913) [#748](https://github.com/snabbdom/snabbdom/issues/748)
|
62 | - mark the snabbdom package as side effect free ([8524013](https://github.com/snabbdom/snabbdom/commit/852401345e9b0e66ae5b450915067488ceb0aae1))
|
63 | - offer esm and commonjs bundles ([ebf6915](https://github.com/snabbdom/snabbdom/commit/ebf6915794fc4b13a149f8d762372d7b412ab469))
|
64 |
|
65 | ### BREAKING CHANGES
|
66 |
|
67 | - Snabbdom does not export the hero module any more. If you require this
|
68 | module, copy the code from examples/hero/hero.js and add it to your
|
69 | project
|
70 | - The imports of snabbdom functions have changed. Every file in the
|
71 | project had to be imported on its own, e.g.
|
72 |
|
73 | ```
|
74 | import { h } from 'snabbdom/h'
|
75 | import { VNode } from 'snabbdom/vnode'
|
76 | ```
|
77 |
|
78 | Now, the main snabbdom package exports all of the public API like
|
79 |
|
80 | ```
|
81 | import { h, VNode } from 'snabbdom'
|
82 | ```
|
83 |
|
84 | This means consumers of the snabbdom package need to update their
|
85 | imports. The change makes the use of the `exports` field in
|
86 | `package.json` unnecessary, which caused issues for TypeScript users
|
87 |
|
88 | # Changelog
|
89 |
|
90 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
91 |
|
92 | ## [2.1.0](https://github.com/snabbdom/snabbdom/compare/v2.0.0...v2.1.0) (2020-09-14)
|
93 |
|
94 | ### Features
|
95 |
|
96 | - **eventlisteners:** add types for VNode in listener ([63b1b6c](https://github.com/snabbdom/snabbdom/commit/63b1b6c22e49d06b1fb509a14d321ec19f324bb5)), closes [#796](https://github.com/snabbdom/snabbdom/issues/796)
|
97 | - **eventlisteners:** relax custom event listener type ([15ce059](https://github.com/snabbdom/snabbdom/commit/15ce059e2b5e80d1975168fff2d2a44f71bd5cbb)), closes [#850](https://github.com/snabbdom/snabbdom/issues/850)
|
98 |
|
99 | ## [2.0.0](https://github.com/snabbdom/snabbdom/compare/v1.0.1...v2.0.0) (2020-09-10)
|
100 |
|
101 | ### ⚠ BREAKING CHANGES
|
102 |
|
103 | - **eventlisteners:** loaded/carrying event listeners are no longer supported.
|
104 |
|
105 | ### Features
|
106 |
|
107 | - **eventlisteners:** add missing mult. listeners type ([5a89efe](https://github.com/snabbdom/snabbdom/commit/5a89efe01580d50f15649c19a444745867c5c0d4)), closes [#794](https://github.com/snabbdom/snabbdom/issues/794)
|
108 | - **eventlisteners:** remove loaded listeners feature ([6e0ff8e](https://github.com/snabbdom/snabbdom/commit/6e0ff8e8141c70891e55e41a3107d6d4de0bc754)), closes [#802](https://github.com/snabbdom/snabbdom/issues/802) [#802](https://github.com/snabbdom/snabbdom/issues/802)
|
109 |
|
110 | ### Bug Fixes
|
111 |
|
112 | - **deps:** add regenertor-runtime to devDeps ([2a2964c](https://github.com/snabbdom/snabbdom/commit/2a2964c3eb47cd2f5a7ae88f49b2afe9ea299d7e)), closes [#813](https://github.com/snabbdom/snabbdom/issues/813)
|
113 | - **docs:** gitter badge url ([7e19849](https://github.com/snabbdom/snabbdom/commit/7e198493c11f6d4afa8b03d727083d661e85ec0e))
|
114 | - **examples:** example import paths ([8111f62](https://github.com/snabbdom/snabbdom/commit/8111f6234a70840673412da6cd37a726a7c839f8)), closes [#761](https://github.com/snabbdom/snabbdom/issues/761)
|
115 | - **examples:** totalHeight 0 on remove last element reorder animation ([afa77c0](https://github.com/snabbdom/snabbdom/commit/afa77c04d4ab959a5f2bb5853e5dd821c744843f))
|
116 | - **package:** remove directories field ([c7a2a93](https://github.com/snabbdom/snabbdom/commit/c7a2a93f5a2ed63bd76130e5e3d3769a9f1c1c58))
|
117 | - **package:** update urls paldepind -> snabbdom ([f94185a](https://github.com/snabbdom/snabbdom/commit/f94185a5bbb31018af48b77449e74f58339fe404)), closes [#775](https://github.com/snabbdom/snabbdom/issues/775)
|
118 |
|
119 | ### [1.0.1](https://github.com/paldepind/snabbdom/compare/v1.0.0...v1.0.1) (2020-06-18)
|
120 |
|
121 | ### User facing changes
|
122 |
|
123 | - **package:** fix ./snabbdom related files and exports fields errors ([89b917b](https://github.com/paldepind/snabbdom/commit/89b917bb3f3f8986390e3e400327a9087533d928))
|
124 |
|
125 | ## [1.0.0](https://github.com/paldepind/snabbdom/compare/v0.7.4...v1.0.0) (2020-06-18)
|
126 |
|
127 | ### ⚠ BREAKING CHANGES
|
128 |
|
129 | - **exports:** The main export path, 'snabbdom' was replaced with
|
130 | the export path 'snabbdom/init'. This new export path includes only
|
131 | the named export `init`.
|
132 | - **exports:** No default exports exist. All exports are named.
|
133 | - **exports:** the import path `snabbdom/snabbdom.bundle` is removed.
|
134 | - **typescript:** Types exported by this package have re-declared
|
135 | the global `Element.setAttribute` and `Element.setAttributeNS` to
|
136 | accept `number` and `boolean` for the `value` parameter. This
|
137 | change removes that re-declaration and thus the only valid value is
|
138 | `string`. If your code provides `number` and/or `boolean`, then it
|
139 | may now fail to compile.
|
140 | - **props:** props module does not attempt to delete node
|
141 | properties. This may affect you if you are using the props module
|
142 | to add non-native (custom) properties to DOM nodes. Instead, it is
|
143 | recommended to use _data-\* attributes_.
|
144 | https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
|
145 | - CommonJS modules are no longer provided.
|
146 | - import paths in ES modules include file name
|
147 | extensions.
|
148 | - Compiled to ES2015 (was ES5).
|
149 | - UMD bundles are no longer provided.
|
150 |
|
151 | ### Internal changes
|
152 |
|
153 | - **commitlint:** add type auto and scope deps for renovate ([b56a0ac](https://github.com/paldepind/snabbdom/commit/b56a0ac796a3c27644f8332278a7cbb9d24a95c6))
|
154 | - **commitlint:** fix and enable in CI ([f8cf5cc](https://github.com/paldepind/snabbdom/commit/f8cf5ccba402cbbf6982da681db8707fd12fc8d4)), closes [#662](https://github.com/paldepind/snabbdom/issues/662)
|
155 | - **deps:** update dependency @typescript-eslint/eslint-plugin to v3.3.0 ([9448e42](https://github.com/paldepind/snabbdom/commit/9448e4267cf077890deb0deb32c3200e4d19a213))
|
156 | - **deps:** update dependency tsconfigs to v5 ([eb1ec8c](https://github.com/paldepind/snabbdom/commit/eb1ec8c280544a322fc9844c255b8ec5c8e004c6))
|
157 | - **deps:** update dependency typescript to v3.9.5 ([5e24b20](https://github.com/paldepind/snabbdom/commit/5e24b20a52a8c20ed82e3fc7d20977262016731a))
|
158 | - **docs:** lint code examples ([41cb359](https://github.com/paldepind/snabbdom/commit/41cb3596e8898399545f02ff8205a1d45f62f391))
|
159 | - **eslint:** lint cjs files ([d581217](https://github.com/paldepind/snabbdom/commit/d58121755f4e2da50ad82e52818b66333ae10a37))
|
160 | - **format:** sort file lists ([e77615b](https://github.com/paldepind/snabbdom/commit/e77615b16bd60fbd1963528a2c46e7dfbbb77e0e)), closes [#673](https://github.com/paldepind/snabbdom/issues/673)
|
161 | - **git:** ignore each test artifact specifically ([b34e9a9](https://github.com/paldepind/snabbdom/commit/b34e9a9d3a8096c2c5cd7eebeafba0e52ed08a75))
|
162 | - **package:** consistent values in files field ([6fe56f8](https://github.com/paldepind/snabbdom/commit/6fe56f8538f6e0073d458d7a8e21c8d469c0a9df)), closes [#672](https://github.com/paldepind/snabbdom/issues/672)
|
163 | - **relic:** remove @types/assert ([2846189](https://github.com/paldepind/snabbdom/commit/28461899bdce0c2134dca92298e40c1ecf7be363))
|
164 | - **typescript:** package and tests are two projects ([8a71211](https://github.com/paldepind/snabbdom/commit/8a71211b4a38616c9d90bc9214e116d1b3e869b5))
|
165 | - **vscode:** eslint.validate short forms ([ba3e85b](https://github.com/paldepind/snabbdom/commit/ba3e85bf90f77254fad08435d484e19f836c6783))
|
166 | - **vscode:** use workspace typescript ([eabbd2f](https://github.com/paldepind/snabbdom/commit/eabbd2f056b40e5e9376ccf94c9a6f9177bd020a))
|
167 |
|
168 | ### User facing changes
|
169 |
|
170 | - **docs:** enable eslint rule array-bracket-spacing ([77e54e9](https://github.com/paldepind/snabbdom/commit/77e54e9105394d4e6d21647a38adfb80ea567ee2))
|
171 | - **docs:** enable eslint rule import/first ([17cf7ae](https://github.com/paldepind/snabbdom/commit/17cf7ae931185d8ab1ac1e4f8b7042677e03db8d))
|
172 | - **docs:** enable eslint rule import/newline-after-import ([cd3a5cf](https://github.com/paldepind/snabbdom/commit/cd3a5cf17ee33c738d17adcb78a8c254e96653b9))
|
173 | - **docs:** enable eslint rule indent ([e2861bb](https://github.com/paldepind/snabbdom/commit/e2861bb1bd68c63c99c30907bb331c21f27cb248))
|
174 | - **docs:** enable eslint rule key-spacing ([349b686](https://github.com/paldepind/snabbdom/commit/349b686bd8cfc24a2845fbab62081a15e5b42d0f))
|
175 | - **docs:** enable eslint rule max-statements-per-line ([a128a23](https://github.com/paldepind/snabbdom/commit/a128a23ac3182677d10d1979213c92dcf04294ea))
|
176 | - **docs:** enable eslint rule no-multi-spaces ([8179381](https://github.com/paldepind/snabbdom/commit/8179381a775acea73d0064c77d643944cf684947)), closes [#692](https://github.com/paldepind/snabbdom/issues/692)
|
177 | - **docs:** enable eslint rule object-curly-spacing ([8b8fbd5](https://github.com/paldepind/snabbdom/commit/8b8fbd5e34fdc3a99ce67635cc44f5ef9e3cf30c))
|
178 | - **docs:** enable eslint rule quote-props ([37512fe](https://github.com/paldepind/snabbdom/commit/37512fe8ee02cf374cf3d9a62c0f6e3203be2f28))
|
179 | - **docs:** enable eslint rule quotes ([2d455b5](https://github.com/paldepind/snabbdom/commit/2d455b52dcabc2f8e52082536e635a66e98eb650))
|
180 | - **docs:** enable eslint rule semi ([f4e7885](https://github.com/paldepind/snabbdom/commit/f4e7885663e645aeb728470d5e1f159365f94f1b))
|
181 | - **docs:** enable eslint rule space-before-blocks ([9f2d2d7](https://github.com/paldepind/snabbdom/commit/9f2d2d7a1687c7169dff775724a811e1dd7ccd8b))
|
182 | - **docs:** enable eslint rule space-before-function-paren ([23e7b87](https://github.com/paldepind/snabbdom/commit/23e7b87c64b5d587acae5ce7bd899ec0d071958e))
|
183 | - **docs:** enable eslint rules object-\*-newline ([9a45b5b](https://github.com/paldepind/snabbdom/commit/9a45b5b22aba0fbed97431e99268a173995de4a1))
|
184 | - **docs:** fix wrong module import paths ([3b6baee](https://github.com/paldepind/snabbdom/commit/3b6baee049f44cbc55cc2b0131c2c551e9c1b452)), closes [#691](https://github.com/paldepind/snabbdom/issues/691)
|
185 | - **docs:** provide a release changelog ([616df35](https://github.com/paldepind/snabbdom/commit/616df35909f1d639d562418ea32122625104b00c)), closes [#670](https://github.com/paldepind/snabbdom/issues/670)
|
186 | - **exports:** main export provided ([3becd84](https://github.com/paldepind/snabbdom/commit/3becd84cc1dcfb84e2ee292eab18aae36e415040)), closes [#682](https://github.com/paldepind/snabbdom/issues/682)
|
187 | - **exports:** only named exports ([fefd141](https://github.com/paldepind/snabbdom/commit/fefd141f5f3567bb6dccbd6c43ce81f285f985bd)), closes [#522](https://github.com/paldepind/snabbdom/issues/522) [#523](https://github.com/paldepind/snabbdom/issues/523)
|
188 | - **exports:** relative values in exports field ([187088e](https://github.com/paldepind/snabbdom/commit/187088ee0ebfaed2e84a992bdde50d207131ec29)), closes [#674](https://github.com/paldepind/snabbdom/issues/674)
|
189 | - **exports:** remove package.json main field ([3122eec](https://github.com/paldepind/snabbdom/commit/3122eec9b98ffdf52fd31ceb2ced17c219e25042)), closes [#680](https://github.com/paldepind/snabbdom/issues/680)
|
190 | - **exports:** remove the /snabbdom.bundle path ([c862993](https://github.com/paldepind/snabbdom/commit/c8629933599b3fdf3ea774f3ce67517908b79d8d))
|
191 | - **exports:** replaced main export path with init ([09f2d1c](https://github.com/paldepind/snabbdom/commit/09f2d1ca5a16fd0b402209d90e58b97998efacef)), closes [#522](https://github.com/paldepind/snabbdom/issues/522)
|
192 | - **package:** no module field ([2b30e25](https://github.com/paldepind/snabbdom/commit/2b30e25f0d261d2d7f37127bda0c235b0a5acf57)), closes [#681](https://github.com/paldepind/snabbdom/issues/681)
|
193 | - **props:** do not attempt to delete node properties ([6f316c1](https://github.com/paldepind/snabbdom/commit/6f316c141b43ccb1c2c355ab8d0c499984154ef1)), closes [#623](https://github.com/paldepind/snabbdom/issues/623) [#283](https://github.com/paldepind/snabbdom/issues/283) [#415](https://github.com/paldepind/snabbdom/issues/415) [#307](https://github.com/paldepind/snabbdom/issues/307) [#151](https://github.com/paldepind/snabbdom/issues/151) [#416](https://github.com/paldepind/snabbdom/issues/416)
|
194 | - **typescript:** do not redeclare Element.setAttribute(NS) ([0620b5e](https://github.com/paldepind/snabbdom/commit/0620b5eda03cd124d4bd743660cb376b0d75a0a3)), closes [#615](https://github.com/paldepind/snabbdom/issues/615)
|
195 | - do not provide UMD bundles ([8e24bbf](https://github.com/paldepind/snabbdom/commit/8e24bbf016ff5cc0afb2759ec2e4b745921ee453)), closes [#498](https://github.com/paldepind/snabbdom/issues/498) [#514](https://github.com/paldepind/snabbdom/issues/514) [#481](https://github.com/paldepind/snabbdom/issues/481)
|
196 | - only esm and correct import paths ([dad44f0](https://github.com/paldepind/snabbdom/commit/dad44f0d632d344ca13ee8430d941c26a53d5c2a)), closes [#516](https://github.com/paldepind/snabbdom/issues/516) [#437](https://github.com/paldepind/snabbdom/issues/437) [#263](https://github.com/paldepind/snabbdom/issues/263)
|
197 |
|
198 | ## [v0.7.2] - 2018-09-02
|
199 |
|
200 | ## Bugfixes
|
201 |
|
202 | - Improvements to TypeScript types #364. Thanks to @gfmio.
|
203 | - In some cases and browsers the style module would cause elements to not be removed correctly #367. Thanks to @jvanbruegge for fixing this tricky bug.
|
204 |
|
205 | ## [v0.7.0] - 2017-07-27
|
206 |
|
207 | ## Breaking change
|
208 |
|
209 | The way Snabbdom handles boolean attributes in the attributes module has been changed. Snabbdom no longer maintains a list of known boolean attributes. Not relying on such a list means that custom boolean attributes are supported, that performance is slightly better, and that the list doesn't have to be kept up to date.
|
210 |
|
211 | Whether or not to set a boolean attribute is now determined by looking at the value specified for the attribute. If the value is a boolean (i.e. strictly equal to `true` or `false`) it will be handled as a boolean attribute. If you're currently setting boolean attributes with booleans then this change does not affect you.
|
212 |
|
213 | ```js
|
214 | h("div", {
|
215 | attrs: {
|
216 | foo: true // will be set a boolean attribute since `true` is a boolean
|
217 | bar: "baz" // will set a normal attribute
|
218 | }
|
219 | });
|
220 | ```
|
221 |
|
222 | The example above will result in the HTML: `<div foo bar="baz" />`. Even if `bar` is actually a boolean attribute. So for instance `h("input", { attrs: { required: 12 } })` will no longer set a boolean attribute correctly.
|
223 |
|
224 | Previously `h("input", { attrs: { required: 0 } })` would result in the HTML `<input>` since `required` was a know boolean attribute and `0` is falsey. Per the new behavior the HTML will be `<input required="0">`. To accomidate for the change always give boolean values for boolean attributes.
|
225 |
|
226 | ## Bugfixes
|
227 |
|
228 | - `toVNode` now handles `DocumentFragment` which makes it possible to patch into a fragment. #320. Thanks to @staltz.
|
229 | - Custom boolean attributes are handled correctly. #314. Thanks to @caridy.
|
230 | - Type improvement. `VNode` key property can be `undefined` #290. Thanks to @yarom82.
|
231 | - Data attributes are checked for existence before deleting. Old behavior caused error in Safari. #313. Thanks to @FeliciousX.
|
232 |
|
233 | ## Performance improvements
|
234 |
|
235 | - New handling of boolean attributes. #314. Thanks to @caridy.
|
236 |
|
237 | ## [v0.6.9] - 2017-05-19
|
238 |
|
239 | ## Bug fixes
|
240 |
|
241 | - Fix style delayed and remove to be optional in TypeScript, https://github.com/snabbdom/snabbdom/issues/295
|
242 |
|
243 | ## [v0.6.8] - 2017-05-16
|
244 |
|
245 | ## Bug fixes
|
246 |
|
247 | - Fix error when class is set by vdom selector in SVG, https://github.com/snabbdom/snabbdom/issues/217. Thanks to @caesarsol
|
248 | - Fix hyperscript to support undefined or null children in TypeScript, https://github.com/snabbdom/snabbdom/issues/226. Thanks to @ornicar
|
249 | - Fix thunk function so it is not called redundantly, https://github.com/snabbdom/snabbdom/pull/273. Thanks to @caesarsol
|
250 | - Improve TypeScript types of VNode props, https://github.com/snabbdom/snabbdom/issues/264 and https://github.com/snabbdom/snabbdom/issues/264. Thanks to @mightyiam
|
251 | - Fix toVNode() for comment nodes, lacking some fields, https://github.com/snabbdom/snabbdom/pull/266. Thanks to @staltz
|
252 |
|
253 | ## Performance improvements
|
254 |
|
255 | - Improvement for attribute patching, https://github.com/snabbdom/snabbdom/issues/257. Thanks to @diervo
|
256 |
|
257 | ## [v0.6.6] - 2017-03-07
|
258 |
|
259 | ## Bug fixes
|
260 |
|
261 | - The attributes module sets boolean attributes correctly according to the specificaiton. https://github.com/snabbdom/snabbdom/issues/254. Thanks to @PerWiklander for reporting the bug.
|
262 |
|
263 | ## [v0.6.5] - 2017-02-25
|
264 |
|
265 | This is a patch version with a few bug fixes.
|
266 |
|
267 | ## Bug fixes
|
268 |
|
269 | - Fix `toVNode()` to handle text nodes correctly, https://github.com/snabbdom/snabbdom/issues/252. Thanks to @Steelfish
|
270 | - Fix dataset module to support old browsers, such as IE10. Thanks @staltz
|
271 | - Fix "create element" workflow to align with "update element" workflow, https://github.com/snabbdom/snabbdom/pull/234. Thanks @caridy
|
272 |
|
273 | ## [v0.6.4] - 2017-02-09
|
274 |
|
275 | This version adds some features such as support for comment nodes and better server-side/client-side rendering collaboration, besides some bug fixes.
|
276 |
|
277 | ## New features
|
278 |
|
279 | ### Add ability to create comment nodes. https://github.com/snabbdom/snabbdom/issues/142 Thanks to @pedrosland
|
280 |
|
281 | Example:
|
282 |
|
283 | ```js
|
284 | h("!", "Will show as a comment");
|
285 | ```
|
286 |
|
287 | will be rendered on the DOM as
|
288 |
|
289 | ```html
|
290 | <!-- Will show as a comment -->
|
291 | ```
|
292 |
|
293 | ### Introduce `toVNode()` to reconstruct root element as vnode. https://github.com/snabbdom/snabbdom/issues/167 Thanks to @staltz
|
294 |
|
295 | Useful for client-side rendering over existing HTML that was rendered server-side with snabbdom.
|
296 |
|
297 | Example:
|
298 |
|
299 | ```js
|
300 | import { toVNode } from "snabbdom/tovnode";
|
301 | // ...
|
302 | patch(toVNode(element), vnode);
|
303 | ```
|
304 |
|
305 | Will deep-convert the `element` to a VNode, this way allowing existing HTML to not be ignored by the patch process.
|
306 |
|
307 | ## Bug fixes
|
308 |
|
309 | - Fix compatibility issue of String.prototype.startsWith in the Style Module. https://github.com/snabbdom/snabbdom/pull/228 Thanks to @zhulongzheng
|
310 | - Support for `null`/`undefined` children without crashing. https://github.com/snabbdom/snabbdom/issues/226 Thanks to @nunocastromartins
|
311 |
|
312 | ## [v0.6.3] - 2017-01-16
|
313 |
|
314 | ## Bugfixes
|
315 |
|
316 | - Fix the export of the `Module` interface for TypeScript projects depending on snabbdom.
|
317 |
|
318 | ## [v0.6.2] - 2017-01-16
|
319 |
|
320 | ## Bugfixes
|
321 |
|
322 | - Fix the export of the `Hooks` interface for TypeScript projects depending on snabbdom.
|
323 |
|
324 | ## [v0.6.1] - 2017-01-05
|
325 |
|
326 | The biggest change in this release is that the Snabbdom source code has been ported to TypeScript. The work has been primarily done by @staltz. This brings much improved support for using Snabbdom in TypeScript projects.
|
327 |
|
328 | **Note**: This release contains breaking changes. See below.
|
329 |
|
330 | ## New features
|
331 |
|
332 | - Complete TypeScript support. Thanks to @staltz.
|
333 | - Support for CSS variables. #195. Thanks to @jlesquembre.
|
334 | - Allow `h(sel, data, node)` and `h(sel, node)` shortcut notations in the `h` function. #196. That is, instead of `h('div', [child])` one can now do `h('div', child)`. Thanks to @AlexGalays.
|
335 |
|
336 | ## Bugfixes
|
337 |
|
338 | - Fix custom element creation when tag name begins with 'svg'. #213. Thanks to @tdumitrescu.
|
339 | - Fix bug related to updating one child with same key but different selector. #188. Thanks to @zhulongzheng.
|
340 | - Strings can be used as children inside SVG elements. #208. Thanks to @jbucaran and @jbucaran.
|
341 | - Use `parentNode` fixing bug in IE 11. #210. Thanks to @aronallen.
|
342 |
|
343 | ## Breaking changes
|
344 |
|
345 | The TypeScript rewrite uses the `import` and `export` features introduced in ECMAScript 2015. Unfortunately the ES imports have no analogy to the CommonJS pattern of setting `module.exports`. This means that the Snabbdom modules that previously used this feature now have to be imported in a slightly different way.
|
346 |
|
347 | ```js
|
348 | var h = require("snabbdom/h"); // The old way
|
349 | var h = require("snabbdom/h").h; // The new way
|
350 | var h = require("snabbdom/h").default; // Alternative new way
|
351 | var { h } = require("snabbdom/h"); // Using destructuring
|
352 | ```
|
353 |
|
354 | ## [v0.6.0] - 2017-01-05
|
355 |
|
356 | Deprecated. Use [version 0.6.1](https://github.com/snabbdom/snabbdom/releases/tag/v0.6.1) instead.
|
357 |
|
358 | ## v0.5.0 - 2016-05-16
|
359 |
|
360 | ## Breaking change
|
361 |
|
362 | This release contains a new thunk implementation that solves many issues with the old thunk implementation. The thunk API has changed slightly. Please see the [thunks](https://github.com/paldepind/snabbdom#thunks) section in the readme.
|
363 |
|
364 | [unreleased]: https://github.com/snabbdom/snabbdom/compare/v0.7.2...HEAD
|
365 | [v0.7.2]: https://github.com/snabbdom/snabbdom/compare/v0.7.0...v0.7.2
|
366 | [v0.7.0]: https://github.com/snabbdom/snabbdom/compare/v0.6.9...v0.7.0
|
367 | [v0.6.9]: https://github.com/snabbdom/snabbdom/compare/v0.6.8...v0.6.9
|
368 | [v0.6.8]: https://github.com/snabbdom/snabbdom/compare/v0.6.6...v0.6.8
|
369 | [v0.6.6]: https://github.com/snabbdom/snabbdom/compare/v0.6.5...v0.6.6
|
370 | [v0.6.5]: https://github.com/snabbdom/snabbdom/compare/v0.6.4...v0.6.5
|
371 | [v0.6.4]: https://github.com/snabbdom/snabbdom/compare/v0.6.3...v0.6.4
|
372 | [v0.6.3]: https://github.com/snabbdom/snabbdom/compare/v0.6.2...v0.6.3
|
373 | [v0.6.2]: https://github.com/snabbdom/snabbdom/compare/v0.6.1...v0.6.2
|
374 | [v0.6.1]: https://github.com/snabbdom/snabbdom/compare/v0.6.0...v0.6.1
|
375 | [v0.6.0]: https://github.com/snabbdom/snabbdom/compare/v0.5.0...v0.6.0
|