Michelle Bu 11 years ago
parent
commit
56bbc2ed57
4 changed files with 13 additions and 3 deletions
  1. 7 0
      changelog.md
  2. 5 2
      dist/peer.js
  3. 0 0
      dist/peer.min.js
  4. 1 1
      package.json

+ 7 - 0
changelog.md

@@ -1,5 +1,12 @@
 # PeerJS Changelog
 
+## Version 0.3.9 (11 July 2014)
+* Allow an external adapter to be used (for `RTCPeerConnection` and such). (Thanks, @khankuan!)
+* Fixed a bug where `_chunkedData` was not being cleared recursively, causing memory to be eaten up unnecessarily. (Thanks, @UnsungHero97!)
+* Added `peer.reconnect()`, which allows a peer to reconnect to the signalling server with the same ID it had before after it has been disconnected. (Thanks, @jure, for the amazing input :)!)
+* Added previously-missing error types, such as `webrtc`, `network`, and `peer-unavailable` error types. (Thanks, @mmis1000 for reporting!)
+* Fixed a bug where the peer would infinitely attempt to start XHR streaming when there is no network connection available. Now, the peer will simply emit a `network` error and disconnect. (Thanks, @UnsungHero97 for reporting!)
+
 ## Version 0.3.8 beta (18 Mar 2014)
 * **The following changes are only compatible with PeerServer 0.2.4.**
 * Added the ability to specify a custom path when connecting to a self-hosted

+ 5 - 2
dist/peer.js

@@ -1,4 +1,4 @@
-/*! peerjs.js build:0.3.8, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
+/*! peerjs.js build:0.3.9, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
 (function(exports){
 var binaryFeatures = {};
 binaryFeatures.useBlobBuilder = (function(){
@@ -1718,8 +1718,10 @@ Peer.prototype._delayedAbort = function(type, message) {
  */
 Peer.prototype._abort = function(type, message) {
   util.error('Aborting!');
-  if (!this.disconnected) {
+  if (!this._lastServerId) {
     this.destroy();
+  } else {
+    this.disconnect();
   }
   this.emitError(type, message);
 };
@@ -1794,6 +1796,7 @@ Peer.prototype.disconnect = function() {
 Peer.prototype.reconnect = function() {
   if (this.disconnected && !this.destroyed) {
     util.log('Attempting reconnection to server with ID ' + this._lastServerId);
+    this.disconnected = false;
     this._initializeServerConnection();
     this._initialize(this._lastServerId);
   } else if (this.destroyed) {

File diff suppressed because it is too large
+ 0 - 0
dist/peer.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "peerjs",
-  "version": "0.3.8",
+  "version": "0.3.9",
   "description": "PeerJS client",
   "repository": {
     "type": "git",

Some files were not shown because too many files changed in this diff