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

changelog.rst 6.1 KiB

11年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Changelog
  2. =========
  3. v0.4
  4. ----
  5. Unreleased
  6. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3.3...develop>`__):
  7. - Added a script to test for memory leaks in :file:`scripts/memtest.py`.
  8. - Added a script to do releases in :file:`scripts/release.sh`.
  9. v0.3.3
  10. ------
  11. `Released April 22, 2014 <https://github.com/earwig/mwparserfromhell/tree/v0.3.3>`_
  12. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3.2...v0.3.3>`__):
  13. - Added support for Python 2.6 and 3.4.
  14. - :py:meth:`.Template.has` is now passed *ignore_empty=False* by default
  15. instead of *True*. This fixes a bug when adding parameters to templates with
  16. empty fields, **and is a breaking change if you rely on the default
  17. behavior.**
  18. - The *matches* argument of :py:class:`Wikicode's <.Wikicode>`
  19. :py:meth:`.filter` methods now accepts a function (taking one argument, a
  20. :py:class:`.Node`, and returning a bool) in addition to a regex.
  21. - Re-added *flat* argument to :py:meth:`.Wikicode.get_sections`, fixed the
  22. order in which it returns sections, and made it faster.
  23. - :py:meth:`.Wikicode.matches` now accepts a tuple or list of
  24. strings/:py:class:`.Wikicode` objects instead of just a single string or
  25. :py:class:`.Wikicode`.
  26. - Given the frequency of issues with the (admittedly insufficient) tag parser,
  27. there's a temporary *skip_style_tags* argument to
  28. :py:meth:`~.Parser.parse` that ignores ``''`` and ``'''`` until these issues
  29. are corrected.
  30. - Fixed a parser bug involving nested wikilinks and external links.
  31. - C code cleanup and speed improvements.
  32. v0.3.2
  33. ------
  34. `Released September 1, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.3.2>`_
  35. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3.1...v0.3.2>`__):
  36. - Added support for Python 3.2 (along with current support for 3.3 and 2.7).
  37. - Renamed :py:meth:`.Template.remove`\ 's first argument from *name* to
  38. *param*, which now accepts :py:class:`.Parameter` objects in addition to
  39. parameter name strings.
  40. v0.3.1
  41. ------
  42. `Released August 29, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.3.1>`_
  43. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3...v0.3.1>`__):
  44. - Fixed a parser bug involving URLs nested inside other markup.
  45. - Fixed some typos.
  46. v0.3
  47. ----
  48. `Released August 24, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.3>`_
  49. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.2...v0.3>`__):
  50. - Added complete support for HTML :py:class:`Tags <.Tag>`, including forms like
  51. ``<ref>foo</ref>``, ``<ref name="bar"/>``, and wiki-markup tags like bold
  52. (``'''``), italics (``''``), and lists (``*``, ``#``, ``;`` and ``:``).
  53. - Added support for :py:class:`.ExternalLink`\ s (``http://example.com/`` and
  54. ``[http://example.com/ Example]``).
  55. - :py:class:`Wikicode's <.Wikicode>` :py:meth:`.filter` methods are now passed
  56. *recursive=True* by default instead of *False*. **This is a breaking change
  57. if you rely on any filter() methods being non-recursive by default.**
  58. - Added a :py:meth:`.matches` method to :py:class:`~.Wikicode` for
  59. page/template name comparisons.
  60. - The *obj* param of :py:meth:`Wikicode.insert_before() <.insert_before>`,
  61. :py:meth:`~.insert_after`, :py:meth:`~.Wikicode.replace`, and
  62. :py:meth:`~.Wikicode.remove` now accepts :py:class:`~.Wikicode` objects and
  63. strings representing parts of wikitext, instead of just nodes. These methods
  64. also make all possible substitutions instead of just one.
  65. - Renamed :py:meth:`Template.has_param() <.has_param>` to
  66. :py:meth:`~.Template.has` for consistency with :py:class:`~.Template`\ 's
  67. other methods; :py:meth:`~.has_param` is now an alias.
  68. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  69. - Various bugfixes, internal changes, and cleanup.
  70. v0.2
  71. ----
  72. `Released June 20, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.2>`_
  73. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.1.1...v0.2>`__):
  74. - The parser now fully supports Python 3 in addition to Python 2.7.
  75. - Added a C tokenizer extension that is significantly faster than its Python
  76. equivalent. It is enabled by default (if available) and can be toggled by
  77. setting :py:attr:`mwparserfromhell.parser.use_c` to a boolean value.
  78. - Added a complete set of unit tests covering parsing and wikicode
  79. manipulation.
  80. - Renamed :py:meth:`.filter_links` to :py:meth:`.filter_wikilinks` (applies to
  81. :py:meth:`.ifilter` as well).
  82. - Added filter methods for :py:class:`Arguments <.Argument>`,
  83. :py:class:`Comments <.Comment>`, :py:class:`Headings <.Heading>`, and
  84. :py:class:`HTMLEntities <.HTMLEntity>`.
  85. - Added *before* param to :py:meth:`Template.add() <.Template.add>`; renamed
  86. *force_nonconformity* to *preserve_spacing*.
  87. - Added *include_lead* param to :py:meth:`Wikicode.get_sections()
  88. <.get_sections>`.
  89. - Removed *flat* param from :py:meth:`.get_sections`.
  90. - Removed *force_no_field* param from :py:meth:`Template.remove()
  91. <.Template.remove>`.
  92. - Added support for Travis CI.
  93. - Added note about Windows build issue in the README.
  94. - The tokenizer will limit itself to a realistic recursion depth to prevent
  95. errors and unreasonably long parse times.
  96. - Fixed how some nodes' attribute setters handle input.
  97. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  98. - Fixed bugs in the implementation of :py:class:`.SmartList` and
  99. :py:class:`.StringMixIn`.
  100. - Fixed some broken example code in the README; other copyedits.
  101. - Other bugfixes and code cleanup.
  102. v0.1.1
  103. ------
  104. `Released September 21, 2012 <https://github.com/earwig/mwparserfromhell/tree/v0.1.1>`_
  105. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.1...v0.1.1>`__):
  106. - Added support for :py:class:`Comments <.Comment>` (``<!-- foo -->``) and
  107. :py:class:`Wikilinks <.Wikilink>` (``[[foo]]``).
  108. - Added corresponding :py:meth:`.ifilter_links` and :py:meth:`.filter_links`
  109. methods to :py:class:`.Wikicode`.
  110. - Fixed a bug when parsing incomplete templates.
  111. - Fixed :py:meth:`.strip_code` to affect the contents of headings.
  112. - Various copyedits in documentation and comments.
  113. v0.1
  114. ----
  115. `Released August 23, 2012 <https://github.com/earwig/mwparserfromhell/tree/v0.1>`_:
  116. - Initial release.