Skip to content

Commit

Permalink
Update HISTORY.md + bump version numbers to 0.10.0 for deb release
Browse files Browse the repository at this point in the history
Change-Id: I0be0c80a3f47ba3b1c2f94016bd9304de99388d4
  • Loading branch information
subbuss authored and arlolra committed Dec 5, 2018
1 parent a6058e3 commit d8a43fb
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 13 deletions.
62 changes: 62 additions & 0 deletions HISTORY.md
@@ -1,3 +1,65 @@
0.10.0 / 2018-12-05
===================
Notable wt -> html changes
* Parsoid HTML version bumped to 2.0.0
* Support for the Content Negotiation Protocol for negotiating HTML content versions
* Implement RFC T157418: Trim whitespace in wikitext headings, lists, tables
* Added support for template styles
* Expose content inside <includeonly> to editors via data-mw attribute
* Support directionality for references
* A bunch of cleanup and bug fixes in paragraph wrapping for improved compliance
with PHP parser output. Move to DOM based p-wrapping of unwrapped bare text
* Remove `html5-legacy` mode of ID generation
* Media-related:
- Use <audio> elements for rendering audio files
- Use `resource` attribute for [[Media:....]] links
- Image alt and link options can contain arbitrary wikitext which is stripped
- Support more link types in file alt/link options
- Increase the default height of mw:Audio to 32px
- Stop adding valign classes to block media
- Parse more block constructs in media captions
* A number of bug fixes and crasher fixes

Notable html -> wt changes:
* Scrub DOM to convert <p></p> sequences to NL-emitting normal forms
This now translates empty lines entered in VE to empty lines in wikitext
* Add new lines before and after lists in wikitext
* Improve templatedata spec compliance wrt leading and trailing newlines
* Avoid piped links in more cases by moving formatting outside the link
* Handle | chars in hrefs
* Handle } in table cells
* Serialize empty table cells with a single whitespace character
* Don't force paragraphs inside blockquotes to serialize on a new line
* Distinguish between inserted & deleted diff markers

Infrastructure:
* Make the Sanitizer "static" and decouple it from the parsing pipeline
* Removed < node v6 compatibility
* Migrate to jsdoc instead of jsduck for documentation
* Allow users to dynamically configure new wikis
* Addressed nsp-triggered security advisories
* Updated domino and other dependencies

Extensions
* Cleanup of the extension API to reduce exposure of Parsoid internals
* Migrated native Parsoid extensions to the updated extension API
* Native Parsoid implementation of <poem>

Performance fixes:
* Mostly minor tweaks:
- Performance improvements in the TokenTransformManager
- Add a fast path to avoid unnecessarily retokenizing the extlink href
- Test for a valid protocol before attempting to tokenize extlink content
- Ensure ref.cachedHtml isn't being regenerated needlessly
- Suppress autoInsertedEnd flags where not required

Cleanup:
* Split up large utility classes into smaller functional groups
* More native ES6 classes
* More native ES6 syntax (let, const, yield)
* A whole bunch of dead code removed
* Cleanup return types in Token Transformers

0.9.0 / 2018-03-23
==================
Notable wt -> html changes
Expand Down
2 changes: 1 addition & 1 deletion bin/parserTests.js
Expand Up @@ -23,7 +23,7 @@ var PEG = require('pegjs');
var Util = require('../lib/utils/Util.js').Util;
var ScriptUtils = require('../tools/ScriptUtils.js').ScriptUtils;
var JSUtils = require('../lib/utils/jsutils.js').JSUtils;
const ParsoidExtApi = require('../lib/config/extapi.js').versionCheck('^0.9.0');
const ParsoidExtApi = require('../lib/config/extapi.js').versionCheck('^0.10.0');

// Fetch up some of our wacky parser bits...
var MWParserEnvironment = require('../lib/config/MWParserEnvironment.js').MWParserEnvironment;
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Cite/index.js
Expand Up @@ -8,7 +8,7 @@

var domino = require('domino');

var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
var ContentUtils = ParsoidExtApi.ContentUtils;
var DOMDataUtils = ParsoidExtApi.DOMDataUtils;
var DOMUtils = ParsoidExtApi.DOMUtils;
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Gallery/index.js
Expand Up @@ -15,7 +15,7 @@

'use strict';

const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
const {
DOMDataUtils,
DOMUtils,
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Gallery/modes.js
Expand Up @@ -5,7 +5,7 @@
var coreutil = require('util');
var domino = require('domino');

var ParsoidExtApi = module.parent.parent.require('./extapi.js').versionCheck('^0.9.0');
var ParsoidExtApi = module.parent.parent.require('./extapi.js').versionCheck('^0.10.0');
var DOMUtils = ParsoidExtApi.DOMUtils;
var JSUtils = ParsoidExtApi.JSUtils;

Expand Down
2 changes: 1 addition & 1 deletion lib/ext/JSON/index.js
Expand Up @@ -8,7 +8,7 @@

'use strict';

var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
var DOMDataUtils = ParsoidExtApi.DOMDataUtils;
var DOMUtils = ParsoidExtApi.DOMUtils;
var Promise = ParsoidExtApi.Promise;
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/LST/index.js
Expand Up @@ -2,7 +2,7 @@

'use strict';

var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');

var DOMDataUtils = ParsoidExtApi.DOMDataUtils;
var Promise = ParsoidExtApi.Promise;
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Nowiki/index.js
Expand Up @@ -10,7 +10,7 @@
// functionality. See T156099
var PegTokenizer = require('../../wt2html/tokenizer.js').PegTokenizer;

var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
var ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
var DOMUtils = ParsoidExtApi.DOMUtils;
var Promise = ParsoidExtApi.Promise;
var TokenUtils = ParsoidExtApi.TokenUtils;
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Poem/index.js
Expand Up @@ -2,7 +2,7 @@

'use strict';

const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
const DOMUtils = ParsoidExtApi.DOMUtils;

const dummyDoc = DOMUtils.parseHTML('');
Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Pre/index.js
Expand Up @@ -8,7 +8,7 @@

const domino = require('domino');

const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');

const { Util, DOMDataUtils, Sanitizer, Promise } = ParsoidExtApi;

Expand Down
2 changes: 1 addition & 1 deletion lib/ext/Translate/index.js
Expand Up @@ -2,7 +2,7 @@

'use strict';

module.parent.require('./extapi.js').versionCheck('^0.9.0');
module.parent.require('./extapi.js').versionCheck('^0.10.0');

// Translate constructor
module.exports = function() {
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "parsoid",
"description": "A bidirectional runtime wikitext parser. Converts back and forth between wikitext and HTML/XML DOM with RDFa.",
"version": "0.9.0",
"version": "0.10.0",
"license": "GPL-2.0+",
"dependencies": {
"babybird": "^0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/parserTestsParserHook.js
@@ -1,6 +1,6 @@
'use strict';

const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.9.0');
const ParsoidExtApi = module.parent.require('./extapi.js').versionCheck('^0.10.0');
const { DOMDataUtils, DOMUtils, Promise } = ParsoidExtApi;

/**
Expand Down

0 comments on commit d8a43fb

Please sign in to comment.