Releases: ui-schema/react-codemirror
kit-1.0.0-alpha.3 & code-0.5.0-alpha.4
This release is published under the
nexttag 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
This release is published under the
nexttag 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
This release is published under the
nexttag 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
This release is published under the
nexttag 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,
RefObjectback toMutableRefObject
code-0.5.0-alpha.1
- fixed and stabilized esm/cjs build, added conditional
exportstopackage.jsonfor ESM support, with.cjsextension for CommonJS, separate/esmfolder for ESM version with.jsextension- even if switched to
exports, it is not strict-ESM (no"type": "module"), for compatibility with MUI5/6/7
- even if switched to
kit-1.0.0-alpha.0 & code-0.5.0-alpha.0
This release is published under the
nexttag 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
useCodeMirroreasier to reuse, now accepting an object of options and manages the editor in a stateless approach which only guarantees that theeditorRefis updated for anyuseLayoutEffect/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
effectsprop and system, instead directly modify extensions or useeditordirectly viaonViewLifecycle,onSetupor fromuseCodeMirror. - reworked
useExtensionto automatically add and reconfigure an extension, now can only be used together withuseCodeMirror, must be called directly after it CodeMirrorreplaced propclassNamesContent: string[]withclassNameContent: string- removed
useEditorClasseshelper hook, now included inCodeMirror - changed internal effects and state flow, for performance and reliability
- added
onSetupprop toCodeMirror, reactively attach event listener without extra state overhead or needing to use theuseCodeMirrorhook - added
Transaction.remoteannotation to the defaultonExternalChangehandler - added
isRemoteChangeutil to check for the remote annotation
code-0.5.0-alpha.0
- compatibility with
[email protected], 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
@ui-schema/material-code>0.4.7
Updates
- (chore) include immutable v5 in peer dependency range
code-0.4.6 & kit-0.2.0
@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-codemirrorto allow~0.2.0additionally
kit-0.2.0
- switch to
type: "module"with strict ESMexports- dual-mode with new file structure, using
.cjsfile extension in same folder as ESM.js
- dual-mode with new file structure, using
code-0.4.5 & kit-0.1.2
@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
@muiand@ui-schemaimports, only importing subpaths now
kit-0.1.2
- adds
sideEffects: false
code-0.4.4 & kit-0.1.1
@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-scrollerinuseEditorTheme - fix mui
useThemeimports - optimize
hideTitlestyle inWidgetCode, not rendering title wrapper if nothing is inside - consistent
showValidityinWidgetCode,WidgetCodeSelectable, same behaviour for title and editor
kit-0.1.1
- add generic component props to
CodeMirror
Note
Do not use @ui-schema/[email protected] and @ui-schema/[email protected] as their builds are broken.
0.4.0 - 0.4.2
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
EditorViewcreation, but still mounting inuseLayoutEffectto battle delays/flickers - 💥 moved
onViewLifecycletouseCodeMirror, still available viaCodeMirrorprops - add
onExternalChangetoCodeMirrorprops - made param
containerRefoptional inuseCodeMirrorand moved aftereffects
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
useLayoutEffectrendering- fixes flickering
- fixes painting delays
- cleanup unneeded checks & code
- easier render-flow intergration
- 💥 new
effectsprop + param (CodeMirror/useCodeMirror) to apply editor effects from e.g. extensions without having theeditorin the actual component - new
useExtensionhook to easily update extensions in auseCallbackfashion- fixes unnecessary editor destroy & creation (history lost, flickering etc.)
code-0.4.0
- mui add new
embedvariant touseEditorTheme - mui add new
denseoption touseEditorTheme - add widget keyword
dense - optimized colors in theme + highlighting
- now defaults to fullwidth, to be easier styleable from container component