Commit graph

973 commits

Author SHA1 Message Date
Travis Horn
86549d3d48 Fix #2210 (#2259)
Changed the example command for Mithril Bundler to be more consistent with Webpack quick start.
2018-10-26 16:42:01 -04:00
Isiah Meadows
2635070734 Merge branch 'next' 2018-10-25 14:23:33 -04:00
Isiah Meadows
6fff24869a Update changelog in preparation for v2.0.0-rc [skip ci] 2018-10-25 14:11:10 -04:00
Isiah Meadows
88b17c1c60
Avoid triggering Object.prototype.__proto__ with keys (#2251)
This way, the diff algorithm works with untrusted keys.
2018-10-15 15:09:55 -04:00
Isiah Meadows
62eb081a13 Simplify element removal to save a few bytes
It's also a minor peephole optimization, but I saw bigger size wins, so
I'm citing that.
2018-09-22 12:02:58 -04:00
Isiah Meadows
1ecc30a064 Fix custom elements attribute application, improve key checking
- Fix custom elements attribute application to acknowledge that not all
  custom elements operate purely based on attributes. (Plus, those
  blasted things are verbose as heck when you're working with them in
  raw form. It's also not that uncommon for functionality to be exposed
  via property and *not* attribute.)
- Don't memoize the normalized value when we 1. only use it once in each
  branch, and 2. only use it for a few special cases.
- Centralize the "has property key" code, so it's easier to tune and
  read. I also inlined a couple functions while I was at it since they
  were small and only used once.
- Actually test for how attributes are applied to raw DOM elements vs
  when we choose to use keys. When I first developed the patch, it
  silently worked, when I should've been breaking things.
2018-09-20 15:08:49 -04:00
Boaz Blake
89d833e909 adding stephen hoyers how-to-mithril 2018-09-19 16:38:11 -04:00
Isiah Meadows
ad5118165c
Fix redundancy (#2213)
* Remove redundant empty fragment return

* Rebuild bundles

* Update changelog
2018-09-19 01:23:33 -04:00
Isiah Meadows
c703b03253
Unbreak accidental back-compat break with event optimization (#2222)
This was supposed to be purely additive. See here for more details:

https://github.com/MithrilJS/mithril.js/pull/1949#issuecomment-417824513
2018-09-18 10:14:21 -04:00
cavemansspa
e62f0f38f6 Doc update for unpkg src attr (#2205)
* Add https: to unpkg src attr

* [docs] Credit @cavemansspa
2018-08-21 18:40:15 +02:00
Stephan Hoyer
af90b6b4a6 Add support for setting responseType of xhr via m.request options 2018-08-20 11:29:36 +02:00
Rasmus Porsager
d64e0a950f Fix #1714 conditionally halting stream (#2200)
* Fix #1714 conditionally halting stream

* Add note in changelog
2018-08-08 15:06:21 +01:00
Martti Laine
fd7cf8041e [request] Clearer error message for JSON deserialization failure (#2195) 2018-08-06 13:35:50 +02:00
kevinkace
28a5c13027 Update onbeforeremove animation example to use animationend event 2018-06-28 23:00:18 +02:00
Pierre-Yves Gérardy
85c1e99d9d
[docs] Update the TOC of installation.md 2018-06-26 15:39:53 +02:00
Stephan Hoyer
4de59e5b33 Use parcel instead of webpack for quickstart. (#2182)
much simpler
2018-06-13 10:23:22 +01:00
Pierre-Yves Gérardy
fed0846a11 [docs] #2174 docs and change log 2018-06-07 18:09:38 +02:00
Pierre-Yves Gérardy
3f5cabc5c5 Chore: Normalize the way we use eslint-disable 2018-06-01 21:27:02 +02:00
Pierre-Yves Gérardy
4921083898 [render/render] Fix xlink:href handling 2018-06-01 21:27:02 +02:00
Pierre-Yves Gérardy
285cb5382f [render] cleanup and comments 2018-05-29 23:50:29 +02:00
Barney Carroll
1579fe8430
Do not normalise component children on ingestion (#2155)
* Do not normalise component children on ingestion

* Don't normalise vnode children

* Component hyperscript tests: children aren't normalised

* test, not text

* Update change log: #2155 & #2064
2018-05-29 10:53:16 +01:00
Henry
4e35d0591c quick grammar fix (#2163) 2018-05-24 16:23:20 -10:00
Barney Carroll
e1a50890e9 stream: Removed valueOf & toString methods (fixes #2150) (#2151)
* stream: Removed `valueOf` & `toString` methods (fixes #2150)

* Update stream documentation
2018-05-16 00:01:30 +02:00
Pierre-Yves Gérardy
93c84a5786 [docs] typo 2018-05-10 09:35:03 +02:00
Pierre-Yves Gérardy
d13a61a4d8 [docs] clarify the component/RouteResolver distinction 2018-05-10 09:34:04 +02:00
Pierre-Yves Gérardy
4823369abe
[docs] typo 2018-05-10 09:28:02 +02:00
Pierre-Yves Gérardy
567fe154e7
[docs] clarify the component/RouteResolver distinction 2018-05-10 09:13:57 +02:00
Scotty Simpson
f161a59343 Update animation.md 2018-05-05 16:39:22 +02:00
mar
e075de4c92 docs: Link to ospec/change-log.md, remove repeated lines 2018-05-04 21:36:19 +02:00
Adam Gamble
fb3c344055 Scan with halt (#1957)
* HALT if scan reducer doesn't change value

* Updated docs to reflect new scan behaviour with HALT
2018-05-03 16:52:33 +01:00
Pierre-Yves Gérardy
801bde219e [render/render] move keyed cached nodes when needed, fix diff semantics for cached nodes, fix #2132 2018-04-23 13:52:03 +02:00
Pierre-Yves Gérardy
9490950c30 [render/render] Simplify updateNodes, fix #2128 2018-04-23 13:52:03 +02:00
soulofmischief
898d0aec82 Fix url in vnodes.md
URL was being incorrectly parsed due to parentheses. The parenthesis have been replaced with UTF-8 encodings.
2018-04-22 00:56:21 +02:00
Pat Cavit
c335aa70ca
docs: latest site updates (#2126) 2018-04-20 08:36:08 -07:00
Pierre-Yves Gérardy
203df39c30 Remove the DOM nodes recycling pool (fix #1653, fix #2023) 2018-04-16 09:45:45 +02:00
Scotty Simpson
6f7f543b07 docs: awkward/redundant fix (#2120) 2018-04-13 22:35:04 -07:00
Pat Cavit
0c54409d41 docs: Fix some site weirdness
Fixes #2117
2018-04-13 11:12:07 +02:00
Pat Cavit
6fb77b7771
docs: update with latest fixes (#2116) 2018-04-12 00:11:11 -07:00
Vasil Rimar
02f2732706 docs: Fix webpack example (#2110) 2018-03-27 23:40:11 -07:00
Baby Goat
23ebe2f483 doc: add missing parenthesis (#2104)
* closing parenthese missing

[### How it works](#howitworks)

* update changelog
2018-03-12 15:33:06 -07:00
Pierre-Yves Gérardy
ad46a21a7d [render] add support for SVG in m.trust() strings 2018-03-06 01:12:32 +01:00
Pierre-Yves Gérardy
fdd34f9726 [mocks] Add some support for parsing SVG using the DOMParser API and innerHTML 2018-03-06 01:12:32 +01:00
Scotty Simpson
0fc9b6ed07
typo fix 2018-03-03 20:44:34 -08:00
Pat Cavit
e25f086061
docs: correct some webpack bitrot (#2094) 2018-02-28 08:13:07 -08:00
Cassidy Williams
7699b4515d docs: Minor casing changes (#2093) 2018-02-26 08:04:13 -08:00
spacejack
d283b24337 Separate Promise implementation from polyfilling 2018-02-19 23:33:32 +01:00
Fabiano Taioli
83884bdc90 element value is not cleared when value valor change to undefined 2018-02-09 00:47:59 +01:00
Paul D. Fernhout
33ff439c73 docs: Fix inconsistent path in router.md variadic routes example (#2084) 2018-02-06 21:07:03 -08:00
Leo Thorp
81903cacdb docs: fix typo (#2077) 2018-01-25 22:06:34 -08:00
Pat Cavit
94e8d8cafa
docs: fix git commands for releasing 2018-01-23 09:32:33 -08:00