upgrade to newest codemirror
parent
1a5905d9fd
commit
82a9b05d5f
@ -1,3 +1,95 @@
|
|||||||
|
## 5.16.0 (2016-06-20)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
Fix glitches when dragging content caused by the drop indicator receiving mouse events.
|
||||||
|
|
||||||
|
Make Control-drag work on Firefox.
|
||||||
|
|
||||||
|
Make clicking or selection-dragging at the end of a wrapped line select the right position.
|
||||||
|
|
||||||
|
[show-hint addon](http://codemirror.net/doc/manual.html#addon_show-hint): Prevent widget scrollbar from hiding part of the hint text.
|
||||||
|
|
||||||
|
[rulers addon](http://codemirror.net/doc/manual.html#addon_rulers): Prevent rulers from forcing a horizontal editor scrollbar.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
[search addon](http://codemirror.net/doc/manual.html#addon_search): Automatically bind search-related keys in persistent dialog.
|
||||||
|
|
||||||
|
[sublime keymap](http://codemirror.net/demo/sublime.html): Add a multi-cursor aware smart backspace binding.
|
||||||
|
|
||||||
|
## 5.15.2 (2016-05-20)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
Fix a critical document corruption bug that occurs when a document is gradually grown.
|
||||||
|
|
||||||
|
## 5.15.0 (2016-05-20)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
Fix bug that caused the selection to reset when focusing the editor in contentEditable input mode.
|
||||||
|
|
||||||
|
Fix issue where not all ASCII control characters were being replaced by placeholders.
|
||||||
|
|
||||||
|
Remove the assumption that all modes have a `startState` method from several wrapping modes.
|
||||||
|
|
||||||
|
Fix issue where the editor would complain about overlapping collapsed ranges when there weren't any.
|
||||||
|
|
||||||
|
Optimize document tree building when loading or pasting huge chunks of content.
|
||||||
|
|
||||||
|
[markdown mode](http://codemirror.net/mode/markdown/): Fix several issues in matching link targets.
|
||||||
|
|
||||||
|
[clike mode](http://codemirror.net/mode/clike/): Improve indentation of C++ template declarations.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Explicitly bind Ctrl-O on OS X to make that binding (“open line”) act as expected.
|
||||||
|
|
||||||
|
Pasting [linewise-copied](http://codemirror.net/doc/manual.html#option_lineWiseCopyCut) content when there is no selection now inserts the lines above the current line.
|
||||||
|
|
||||||
|
[javascript mode](http://codemirror.net/mode/javascript/): Support `async`/`await` and improve support for TypeScript type syntax.
|
||||||
|
|
||||||
|
## 5.14.2 (2016-04-20)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
Push a new package to NPM due to an [NPM bug](https://github.com/npm/npm/issues/5082) omitting the LICENSE file in 5.14.0.
|
||||||
|
|
||||||
|
Set `dataTransfer.effectAllowed` in `dragstart` handler to help browsers use the right drag icon.
|
||||||
|
|
||||||
|
Add the [mbox mode](http://codemirror.net/mode/mbox/index.html) to `mode/meta.js`.
|
||||||
|
|
||||||
|
## 5.14.0 (2016-04-20)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
[`posFromIndex`](http://codemirror.net/doc/manual.html#posFromIndex) and [`indexFromPos`](http://codemirror.net/doc/manual.html#indexFromPos) now take [`lineSeparator`](http://codemirror.net/doc/manual.html#option_lineSeparator) into account.
|
||||||
|
|
||||||
|
[vim bindings](http://codemirror.net/demo/vim.html): Only call `.save()` when it is actually available.
|
||||||
|
|
||||||
|
[comment addon](http://codemirror.net/doc/manual.html#addon_comment): Be careful not to mangle multi-line strings.
|
||||||
|
|
||||||
|
[Python mode](http://codemirror.net/mode/python/index.html): Improve distinguishing of decorators from `@` operators.
|
||||||
|
|
||||||
|
[`findMarks`](http://codemirror.net/doc/manual.html#findMarks): No longer return marks that touch but don't overlap given range.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
[vim bindings](http://codemirror.net/demo/vim.html): Add yank command.
|
||||||
|
|
||||||
|
[match-highlighter addon](http://codemirror.net/doc/manual.html#addon_match-highlighter): Add `trim` option to disable ignoring of whitespace.
|
||||||
|
|
||||||
|
[PowerShell mode](http://codemirror.net/mode/powershell/index.html): Added.
|
||||||
|
|
||||||
|
[Yacas mode](http://codemirror.net/mode/yacas/index.html): Added.
|
||||||
|
|
||||||
|
[Web IDL mode](http://codemirror.net/mode/webidl/index.html): Added.
|
||||||
|
|
||||||
|
[SAS mode](http://codemirror.net/mode/sas/index.html): Added.
|
||||||
|
|
||||||
|
[mbox mode](http://codemirror.net/mode/mbox/index.html): Added.
|
||||||
|
|
||||||
## 5.13.2 (2016-03-23)
|
## 5.13.2 (2016-03-23)
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
@ -0,0 +1,35 @@
|
|||||||
|
"use strict"
|
||||||
|
|
||||||
|
let version = process.argv[2]
|
||||||
|
let auth = process.argv[3]
|
||||||
|
|
||||||
|
if (!auth) {
|
||||||
|
console.log("Usage: upload-release.js [TAG] [github-user:password]")
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
require('child_process').exec("git --no-pager show -s --format='%s' " + version, (error, stdout) => {
|
||||||
|
if (error) throw error
|
||||||
|
let message = stdout.split("\n").slice(2)
|
||||||
|
message = message.slice(0, message.indexOf("-----BEGIN PGP SIGNATURE-----")).join("\n")
|
||||||
|
|
||||||
|
let req = require("https").request({
|
||||||
|
host: "api.github.com",
|
||||||
|
auth: auth,
|
||||||
|
headers: {"user-agent": "Release uploader"},
|
||||||
|
path: "/repos/codemirror/codemirror/releases",
|
||||||
|
method: "POST"
|
||||||
|
}, res => {
|
||||||
|
if (res.statusCode >= 300) {
|
||||||
|
console.error(res.statusMessage)
|
||||||
|
res.on("data", d => console.log(d.toString()))
|
||||||
|
res.on("end", process.exit(1))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
req.write(JSON.stringify({
|
||||||
|
tag_name: version,
|
||||||
|
name: version,
|
||||||
|
body: message
|
||||||
|
}))
|
||||||
|
req.end()
|
||||||
|
})
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue