Skip to content

Commit

Permalink
Release v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
narenranjit committed Jun 10, 2015
1 parent f96098e commit c969222
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epicenter-js-libs",
"version": "1.4.2",
"version": "1.5.0",
"homepage": "https://github.com/forio/epicenter-js-libs",
"authors": [
"Naren Ranjit <nranjit@forio.com>"
Expand Down
30 changes: 30 additions & 0 deletions dist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
<a name="1.5.0"></a>
## 1.5.0 (2015-06-10)

Features:
- The World Service now has a `load` method, similar to the `Run` and `Data` services.

- We now have a 'presence channel' to get online/offline notifications for multiplayer worlds. Usage:
``` javascript
var presenceChannel = cm.getPresenceChannel(worldObject);
presenceChannel.on('presence', function (evt, notification) {
console.log(notification); //Notification will be an object with { userId: StringID, online: Boolean }
});
```

This is currently implemented all client-side, and data will be correct to within 24 seconds. An upcoming epicenter update will make this happen much faster.

- You can now subscribe to Data API updates through the cometd channel. Usage:

```
var datachannel = cm.getDataChannel(collectionName);
datachannel.subscribe('', function (data, meta) {
//data is the actual content added, meta is of the form {path: nestedPathOfContentAdded, subType: 'new/update/delete', date: date}
date
}
```
You can only subscribe to top-level items (i.e. collections) currently, so the first parameter to `subscribe` should always be blank.

Bugs:
- RunManager: Fixed a bug with invalid session-cookie-names with the Persistent Single Player strategy

<a name="1.4.2"></a>
### 1.4.2 (2015-05-15)
Bug Fixes:
Expand Down
6 changes: 3 additions & 3 deletions dist/components/assignment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/1.4.2/components/assignment/assignment.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/1.5.0/components/assignment/assignment.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
</head>
Expand Down Expand Up @@ -73,8 +73,8 @@
</div>
</div>
<!-- make sure to include jquery, epicenter.js and assignment.js -->
<script src="https://forio.com/tools/js-libs/1.4.2/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/1.4.2/components/assignment/assignment.js"></script>
<script src="https://forio.com/tools/js-libs/1.5.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/1.5.0/components/assignment/assignment.js"></script>
<script>
new window.forio.MultiplayerAssignmentComponent({
el: '#assignment-component',
Expand Down
6 changes: 3 additions & 3 deletions dist/components/#/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- login.css provides styling for the group selector pop over dialog -->
<link rel="stylesheet" href="https://forio.com/tools/js-libs/1.4.2/components/#/#.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/1.5.0/components/#/#.css">

<!-- the inserted pop over is compatible with bootstrap classes, so optionally you can include bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- make sure to include jquery, epicenter.js and login.js -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://forio.com/tools/js-libs/1.4.2/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/1.4.2/components/#/#.js"></script>
<script src="https://forio.com/tools/js-libs/1.5.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/1.5.0/components/#/#.js"></script>
</head>
<body>
<!--
Expand Down
2 changes: 1 addition & 1 deletion dist/components/#/#.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $(function () {
showError('Unknown error occured. Please try again. (' + error.status + ')', error.status);
}

$('button', form).removeAttr('disabled').removeClass('disabled');
$('button', form).attr('disabled', null).removeClass('disabled');
})
.then(function () {
window.location = action;
Expand Down
10 changes: 5 additions & 5 deletions dist/epicenter.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/epicenter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/epicenter.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Epicenter-JS-Libs",
"version": "1.4.2",
"version": "1.5.0",
"repository": {
"type": "git",
"url": "https://github.com/forio/epicenter-js-libs"
Expand Down

0 comments on commit c969222

Please # to comment.