Skip to content

Update dependency commonmark to v0.30.0

John Jarvis requested to merge renovate/commonmark-0.x into master

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
commonmark (source) 0.29.1 -> 0.30.0 age adoption passing confidence

Release Notes

commonmark/commonmark.js

v0.30.0

Compare Source

  • Update tests to 0.30 spec.txt.
    • Fix commonmark/cmark#​383. Our optimization for emphasis parsing was flawed, leading to some corner cases where nested emphasis was parsed incorrectly.
    • Allow user to specify a function to escape the output (#​217, newfivefour).
    • Simplify reThematicBreak.
    • Fix documentation for node.listType (TheWastl). The parser produces lowercase strings, but the README said the strings are capitalized.
    • Fix handling of type 7 HTML blocks (#​213). They can't interrupt paragraphs (even with laziness).
    • Fix link label normalization with backslash before newline (#​211).
    • Only match punctuation at the beginning of the string (Vladimir Pouzanov). This makes the punctuation use match reUnicodeWhitespaceChar usage in scanDelims. It's effectively a no-op, as char_after is expected to only contain a single character anyways.
    • Recognize '01' as start number 1 (#​207).
    • Use rollup --banner to include license info.
    • Remove dist files from the repository. Instead we now generate them with pretest and prepublish scripts.
    • Simplify dingus Makefile.
    • Fix an iframe loading timing issue in the dingus (icyrockcom). Closes commonmark/commonmark-spec-web#​15.

v0.29.3

Compare Source

  • Fix some rough edges around ES modules (Kyle E. Mitchell) (#​195, #​201, #​203):

    • Set module types via package.json files in subdirectories. A number of JavaScript files were rewritten as ES Modules, but their extensions remained .js. That extension is ambiguous to newer version of the Node.js runtime, which can load both CommonJS modules and ES Modules. To fix this, we add package.json files with type properties to the various subdirectories. Setting type to "module" tells Node.js to interpret .js files in that directory and below as ES Modules. Otherwise, Node.js falls back on the package.json at root, which currently sets type to "commonjs".
    • Make benchmark and test use commonjs again.
    • bin: remove use of ESM and use require('../'). Node.js version 14, which supports ES Modules without any flag or the esm package, is currently in long-term support. But a great many folks still run older version of Node.js that either don't support ES Modules at all or hide that support behind a feature flag.
    • Import specific functions from entities package.
    • Update "Basic Usage" comment in lib/index.js.
    • Remove package-lock.json (Kyle E. Mitchell).
    • Fix 'make test' target so that dist is built.
    • reHtmlTag: don't use case-insensitive matching (#​193). The spec specifies uppercase for declarations and CDATA.
    • Handle piped input from stdin in windows. Use file descriptor 0 instead of '/dev/stdin'. Note that this allows piping but doesn't handle the case where users run bin/commonmark and enter input directly. See #​198 for some relevant discussion.
    • Configure GitHub Actions to test on Node.js 14 and 15 (Kyle E. Mitchell).
    • Allow EOL in processing instructions (#​196).

v0.29.2

Compare Source

  • Use ES modules (Iddan Aaronsohn).
    • Improve and simplify reference link normalization (#​168). We now use the built in str.toLowerCase().toUpperCase(), which @​rlidwka has shown does an accurate unicode case fold. This allows us to remove a huge lookup table and should both decrease the size of the library and speed things up.
    • Fix end source position for nested or indented fenrced code blocks. Improves on earlier fix to #​141, which only worked for code blocks flush with the left margin.
    • Upgrade to entities 2.0+.
    • Fix generation of dist files for dingus.
    • Use esm for bin/commonmark, bench, test.
    • Use rollup uglify plugin to create minified dist.
    • Move dev dependencies to proper place in package.json.
    • Use rollup instead of browserify (Iddan Aaronsohn).
    • Reformat code with prettier (Iddan Aaronsohn).
    • Replace travis CI with GitHub Actions CI.
    • Bump versions of software to benchmark against.
    • Change jgm/commonmark.js to commonmark/commonmark.js (#​126).
    • Security audit fixes.
    • Remove obsolete spec2js.js script
    • Remove test on node 9 and under. Only support actively maintained versions.
    • Run npm lint in ci.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports

Loading