Skip to content

Releases: ui-schema/react-codemirror

kit-1.0.0-alpha.3 & code-0.5.0-alpha.4

05 Aug 23:18
Compare
Choose a tag to compare
Pre-release

This release is published under the next tag and won't be installed automatically. To use it, specify the version when installing or updating.

  • @ui-schema/kit-codemirror > 1.0.0-alpha.3
  • @ui-schema/material-code > 0.5.0-alpha.4

Consistent readme.

kit-1.0.0-alpha.2 & code-0.5.0-alpha.3

22 Jul 08:26
Compare
Choose a tag to compare
Pre-release

This release is published under the next tag and won't be installed automatically. To use it, specify the version when installing or updating.

  • @ui-schema/kit-codemirror > 1.0.0-alpha.2
  • @ui-schema/material-code > 0.5.0-alpha.3

Fixes for CJS compatibilty/non-strict ESM.

code-0.5.0-alpha.2

16 Jul 23:49
Compare
Choose a tag to compare
code-0.5.0-alpha.2 Pre-release
Pre-release

This release is published under the next tag and won't be installed automatically. To use it, specify the version when installing or updating.

  • @ui-schema/material-code > 0.5.0-alpha.2

Migration to 0.5.0-alpha.0 of UI-Schema core and ds-material.

No API changes for this package itself.

kit-1.0.0-alpha.1 & code-0.5.0-alpha.1

29 Jun 20:15
Compare
Choose a tag to compare
Pre-release

This release is published under the next tag and won't be installed automatically. To use it, specify the version when installing or updating.

  • @ui-schema/kit-codemirror > 1.0.0-alpha.1
  • @ui-schema/material-code > 0.5.0-alpha.1

kit-1.0.0-alpha.1

  • adds support to useExtension, for using an extension or extension array directly, without a setup function
  • fixed react typing compatibility, RefObject back to MutableRefObject

code-0.5.0-alpha.1

  • fixed and stabilized esm/cjs build, added conditional exports to package.json for ESM support, with .cjs extension for CommonJS, separate /esm folder for ESM version with .js extension
    • even if switched to exports, it is not strict-ESM (no "type": "module"), for compatibility with MUI5/6/7

kit-1.0.0-alpha.0 & code-0.5.0-alpha.0

28 Jun 22:47
Compare
Choose a tag to compare
Pre-release

This release is published under the next tag and won't be installed automatically. To use it, specify the version when installing or updating.

  • @ui-schema/kit-codemirror > 1.0.0-alpha.0
  • @ui-schema/material-code > 0.5.0-alpha.0

kit-1.0.0-alpha.0

Rewritten internals, now stateless with impoved performance and reliability. New extension hook. No longer destroys editor when reconfiguring.

Check the demo folder or the base CodeMirror component for reference on how it now works.

Documentation was moved in this repository under docs.

  • made useCodeMirror easier to reuse, now accepting an object of options and manages the editor in a stateless approach which only guarantees that the editorRef is updated for any useLayoutEffect/useEffect` which is defined after the hook was called. it now manages extensions in a single compartment, keeping the editors state when extensions are reconfigured
  • removed effects prop and system, instead directly modify extensions or use editor directly via onViewLifecycle, onSetup or from useCodeMirror.
  • reworked useExtension to automatically add and reconfigure an extension, now can only be used together with useCodeMirror, must be called directly after it
  • CodeMirror replaced prop classNamesContent: string[] with classNameContent: string
  • removed useEditorClasses helper hook, now included in CodeMirror
  • changed internal effects and state flow, for performance and reliability
  • added onSetup prop to CodeMirror, reactively attach event listener without extra state overhead or needing to use the useCodeMirror hook
  • added Transaction.remote annotation to the default onExternalChange handler
  • added isRemoteChange util to check for the remote annotation

code-0.5.0-alpha.0

  • compatibility with kit-codemirror@1.0.0-alpha.0, new min. version
  • additional react19 compatibility
  • additional mui v6/7 compatibility

Note that the @ui-schema core and ds-material packages do not yet support the new dependency ranges, to use it you must use npm install with either --force or --legacy-peer-deps.

code-0.4.7

03 Dec 21:07
Compare
Choose a tag to compare
  • @ui-schema/material-code > 0.4.7

Updates

  • (chore) include immutable v5 in peer dependency range

code-0.4.6 & kit-0.2.0

01 Nov 17:17
Compare
Choose a tag to compare
  • @ui-schema/material-code > 0.4.6
  • @ui-schema/kit-codemirror > 0.2.0

No breaking changes.

code-0.4.6

  • bump peer dependency kit-codemirror to allow ~0.2.0 additionally

kit-0.2.0

  • switch to type: "module" with strict ESM exports
    • dual-mode with new file structure, using .cjs file extension in same folder as ESM .js

code-0.4.5 & kit-0.1.2

01 Nov 14:52
Compare
Choose a tag to compare
  • @ui-schema/material-code > 0.4.5
  • @ui-schema/kit-codemirror > 0.1.2

No breaking changes.

code-0.4.5

  • adds sideEffects: false
  • improve some @mui and @ui-schema imports, only importing subpaths now

kit-0.1.2

  • adds sideEffects: false

code-0.4.4 & kit-0.1.1

03 Oct 01:06
Compare
Choose a tag to compare
  • @ui-schema/material-code > 0.4.4
  • @ui-schema/kit-codemirror > 0.1.1

No breaking changes.

code-0.4.4

  • expand editor and highlight style config in useEditorTheme, useHighlightStyle
  • support optional style overrides for .cm-editor, .cm-content, .cm-scroller in useEditorTheme
  • fix mui useTheme imports
  • optimize hideTitle style in WidgetCode, not rendering title wrapper if nothing is inside
  • consistent showValidity in WidgetCode, WidgetCodeSelectable, same behaviour for title and editor

kit-0.1.1

  • add generic component props to CodeMirror

Note

Do not use @ui-schema/kit@0.1.0 and @ui-schema/material-code@0.4.3 as their builds are broken.

0.4.0 - 0.4.2

03 Oct 01:04
Compare
Choose a tag to compare

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