Commit graph

3325 commits

Author SHA1 Message Date
Gandalf-the-Bot
87033bf1e0 Bundled output for commit 4c5968a526 [skip ci] 2018-11-26 10:51:03 +00:00
Barney Carroll
4c5968a526 Fix #2192 (#2308)
* Fix #2192

* Fix mock style property definitions

* Re-instate camelCased style property key declaration support

* Fix removeProperty, eslint fix

* Stringify style keys: fix perf tests

* Fix weird uncaught mixed whitespace

* Fix weird uncaught mixed whitespace
2018-11-26 05:49:16 -05:00
Gandalf-the-Bot
d1c090efb7 Bundled output for commit 421474c0e2 [skip ci] 2018-11-24 13:15:33 +00:00
Rasmus Porsager
421474c0e2 Cast className using toString (#2309)
* Cast className using toString

* Add to change-log
2018-11-24 08:13:56 -05:00
Robin (Robert) Thomas
b5219920ab Ospec: expose messages for passing tests, in addition to failing tests (#2227)
* ospec: all results, failing and passing, include .message and .context

Previously only failing tests had .message and .context.

* Updated docs

* Function was ugly

* Ospec verbose passing tests: put changelog update in right place
2018-11-21 15:47:10 -05:00
Robin (Robert) Thomas
0fd1bc9cae Add 'throws'/'notThrows' assertion to Ospec for error reporting (#2255)
* Ospec: added assertion that function does/doesnt throw error

* Ospec.throws passes npm test

* Ospec.throws: Address requested changes

* Ospec: message comparison support for .throws/.notthrows

Credit to @maranomynet, #2227
2018-11-21 15:46:34 -05:00
spacejack
22427db882 Update/improve 3rd party integration docs (#2306)
* Add noUiSlider example

* Rewrite FullCalendar example
2018-11-21 15:45:42 -05:00
Saravyas
d66b7f6c0d readme updated for npm installation (#2303)
* readme updated for npm installation

* change request
2018-11-19 02:57:12 -05:00
Boaz Blake
bf1afa06fd adding missing anchor (#2305) 2018-11-19 02:34:20 -05:00
Marco Bolis
52f81ff569 Fix parentheses in link (#2300) 2018-11-15 12:34:02 -05:00
Scotty Simpson
52ccea2cad Component docs update: an effective compromise re: state & syntactic variance (#2294)
* Update components.md

* Update components.md

* Update components.md

* Update components.md

* Update docs/components.md

Co-Authored-By: CreaturesInUnitards <portrayme@mac.com>

* Update docs/components.md

Co-Authored-By: CreaturesInUnitards <portrayme@mac.com>

* Update docs/components.md

Co-Authored-By: CreaturesInUnitards <portrayme@mac.com>

* teeny clarification

* reasonably compromised language, I think
2018-11-14 19:38:25 -05:00
Gandalf-the-Bot
749f54d7cf Bundled output for commit 4d579c50b6 [skip ci] 2018-11-15 00:28:11 +00:00
Isiah Meadows
4d579c50b6
Revert "Fix #1771 and probably others (#2286)" (#2299)
4f68984f2f
2018-11-14 19:26:23 -05:00
Gandalf-the-Bot
8f7d85b0c9 Bundled output for commit 638d72481c [skip ci] 2018-11-14 20:50:41 +00:00
Isiah Meadows
638d72481c Update the changelog
- I missed that part when reviewing #2194
2018-11-14 15:49:05 -05:00
Rasmus Porsager
c3896b92e6 output mithril, stream and ospec esm versions on build - fixes #2112 (#2194)
* output mithril, stream and ospec esm versions on build

* Add esm bundles

* [request] Clearer error message for JSON deserialization failure (#2195)

* Bundled output for commit fd7cf8041e [skip ci]

* Fix #1714 conditionally halting stream (#2200)

* Fix #1714 conditionally halting stream

* Add note in changelog

* Do not include stream as named export in mithril.esm.js

* Rename mithril.min.esm.js to mithril.esm.min.js

* Add esm files to eslintignore

* Add named exports

* Add hyperscript `m` as named export

* Add builds with export changes

* checkout regular bundled files

* Change .esm.js to .mjs

* Update pkg module to point to .mjs

* Fix for export names to avoid collision

* Updated bundled files
2018-11-14 15:37:08 -05:00
Gandalf-the-Bot
0d36d0db85 Bundled output for commit 4f68984f2f [skip ci] 2018-11-14 20:36:41 +00:00
Isiah Meadows
4f68984f2f
Fix #1771 and probably others (#2286)
This is *super* subtle, and IMHO Chrome did exactly the wrong thing
here.
2018-11-14 15:35:00 -05:00
spacejack
76e585c523 Add Stream.lift (#1950)
* Add stream.lift and tests

* Add docs

* Add to change-log
2018-11-13 18:55:45 -05:00
spacejack
a147023f4e Docs - prioritize closure components for state (#2292)
* Emphasize closure components in components.md

* Use closure components for all stateful component examples

* Add change-log entry

* Edits and separate sections for closure, class & POJO state
2018-11-13 01:04:04 -05:00
Gandalf-the-Bot
4ac33fa483 Bundled output for commit 232ff597a6 [skip ci] 2018-11-09 18:56:56 +00:00
Isiah Meadows
232ff597a6
Switch to Terser (#2289)
1. It's actually supported
2. It's less buggy

https://twitter.com/dan_abramov/status/1060216917493981184
2018-11-09 13:55:25 -05:00
Miguel Espinoza
561b13c8a4 Add example for m.route.set with params (#2229)
Add example on how to use m.route.set with params
2018-11-07 18:47:49 -05:00
Gandalf-the-Bot
19ac08c7bc Bundled output for commit d6489e3b3f [skip ci] 2018-11-07 23:44:25 +00:00
Pierre-Yves Gérardy
d6489e3b3f Merge #2075 into next (#2175)
* fix: Access document.activeElement through a function that eats errors for IE (#2075)

* test: inline iframe.js so ospec doesn't try to run it
2018-11-07 18:42:50 -05:00
Isiah Meadows
b0030047a7 Update Travis script [skip ci]
- Update to use my API key
- Don't try to auto-publish pre-releases
2018-11-07 13:21:09 -05:00
Isiah Meadows
1f18506de6 v2.0.0-rc.1 2018-11-07 12:37:22 -05:00
Gandalf-the-Bot
7140c483c6 Bundled output for commit 6042b001f0 [skip ci] 2018-11-07 17:20:53 +00:00
Isiah Meadows
6042b001f0
Add m.prop (#2268)
Fixes #2095
2018-11-07 12:18:55 -05:00
Gandalf-the-Bot
75626b30db Bundled output for commit 843d7ad454 [skip ci] 2018-11-06 20:51:09 +00:00
Scotty Simpson
843d7ad454 Abandon Closure Compiler in favor of UglifyES (#2285)
Moved to UglifyES, ditched async cruft, clarified responsibilities between cli & minify.

Makes for faster, more reliable, synchronous, non-Google-reliant minification.
2018-11-06 15:48:48 -05:00
Scotty Simpson
9d2586df9c remove redundant changelogs for 1.1.4-6 (#2277) 2018-11-02 23:51:21 -04:00
Gandalf-the-Bot
ed3faf4fad Bundled output for commit a73c157dff [skip ci] 2018-10-28 22:04:44 +00:00
makibishi
a73c157dff refactor: Vnode.normalizeChildren to anonymous function (#2208) 2018-10-28 18:02:32 -04:00
Gandalf-the-Bot
761de0908b Bundled output for commit ea0ce7f762 [skip ci] 2018-10-28 21:19:11 +00:00
spacejack
ea0ce7f762 Store normalized vnodes in the dom element. Add render tests. (#2266)
* Store normalized vnodes in the dom element. Add render tests.

* Add entry to change-log
2018-10-28 17:17:24 -04:00
Isiah Meadows
b9c3c6c9c8
Remove a section that's 1. buggy and 2. controversial [skip ci] (#2265)
See discussion in #2250 and #1986 for more details.
2018-10-28 17:00:47 -04:00
spacejack
0e6223da73 Add docs about using EventListener objects (#2260)
* Add docs about using EventListener objects

* Fix typo

* Less misleading description of event handlers

* Fix a typo + grammar mistake

* More grammar/typo fixes
2018-10-27 16:41:21 -04:00
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
Gandalf-the-Bot
b1f1a2b94b Bundled output for commit 3e494583c6 [skip ci] 2018-10-25 19:05:10 +00:00
Isiah Meadows
3e494583c6 v2.0.0-rc.0 2018-10-25 14:54:22 -04:00
Isiah Meadows
97b6125654 Fixing bugs introduced by the big next merge
- Update package-lock.json
- Remove (failing) dupe ospec suite

Git didn't *quite* do the right thing here, so I had to fix a few
things.
2018-10-25 14:35:05 -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
Gandalf-the-Bot
e7c71f6ba2 Bundled output for commit 88b17c1c60 [skip ci] 2018-10-15 19:13:19 +00: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
Gandalf-the-Bot
d2ca44b693 Bundled output for commit 68e412bb59 [skip ci] 2018-10-14 20:34:43 +00:00
Rasmus Porsager
68e412bb59 Fix #2232 - wrongly matching prop after comments ending with a dot (#2249)
* Fix #2232 - wrongly matching prop after comments ending with a dot

* Avoid matching urls `://`
2018-10-14 16:32:28 -04:00
ᴙɘɘᴙgYmɘᴙɘj
385458aadd Exit process with error on bundler errors (#2240) (#2244)
* Exit process with error on bundler errors (#2240)

Setting the errorCode within bundle.js does not change the exit code
when called with cli.js.  This moves the outer `try...catch` from
bundle.js to the `bundle` call in cli.js, so it can set the exit code.

* Lint

* Allow bundler to throw on error
2018-10-10 13:29:14 -04:00
Gandalf-the-Bot
d40d871a9d Bundled output for commit 62eb081a13 [skip ci] 2018-09-22 16:05:12 +00:00