Repository navigation
chore(deps): update dependency likec4 to v1.61.0 - #162
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 contains the following updates:
1.60.0→1.61.0Release Notes
likec4/likec4 (likec4)
v1.61.0Compare Source
Patch Changes
#3522
05880a4Thanks @davydkov! - Experimental app config: keep the options of the CLI inlikec4.app.config.ts(withdefineAppConfigfromlikec4/config) instead of repeating flags.likec4 start,build,preview,export png/jpg,gen reactandgen webcomponentread it; flags still win over the file.New flags:
--app-config <file>and--no-app-config,--customization <file>for UI customization, and--themeforlikec4 start.In the Vite plugin,
title,theme,useHashHistoryandwebcomponentPrefixare now top-level options;appConfigis deprecated.#3519
ac998d8Thanks @SwastikTripathi! - Accept.c4files saved with a UTF-8 byte order mark (BOM). Such files, which some Windows editors write by default, failed to parse withunexpected characterat offset 0.cfa6975Thanks @davydkov! - Element details put the description first: technology, links and metadata move to a sidebar that can be resized or hidden (the layout is remembered), and element kind and tags move to the footer of the card. The card remembers its size after you resize it and stays inside the window when dragged; double-click its title or the resize handle to reset its size and position.The card header shows the element id; hover a part of it to highlight the path to that parent. When an element has a summary that differs from its description, the summary is collapsed above the description and expands on click.
Metadata shows every value at once. Click a key or a value to find other elements with the same metadata. Search supports
meta:keyandmeta:key=valuequeries.The style preset adds a
fieldLabeltext style for small all-caps field labels.#3458
6361dbcThanks @edeak-jsq! - Element details, relationship details, and the relationship browser stay available on compare views, including elements a diff adds or removes. The details card shows the diff status.#3496
615a6d1Thanks @davydkov! - TypeScript and JavaScript project configs (likec4.config.ts,.mts,.cts,.mjs,.cjs,.js) are no longer experimental. They are now loaded with jiti instead of esbuild: loading no longer writes temporary*.bundled_*.mjsfiles next to your config, the VSCode extension loads configs faster and is smaller, andesbuildis no longer installed withlikec4,@likec4/lspand@likec4/mcp. If you use@likec4/configor@likec4/language-serverdirectly, installjitiinstead ofbundle-requireandesbuildto load non-JSON configs.Fixed: changes to a project config (for example, title or styles) were not applied to the model until the project files were edited.
#3490
dcf8fefThanks @SwastikTripathi! - The files listed instyles.customCssare now read and their CSS is applied to diagrams. Before, the option was validated but had no effect.#3522
f4f7055Thanks @davydkov! - Experimental UI slot customization: override or wrap registered shell components (LikeC4Diagram,ElementShape, logos, …) withCustomizationProvideranddefineCustomComponentsfrom@likec4/diagram/custom(also available vialikec4/react).#3495
2f29031Thanks @davydkov! -diagrams()is deprecated, uselayoutedModel()instead. Manual layouts are applied by the views of the layouted model:model.view(id).$layoutedreturns the view with manual layout applied,$viewreturns the latest auto layout.The
likec4/fetchLayoutedModelLSP request now returns the same data aslayoutedModel(): views are auto-layouted and manual layouts are inmanualLayouts. UseLikeC4Model.create(model).view(id).$layoutedto get a view with manual layout applied.#3503
be65d6cThanks @davydkov! - Comparing the manual layout with the latest auto layout is now a dedicated diagram mode. Closing the comparison, navigating to another view or printing always returns to the manual layout. This also fixes the VS Code preview, which kept showing the next view in auto layout after you navigated away while comparing. The comparison is no longer restored after a page reload.DiagramApigetsstartCompare()andendCompare(), andtoggleFeature()now accepts only'ReadOnly'. ReplacetoggleFeature('CompareWithLatest')with these methods.#3479
5918048Thanks @parse! - Export the syntax tree types asast(type-only) fromlikec4and@likec4/language-server, so tools built on the language services can type the nodes they read, for exampleimport type { ast } from 'likec4'andast.Relation.cfa6975Thanks @davydkov! - Escape closes the search opened on top of element details, instead of closing the details card. Arrow keys move the caret in the search input while an element is selected.#3492
fa426c4Thanks @davydkov! - Links to elements and views in Markdown ([[cloud.api]],[[view:index]]) show the element or view title (or your label) in PlantUML, Draw.io and Markdown exports and in MCP tool results, instead of the raw[[…]]. Broken links show their target. The LikeC4 DSL export keeps the links as written.In the model API,
description,summaryandnotesresolve links to titles in.textand.html(.mdstays as written), andLikeC4Model.resolveMarkdownRefandresolveMarkdownRefsfrom@likec4/core/utilsresolve links for your own outputs.#3494
5d6ba6bThanks @davydkov! - Relationship labels are measured with the diagram font (IBM Plex Sans) during layout, so the space reserved for a label matches the rendered label exactly and labels no longer overlap or leave extra gaps. Long labels wrap by width into balanced lines instead of by character count.In the relationships browser and relationship details, labels are laid out together with elements: they no longer overlap each other, and every relationship goes through its label.
Elements are measured the same way: an element keeps the width of its size and grows in height only when its title, technology and description do not fit. Technology is always shown on a single line.
The style preset exports
EdgeLabelMetrics,ElementNodeMetricsandDefaultFontFamilyfrom@likec4/style-preset/defaults, the metrics used by both the label styles and the layouts.#3366
ca1ba7bThanks @edeak-jsq! - Model diffs, see discussion #1192: newdiffblock, a named change set of the model (removeelements and relationships,addmodel elements,extendexisting elements). The model stays as is: diffs are validated against it, and views can reference elements that a diff adds.#3366
c313fb0Thanks @edeak-jsq! - Model diffs: apply, discard and safe delete, see discussion #1192:addblocks are merged into the element definitions of the model files. Code actions in the editor,likec4 diff list, andlikec4 diff apply|discard [--dry-run].--accept-overlaps). Other diffs are never edited; the diffs an edit breaks are reported.likec4 safe-delete [--dry-run], and the MCP toolsremoval-impactandlist-diffs.#3366
250bd2cThanks @edeak-jsq! - Model diffs in the UI, see discussion #1192:likec4 startand static builds (likec4 build). Vite plugin users get them from thelikec4:diffsvirtual module.#3467
65d60b8Thanks @SwastikTripathi! - Navigation thumbnails of dynamic views withvariant sequencenow show the sequence layout instead of a flow layout fitted into the wrong bounds.#3510
9df351eThanks @davydkov! - Single-project site URLs stay unchanged (no/project/in the address bar).On multi-project sites,
/view,/embed, and/exportwithout/project/:idno longer open the first project (they are not found). The multi-project embed share link is/project/:id/embed/....#3504
3cce820Thanks @davydkov! - Smaller bundles: the unused brotli decoder (~490KB) is no longer bundled with the text measurement.#3440
7ad172aThanks @AndersHogqvist! - Update the container image to Debian 13. Fixes #3426#3512
423b253Thanks @SwastikTripathi! -likec4 validatenow checks the layout of every project in a multi-project workspace, instead of failing with "Specify exact project". Layout drifts point at the view's file inside its project folder.#3493
0da542eThanks @davydkov! -likec4 validateprints warnings and accepts--max-warnings <n>to fail when there are more thannwarnings, so CI can fail on any warning with--max-warnings 0. Without the flag, warnings do not change the result or the exit code. JSON output addswarnings,maxWarnings, andtotalWarnings/filteredWarningsstats;--filelimits warnings the same way as errors.LikeC4addsgetWarnings(), which returns validation warnings in the same shape asgetErrors().#3522
02471ffThanks @davydkov! - Virtual moduleslikec4:react,likec4:single-projectandlikec4:modelexportisLikeC4ViewId(value), a type guard that checks whether a value is a view id of the project.#3522
a2fef32Thanks @davydkov! - Virtual modulelikec4:reactalso exportsIconRenderer,$likec4modeland$likec4data. Project icons are loaded on demand, so each project's icons are in a separate chunk.#3522
2858b02Thanks @davydkov! - Experimentalcustomizationoption in the LikeC4 Vite plugin: path to a file that default-exportsdefineCustomComponents(...)fromlikec4/react. Its UI overrides are applied to the LikeC4 application and to the components fromlikec4:react.Updated dependencies [
dcf8fef,129495d,aaa53f4,3928222,c5eaa85,fa426c4,fa426c4,3a4bb8b,b7ebce3,ca1ba7b,c313fb0,9e106b8,d1f5178]:Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.