browser-detect
browser-detect copied to clipboard
Bump league/commonmark from 2.4.2 to 2.6.0
Bumps league/commonmark from 2.4.2 to 2.6.0.
Release notes
Sourced from league/commonmark's releases.
2.6.0
This is a security release to address potential denial of service attacks when parsing specially crafted, malicious input from untrusted sources (like user input). See https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf for more details.
Added
- Added
max_delimiters_per_lineconfig option to prevent denial of service attacks when parsing malicious input- Added
table/max_autocompleted_cellsconfig option to prevent denial of service attacks when parsing large tables- The
AttributesExtensionnow supports attributes without values (#985, #986)- The
AutolinkExtensionexposes two new configuration options to override the default behavior (#969, #987):
autolink/allowed_protocols- an array of protocols to allow autolinking forautolink/default_protocol- the default protocol to use when none is specified- Added
RegexHelper::isWhitespace()method to check if a given character is an ASCII whitespace character- Added
CacheableDelimiterProcessorInterfaceto ensure linear complexity for dynamic delimiter processing- Added
Bracketdelimiter type to optimize bracket parsingChanged
[and]are no longer added asDelimiterobjects on the stack; a newBrackettype with its own stack is used insteadUrlAutolinkParserno longer parses URLs with more than 127 subdomains- Expanded reference links can no longer exceed 100kb, or the size of the input document (whichever is greater)
- Delimiters should always provide a non-null value via
DelimiterInterface::getIndex()
- We'll attempt to infer the index based on surrounding delimiters where possible
- The
DelimiterStacknow accepts integer positions for any$stackBottomargument- Several small performance optimizations
2.5.3
Changed
- Made compatible with CommonMark spec 0.31.1, including:
- Remove
source, addsearchto list of recognized block tagsFull Changelog: https://github.com/thephpleague/commonmark/compare/2.5.2...2.5.3
2.5.2
Changed
- Boolean attributes now require an explicit
truevalue (#1040)Fixed
- Fixed regression where text could be misinterpreted as an attribute (#1040)
Full Changelog: https://github.com/thephpleague/commonmark/compare/2.5.1...2.5.2
2.5.1
Fixed
... (truncated)
Changelog
Sourced from league/commonmark's changelog.
[2.6.0] - 2024-12-07
This is a security release to address potential denial of service attacks when parsing specially crafted, malicious input from untrusted sources (like user input).
Added
- Added
max_delimiters_per_lineconfig option to prevent denial of service attacks when parsing malicious input- Added
table/max_autocompleted_cellsconfig option to prevent denial of service attacks when parsing large tables- The
AttributesExtensionnow supports attributes without values (#985, #986)- The
AutolinkExtensionexposes two new configuration options to override the default behavior (#969, #987):
autolink/allowed_protocols- an array of protocols to allow autolinking forautolink/default_protocol- the default protocol to use when none is specified- Added
RegexHelper::isWhitespace()method to check if a given character is an ASCII whitespace character- Added
CacheableDelimiterProcessorInterfaceto ensure linear complexity for dynamic delimiter processing- Added
Bracketdelimiter type to optimize bracket parsingChanged
[and]are no longer added asDelimiterobjects on the stack; a newBrackettype with its own stack is used insteadUrlAutolinkParserno longer parses URLs with more than 127 subdomains- Expanded reference links can no longer exceed 100kb, or the size of the input document (whichever is greater)
- Delimiters should always provide a non-null value via
DelimiterInterface::getIndex()
- We'll attempt to infer the index based on surrounding delimiters where possible
- The
DelimiterStacknow accepts integer positions for any$stackBottomargument- Several small performance optimizations
[2.5.3] - 2024-08-16
Changed
- Made compatible with CommonMark spec 0.31.1, including:
- Remove
source, addsearchto list of recognized block tags[2.5.2] - 2024-08-14
Changed
- Boolean attributes now require an explicit
truevalue (#1040)Fixed
- Fixed regression where text could be misinterpreted as an attribute (#1040)
[2.5.1] - 2024-07-24
Fixed
... (truncated)
Commits
d150f91Prepare to release 2.6.02f1e520Merge commit from forkd777db8Add pathological test for deeply-nested blocks92dbad9Flag this as a security release8b9d95eFix pathological test suite failing not loading extensions in CI5156796Add max_delimiters_per_line config option5ce491fOptimize repeated parsing of links without closing brace540d850Fix quadratic complexity parsing long backtick code spans with no matching cl...e1cfa8dUse recursive lookup as a last resort to avoid throwingb61bbd4Use delimiter position to optimize processing- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.