8.0.0
版本发布时间: 2020-03-12 05:52:22
spencermountain/wtf_wikipedia最新发布版本:10.3.2(2024-07-02 03:49:01)
8.0.0
- [breaking] move
.html()
,.latex()
, and.markdown()
to their respective plugins -
- drop header/footer boilerplate from outputs
- [breaking]
.templates()
and.links()
return Template and Link objects, and not bare JSON (use.map(l=> l.json())
) - [breaking] refactor inputs for
.fetch()
-
- no longer support 'enwikiquote' etc format as input
-
- use 'wiki' instead of undocumented 'wikiUrl' param
-
- no more automatic throttling/rate-limiting
- [breaking] remove
Image.exists()
method to plugin - [major] create seperate client/server-side build formats (use native fetch/node lib)
- [major] support deep (infinite) recursion in templates
- [major] much-stronger i18n support
- no-longer automatically titlecase links
- support adding template parsers through plugins in
.extend()
-
- support array, number, and string shorthand for template parsers
- deprecate
.plaintext()
in favour of.text()