Skip to content

Latest commit

 

History

History
803 lines (455 loc) · 33.2 KB

CHANGELOG.md

File metadata and controls

803 lines (455 loc) · 33.2 KB

v1.15.0

2025-01-15

Fixed

  • Case-insensitive variables without a parameter, e.g., {{#language}}, and case-sensitive parser functions requiring a parameter, e.g., {{DEFAULTSORT:}}

Changed

v1.14.1

2025-01-11

Added

  • Named parameters are recognized for the {{#tag}} parser function

v1.14.0

2024-12-13

Added

  • More auto-fix and suggestions for linting errors

Removed

  • Removed category of linting errors: duplicated <ref> name

v1.13.9

2024-12-06

Added

  • New category of linting errors: lonely RFC/PMID/ISBN
  • LintError.Fix now has a new string property desc

Changed

  • The preset configurations are updated

v1.13.7

2024-12-01

Fixed

  • Token.prototype.lint should ignore <ref> tags with identical names but in different groups

v1.13.6

2024-11-29

Added

  • New category of linting errors: duplicated <ref> name

v1.13.4

2024-11-17

Fixed

v1.13.3

2024-11-14

Fixed

v1.13.2

2024-11-04

Fixed

  • Parse and report extension tags inside <inputbox>/<dynamicpagelist>
  • Parse transclusion inside <references>
  • {{\n=a=\n}} is now parsed as Template:=a= instead of <p>{{</p><h1>a</h1><p>}}</p>

v1.13.1

2024-11-01

Fixed

  • Case-insensitive <nowiki> inside a <pre> tag
  • HTML comments inside a <inputbox> tag

Changed

v1.13.0

2024-10-24

Added

  • New pseudo selectors :valid and :scope
  • Pseudo selector :has() now supports relative selectors
  • Parser.parse now accepts an array of token types as the third argument to specify the maximum stage of parsing

Fixed

  • Token.prototype.expand now supports file names containing as a substitute for : in a Windows file system
  • Order of HTML/URL decoding in Title parsing

Changed

v1.12.7

2024-08-24

Fixed

v1.12.6

2024-08-17

Fixed

v1.12.5

2024-08-16

Added

Fixed

v1.12.4

2024-08-07

Added

Fixed

Changed

  • ArgToken.prototype.json no longer includes the default property

v1.12.3

2024-08-04

Fixed

v1.12.2

2024-07-29

Added

Fixed

Changed

v1.11.1

2024-07-10

Fixed

v1.11.0

2024-07-08

Added

Fixed

Changed

  • ListBaseToken.prototype.toHtml now returns an empty string
  • ListBaseToken.prototype.getRange now modifies the AST and returns a plain token with the type list-range

Removed

  • Token.prototype.redoQuotes method, which does not work as expected

v1.10.0

2024-06-26

Added

Fixed

Changed

Removed

  • RedirectTargetToken.prototoype.text method overriding
  • rbspan attribute of a <rt> tag

v1.9.3

2024-06-18

Added

Fixed

Changed

v1.9.2

2024-06-10

Fixed

v1.9.1

2024-06-09

Fixed

Changed

  • Token.prototype.normalizeTitle is now a private method
  • Parser.getConfig is now available for public use

Removed

  • Pseudo selectors :nth-child, :nth-last-child, :nth-of-type and :nth-last-of-type no longer support comma-delimited arguments

v1.9.0

2024-05-26

Added

Changed

  • Improved performance for table parsing inside a template

v1.8.0

2024-05-20

Added

Fixed

Changed

v1.7.1

2024-05-13

Added

  • Parse redirect pages

Fixed

  • Allow an external image as ext-link-text
  • Ignore duplicated parameters containing extension tags in TranscludeToken.prototype.lint
  • Self-closing tags <noinclude/> and <includeonly/> are now valid

Changed

  • For redirects with a fragment, the fragment is now ignored by Title.title

v1.6.2

2024-03-17

Added

Fixed

  • Mimic the structure of CSS combinators
  • Fully escape < and > when printing tag attributes
  • Recognize invalid Title patterns
  • Image size parameter with a suffix of pxpx is now also valid
  • Fix conflicts between image parameters and external links
  • Fix free external links led by a Unicode character

Changed

  • Error messages are gradually translated into English

v1.6.1

2024-03-13

Added

  • Linting errors can now be disabled using inline comments

Fixed

  • Allow the image parameter page in PDF file links
  • Disallow empty strings as the manual-upright image parameter
  • Use parseInt() for the rowspan and colspan properties of TdToken

Changed

  • The start position of a linting error associated with a TrToken is now one character ahead

v1.5.7

2024-03-12

Fixed

Changed

v1.5.6

2024-03-07

Fixed

  • Parsing a TdToken after another TdToken with a multiline HtmlToken in it
  • ExtLinkToken when the link text starts with a token with higher precedence

Changed

  • Title.fragment no longer decodes the deprecated MediaWiki-style fragment encoding

v1.5.5

2024-03-06

Fixed

Changed

Removed

v1.5.4

2024-03-05

Fixed

  • Ignore most invalid Wikitext syntax nested in a PreToken when linting

v1.5.3

2024-03-03

Added

Fixed

  • DdToken is now correctly parsed when QuoteToken is present in the same line
  • Improved ImageParameterToken validation for different file extensions
  • Ignore incomplete Wikitext syntax in before and after attributes of a <choose> extension tag when linting

v1.5.1

2024-02-29

Added

  • New property rules of the interface Parser

Fixed

Changed

  • filter in the style attribute is no longer reported as an error

Removed

  • Token type aliases have been malfunctioning since v1.4.3, and are now removed

v1.5.0

2024-02-22

Added

  • Auto-fix and suggestions for selected linting errors

Removed

  • AstElement.prototype.echo method

v1.4.5

2024-02-12

Added

  • New property rule of the interface LintError

v1.4.4

2024-02-04

Added

Fixed

  • Inconsistent output from AttributesToken.prototype.print

Changed

  • HtmlToken.prototype.print and ImageParameterToken.prototype.print do not differentiate invalid tokens any more
  • HtmlToken.prototype.text now treats void tags as self-closing tags

v1.4.3

2024-01-31

Added

Fixed

  • Missing type declarations for ExtLinkToken.firstChild and ConverterToken.firstChild are added

v1.4.2

2024-01-29

Fixed

v1.4.1

2024-01-27

Added

  • New category of linting errors: <ref> or external links without specified text in HeadingToken
  • New preset configuration enwiki for English Wikipedia

Fixed

Changed

  • Reported duplicated categories do not need to be child nodes of the same parent node
  • Better recognition of bracket pair ([]) that actually breaks the ExtLinkToken

v1.4.0

2024-01-23

Added

Fixed

  • Type declarations

v1.3.9

2024-01-22

Added

  • New categories of linting errors, including obsolete HTML tags and attributes, internal links in external links, and unmatched QuoteToken inside a HeadingToken
  • New properties for QuoteToken: bold and italic

Fixed

  • Parser.isInterwiki now returns null if no interwiki prefix is found from the configuration
  • Title starting with multiple colons is invalid

v1.3.8

2024-01-21

Changed

v1.3.7

2024-01-19

Fixed

Changed

  • Double pipes in TdToken will now report an 'error' instead of a 'warning'

v1.3.6

2024-01-17

Changed

v1.3.4

2024-01-16

Fixed

v1.3.3

2024-01-15

Fixed

  • A case-sensitive parser function requires a colon after the function name
  • External links like [[//xyz]]
  • Invalid closing void HTML tag except </br>

v1.3.2

2024-01-15

Added

  • Reporting unclosed IncludeToken
  • Reporting lonely <onlyinclude>, <noinclude> and <includeonly>
  • Reporting errors such as <pre> inside PreToken

v1.3.1

2024-01-14

Fixed

  • Parsing an illegal template name, e.g., {{#if:{{<}}}}

v1.3.0

2024-01-11

Changed

  • Ingoring 'http' in tag attribute values when linting

Removed

v1.2.0

2024-01-04

Fixed

  • Allowing < and > in the fragment of an internal link

Changed

Removed

  • Pseudo selectors :read-only and :read-write

v1.1.6

2024-01-03

Fixed

v1.1.5

2023-12-19

Fixed

v1.1.4

2023-12-18

Added

Fixed

Changed

  • Inserting a child node is now forbidden

v1.1.3

2023-12-16

Fixed

Changed

v1.1.2

2023-12-13

Changed

Removed

  • HeadingToken.name property

v1.1.1

2023-12-11

Changed

v1.1.0

2023-12-11

Added

  • New properties and methods for Title objects: extension, toSubjectPage, toTalkPage, isTalkPage, toBasePage, toRootPage

Fixed

  • Wrapping the text after the last </onlyinclude> in a NoincludeToken
  • Replacing remaining spaces in Title.title property with underscores
  • AstRange now maintains its content after insertNode, deleteContents, extractContents and cloneContents methods

Changed

  • startContainer and endContainer properties of AstRange must be siblings now

Removed

  • AstRange.prototype.intersectsNode method

v1.0.3

2023-12-05

First TypeScript version