Skip to content

@pierre/diffs v1.7.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@amadeus amadeus released this 08 Nov 08:04
· 6 commits to beta-1.7 since this release

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