Skip to content

v2.0.0

Choose a tag to compare

@curran curran released this 06 Apr 14:01
· 24 commits to main since this release

What's Changed

Both of these are breaking changes:

  • Adopt viz-types FileCollection data structure by @curran in #9
  • Rename format function from serializeMarkdownFiles to formatMarkdownFiles by @curran in #11

Vibe coding prompt for automatic migration:

We need to upgrade to the latest dependencies, which have breaking changes: 1.) `llm-code-format` has renamed `serializeMarkdownFiles` to `formatMarkdownFil
es`. 2.) With both of those functions, they don't represent files as arrays anymore, but rather as objects: ```// FileCollection 
// * A simple collection of files. 
// * Keys are file names. 
// * Values are file contents. 
// * This is used for scenarios where we need to 
//   work with files in a simple way, without 
//   the complexity of a full VizFile structure. 
export type FileCollection = Record<string, string>; 
```. You can `import { FileCollection } from "@vizhub/viz-types";` to get the correct type. Please update all files as needed to accommodate these breaking 
changes in `llm-code-format`. 

Full Changelog: v1.0.2...v2.0.0