github pierrecomputer/pierre diffs-v1.7.0-beta.2
@pierre/diffs v1.7.0-beta.2

pre-release35 minutes ago

Breaking Changes:

editor.edit() now throws until the component is ready: a file is set, a partial diff has loaded its full files, and no worker pool highlight for the input is in flight. React and CodeView wait on their own. Vanilla code awaits prepareForEditing(), which now exists on File as well as FileDiff, before attaching:

fileInstance.render({ file, containerWrapper });
if (fileInstance.isReadyToEdit()) {
  await fileInstance.prepareForEditing();
}
const dispose = editor.edit(fileInstance);

What's Changed

  • [diffs] Remove the window debug hooks from Virtualizer and CodeView by @volveezz in #1266
  • fix(diffs): hide counts for empty new files by @amadeus in #1268
  • fix(diffs): move Up on the first line to the document start and Down on the last line to its end by @lucasmeijer in #1246
  • [diffs/edit]: Improve dev ux around useTokenTransformer by @amadeus in #1273
  • fix(diffs): skip CodeView layout while its root is hidden by @lucasmeijer in #1244
  • [diffs/edit] Improve edit start with WorkerPools by @amadeus in #1274
  • [diffs] Add a labels option for localizing diff text by @unknwon in #1271

New Contributors

Full Changelog: diffs-v1.7.0-beta.1...diffs-v1.7.0-beta.2

Don't miss a new pierre release

NewReleases is sending notifications on new releases.