Releases: bhsd-harry/wikiparser-node
Releases · bhsd-harry/wikiparser-node
v1.35.1
2026-02-08
Added
AstElement.prototype.jsonnow takes an optionaldepthparameter to limit the depth of the output JSON- Suggestion for invalid gallery links
Fixed
AstText.prototype.lintwhen there are both<and unmatched]QuoteToken.prototype.lintstops offering suggestions for lonely apostrophes next to italic apostrophes which can be ambiguous
v1.35.0
2026-01-22
Fixed
- The executable
getParserConfignow checks whether language conversion is disabled for a MediaWiki site
Removed
- Support for Node.js 18
v1.34.0
2026-01-13
Added
- New category of linting errors: invalid JSON inside
<templatedata>
Changed
- Setting
TagPairToken.selfClosingtotruenow removes the inner content of the tag
v1.33.0
2026-01-01
Added
AttributesToken.prototype.cssnow inserts thestyleattribute if not presentParamLineToken.prototype.lintnow reports unknown parameter namesLanguageService.prototype.provideCompletionItemsnow suggests parameter names in<dynamicpagelist>and<inputbox>- Parse and report extension tags inside
<categorytree> - Parse
<pre>tags withformat="wikitext" ImageParameterToken.prototype.lintnow reports invalid values for thelinkparameter in gallery images
Fixed
AttributeToken.prototype.setValuefor an attribute without a valueAttributesToken.classListwhen theclassattribute contains multiple spaces between class namesAttributesToken.prototype.sanitizeshould leave spaces between attributesToken.prototype.createElementfor extension tagsToken.prototype.expandfor#contentmodelwhen the first argument iscanonical
v1.32.0
2025-12-05
Added
- HTML conversion of
<syntaxhighlight>with Prism highlighting CategoryToken.innerTextToken.prototype.toHtmlnow supports category links at the end of the pageParser.callParserFunctionnow supports custom parser functions defined viaParser.setFunctionHookTitle.prototype.getFileUrlthat internally calls thefilepathparser function to generate aSpecial:Redirect/file/URLParser.lint,Parser.printandParser.toHtml
Fixed
AttributeToken.prototype.lintshould report invalid HTML attributes except foridfor<math>and<chem>tags- Issue with
Token.prototype.expandwhen expanding#tag - Issue with
Token.prototype.expandwhen expanding parser functions with template arguments Token.prototype.cloneNodeshould copy thepageNamepropertyImageParameterToken.linkcan now beundefinedfor invalid links in gallery images
Changed
FileToken.prototype.toHtmlnow callsTitle.prototype.getFileUrlto generate thesrcattribute
Removed
- The old schema of
Config.parserFunctionis no longer supported
v1.31.0
2025-11-13
Added
Token.prototype.expandnow supports more parser functionsParser.callParserFunction- New category of linting errors: template arguments inside an extension tag
Token.prototype.expandnow supports transclusion of redirect pages
Fixed
- Duplicate linting errors reported by
<ref>tags FileToken.prototype.toHtmlfor inline images with vertical alignment parametersLinkBaseToken.prototype.toHtmlfor self links
v1.30.0
2025-11-06
Added
HeadingToken.prototype.sectionQuoteToken.prototype.findMatchingQuoteandQuoteToken.prototype.getRangeNoincludeToken.prototype.lintnow reports useless attributes likeIncludeToken.prototype.lint- New category of linting errors: redirect-like text in list items and header-like text in plain text
Fixed
- Expanding custom parser functions defined via
Parser.setFunctionHook
v1.29.2
2025-10-30
Added
TranscludeToken.prototype.newAnonArgandTranscludeToken.prototype.setValuenow support an optional parameter to append the new parameter on a new line
Fixed
- Parsing empty
<translate></translate>tag pairs
v1.29.1
2025-10-28
Added
LanguageService.prototype.provideCompletionItemsnow suggests behavior switches with full-width underscores (_)
Fixed
AstText.prototype.lintnow ignores magic link-like texts in tokens where magic links are not parsedAttributeToken.prototype.escapeshould ignore extension tag attributes- Disable
AstElement.prototype.escapefor some token types
Changed
LanguageService.prototype.provideCompletionItemsnow suggests behavior switches when typing the first underscore (_or_)
v1.29.0
2025-10-23
Added
Token.pageNameproperty that gets or sets the page nameToken.prototype.expandnow supports the{{int:}}parser functionImageParameterToken.thumbproperty that gets the thumbnail filename from themanualthumbimage parameter- New category of linting errors: invalid thumbnail filenames in image parameters
Fixed
Parser.templateDircan now have a nested file structure to support subpages
Changed
- Extension:Math is now linted via texvcjs instead of MathJax
- A copy of the MediaWiki-flavored GeoJSON schema is now included in the package