Debian Codegraph @

vendor/wikimedia/parsoid/HISTORY.md

raw
1 0.20.0 / 2024-10
2 ================
3 * ContentMetadataCollector::setPageProperty() has been removed; use
4 ContentMetadataCollector::setNumericPageProperty() or
5 ContentMetadataCollector::setUnsortedPageProperty() instead.
6
7
8 0.11.0 / 2019-12-20
9 ===================
10 This is the LAST release of (the JS implementation of) Parsoid. Parsoid has been
11 ported from JS to PHP and will be more closely integrated into MediaWiki and will
12 not need its own debian package henceforth.
13
14 This release contains the entire working port of Parsoid to PHP, but we are not
15 providing any support for this setup. By the next release of MediaWiki, Parsoid
16 will be better integrated there and will be available as part of MediaWiki.
17
18 Notable changes
19 * Parsoid HTML version bumped to 2.1.0
20 * Code cleanup
21 - Use ES6 class syntax with one class export per file
22 - Removed dead code
23 - Removed most uses of .bind()
24 - Removed circular dependencies
25 - Replaced promises with async/yield in most places in the codebase
26 * Language converter
27 - Bulk of the code moved out of Parsoid into its own repo
28 - Crimean Tatar, zh language converters added
29 * Code improvements
30 - Extract a token transform interface that individual handlers implement
31 - Extract a DOMHandler interface for html2wt DOM handlers
32 * Move media info code to a post-processing batch pass to eliminate
33 imageinfo API requests during token processing
34 * Move data out of DOM nodes into a bag-on-the-side
35 * Eliminate serialize/parse of JSON data attributes when tree building
36 * Move redlink and language converter code into lib/parse.js - Parsoid's
37 entry point class
38 * Use wikipeg (our erstwhile pegjs fork) native rule parameters and get rid of
39 our homegrown stop/flag stacks and update PEG grammar
40 * Ensure protocol-relative URLs are used for media
41 * A number of bug fixes during the port of Parsoid from JS to PHP
42
43 0.10.0 / 2018-12-05
44 ===================
45 Notable wt -> html changes
46 * Parsoid HTML version bumped to 2.0.0
47 * Support for the Content Negotiation Protocol for negotiating HTML content versions
48 * Implement RFC T157418: Trim whitespace in wikitext headings, lists, tables
49 * Added support for template styles
50 * Expose content inside <includeonly> to editors via data-mw attribute
51 * Support directionality for references
52 * A bunch of cleanup and bug fixes in paragraph wrapping for improved compliance
53 with PHP parser output. Move to DOM based p-wrapping of unwrapped bare text
54 * Remove `html5-legacy` mode of ID generation
55 * Media-related:
56 - Use <audio> elements for rendering audio files
57 - Use `resource` attribute for [[Media:....]] links
58 - Image alt and link options can contain arbitrary wikitext which is stripped
59 - Support more link types in file alt/link options
60 - Increase the default height of mw:Audio to 32px
61 - Stop adding valign classes to block media
62 - Parse more block constructs in media captions
63 * A number of bug fixes and crasher fixes
64
65 Notable html -> wt changes:
66 * Scrub DOM to convert <p></p> sequences to NL-emitting normal forms
67 This now translates empty lines entered in VE to empty lines in wikitext
68 * Add new lines before and after lists in wikitext
69 * Improve templatedata spec compliance wrt leading and trailing newlines
70 * Avoid piped links in more cases by moving formatting outside the link
71 * Handle | chars in hrefs
72 * Handle } in table cells
73 * Serialize empty table cells with a single whitespace character
74 * Don't force paragraphs inside blockquotes to serialize on a new line
75 * Distinguish between inserted & deleted diff markers
76
77 Infrastructure:
78 * Make the Sanitizer "static" and decouple it from the parsing pipeline
79 * Removed < node v6 compatibility
80 * Migrate to jsdoc instead of jsduck for documentation
81 * Allow users to dynamically configure new wikis
82 * Addressed nsp-triggered security advisories
83 * Updated domino and other dependencies
84
85 Extensions
86 * Cleanup of the extension API to reduce exposure of Parsoid internals
87 * Migrated native Parsoid extensions to the updated extension API
88 * Native Parsoid implementation of <poem>
89
90 Performance fixes:
91 * Mostly minor tweaks:
92 - Performance improvements in the TokenTransformManager
93 - Add a fast path to avoid unnecessarily retokenizing the extlink href
94 - Test for a valid protocol before attempting to tokenize extlink content
95 - Ensure ref.cachedHtml isn't being regenerated needlessly
96 - Suppress autoInsertedEnd flags where not required
97
98 Cleanup:
99 * Split up large utility classes into smaller functional groups
100 * More native ES6 classes
101 * More native ES6 syntax (let, const, yield)
102 * A whole bunch of dead code removed
103 * Cleanup return types in Token Transformers
104
105 0.9.0 / 2018-03-23
106 ==================
107 Notable wt -> html changes
108 * Parsoid HTML version bumped to 1.6.1
109 * T114072: Add <section> wrappers to Parsoid output
110 * T118520: Use figure-inline instead of span for inline media
111 * Update Parsoid to generate modern HTML5 IDs w/ legacy fallback
112 * T58756: External links class= now setting free, text and autonumber
113 * T45094: Replace <span> with <sup> for references
114 * T97093: Use mw:WikiLink/Interwiki for interwiki links
115 * Permit extension tags in xmlish attribute values
116 * A number of bug fixes and crasher fixes
117
118 Notable html -> wt changes:
119 * Preserve original transclusion's parameter order
120 * T180930: Selser shouldn't reuse orig sep for autoinserted tags
121
122 Infrastructure:
123 * This release requires clients (VE, etc.) to return a 1.6.0 and
124 greater HTML version string in the header. If not, Parsoid will
125 return a HTTP 406. This can be fixed by updating VE (or relevant
126 clients) to a more recent version.
127 * T66003: Make strictSSL configurable per wiki as well
128 * Use pure compute workers for the request processing
129 * T123446: Bring back request timeouts
130 * Lots of changes to wikitext linting code including new
131 linter categories.
132
133 Extensions
134 * Match core's parsing of gallery dimensions
135 * Added <section> and <indicator> extension handling.
136
137 Performance fixes:
138 * Don't process token attributes unnecessarily
139 * T176728: Use replaceChild instead of insertBefore
140 * Performance fixes to domino, the html + dom library used in Parsoid
141
142 Dependencies:
143 * Upgrade eslint, domino, service-runner, request and many other
144 dev and non-dev dependencies
145
146 Cleanup:
147 * Get rid of the handleUnbalancedTables DOM pass
148 * The `normalize` post processor isn't needed any more
149 * More use of arrow functions, promises, async/yield, ES6 classes
150 in the codebase
151 * Switch from jsduck to jsdoc3 for documentation and use
152 new jsdoc-wmf-theme for documentation
153
154 0.8.0 / 2017-10-24
155 ==================
156 Notable wt -> html changes:
157 * T43716: Parse and serialize language converter markup
158 * T64270: Support video and audio content
159 * T39902, T149794: Markup red links, disambiguation links in Parsoid HTML
160 * T122965: Support HTML5 elements in older browsers
161 * T173384: Improve handling of tokens in parser function targets
162 * T153885: Handle templated template names
163 * T151277: Handle [[Media:Foo.jpg]] syntax correctly
164 * Generalize removal of useless p-wrappers
165 * More permissive attribute name parsing
166 + match PHP parser's attribute sanitizer
167 * Remove dependence on native parser functions
168 * Stop using usePHPPreProcessor as a proxy for an existing mw api to parse extensions
169 * Several bug fixes
170
171 Notable html -> wt changes:
172 * T135667, T138492: Use improved format specifier for TemplateData enabling templates
173 to control formatting of transclusions after VE edits
174 * T153107: Fix unhandled detection of modified link content
175 * T136653: Handle interwiki shortcuts
176 * T177784: Update reverse interwiki map to prefer language prefixes over others
177 * Cleanup in separator handling in the wikitext serializer
178 * Several bug fixes
179
180 API:
181 * Remove support for pb2html in the http api
182
183 Extensions:
184 * Cite:
185 - T159894: Add support for Cite's `responsive` parameter
186 * Gallery:
187 - Remove inline styling for vertical alignment in traditional galleries
188 - All media should scale in gallery
189
190 Dependencies:
191 * Upgrade service-runner, mediawiki-title
192 * Use uuid instead of node-uuid
193 * Upgrade several dependencies to deal with security advisories
194 * Limit core-js shimming to what we need
195
196 Infrastructure:
197 * Migrate from jshint to eslint
198
199 Notable wikitext linting changes:
200 * Move linter config properties to the linter config object
201 * Only lint pages that have wikitext contentmodel
202 * Lint multiple colon escaped links (incorrect usage)
203 * Add an API endpoint to get lint errors for wikitext
204 * Turn off ignored-table-attr output
205 * Add detection for several wikitext patterns that render differently
206 in Tidy compared to a HTML5 based parser (Parsoid, RemexHTML).
207 This is only relevant if you want to fix pages before replacing
208 Tidy or if you want to use Parsoid HTML for non-edit purposes.
209
210 Other:
211 * Add code of conduct file to the repo
212
213 0.7.1 / 2017-04-05
214 ==================
215 No changes. New release to update nodejs dependency in the deb package.
216
217 0.7.0 / 2017-04-04
218 ==================
219
220 wt -> html changes:
221 * T102209: Assign ids to H[1-6] tags that match PHP parser's assignment
222 * T150112: Munge link fragments and element ids as in the php parser
223 * T59603: T133267: Escape extlink content when containing ] anywhere
224 * T156296: Update cached wiki configs for several wikimedia wikis
225 * T50900: Improved error output for extensions, missing images
226 * T109897: Remove implicit_table_data_tag rule
227 * T98960: Accept entities in extlink href and url links
228 * T113044: Complete templatearg representation in spec
229 * T104523: Prevent infinite recursion in template expansion
230 * T104662: Allow nested ref tags only in templates
231 * Support extension tags which shadows "block level" HTML elements
232 * A bunch of cleanup and edge case fixes in the PEG tokenizer
233 * Don't accept pipe unconditionally in extlink
234 * Percent-encode modules link in the HEAD section
235 * Update CSS modules in HEAD section
236 * Remove special-case non-void semantics for SOURCE
237 * Fixup redirect-detecting regular expressions in multiple places
238 * Edge case bug fixes to title handling code
239 * Edge case bug fixes in aynsc token transformation pipeline
240 * Several fixes to the linting code to support the PHP Linter extension
241
242 html -> wt changes:
243 * T149209: Handle newlines in TD and TH cells
244 * T160207: Fix serializing multi-line indent-pre w/ sol wt syntax
245 * T133267: Escape extlink content when containing ] anywhere
246 * T152633: Fix crasher from ConstrainedText
247 * T112043: Handle anchors without hrefs
248 * Fix and cleanup domdiff annotations which fixes some edge case bugs
249
250 Extensions:
251 * T110910: Implement gallery extension natively inside Parsoid
252 * T58381, T108216: Treat NOWIKI and html PRE as extension tags
253 * Cite: T102134: Fix hrefs to render properly
254 * Cite: Escape cite ids with Sanitizer.escapeId
255 * Move section handling to the LST extension
256 * Extension API improvements for the ProofreadPage extension
257 * Normalize all extension options
258
259 Infrastructure changes:
260 * Update parser tests syncing scripts to let us sync PHP extension tests
261 from to/from Parsoid.
262 * Several fixes to parserTests scripts to improve output and processing of
263 test options, among other things.
264 * Bump domino, service-runner, minor versions of some deps,
265 and some dev deps.
266 * Switch to npm@3
267
268 API changes:
269 * In dev-api mode, add ?follow_redirects=true support to wt2html
270 API end points to get Parsoid to return a HTTP 302 response for
271 redirect pages. This lets 302-following clients to render the
272 target page.
273
274 Other fixes:
275 * T153797: ApiRequest: Clone the request options before modifying them
276 * T150213: Suppress logs for known unknown contentmodels
277 * Code cleanup and refactoring for upcoming audio/video support.
278 * Code cleanup and refactoring in template handling for upcoming support
279 for templated template names. This also fixes some edge case bugs.
280
281 0.6.1 / 2016-11-14
282 ==================
283
284 * Fix broken 0.6.0 debian package
285
286 0.6.0 / 2016-11-07
287 ==================
288
289 wt -> html changes:
290 * T147742: Trim template target after stripping comments
291 * T142617: Handle invalid titles in transclusions
292 * Handle caption-like text outside tables
293 * migrateTrailingNLs DOM pass: Code simplifications and
294 some subtle edge case bug fixes
295 * Handle HTML tags in attribute text properly
296 * A bunch of cleanup and fixes in the PEG tokenizer
297
298 html -> wt changes:
299 * T134389: Serialize content in HTML tables using HTML tags
300 * T125419: Fix selser issues serializing first table row
301 * T137406: Emit |- between thead/tbody/tfoot
302 * T139388: Ensure that edits to content nested in elements
303 with templated attributes is not lost by the
304 selective serializer.
305 * T142998: Fix crasher in DOM normalization code
306 * Normalize all lists to not mix wikitext and HTML list syntax
307 * Always emit canonical wikitext for url links
308 * Emit url-links where appropriate no matter what rel attribute says
309
310 Infrastructure changes:
311 * T96195 : Remove node 0.8 support
312 * T113322: Use the mediawiki-title library instead of
313 Parsoid-homegrown title normalization code.
314 * Remove html5 treebuilder in favour of domino's
315 * service-runner:
316 * T90668 : Replace custom server.js with service-runner
317 * T141370: Use service-runner's logger as a backend to
318 Parsoid's logger
319 * Use service-runner's metrics reporter in the http api
320 * Extensions:
321 * T48580, T133320: Allow extensions to handle specific contentmodels
322 * Let native extensions add stylesheets
323 * Lots of wikitext linter fixes / features.
324
325 API changes:
326 * T130638: Add data-mw as a separate JSON blob in the pagebundle
327 * T135596: Return client error for missing data attributes
328 * T114413: Provide HTML2HTML endpoint in Parsoid
329 * T100681: Remove deprecated v1/v2 HTTP APIs
330 * T143356: Separate data-mw API semantics
331 * Add a page/wikitext/:title route to GET wikitext for a page
332 * Updates in preparation for supporting version 2.x content
333 in the future -- should be no-op for version 1.x content
334 * Don't expose dev routes in production
335 * Cleanup http redirects
336 * Send error responses in the requested format
337
338 Performance fixes:
339 * Template wrapping: Eliminate pathological tpl-range nesting scenario
340 * computeDSR: Fix source of pathological O(n^2) behavior
341
342 Other fixes:
343 * Make the http connect timeout configurable
344 * Prevent JSON.stringify circular refs in template wrapping
345 trace/error logs
346 * Fix processing listeners in node v7.x
347
348 0.5.3 / 2016-11-01
349 ==================
350
351 * T149504: SECURITY: Fix reflected XSS
352
353 0.5.2 / 2016-07-05
354 ==================
355
356 * Fix npm package
357
358 0.5.1 / 2015-05-02
359 ==================
360
361 * Fix debian package
362
363 0.5.0 / 2015-05-02
364 ==================
365
366 * Thar be dragons