Commit graph

3348 commits

Author SHA1 Message Date
Gandalf-the-Bot
c6d6afbdfa Bundled output for commit bcc6003bf3 [skip ci] 2018-12-04 17:22:15 +00:00
Daniel Loomer
bcc6003bf3 make gandalf run build-esm fixes #2325 (#2326) 2018-12-04 12:20:28 -05:00
Isiah Meadows
8134c51a48
Fix style updates to avoid unnecessary allocation (#2312)
* Fix style updates to avoid unnecessary allocation

- Drive-by: properly censor `cssFloat` -> css `float:` to match DOM
  behavior

* Document `style` syntax + custom property support. [skip ci]

* Add a missing test

* Add a few more descriptive comments.

* Update changelog [skip ci]
2018-12-03 14:31:08 -05:00
Gandalf-the-Bot
b25e8e15a0 Bundled output for commit 462fb659d7 [skip ci] 2018-12-03 11:37:15 +00:00
Isiah Meadows
462fb659d7
Fix event handler this value, simplify redraw handling (#2320)
Shaves 10 bytes off the bundle from smaller name + reduced indirection
2018-12-03 06:35:27 -05:00
Gandalf-the-Bot
84cb4e750a Bundled output for commit 26b8d994ce [skip ci] 2018-12-01 01:43:56 +00:00
Isiah Meadows
26b8d994ce
Remove m.prop + m.withAttr (#2317)
* Remove `m.prop` + `m.withAttr`

- For many uses, `m.withAttr` is *more* verbose than just directly using
  an event handler
- If you're using it with a bound callback, you're literally wasting a
  single character in the human readable version (and you're *saving*
  them in the minified output).
- It sometimes obscures your intent, if overused.
- Functions are easier to compress than `m.withAttr`, resulting in
  slightly smaller bundles.
- `m.withAttr` is overused anyways.
- `m.prop` is basically useless without `m.withAttr`, and the API
  doesn't have the same benefits it had with 0.2.x.

* Update changelog
2018-11-30 20:41:24 -05:00
Gandalf-the-Bot
86c16820f7 Bundled output for commit 7c5024f921 [skip ci] 2018-11-30 08:13:28 +00:00
Isiah Meadows
7c5024f921
Fix some linter issues, update ESLint (#2318)
* Fix linter issues, run `npm audit fix`

* Update ESLint to not be so ancient.
2018-11-30 03:11:07 -05:00
Gandalf-the-Bot
021ef90455 Bundled output for commit 7cbc15e7a2 [skip ci] 2018-11-29 01:12:39 +00:00
Isiah Meadows
7cbc15e7a2
Fix m.request/m.jsonp to not mutate arguments, simplify code (#2288)
I basically recast it to remove 99% of the duplication. They're
basically the same function mod how they fire their requests and append
query parameters.
2018-11-28 20:10:46 -05:00
Andrew Miracle
eee2c1b032 Create an Issues Submission Page Enhancement (#2271)
* create and Issue Template Directory with a Bug Report Template File derived from moved ISSUE_TEMPLATE FILE

* create a Feature Request Template

* Update .github/ISSUE_TEMPLATE/Bug_report.md

Fix naming issue

Co-Authored-By: koolamusic <8960757+koolamusic@users.noreply.github.com>
2018-11-28 14:47:27 -05:00
Isiah Meadows
7d8a889506 Fix docs bug, advise against reusing vnode.attrs itself (#2250)
* Fix docs bug, advise against reusing `vnode.attrs` itself [skip ci]
* Be consistent + correct with commas [skip ci]
* Be consistent with spacing [skip ci]
* Discard the unused parameters [skip ci]
* Kill an opinion, slim down the example [skip ci]
2018-11-28 09:19:52 +01:00
Gandalf-the-Bot
50fb2370bc Bundled output for commit 4a641092dc [skip ci] 2018-11-27 23:06:31 +00:00
Isiah Meadows
4a641092dc
Officially drop IE9-10 support, pull out our hacks (#2296)
- I also fixed a bunch of related comments
- I had to polyfill `requestAnimationFrame` for Node
- Drive-by: run `eslint . --fix`
- Drive-by: update transpiling info in CONTRIBUTING.md
- Drive-by: we aren't the only ones going semicolon-free
2018-11-27 18:04:15 -05:00
Isiah Meadows
a8473e63c9
Reverse hook order for all but onbeforeupdate (#2297)
- Drive-by: `onbeforeupdate` prevents subtree redraw if *either* hook
  returns `false`, not *both*.
2018-11-27 18:02:48 -05:00
Isiah Meadows
c33621cd52
Simplify bundler a little (#2290)
- Remove a useless abstraction
- Remove a useless write + read
- Only read when generating the bundle
- Use one watcher instead of two
- Use Chokidar to simplify and make for a better experience
2018-11-27 18:02:35 -05:00
Isiah Meadows
a96caf25c5
Fix #1908, document fields. [skip ci] (#2314) 2018-11-27 18:02:08 -05:00
Lukas Drgon
a2bf713e00 Add alternative CDN (#2018)
* Add alternative CDN
* Update README.md
Co-Authored-By: LukasDrgon <lukas.drgon@gmail.com>
2018-11-27 22:09:50 +01:00
Rasmus Porsager
58c86f7546 Rewrite stream (#2207)
* Rewrite stream

* Rename HALT to SKIP

* Rename HALT to SKIP

* Remove valueOf and toString

* Update docs for HALT to SKIP

* Rename halt to skip in test

* Add test for combining nested streams atomically

* Update change-log.md

* Test basic SKIP

* Add deprecated HALT

* Combine continues with ended streams

* Fix fantasy-land/of to match spec

* Don't use arrow function

* Improve scan description

* Fix merge artifact
2018-11-27 15:11:24 -05:00
Isiah Meadows
5e7528fefd
Re-add myself as a code owner [skip ci] 2018-11-27 13:23:08 -05:00
Gandalf-the-Bot
42919cdf91 Bundled output for commit 7c299ab48c [skip ci] 2018-11-26 14:41:50 +00:00
Rasmus Porsager
7c299ab48c Allow css vars with uppercase characters (#2311)
* Allow css vars with uppercase characters

* Remove charAt

* Extract dash lowercase lambda

* Extract match uppercase regex

* Set key and value correctly in updateStyle

* Fix domMock style to work like the browser
2018-11-26 09:40:08 -05:00
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