paul.copplest.one
paul.copplest.one copied to clipboard
Bump @braintree/sanitize-url and mermaid
Bumps @braintree/sanitize-url to 6.0.2 and updates ancestor dependency mermaid. These dependencies need to be updated together.
Updates @braintree/sanitize-url
from 3.1.0 to 6.0.2
Changelog
Sourced from @braintree/sanitize-url
's changelog.
6.0.2
- Fix issue where urls in the form
https://example.com

/something
were not properly sanitized6.0.1
- Fix issue where urls in the form
javascript:alert('xss');
were not properly sanitized- Fix issue where urls in the form
javasc	ript:alert('XSS');
were not properly sanitized6.0.0
Breaking Changes
- Decode HTML characters automatically that would result in an XSS vulnerability when rendering links via a server rendered HTML file
// decodes to javacript:alert('XSS') const vulnerableUrl = "&[#0000106](https://github.com/braintree/sanitize-url/issues/0000106)&[#0000097](https://github.com/braintree/sanitize-url/issues/0000097)&[#0000118](https://github.com/braintree/sanitize-url/issues/0000118)&[#0000097](https://github.com/braintree/sanitize-url/issues/0000097)&[#0000115](https://github.com/braintree/sanitize-url/issues/0000115)&[#0000099](https://github.com/braintree/sanitize-url/issues/0000099)&[#0000114](https://github.com/braintree/sanitize-url/issues/0000114)&[#0000105](https://github.com/braintree/sanitize-url/issues/0000105)&[#0000112](https://github.com/braintree/sanitize-url/issues/0000112)&[#0000116](https://github.com/braintree/sanitize-url/issues/0000116)&[#0000058](https://github.com/braintree/sanitize-url/issues/0000058)&[#0000097](https://github.com/braintree/sanitize-url/issues/0000097)&[#0000108](https://github.com/braintree/sanitize-url/issues/0000108)&[#0000101](https://github.com/braintree/sanitize-url/issues/0000101)&[#0000114](https://github.com/braintree/sanitize-url/issues/0000114)&[#0000116](https://github.com/braintree/sanitize-url/issues/0000116)&[#0000040](https://github.com/braintree/sanitize-url/issues/0000040)&[#0000039](https://github.com/braintree/sanitize-url/issues/0000039)&[#0000088](https://github.com/braintree/sanitize-url/issues/0000088)&[#0000083](https://github.com/braintree/sanitize-url/issues/0000083)&[#0000083](https://github.com/braintree/sanitize-url/issues/0000083)&[#0000039](https://github.com/braintree/sanitize-url/issues/0000039)&[#0000041](https://github.com/braintree/sanitize-url/issues/0000041)";
sanitizeUrl(vulnerableUrl); // 'about:blank'
const okUrl = "https://example.com/" + vulnerableUrl;
// since the javascript bit is in the path instead of the protocol // this is successfully sanitized sanitizeUrl(okUrl); // 'https://example.com/javascript:alert('XSS');
5.0.2
- Fix issue where certain invisible white space characters were not being sanitized (#35)
5.0.1
- Fix issue where certain safe characters were being filtered out (#31 thanks
@akirchmyer
)5.0.0
Breaking Changes
- Sanitize vbscript urls (thanks
@vicnicius
)4.1.1
- Fixup path to type declaration (closes #25)
4.1.0
- Add typescript types
... (truncated)
Commits
14a14e8
6.0.2b8eb575
chore: update changeloga39ca11
fix: remove newline entities (#46)ab8d43d
6.0.1768e954
chore: update version in changelogd4bdc89
Fix html entity tab (#45)b70161d
chore: fix CHANGELOG formattingeb4a764
chore: update dev dependencies071dbfb
chore: update dependencies34fc643
6.0.0- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by braintree, a new releaser for @braintree/sanitize-url
since your current version.
Updates mermaid
from 8.4.4 to 10.0.0
Release notes
Sourced from mermaid's releases.
v10.0.0
What's Changed
Please refer the v10 changes section in CHANGELOG.md to see detailed migration steps.
Mermaid is ESM only!
We've dropped CJS support. So, you will have to update your import scripts as follows.
<script type="module"> import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs'; mermaid.initialize({ startOnLoad: true }); </script>
You can keep using v9 by adding the
@9
in the CDN URL.- <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.js"></script> + <script src="https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.js"></script>
Breaking changes in v10
- Switch to ESM only for v10? by
@sidharthv96
#3590- Break type of mermaid.render in v10 by
@sidharthv96
#3577- Improve init function and how selector and nodes are passed by
@sidharthv96
#3394- mermaid.init is not using the config that's passed by
@sidharthv96
#3406- Configurable HTML class for initialisation by
@sidharthv96
#3055Features
- fix(api): tree shaking package.json import by
@AielloChan
in mermaid-js/mermaid#4101- splitDiagrams by
@sidharthv96
in mermaid-js/mermaid#4110- Adding the ability to use invisible edges by
@knsv
in mermaid-js/mermaid#4113Docs
- Add logo to readme by
@sidharthv96
in mermaid-js/mermaid#4076- docs: minor fix on markdown by
@Jeff-Tian
in mermaid-js/mermaid#4015- Fix typos by
@fkohrt
in mermaid-js/mermaid#4118Chores
- chore(deps): update all non-major dependencies (minor) by
@renovate
in mermaid-js/mermaid#4044- chore(deps): update dependency
@types/uuid
to v9 by@renovate
in mermaid-js/mermaid#4067- build(lint:fix): cache eslint in pnpm run lint:fix by
@aloisklink
in mermaid-js/mermaid#4073- chore(deps): update dependency rimraf to v4 by
@renovate
in mermaid-js/mermaid#4070- chore(deps): update dependency jsdom to v21 by
@renovate
in mermaid-js/mermaid#4069- chore(deps): update timonvs/pr-labeler-action action to v4 by
@renovate
in mermaid-js/mermaid#4072
... (truncated)
Changelog
Sourced from mermaid's changelog.
10.0.0
Mermaid is ESM only!
We've dropped CJS support. So, you will have to update your import scripts as follows.
<script type="module"> import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs'; mermaid.initialize({ startOnLoad: true }); </script>
You can keep using v9 by adding the
@9
in the CDN URL.- <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.js"></script> + <script src="https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.js"></script>
mermaid.render is async and doesn't accept callbacks
// < v10 mermaid.render('id', 'graph TD;\nA-->B', (svg, bindFunctions) => { element.innerHTML = svg; if (bindFunctions) { bindFunctions(element); } });
// Shorter syntax if (bindFunctions) { bindFunctions(element); } // can be replaced with the
?.
shorthand bindFunctions?.(element);// >= v10 with async/await const { svg, bindFunctions } = await mermaid.render('id', 'graph TD;\nA-->B'); element.innerHTML = svg; bindFunctions?.(element);
// >= v10 with promise.then mermaid.render('id', 'graph TD;A-->B').then(({ svg, bindFunctions }) => { element.innerHTML = svg; bindFunctions?.(element); });
... (truncated)
Commits
555d4f2
Fix spellings75633ba
Merge pull request #4118 from fkohrt/patch-1ec5fa31
Wrap option working in test casebfb8a75
Fix typos14c15b2
Minor cleanup8743e9e
Removed the deprecated use of mindmap in Demo22b18a4
Merge pull request #4113 from mermaid-js/3192_invisible_edges786023f
Merge pull request #4110 from mermaid-js/sidv/splitDiagrams68cdc75
Minor cleanupeb04d80
Update docs- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by p_brolin47, a new releaser for mermaid since your current version.
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 rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.