A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

changelog.rst 5.9 KiB

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