Skip to content

Commit

Permalink
New release 1.2.4
Browse files Browse the repository at this point in the history
Updated changelog, bumper version number and generated new dist files.
  • Loading branch information
jcbrand committed Jan 28, 2016
1 parent 71dcada commit fe98b28
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Version 1.2.4 - Unreleased
* #147 Support for UTF-16 encoded usernames (e.g. Chinese)
* #162 allow empty expectedFrom according to W3C DOM 3 Specification
* #171 Improve invalid BOSH URL handling

## Version 1.2.3 - 2015-09-01
* Bugfix. Check if JID is null when restoring a session.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strophe.js",
"description": "Strophe.js is an XMPP library for JavaScript",
"version": "1.2.3",
"version": "1.2.4",
"license": "MIT",
"main": "strophe.js",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strophe.js",
"description": "Strophe.js is an XMPP library for JavaScript",
"version": "1.2.3",
"version": "1.2.4",
"homepage": "http://strophe.im/strophejs",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions release_checklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*** Update CHANGELOG.txt
*** Check for correct version number in package.json and bower,json
*** Run "make release"
*** Commit the newly generated files (mention it's a new release)
*** Tag code with version (git tag -s vVERSION )
*** Push repo and tags (git push && git push --tags)
*** Add documentation to strophe.im repo
Expand Down
15 changes: 11 additions & 4 deletions strophe.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ Strophe = {
* The version of the Strophe library. Unreleased builds will have
* a version of head-HASH where HASH is a partial revision.
*/
VERSION: "1.2.3",
VERSION: "1.2.4",

/** Constants: XMPP Namespace Constants
* Common namespace constants from the XMPP RFCs and XEPs.
Expand Down Expand Up @@ -3145,7 +3145,14 @@ Strophe.Connection.prototype = {

this.connected = true;

var bodyWrap = this._proto._reqToData(req);
var bodyWrap;
try {
bodyWrap = this._proto._reqToData(req);
} catch (e) {
if (e != "badformat") { throw e; }
this._changeConnectStatus(Strophe.Status.CONNFAIL, 'bad-format');
this._doDisconnect('bad-format');
}
if (!bodyWrap) { return; }

if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) {
Expand Down Expand Up @@ -4150,6 +4157,7 @@ Strophe.Request.prototype = {
*
* Throws:
* "parsererror" - A parser error occured.
* "badformat" - The entity has sent XML that cannot be processed.
*
* Returns:
* The DOM element tree of the response.
Expand All @@ -4169,8 +4177,7 @@ Strophe.Request.prototype = {
} else if (this.xhr.responseText) {
Strophe.error("invalid response received");
Strophe.error("responseText: " + this.xhr.responseText);
Strophe.error("responseXML: " +
Strophe.serialize(this.xhr.responseXML));
throw "badformat";
}

return node;
Expand Down
6 changes: 3 additions & 3 deletions strophe.min.js

Large diffs are not rendered by default.

0 comments on commit fe98b28

Please sign in to comment.