Skip to content

Commit 3adb6c4

Browse files
committed
Add a CHANGELOG.md
1 parent ee9890f commit 3adb6c4

File tree

1 file changed

+300
-0
lines changed

1 file changed

+300
-0
lines changed

CHANGELOG.md

Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
## 5.11.0
2+
3+
* New modes: [JSX](http://codemirror.net/mode/jsx/index.html), [literate Haskell](http://codemirror.net/mode/haskell-literate/index.html)
4+
* The editor now forwards more [DOM events](http://codemirror.net/doc/manual.html#event_dom): `cut`, `copy`, `paste`, and `touchstart`. It will also forward `mousedown` for drag events
5+
* Fixes a bug where bookmarks next to collapsed spans were not rendered
6+
* The [Swift](http://codemirror.net/mode/swift/index.html) mode now supports auto-indentation
7+
* Frontmatters in the [YAML frontmatter](http://codemirror.net/mode/yaml-frontmatter/index.html) mode are now optional as intended
8+
9+
## 5.10.0
10+
11+
* Modify the way [atomic ranges](http://codemirror.net/doc/manual.html#mark_atomic) are skipped by selection to try and make it less surprising.
12+
* The [Swift mode](http://codemirror.net/mode/swift/index.html) was rewritten.
13+
* New addon: [jump-to-line](http://codemirror.net/doc/manual.html#addon_jump-to-line).
14+
* New method: [`isReadOnly`](http://codemirror.net/doc/manual.html#isReadOnly).
15+
* The [show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint) now defaults to picking completions on single click.
16+
* The object passed to [`"beforeSelectionChange"`](http://codemirror.net/doc/manual.html#event_beforeSelectionChange) events now has an `origin` property.
17+
* New mode: [Crystal](http://codemirror.net/mode/crystal/index.html).
18+
19+
## 5.9.0
20+
21+
* Improve the way overlay (OS X-style) scrollbars are handled
22+
* Make [annotatescrollbar](http://codemirror.net/doc/manual.html#addon_annotatescrollbar) and scrollpastend addons work properly together
23+
* Make [show-hint](http://codemirror.net/doc/manual.html#addon_show-hint) addon select options on single click by default, move selection to hovered item
24+
* Properly fold comments that include block-comment-start markers
25+
* Many small language mode fixes
26+
27+
## 5.8.0
28+
29+
* Fixes an infinite loop in the [hardwrap addon](http://codemirror.net/doc/manual.html#addon_hardwrap)
30+
* New modes: [NSIS](http://codemirror.net/mode/nsis/index.html), [Ceylon](http://codemirror.net/mode/clike/index.html)
31+
* The Kotlin mode is now a [clike](http://codemirror.net/mode/clike/index.html) dialect, rather than a stand-alone mode
32+
* New option: [`allowDropFileTypes`](http://codemirror.net/doc/manual.html#option_allowDropFileTypes). Binary files can no longer be dropped into CodeMirror
33+
* New themes: [bespin](http://codemirror.net/demo/theme.html#bespin), [hopscotch](http://codemirror.net/demo/theme.html#hopscotch), [isotope](http://codemirror.net/demo/theme.html#isotope), [railscasts](http://codemirror.net/demo/theme.html#railscasts)
34+
35+
## 5.7.0
36+
37+
* New modes: [Vue](http://codemirror.net/mode/vue/index.html), [Oz](http://codemirror.net/mode/oz/index.html), [MscGen](http://codemirror.net/mode/mscgen/index.html) (and dialects), [Closure Stylesheets](http://codemirror.net/mode/css/gss.html)
38+
* Implement [CommonMark](http://commonmark.org)-style flexible list indent and cross-line code spans in [Markdown](http://codemirror.net/mode/markdown/index.html) mode
39+
* Add a replace-all button to the [search addon](http://codemirror.net/doc/manual.html#addon_search), and make the persistent search dialog transparent when it obscures the match
40+
* Handle `acync`/`await` and ocal and binary numbers in [JavaScript mode](http://codemirror.net/mode/javascript/index.html)
41+
* Fix various issues with the [Haxe mode](http://codemirror.net/mode/haxe/index.html)
42+
* Make the [closebrackets addon](http://codemirror.net/doc/manual.html#addon_closebrackets) select only the wrapped text when wrapping selection in brackets
43+
* Tokenize properties as properties in the [CoffeeScript mode](http://codemirror.net/mode/coffeescript/index.html)
44+
* The [placeholder addon](http://codemirror.net/doc/manual.html#addon_placeholder) now accepts a DOM node as well as a string placeholder
45+
46+
## 5.6.0
47+
48+
* Fix bug where you could paste into a `readOnly` editor
49+
* Show a cursor at the drop location when dragging over the editor
50+
* The [Rust mode](http://codemirror.net/mode/rust/index.html) was
51+
rewritten to handle modern Rust
52+
* The editor and theme CSS was cleaned up. Some selectors are now
53+
less specific than before
54+
* New theme: [abcdef](http://codemirror.net/demo/theme.html#abcdef)
55+
* Lines longer than [`maxHighlightLength`](http://codemirror.net/doc/manual.html#option_maxHighlightLength)
56+
are now less likely to mess up indentation
57+
* New addons: [`autorefresh`](http://codemirror.net/doc/manual.html#addon_autorefresh)
58+
for refreshing an editor the first time it becomes visible, and `html-lint` for using [HTMLHint](http://htmlhint.com/)
59+
* The [`search`](http://codemirror.net/doc/manual.html#addon_search)
60+
addon now recognizes `\r` and `\n` in pattern and replacement input
61+
62+
## v2.0
63+
64+
CodeMirror 2 is a complete rewrite that's faster, smaller, simpler to use, and less dependent on browser quirks. See [this](http://codemirror.net/doc/internals.html) and [this](http://groups.google.com/group/codemirror/browse_thread/thread/5a8e894024a9f580) for more information.
65+
66+
## v2.01
67+
68+
* Add a [Smalltalk mode](http://codemirror.net/mode/smalltalk/index.html).
69+
* Add a [reStructuredText mode](http://codemirror.net/mode/rst/index.html).
70+
* Add a [Python mode](http://codemirror.net/mode/python/index.html).
71+
* Add a [PL/SQL mode](http://codemirror.net/mode/plsql/index.html).
72+
* `coordsChar` now works
73+
* Fix a problem where `onCursorActivity` interfered with `onChange`.
74+
* Fix a number of scrolling and mouse-click-position glitches.
75+
* Pass information about the changed lines to `onChange`.
76+
* Support cmd-up/down on OS X.
77+
* Add triple-click line selection.
78+
* Don't handle shift when changing the selection through the API.
79+
* Support `"nocursor"` mode for `readOnly` option.
80+
* Add an `onHighlightComplete` option.
81+
* Fix the context menu for Firefox.
82+
83+
## v2.02
84+
85+
* Add a [Lua mode](http://codemirror.net/mode/lua/index.html).
86+
* Fix reverse-searching for a regexp.
87+
* Empty lines can no longer break highlighting.
88+
* Rework scrolling model (the outer wrapper no longer does the scrolling).
89+
* Solve horizontal jittering on long lines.
90+
* Add [runmode.js](http://codemirror.net/demo/runmode.html).
91+
* Immediately re-highlight text when typing.
92+
* Fix problem with 'sticking' horizontal scrollbar.
93+
94+
## v2.1
95+
96+
Add a [theme](http://codemirror.net/doc/manual.html#option_theme) system ([demo](http://codemirror.net/demo/theme.html)). Note that this is not backwards-compatible—you'll have to update your styles and modes!
97+
98+
## v2.11
99+
100+
* Add a [Scheme mode](http://codemirror.net/mode/scheme/index.html).
101+
* Add a `replace` method to search cursors, for cursor-preserving replacements.
102+
* Make the [C-like mode](http://codemirror.net/mode/clike/index.html) mode more customizable.
103+
* Update XML mode to spot mismatched tags.
104+
* Add `getStateAfter` API and `compareState` mode API methods for finer-grained mode magic.
105+
* Add a `getScrollerElement` API method to manipulate the scrolling DIV.
106+
* Fix drag-and-drop for Firefox.
107+
* Add a C# configuration for the [C-like mode](http://codemirror.net/mode/clike/index.html).
108+
* Add [full-screen editing](http://codemirror.net/demo/fullscreen.html) and [mode-changing](http://codemirror.net/demo/changemode.html) demos.
109+
110+
## v2.12
111+
112+
* Add a [SPARQL](http://codemirror.net/mode/sparql/index.html) mode.
113+
* Fix bug with cursor jumping around in an unfocused editor in IE.
114+
* Allow key and mouse events to bubble out of the editor. Ignore widget clicks.
115+
* Solve cursor flakiness after undo/redo.
116+
* Fix block-reindent ignoring the last few lines.
117+
* Fix parsing of multi-line attrs in XML mode.
118+
* Use `innerHTML` for HTML-escaping.
119+
* Some fixes to indentation in C-like mode.
120+
* Shrink horiz scrollbars when long lines removed.
121+
* Fix width feedback loop bug that caused the width of an inner DIV to shrink.
122+
123+
## v2.13
124+
125+
* Add [Ruby](http://codemirror.net/mode/ruby/index.html), [R](http://codemirror.net/mode/r/index.html), [CoffeeScript](http://codemirror.net/mode/coffeescript/index.html), and [Velocity](http://codemirror.net/mode/velocity/index.html) modes.
126+
* Add [`getGutterElement`](http://codemirror.net/doc/manual.html#getGutterElement) to API.
127+
* Several fixes to scrolling and positioning.
128+
* Add [`smartHome`](http://codemirror.net/doc/manual.html#option_smartHome) option.
129+
* Add an experimental [pure XML](http://codemirror.net/mode/xmlpure/index.html) mode.
130+
131+
## v2.14
132+
133+
* Add [Clojure](http://codemirror.net/mode/clojure/index.html), [Pascal](http://codemirror.net/mode/pascal/index.html), [NTriples](http://codemirror.net/mode/ntriples/index.html), [Jinja2](http://codemirror.net/mode/jinja2/index.html), and [Markdown](http://codemirror.net/mode/markdown/index.html) modes.
134+
* Add [Cobalt](http://codemirror.net/theme/cobalt.css) and [Eclipse](http://codemirror.net/theme/eclipse.css) themes.
135+
* Add a [`fixedGutter`](http://codemirror.net/doc/manual.html#option_fixedGutter) option.
136+
* Fix bug with `setValue` breaking cursor movement.
137+
* Make gutter updates much more efficient.
138+
* Allow dragging of text out of the editor (on modern browsers).
139+
140+
## v2.15
141+
142+
Fix bug that snuck into 2.14: Clicking the character that currently has the cursor didn't re-focus the editor.
143+
144+
## v2.16
145+
146+
* Add [Perl](http://codemirror.net/mode/perl/index.html), [Rust](http://codemirror.net/mode/rust/index.html), [TiddlyWiki](http://codemirror.net/mode/tiddlywiki/index.html), and [Groovy](http://codemirror.net/mode/groovy/index.html) modes.
147+
* Dragging text inside the editor now moves, rather than copies.
148+
* Add a [`coordsFromIndex`](http://codemirror.net/doc/manual.html#coordsFromIndex) method.
149+
* **API change**: `setValue` now no longer clears history. Use [`clearHistory`](http://codemirror.net/doc/manual.html#clearHistory) for that.
150+
* **API change**: [`markText`](http://codemirror.net/doc/manual.html#markText) now returns an object with `clear` and `find` methods. Marked text is now more robust when edited.
151+
* Fix editing code with tabs in Internet Explorer.
152+
153+
## v2.17
154+
155+
* Add support for [line wrapping](http://codemirror.net/doc/manual.html#option_lineWrapping) and [code folding](http://codemirror.net/doc/manual.html#hideLine).
156+
* Add [Github-style Markdown](http://codemirror.net/mode/gfm/index.html) mode.
157+
* Add [Monokai](http://codemirror.net/theme/monokai.css) and [Rubyblue](http://codemirror.net/theme/rubyblue.css) themes.
158+
* Add [`setBookmark`](http://codemirror.net/doc/manual.html#setBookmark) method.
159+
* Move some of the demo code into reusable components under [`lib/util`](http://codemirror.net/addon/).
160+
* Make screen-coord-finding code faster and more reliable.
161+
* Fix drag-and-drop in Firefox.
162+
* Improve support for IME.
163+
* Speed up content rendering.
164+
* Fix browser's built-in search in Webkit.
165+
* Make double- and triple-click work in IE.
166+
* Various fixes to modes.
167+
168+
## v2.18
169+
170+
Fixes `TextMarker.clear`, which is broken in 2.17.
171+
172+
## v2.2
173+
174+
* Slightly incompatible API changes. Read [this](http://codemirror.net/doc/upgrade_v2.2.html).
175+
* New approach to [binding](http://codemirror.net/doc/manual.html#option_extraKeys) keys, support for [custom bindings](http://codemirror.net/doc/manual.html#option_keyMap).
176+
* Support for overwrite (insert).
177+
* [Custom-width](http://codemirror.net/doc/manual.html#option_tabSize) and [stylable](http://codemirror.net/demo/visibletabs.html) tabs.
178+
* Moved more code into [add-on scripts](http://codemirror.net/doc/manual.html#addons).
179+
* Support for sane vertical cursor movement in wrapped lines.
180+
* More reliable handling of editing [marked text](http://codemirror.net/doc/manual.html#markText).
181+
* Add minimal [emacs](http://codemirror.net/demo/emacs.html) and [vim](http://codemirror.net/demo/vim.html) bindings.
182+
* Rename `coordsFromIndex` to [`posFromIndex`](http://codemirror.net/doc/manual.html#posFromIndex), add [`indexFromPos`](http://codemirror.net/doc/manual.html#indexFromPos) method.
183+
184+
## v2.21
185+
186+
* Added [LESS](http://codemirror.net/mode/less/index.html), [MySQL](http://codemirror.net/mode/mysql/index.html), [Go](http://codemirror.net/mode/go/index.html), and [Verilog](http://codemirror.net/mode/verilog/index.html) modes.
187+
* Add [`smartIndent`](http://codemirror.net/doc/manual.html#option_smartIndent) option.
188+
* Support a cursor in [`readOnly`](http://codemirror.net/doc/manual.html#option_readOnly)-mode.
189+
* Support assigning multiple styles to a token.
190+
* Use a new approach to drawing the selection.
191+
* Add [`scrollTo`](http://codemirror.net/doc/manual.html#scrollTo) method.
192+
* Allow undo/redo events to span non-adjacent lines.
193+
* Lots and lots of bugfixes.
194+
195+
## v2.22
196+
197+
* Allow [key handlers](http://codemirror.net/doc/manual.html#keymaps) to pass up events, allow binding characters.
198+
* Add [`autoClearEmptyLines`](http://codemirror.net/doc/manual.html#option_autoClearEmptyLines) option.
199+
* Properly use tab stops when rendering tabs.
200+
* Make PHP mode more robust.
201+
* Support indentation blocks in [code folder](http://codemirror.net/doc/manual.html#addon_foldcode).
202+
* Add a script for [highlighting instances of the selection](http://codemirror.net/doc/manual.html#addon_match-highlighter).
203+
* New [.properties](http://codemirror.net/mode/properties/index.html) mode.
204+
* Fix many bugs.
205+
206+
## v2.23
207+
208+
* Change **default binding for tab**. Starting in 2.23, these bindings are default:
209+
210+
* Tab: Insert tab character
211+
* Shift-tab: Reset line indentation to default
212+
* Ctrl/Cmd-[: Reduce line indentation (old tab behaviour)
213+
* Ctrl/Cmd-]: Increase line indentation (old shift-tab behaviour)
214+
215+
* New modes: [XQuery](http://codemirror.net/mode/xquery/index.html) and [VBScript](http://codemirror.net/mode/vbscript/index.html).
216+
* Two new themes: [lesser-dark](http://codemirror.net/mode/less/index.html) and [xq-dark](http://codemirror.net/mode/xquery/index.html).
217+
* Differentiate between background and text styles in [`setLineClass`](http://codemirror.net/doc/manual.html#setLineClass).
218+
* Fix drag-and-drop in IE9+.
219+
* Extend [`charCoords`](http://codemirror.net/doc/manual.html#charCoords) and [`cursorCoords`](http://codemirror.net/doc/manual.html#cursorCoords) with a `mode` argument.
220+
* Add [`autofocus`](http://codemirror.net/doc/manual.html#option_autofocus) option.
221+
* Add [`findMarksAt`](http://codemirror.net/doc/manual.html#findMarksAt) method.
222+
223+
## v2.24
224+
225+
* **Drop support for Internet Explorer 6**.
226+
* New modes: [Shell](http://codemirror.net/mode/shell/index.html), [Tiki wiki](http://codemirror.net/mode/tiki/index.html), [Pig Latin](http://codemirror.net/mode/pig/index.html).
227+
* New themes: [Ambiance](http://codemirror.net/demo/theme.html#ambiance), [Blackboard](http://codemirror.net/demo/theme.html#blackboard).
228+
* More control over drag/drop with [`dragDrop`](http://codemirror.net/doc/manual.html#option_dragDrop) and [`onDragEvent`](http://codemirror.net/doc/manual.html#option_onDragEvent) options.
229+
* Make HTML mode a bit less pedantic.
230+
* Add [`compoundChange`](http://codemirror.net/doc/manual.html#compoundChange) API method.
231+
* Several fixes in undo history and line hiding.
232+
* Remove (broken) support for `catchall` in key maps, add `nofallthrough` boolean field instead.
233+
234+
## v2.25
235+
236+
* New mode: [Erlang](http://codemirror.net/mode/erlang/index.html).
237+
* **Remove xmlpure mode** (use [xml.js](http://codemirror.net/mode/xml/index.html)).
238+
* Fix line-wrapping in Opera.
239+
* Fix X Windows middle-click paste in Chrome.
240+
* Fix bug that broke pasting of huge documents.
241+
* Fix backspace and tab key repeat in Opera.
242+
243+
## v2.3
244+
245+
* **New scrollbar implementation**. Should flicker less. Changes DOM structure of the editor.
246+
* New theme: [vibrant-ink](http://codemirror.net/demo/theme.html#vibrant-ink).
247+
* Many extensions to the VIM keymap (including text objects).
248+
* Add [mode-multiplexing](http://codemirror.net/demo/multiplex.html) utility script.
249+
* Fix bug where right-click paste works in read-only mode.
250+
* Add a [`getScrollInfo`](http://codemirror.net/doc/manual.html#getScrollInfo) method.
251+
* Lots of other [fixes](https://github.com/codemirror/CodeMirror/compare/v2.25...v2.3).
252+
253+
## v2.31
254+
255+
* New modes: [OCaml](http://codemirror.net/mode/ocaml/index.html), [Haxe](http://codemirror.net/mode/haxe/index.html), and [VB.NET](http://codemirror.net/mode/vb/index.html).
256+
* Several fixes to the new scrolling model.
257+
* Add a [`setSize`](http://codemirror.net/doc/manual.html#setSize) method for programmatic resizing.
258+
* Add [`getHistory`](http://codemirror.net/doc/manual.html#getHistory) and [`setHistory`](http://codemirror.net/doc/manual.html#setHistory) methods.
259+
* Allow custom line separator string in [`getValue`](http://codemirror.net/doc/manual.html#getValue) and [`getRange`](http://codemirror.net/doc/manual.html#getRange).
260+
* Support double- and triple-click drag, double-clicking whitespace.
261+
* And more... [(all patches)](https://github.com/codemirror/CodeMirror/compare/v2.3...v2.31)
262+
263+
## v2.32
264+
265+
Emergency fix for a bug where an editor with line wrapping on IE will break when there is _no_ scrollbar.
266+
267+
## v2.33
268+
269+
* New mode: [Sieve](http://codemirror.net/mode/sieve/index.html).
270+
* New [`getViewPort`](http://codemirror.net/doc/manual.html#getViewport) and [`onViewportChange`](http://codemirror.net/doc/manual.html#option_onViewportChange) API.
271+
* [Configurable](http://codemirror.net/doc/manual.html#option_cursorBlinkRate) cursor blink rate.
272+
* Make binding a key to `false` disabling handling (again).
273+
* Show non-printing characters as red dots.
274+
* More tweaks to the scrolling model.
275+
* Expanded testsuite. Basic linter added.
276+
* Remove most uses of `innerHTML`. Remove `CodeMirror.htmlEscape`.
277+
* [Full list](https://github.com/codemirror/CodeMirror/compare/v2.32...v2.33) of patches.
278+
279+
## v2.34
280+
281+
* New mode: [Common Lisp](http://codemirror.net/mode/commonlisp/index.html).
282+
* Fix right-click select-all on most browsers.
283+
* Change the way highlighting happens:
284+
Saves memory and CPU cycles.
285+
`compareStates` is no longer needed.
286+
`onHighlightComplete` no longer works.
287+
* Integrate mode (Markdown, XQuery, CSS, sTex) tests in central testsuite.
288+
* Add a [`CodeMirror.version`](http://codemirror.net/doc/manual.html#version) property.
289+
* More robust handling of nested modes in [formatting](http://codemirror.net/demo/formatting.html) and [closetag](http://codemirror.net/demo/closetag.html) plug-ins.
290+
* Un/redo now preserves [marked text](http://codemirror.net/doc/manual.html#markText) and bookmarks.
291+
* [Full list](https://github.com/codemirror/CodeMirror/compare/v2.33...v2.34) of patches.
292+
293+
## v2.35
294+
295+
* New (sub) mode: [TypeScript](http://codemirror.net/mode/javascript/typescript.html).
296+
* Don't overwrite (insert key) when pasting.
297+
* Fix several bugs in [`markText`](http://codemirror.net/doc/manual.html#markText)/undo interaction.
298+
* Better indentation of JavaScript code without semicolons.
299+
* Add [`defineInitHook`](http://codemirror.net/doc/manual.html#defineInitHook) function.
300+
* Full [list of patches](https://github.com/codemirror/CodeMirror/compare/v2.34...v2.35).

0 commit comments

Comments
 (0)