Skip to content

Commit 0d3acbc

Browse files
Bumped version to 0.4.1. Got rid of version check in Editor.load for now.
1 parent 1766012 commit 0d3acbc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apparatus-editor",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Apparatus is a hybrid graphics editor / programming environment for creating interactive diagrams.",
55
"license": "MIT",
66
"author": {

src/Model/Editor.coffee

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ module.exports = class Editor
5050
return builtIn
5151

5252
# TODO: get version via build process / ENV variable?
53-
version: "0.4.0"
53+
version: "0.4.1"
5454

5555
load: (jsonString) ->
5656
json = JSON.parse(jsonString)
57-
if json.type == "Apparatus" and json.version == @version
57+
# TODO: If the file format changes, this will need to check the version
58+
# and convert or fail appropriately.
59+
if json.type == "Apparatus"
5860
@project = @serializer.dejsonify(json)
5961

6062
save: ->

0 commit comments

Comments
 (0)