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
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
Pierre-Yves Gérardy
fed0846a11
[docs] #2174 docs and change log
2018-06-07 18:09:38 +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
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
mar
e075de4c92
docs: Link to ospec/change-log.md, remove repeated lines
2018-05-04 21:36:19 +02: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
Pierre-Yves Gérardy
203df39c30
Remove the DOM nodes recycling pool ( fix #1653 , fix #2023 )
2018-04-16 09:45:45 +02: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
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
Pierre-Yves Gérardy
1782fa8b63
render: fix perf regression introduced by #1918
2017-12-08 21:37:08 +01:00
Pierre-Yves Gérardy
3f37d3d7c0
#2021 change log and docs
2017-12-04 14:38:39 +01:00
Stephan Hoyer
8dc21f4c48
docs: Fix anchor target ( #2042 )
2017-12-01 08:05:45 -08:00
Pierre-Yves Gérardy
84b729d012
And some more change log tweaks
2017-12-01 14:27:32 +01:00
Pierre-Yves Gérardy
6f435a55f9
More change log tweaks
2017-12-01 14:12:17 +01:00
Pierre-Yves Gérardy
854021db32
Detail the upcoming ospec v2 additions
2017-12-01 14:01:55 +01:00
Pierre-Yves Gérardy
8eb12454ca
update change log for #2034
2017-11-29 22:17:42 +01:00
Pierre-Yves Gérardy
12da6ea94a
Sync change log with v1.1.6 ( #2035 )
2017-11-29 22:14:36 +01:00
Sage Gerard
78eeb2b365
feat(ospec): Allow custom reporters for CI reasons ( #2019 ) ( #2020 )
2017-11-20 15:37:07 -08:00
Stephan Hoyer
d50d53f31d
feat: Add support for timeout to m.request ( #1966 )
2017-11-14 14:47:01 -08:00
spacejack
80b6a1af0d
feat: Don't reject m.request Promise if extract callback supplied ( #2006 )
2017-11-13 08:08:54 -08:00
robinchew
db2a12dec9
Trying to fix #1916 ( #1918 )
...
* Trying to fix #1916
* Remove test for rendering select options. Add back after resolving issue #1978 .
* Add #1916 fix to change log.
* Revert "Remove test for rendering select options. Add back after resolving issue #1978."
This reverts commit d4c1be7c2319adf744f78ca787485f52be869208.
* Comment on why failing test for #1916 is commented out.
2017-10-31 20:37:51 +01:00
Patrik Johnson
131e61002e
Enable setting navigation options with m.route.link API
2017-10-29 12:21:23 +02:00
Isiah Meadows
3c608f26b7
Merge pull request #1984 from RodericDay/newlines-in-error-messages
...
Handle newlines in error messages, fixes #1495
2017-10-28 20:20:34 -04:00
Pat Cavit
666b7832e1
docs: add v1.1.5 TOC entry
2017-10-16 08:56:24 -07:00
valtron
622e009811
recycling => shouldRecycle, Fix #1992 ( #1993 )
...
* Fix #1992
* doc in changelog
* add test for #1992
2017-10-16 08:38:44 +02:00
Pierre-Yves Gérardy
0691662fd4
change log: add v1.1.5 in next
2017-10-14 08:50:15 +02:00
Pat Cavit
06aee72f41
docs: fix v1.1.4 link
2017-10-14 06:09:46 +00:00
Mateusz Jaworski
8b56c70911
fix: Allow for changing focus in lifecycle hooks ( #1988 )
2017-10-13 22:31:03 -07:00
Roderic Day
8fe7088398
Handle newlines in error messages, fixes #1495
2017-10-10 23:10:06 -04:00
Isiah Meadows
ae27c0ff18
Merge pull request #1977 from isiahmeadows/remove-legacy-state
...
Remove support for `vnode.state = ...`
2017-10-04 18:00:16 -04:00
Isiah Meadows
19d2ba316c
Remove support for vnode.state = ...
...
- Remove docs for it
- Remove tests for it
- Add runtime check for unexpected reassignment, since we can't freeze
the property (we internally have to be able to modify it)
2017-10-02 19:57:48 -04:00
Isiah Meadows
348bed0a7e
Allow xlink:href to get removed, fix option.value in mock
2017-10-01 19:34:12 -04:00
Isiah Meadows
98933b8bc1
Merge pull request #1949 from isiahmeadows/optimize-events
...
Optimize events, support objects with `handleEvent`
2017-09-17 20:38:08 -04:00
Isiah Meadows
d150e71a85
Merge MithrilJS/next into optimize-events
2017-09-01 15:38:53 -04:00
Rasmus Porsager
6083c67f07
Update change-log.md
2017-09-01 17:58:12 +02:00
Stephan Hoyer
d8113a4470
Adapt change-log
2017-08-31 19:31:08 +02:00
Isiah Meadows
5209071011
Merge next into optimize-events
2017-08-31 05:43:39 -04:00