npm likec4 1.39.0
v1.39.0

latest releases: 1.39.2, 1.39.1
3 days ago

🚀 Features

  • Image alias support
    In your config

    {
      "name": "project-name",
      "imageAliases": {
        "@": "./images",
        "@root": "../../some-more-images"
      }
    }

    In your DSL

    model {
      serviceA = service {
        icon: @/service-a.png
      }
    
      serviceB = service {
        icon: @root/service-b.png
      }
    }

    Thanks to @kieronlanning, #2174, c05d300)

    📖 Documentation

  • Custom generators
    Use TypeScript/JavaScript as project config

    // likec4.config.ts
    import { defineConfig } from '@likec4/config'
    
    export default defineConfig({
      name: 'my-project',
      title: 'My Project',
      generators: {
        'hello': async ({ likec4model, ctx }) => {
          // do something
        },
      },
    })

    Use with CLI:

    likec4 gen hello

    📖 Documentation

  • mcp: use @likec4/mcp as CLI (docs) (0ba9786)

  • mcp: search for elements with metadata key (0a0eed6f)

  • config: published config schema

    {
      "$schema": "https://likec4.dev/schemas/config.json",
      "name": "project-name"
    }

🐞 Bug Fixes

  • vite-plugin: vite build hangs when using the LikeC4 vite plugin (032f059), closes #2170
  • react: Dynamic View notes are no longer displaying, closes #2162, thanks @cry999

Don't miss a new likec4 release

NewReleases is sending notifications on new releases.