Drop m.version (#2466)
* 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]
This commit is contained in:
parent
02a91356c0
commit
904b63b2aa
7 changed files with 2 additions and 47 deletions
1
index.js
1
index.js
|
|
@ -18,7 +18,6 @@ m.parseQueryString = require("./querystring/parse")
|
|||
m.buildQueryString = require("./querystring/build")
|
||||
m.parsePathname = require("./pathname/parse")
|
||||
m.buildPathname = require("./pathname/build")
|
||||
m.version = "2.0.0-rc.7"
|
||||
m.vnode = require("./render/vnode")
|
||||
m.PromisePolyfill = require("./promise/polyfill")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue