Skip to content

0.4.0 - 0.4.2

Choose a tag to compare

@elbakerino elbakerino released this 03 Oct 01:04

Change log for 0.4.0-0.4.2 was only in git commits, here is a summary.

code-0.4.2

  • add codefold icon style

kit-0.1.0-alpha.1

💥 Breaking changes.

  • for v18 strictmode the unmount/remount protection and destroying isn't possible without a state, switch back to state based EditorView creation, but still mounting in useLayoutEffect to battle delays/flickers
  • 💥 moved onViewLifecycle to useCodeMirror, still available via CodeMirror props
  • add onExternalChange to CodeMirror props
  • made param containerRef optional in useCodeMirror and moved after effects

code-0.4.1

  • typing fixes

kit-0.1.0-alpha.0

💥 Breaking changes.

  • 💥 streamlined EditorView creation, switched from state based to ref+memo based with optimized useLayoutEffect rendering
    • fixes flickering
    • fixes painting delays
    • cleanup unneeded checks & code
    • easier render-flow intergration
  • 💥 new effects prop + param (CodeMirror/useCodeMirror) to apply editor effects from e.g. extensions without having the editor in the actual component
  • new useExtension hook to easily update extensions in a useCallback fashion
    • fixes unnecessary editor destroy & creation (history lost, flickering etc.)

code-0.4.0

  • mui add new embed variant to useEditorTheme
  • mui add new dense option to useEditorTheme
  • add widget keyword dense
  • optimized colors in theme + highlighting
  • now defaults to fullwidth, to be easier styleable from container component