A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CHANGELOG 7.4 KiB

11年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. v0.4.2 (unreleased):
  2. - Fixed setup script not including header files in releases.
  3. - Fixed Windows binary uploads.
  4. v0.4.1 (released July 30, 2015):
  5. - The process for building Windows binaries has been fixed, and these should be
  6. distributed along with new releases. Windows users can now take advantage of
  7. C speedups without having a compiler of their own.
  8. - Added support for Python 3.5.
  9. - '<' and '>' are now disallowed in wikilink titles and template names. This
  10. includes when denoting tags, but not comments.
  11. - Fixed the behavior of preserve_spacing in Template.add() and keep_field in
  12. Template.remove() on parameters with hidden keys.
  13. - Removed _ListProxy.detach(). SmartLists now use weak references and their
  14. children are garbage-collected properly.
  15. - Fixed parser bugs involving:
  16. - templates with completely blank names;
  17. - templates with newlines and comments.
  18. - Heavy refactoring and fixes to the C tokenizer, including:
  19. - corrected a design flaw in text handling, allowing for substantial speed
  20. improvements when parsing long strings of plain text;
  21. - implemented new Python 3.3 PEP 393 Unicode APIs.
  22. - Fixed various bugs in SmartList, including one that was causing memory issues
  23. on 64-bit builds of Python 2 on Windows.
  24. - Fixed some bugs in the release scripts.
  25. v0.4 (released May 23, 2015):
  26. - The parser now falls back on pure Python mode if C extensions cannot be
  27. built. This fixes an issue that prevented some Windows users from installing
  28. the parser.
  29. - Added support for parsing wikicode tables (patches by David Winegar).
  30. - Added a script to test for memory leaks in scripts/memtest.py.
  31. - Added a script to do releases in scripts/release.sh.
  32. - skip_style_tags can now be passed to mwparserfromhell.parse() (previously,
  33. only Parser().parse() allowed it).
  34. - The 'recursive' argument to Wikicode's filter methods now accepts a third
  35. option, RECURSE_OTHERS, which recurses over all children except instances of
  36. 'forcetype' (for example, `code.filter_templates(code.RECURSE_OTHERS)`
  37. returns all un-nested templates).
  38. - The parser now understands HTML tag attributes quoted with single quotes.
  39. When setting a tag attribute's value, quotes will be added if necessary. As
  40. part of this, Attribute's 'quoted' attribute has been changed to 'quotes',
  41. and is now either a string or None.
  42. - Calling Template.remove() with a Parameter object that is not part of the
  43. template now raises ValueError instead of doing nothing.
  44. - Parameters with non-integer keys can no longer be created with
  45. 'showkey=False', nor have the value of this attribute be set to False later.
  46. - _ListProxy.destroy() has been changed to _ListProxy.detach(), and now works
  47. in a more useful way.
  48. - If something goes wrong while parsing, ParserError will now be raised.
  49. Previously, the parser would produce an unclear BadRoute exception or allow
  50. an incorrect node tree to be build.
  51. - Fixed parser bugs involving:
  52. - nested tags;
  53. - comments in template names;
  54. - tags inside of <nowiki> tags.
  55. - Added tests to ensure that parsed trees convert back to wikicode without
  56. unintentional modifications.
  57. - Added support for a NOWEB environment variable, which disables a unit test
  58. that makes a web call.
  59. - Test coverage has been improved, and some minor related bugs have been fixed.
  60. - Updated and fixed some documentation.
  61. v0.3.3 (released April 22, 2014):
  62. - Added support for Python 2.6 and 3.4.
  63. - Template.has() is now passed 'ignore_empty=False' by default instead of True.
  64. This fixes a bug when adding parameters to templates with empty fields, and
  65. is a breaking change if you rely on the default behavior.
  66. - The 'matches' argument of Wikicode's filter methods now accepts a function
  67. (taking one argument, a Node, and returning a bool) in addition to a regex.
  68. - Re-added 'flat' argument to Wikicode.get_sections(), fixed the order in which
  69. it returns sections, and made it faster.
  70. - Wikicode.matches() now accepts a tuple or list of strings/Wikicode objects
  71. instead of just a single string or Wikicode.
  72. - Given the frequency of issues with the (admittedly insufficient) tag parser,
  73. there's a temporary skip_style_tags argument to parse() that ignores '' and
  74. ''' until these issues are corrected.
  75. - Fixed a parser bug involving nested wikilinks and external links.
  76. - C code cleanup and speed improvements.
  77. v0.3.2 (released September 1, 2013):
  78. - Added support for Python 3.2 (along with current support for 3.3 and 2.7).
  79. - Renamed Template.remove()'s first argument from 'name' to 'param', which now
  80. accepts Parameter objects in addition to parameter name strings.
  81. v0.3.1 (released August 29, 2013):
  82. - Fixed a parser bug involving URLs nested inside other markup.
  83. - Fixed some typos.
  84. v0.3 (released August 24, 2013):
  85. - Added complete support for HTML Tags, including forms like <ref>foo</ref>,
  86. <ref name="bar"/>, and wiki-markup tags like bold ('''), italics (''), and
  87. lists (*, #, ; and :).
  88. - Added support for ExternalLinks (http://example.com/ and
  89. [http://example.com/ Example]).
  90. - Wikicode's filter methods are now passed 'recursive=True' by default instead
  91. of False. This is a breaking change if you rely on any filter() methods being
  92. non-recursive by default.
  93. - Added a matches() method to Wikicode for page/template name comparisons.
  94. - The 'obj' param of Wikicode.insert_before(), insert_after(), replace(), and
  95. remove() now accepts other Wikicode objects and strings representing parts of
  96. wikitext, instead of just nodes. These methods also make all possible
  97. substitutions instead of just one.
  98. - Renamed Template.has_param() to has() for consistency with Template's other
  99. methods; has_param() is now an alias.
  100. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  101. - Various bugfixes, internal changes, and cleanup.
  102. v0.2 (released June 20, 2013):
  103. - The parser now fully supports Python 3 in addition to Python 2.7.
  104. - Added a C tokenizer extension that is significantly faster than its Python
  105. equivalent. It is enabled by default (if available) and can be toggled by
  106. setting `mwparserfromhell.parser.use_c` to a boolean value.
  107. - Added a complete set of unit tests covering parsing and wikicode
  108. manipulation.
  109. - Renamed Wikicode.filter_links() to filter_wikilinks() (applies to ifilter as
  110. well).
  111. - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
  112. - Added 'before' param to Template.add(); renamed 'force_nonconformity' to
  113. 'preserve_spacing'.
  114. - Added 'include_lead' param to Wikicode.get_sections().
  115. - Removed 'flat' param from Wikicode.get_sections().
  116. - Removed 'force_no_field' param from Template.remove().
  117. - Added support for Travis CI.
  118. - Added note about Windows build issue in the README.
  119. - The tokenizer will limit itself to a realistic recursion depth to prevent
  120. errors and unreasonably long parse times.
  121. - Fixed how some nodes' attribute setters handle input.
  122. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  123. - Fixed bugs in the implementation of SmartList and StringMixIn.
  124. - Fixed some broken example code in the README; other copyedits.
  125. - Other bugfixes and code cleanup.
  126. v0.1.1 (released September 21, 2012):
  127. - Added support for Comments (<!-- foo -->) and Wikilinks ([[foo]]).
  128. - Added corresponding ifilter_links() and filter_links() methods to Wikicode.
  129. - Fixed a bug when parsing incomplete templates.
  130. - Fixed strip_code() to affect the contents of headings.
  131. - Various copyedits in documentation and comments.
  132. v0.1 (released August 23, 2012):
  133. - Initial release.