This repository was archived by the owner on Nov 20, 2025. It is now read-only.
[Snyk] Upgrade commonmark from 0.29.2 to 0.30.0 #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade commonmark from 0.29.2 to 0.30.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: commonmark
-
0.30.0 - 2021-06-20
- Update tests to 0.30 spec.txt.
- Fix commonmark/cmark#383. Our optimization for emphasis parsing
- Allow user to specify a function to escape the output (#217, newfivefour).
- Simplify
- Fix documentation for
- Fix handling of type 7 HTML blocks (#213).
- Fix link label normalization with backslash before newline (#211).
- Only match punctuation at the beginning of the string (Vladimir Pouzanov).
- Recognize '01' as start number 1 (#207).
- Use rollup
- Remove dist files from the repository. Instead we now generate them
- Simplify dingus Makefile.
- Fix an iframe loading timing issue in the dingus (icyrockcom).
-
0.29.3 - 2020-12-05
- Fix some rough edges around ES modules (Kyle E. Mitchell)
- Set module types via package.json files in subdirectories.
- Make benchmark and test use commonjs again.
- bin: remove use of ESM and use
- Import specific functions from
- Update "Basic Usage" comment in
- Remove package-lock.json (Kyle E. Mitchell).
- Fix 'make test' target so that dist is built.
- Handle piped input from stdin in windows. Use file descriptor 0
- Configure GitHub Actions to test on Node.js 14 and 15 (Kyle E. Mitchell).
- Allow EOL in processing instructions (#196).
-
0.29.2 - 2020-09-10
- Use ES modules (Iddan Aaronsohn).
- Improve and simplify reference link normalization (#168).
- Fix end source position for nested or indented fenrced code blocks.
- 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
- Run npm lint in ci.
from commonmark GitHub release noteswas flawed, leading to some corner cases where nested emphasis was
parsed incorrectly.
reThematicBreak.node.listType(TheWastl). The parser produceslowercase strings, but the README said the strings are capitalized.
They can't interrupt paragraphs (even with laziness).
This makes the punctuation use match
reUnicodeWhitespaceCharusagein
scanDelims. It's effectively a no-op, aschar_afteris expectedto only contain a single character anyways.
--bannerto include license info.with pretest and prepublish scripts.
Closes commonmark/commonmark-spec-web#15.
(#195, #201, #203):
A number of JavaScript files were rewritten as ES
Modules, but their extensions remained
.js. Thatextension 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.jsonfiles withtypeproperties to the various subdirectories. Settingtypeto"module"tells Node.js to interpret.jsfiles in that directory and below as ES Modules.
Otherwise, Node.js falls back on the
package.jsonatroot, which currently sets
typeto"commonjs".require('../').Node.js version 14, which supports ES Modules without any flag or the
esmpackage, is currently in long-term support. But a great manyfolks still run older version of Node.js that either don't support ES
Modules at all or hide that support behind a feature flag.
entitiespackage.lib/index.js.reHtmlTag: don't use case-insensitive matching (#193).The spec specifies uppercase for declarations and CDATA.
instead of '/dev/stdin'. Note that this allows piping but doesn't
handle the case where users run
bin/commonmarkand enter inputdirectly. See #198 for some relevant discussion.
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.
Improves on earlier fix to #141, which only worked for code blocks
flush with the left margin.
versions.
Commit messages
Package name: commonmark
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs