diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..80a2841 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +## 0.25.1 + +- Fixed an issue where plots didn't update when using the pipe (`|`) operator +- Open external links in browser +- Improved welcome document + +## 0.25.0 + +Initial release diff --git a/package.json b/package.json index 958f0be..1c35a0a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "stencila-desktop", "productName": "Stencila Desktop", "description": "Stencila for the desktop", - "version": "0.25.0", + "version": "0.25.1", "author": "Nokome Bentley", "homepage": "http://stenci.la", "license": "MIT", @@ -26,7 +26,7 @@ "start": "node make && npm-run-all --parallel watch app" }, "dependencies": { - "stencila": "^0.25.2", + "stencila": "^0.25.7", "stencila-node": "^0.25.0" }, "devDependencies": { diff --git a/src/document/documentWindow.js b/src/document/documentWindow.js index 40f6d63..95fa9b7 100644 --- a/src/document/documentWindow.js +++ b/src/document/documentWindow.js @@ -9,6 +9,7 @@ const windowId = currentWindow.id const documentMenuBuilder = new DocumentMenuBuilder() const AppState = require('./AppState') const { dialog } = require('electron').remote +const { shell } = remote let appState = new AppState() @@ -34,6 +35,11 @@ currentWindow.on('focus', () => { }) }) +// HACK: we should find a better solution to intercept window.open calls +// (e.g. as done by LinkComponent) +window.open = function(url /*, frameName, features*/) { + shell.openExternal(url) +} window.onbeforeunload = function () { diff --git a/src/shared/initBackend.js b/src/shared/initBackend.js index 96d5684..4575135 100644 --- a/src/shared/initBackend.js +++ b/src/shared/initBackend.js @@ -6,7 +6,7 @@ const fs = require('fs') const { app } = remote const DOCUMENTS_DIR = app.getPath('documents') -const STENCILA_LIBRARY_DIR = path.join(DOCUMENTS_DIR, 'Stencila-0.25') +const STENCILA_LIBRARY_DIR = path.join(DOCUMENTS_DIR, 'Stencila-0.25.1') const STENCILA_LIBRARY_FILE = path.join(STENCILA_LIBRARY_DIR, 'library.json') const fileSystemBackend = new FileSystemBackend(STENCILA_LIBRARY_DIR)