Update NodeJS dependencies (major)
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@gitlab/ui | dependencies | major | ^58.4.0 -> ^59.2.0 |
mermaid | dependencies | major | ^9.4.3 -> ^10.0.2 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
gitlab-org/gitlab-ui
v59.2.0
Bug Fixes
- GlFilteredSearch: Avoid rare scroll method error (6001fb4)
- GlFilteredSearch: Improve activeTokenIdx check in isLastToken (f5114c0)
- GlFilteredSearch: Improve handling of some falsey values (8dd22f7), closes /gitlab.com/gitlab-org/gitlab/-/blob/2dcb4f37a26ffff6b2cebc6b1f55f1294b1b545d/ee/app/assets/javascripts/roadmap/mixins/filtered_search_mixin.js#L179-180
- GlFilteredSearch: Improve keyboard accessibility (0798e43)
- GlFilteredSearch: Remove conditional class (6854cb9)
Features
- buttons: tertiary button selected state (6654ebb)
59.1.1 (2023-03-31)
Bug Fixes
- Checkbox: fix touch target when there is help text (a8d2578)
v59.1.1
Bug Fixes
- Checkbox: fix touch target when there is help text (a8d2578)
v59.1.0
Features
- css: add gl-focus-bg-t-gray-a-08 class (f4664ef)
v59.0.0
Features
- Breadcrumb: Update design to match specs (cfa9122)
BREAKING CHANGES
- Breadcrumb: Update styles and remove unnecessary ones, remove separator slot, update placeholder avatar
v58.8.0
Features
- GlFormCheckbox: Make gap clickable (a4c9be3)
v58.7.0
Features
- css: Add .gl-gap-4 class (967986c)
v58.6.0
Features
- css: add 2 CSS utils (9f210bb)
58.5.1 (2023-03-27)
Bug Fixes
- css: rename gl-text-uppercase util (59cbf4e)
v58.5.1
Bug Fixes
- css: rename gl-text-uppercase util (59cbf4e)
v58.5.0
Features
- GlDisclosureDropdown: Add disabled state (8d3de9e)
mermaid-js/mermaid
v10.0.2
Release Notes
Bugfixes
- fix: dayjs import extension @sidharthv96
v10.0.1
Release Notes
Features
- Added grammar to skip comment in attribute block (#4128) @kshitijsaksena
- feat: Add support for classDiagram labels (#4086) @sidharthv96
-
💄 section width now covers all tasks (#4074) @l2fprod -
💄 section width now covers all tasks - Timeline (#4126) @sidharthv96
Bugfixes
- Fix(#4140): Async bug in mermaid.run (#4142) @sidharthv96
- fix #4157: Inject only fontFamily without replacing themeVariables (#4160) @sidharthv96
- fix: Detector order (#4124) @sidharthv96
- fix: fix exports (#4135) @Mister-Hope
- fix #4157: Inject only fontFamily without replacing themeVariables by @sidharthv96
- Elk layout for flowcharts: Incorrect placement of edges when using diamonds in subgraphs by @knsv
Documentation
- Adding app (Deepdwn) to integrations list (#4127) @Billiam
- Doc (typo): remove duplicate "be" (#4133) @Julez404
- docs(flowchart): duplicated hexagon node example by @Oliboy50
- add links to NiceGUI integration by @rodja
- Adding app (Deepdwn) to integrations list by @Billiam
Chores
- chore: dagre-d3-es@7.0.9 (#4147) @sidharthv96
- Replace
moment-mini
/moment
date library withdayjs
(#4153) @aloisklink
New Contributors
- @Oliboy50 made their first contribution in https://github.com/mermaid-js/mermaid/pull/4105
- @rodja made their first contribution in https://github.com/mermaid-js/mermaid/pull/4107
- @Julez404 made their first contribution in https://github.com/mermaid-js/mermaid/pull/4133
- @l2fprod made their first contribution in https://github.com/mermaid-js/mermaid/pull/4074
- @kshitijsaksena made their first contribution in https://github.com/mermaid-js/mermaid/pull/4128
Full Changelog: https://github.com/mermaid-js/mermaid/compare/v10.0.0...v10.0.1
v10.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);
});
mermaid.parse is async and ParseError is removed
// < v10
mermaid.parse(text, parseError);
//>= v10
await mermaid.parse(text).catch(parseError);
// or
try {
await mermaid.parse(text);
} catch (err) {
parseError(err);
}
Init deprecated and InitThrowsErrors removed
The config passed to init
was not being used eariler.
It will now be used.
The init
function is deprecated and will be removed in the next major release.
init currently works as a wrapper to initialize
and run
.
// < v10
mermaid.init(config, selector, cb);
//>= v10
mermaid.initialize(config);
mermaid.run({
querySelector: selector,
postRenderCallback: cb,
suppressErrors: true,
});
// < v10
mermaid.initThrowsErrors(config, selector, cb);
//>= v10
mermaid.initialize(config);
mermaid.run({
querySelector: selector,
postRenderCallback: cb,
suppressErrors: false,
});
// TODO: Populate changelog pre v10
- Config has a lot of changes
- globalReset resets to
defaultConfig
instead of current config. Usereset
instead.
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.