* Drop `m.version` It's caused way too much grief over the years, and I've finally decided it's worth pitching. For those who need it, it's easy to get, especially if you use it through Node or a build system. And for those who are just loading it globally, you have to explicitly specify the version anyways, so you'd be just as golden if you followed it up with a simple inline script that does `m.version = "the version you loaded"`. Oh, and also, you shouldn't be coding specifically for version numbers, either - it's a known anti-pattern. Instead, you should prefer feature detection and just do the right thing. * Update changelog [skip ci]
24 lines
756 B
JavaScript
24 lines
756 B
JavaScript
"use strict"
|
|
|
|
var hyperscript = require("./hyperscript")
|
|
var request = require("./request")
|
|
var mountRedraw = require("./mount-redraw")
|
|
|
|
var m = function m() { return hyperscript.apply(this, arguments) }
|
|
m.m = hyperscript
|
|
m.trust = hyperscript.trust
|
|
m.fragment = hyperscript.fragment
|
|
m.mount = mountRedraw.mount
|
|
m.route = require("./route")
|
|
m.render = require("./render")
|
|
m.redraw = mountRedraw.redraw
|
|
m.request = request.request
|
|
m.jsonp = request.jsonp
|
|
m.parseQueryString = require("./querystring/parse")
|
|
m.buildQueryString = require("./querystring/build")
|
|
m.parsePathname = require("./pathname/parse")
|
|
m.buildPathname = require("./pathname/build")
|
|
m.vnode = require("./render/vnode")
|
|
m.PromisePolyfill = require("./promise/polyfill")
|
|
|
|
module.exports = m
|