Commit graph

3373 commits

Author SHA1 Message Date
Isiah Meadows
08feb1795e Fix linter error 2019-02-05 11:27:54 -05:00
Gandalf-the-Bot
de2e60acb3 Bundled output for commit 2a9b3964ca [skip ci] 2019-02-05 16:06:41 +00:00
Isiah Meadows
2a9b3964ca Fix the Stream.HALT warning's condition
Previously, it warned on all *but* the first use, which is obviously
wrong. This corrects it to correctly fire on only the first use.
2019-02-05 11:03:50 -05:00
Isiah Meadows
b91a10a233
s/mithril/mithril@next/g, add v1 docs link [skip ci] (#2368)
This should help point users to the correct version if they plan to
install the release candidate, and it should help users find the
existing docs for v1.
2019-02-02 11:01:51 -05:00
Gandalf-the-Bot
722a4f4af9 Bundled output for commit f30cf0afaa [skip ci] 2019-01-17 08:32:04 +00:00
Isiah Meadows
f30cf0afaa
Streams should be in ES5 2019-01-17 03:29:50 -05:00
Gandalf-the-Bot
ee232f00ff Bundled output for commit 23fe0a5ab1 [skip ci] 2019-01-10 04:12:06 +00:00
Adam Gamble
23fe0a5ab1 Fixed scan with skip (#2357)
* Fixed bad test for scan

The previous test didn't catch the fact that the accumulator had been
broke, it's value became the special value `SKIP`.

* Fixed Stream.scan() to accept SKIP value

* Update stream/stream.js

Dropped unnecessary ternary as suggested by @isiahmeadows

Co-Authored-By: gamb <adam@gamb.co>
2019-01-09 23:10:02 -05:00
Gandalf-the-Bot
65e2561c55 Bundled output for commit 39c20bdb34 [skip ci] 2019-01-07 09:58:33 +00:00
Vasil Rimar
39c20bdb34 Handle [ fragment selector. Fixes #2349 (#2352)
* Handle `[` fragment selector. Fix #2349

* Update tests

* Simplify hyperscript function
2019-01-07 04:56:09 -05:00
Oliver Adria
1aaa2ff568 Fix typo in examples/editor (#2350)
* Small typo prevented Markdown Editor example from working
2018-12-29 23:26:03 -05:00
Gilbert
eaa1c13664 Show how to use each routing strategy in docs (#2332) 2018-12-06 18:30:43 -05:00
Isiah Meadows
e068bd421c Fix a couple missing files [skip ci]
Why does adding files have to be such a pain...?
2018-12-06 00:46:00 -05:00
Gandalf-the-Bot
3ecee10053 Bundled output for commit f09c84c369 [skip ci] 2018-12-06 05:38:48 +00:00
Isiah Meadows
f09c84c369 v2.0.0-rc.3 2018-12-06 00:36:12 -05:00
Isiah Meadows
8dbf63883b Update package-lock.json 2018-12-06 00:35:41 -05:00
Isiah Meadows
aacfda739a Merge branch 'next' 2018-12-06 00:34:15 -05:00
Isiah Meadows
353e4c1748 Make sure to include new bundles in version script 2018-12-06 00:33:11 -05:00
Gandalf-the-Bot
14a085e59c Bundled output for commit e31c06be3e [skip ci] 2018-12-06 05:27:23 +00:00
Isiah Meadows
e31c06be3e v2.0.0-rc.2 2018-12-06 00:23:58 -05:00
Gandalf-the-Bot
bd25a8b37d Bundled output for commit 966e78bcab [skip ci] 2018-12-06 05:21:03 +00:00
Isiah Meadows
966e78bcab
Allow variadic arguments to m.fragment (#2328)
* Implement support for variadic arguments to `m.fragment`

While I was at it, I refactored the common logic out of `hyperscript`.

* Add a missed change from #2326

* Update docs + changelog [skip ci]

* Explain rationale for `hyperscriptVnode`'s calling convention

This way, it doesn't get erroneously "cleaned up" into something worse,
and so it's clearer how it'd be potentially optimized once ES5 support
is dropped.
2018-12-05 23:57:42 -05:00
Gandalf-the-Bot
843f420291 Bundled output for commit 922093f1ba [skip ci] 2018-12-04 20:13:40 +00:00
Daniel Loomer
922093f1ba update stream export name (esm build) (#2330) 2018-12-04 15:11:38 -05:00
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