Commit graph

15 commits

Author SHA1 Message Date
Isiah Meadows
e6ab2ef982 Fix lint issues, run npm audit fix 2019-07-12 15:40:07 -04:00
Isiah Meadows
1434ba313f
Fix m.version to not depend on package.json (#2464)
* Fix `m.version` to not depend on `package.json`

Created an accidental breaking change.

* Update changelog

* Fix a failing test
2019-07-09 19:26:00 -04:00
Isiah Meadows
90bcff0fa7
Deduplicate m.route and m.redraw logic (#2453)
- Remove appropriate route change subcriptions when a root is removed
  via `m.mount(root, null)`.
- Don't pollute `onpopstate` and friends - use standard event listeners
  instead.
- Simplify and streamline subscriptions, in preparation of adding a
  `remove` parameter to `m.mount`.
- Change the redraw internals to redraw immediately, with ability to
  cancel via returning a sentinel.
- Change `"bleeding-edge"` for `m.version` in `next` to instead just be
  the latest `m.version`. (If you're using `next`, you should know what
  you're in for.)
- Update tests to be aware of these changes. (Some were failing for
  subtle reasons.)
- Drive-by: remove some uses of `string.charAt(n)` and use `string[n]`
  instead.
2019-07-05 18:52:06 -04: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
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
Már Örlygsson
f375bdc02e fix: Bundler tests only pass when run from project root 2018-04-22 00:50:09 +02:00
Gyandeep Singh
daf5a64697 Chore: Fix lint issues and add indent with tabs 2017-03-11 15:54:41 -06:00
Isiah Meadows
c90bf5ac2d Fix a few syntax errors 2017-03-09 12:29:04 -05:00
Isiah Meadows
934e0ac55e Merge branch 'next' into strict-mode 2017-03-09 11:54:32 -05:00
Pierre-Yves Gerardy
c3d015be28 IICE => IIFE 2017-03-04 23:24:21 +01:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Leo Horie
9ad16858a5 #1520 ospec: report duplicate test names 2017-01-08 13:05:27 -05:00
Leo Horie
713c25c9c0 fix #1404 2016-12-01 01:45:07 -05:00
Leo Horie
c3d856e139 allow a["b"] = require(...) in bundler 2016-11-16 00:09:41 -05:00
Leo Horie
b8ef290acd improved bundler, handle width/height atts 2016-09-23 10:31:33 -04:00