Skip to content

Commit

Permalink
New release v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Jul 12, 2017
1 parent 647395a commit 7721275
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 3.1.1 (Unreleased)
## 3.1.1 ((2017-07-12))

- Use a patched version of [awesomplete](https://github.com/LeaVerou/awesomplete)
which doesn't render suggestions as HTML (possible XSS attack vector). [jcbrand]
Expand Down
21 changes: 11 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ PO2JSON ?= ./node_modules/.bin/po2json
RJS ?= ./node_modules/.bin/r.js
SASS ?= ./.bundle/bin/sass
SPHINXBUILD ?= ./bin/sphinx-build
SED ?= sed
SPHINXOPTS =

# Internal variables.
Expand Down Expand Up @@ -78,16 +79,16 @@ po2json:

.PHONY: release
release:
sed -ri s/Version:\ [0-9]\+\.[0-9]\+\.[0-9]\+/Version:\ $(VERSION)/ src/start.frag
sed -ri s/Project-Id-Version:\ Converse\.js\ [0-9]\+\.[0-9]\+\.[0-9]\+/Project-Id-Version:\ Converse.js\ $(VERSION)/ locale/converse.pot
sed -ri s/\"version\":\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\":\ \"$(VERSION)\"/ bower.json
sed -ri s/\"version\":\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\":\ \"$(VERSION)\"/ package.json
sed -ri s/--package-version=[0-9]\+\.[0-9]\+\.[0-9]\+/--package-version=$(VERSION)/ Makefile
sed -ri s/v[0-9]\+\.[0-9]\+\.[0-9]\+\.zip/v$(VERSION)\.zip/ index.html
sed -ri s/v[0-9]\+\.[0-9]\+\.[0-9]\+\.tar\.gz/v$(VERSION)\.tar\.gz/ index.html
sed -ri s/version\ =\ \'[0-9]\+\.[0-9]\+\.[0-9]\+\'/version\ =\ \'$(VERSION)\'/ docs/source/conf.py
sed -ri s/release\ =\ \'[0-9]\+\.[0-9]\+\.[0-9]\+\'/release\ =\ \'$(VERSION)\'/ docs/source/conf.py
sed -ri "s/(Unreleased)/(`date +%Y-%m-%d`)/" CHANGES.md
$(SED) -ri s/Version:\ [0-9]\+\.[0-9]\+\.[0-9]\+/Version:\ $(VERSION)/ src/start.frag
$(SED) -ri s/Project-Id-Version:\ Converse\.js\ [0-9]\+\.[0-9]\+\.[0-9]\+/Project-Id-Version:\ Converse.js\ $(VERSION)/ locale/converse.pot
$(SED) -ri s/\"version\":\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\":\ \"$(VERSION)\"/ bower.json
$(SED) -ri s/\"version\":\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\":\ \"$(VERSION)\"/ package.json
$(SED) -ri s/--package-version=[0-9]\+\.[0-9]\+\.[0-9]\+/--package-version=$(VERSION)/ Makefile
$(SED) -ri s/v[0-9]\+\.[0-9]\+\.[0-9]\+\.zip/v$(VERSION)\.zip/ index.html
$(SED) -ri s/v[0-9]\+\.[0-9]\+\.[0-9]\+\.tar\.gz/v$(VERSION)\.tar\.gz/ index.html
$(SED) -ri s/version\ =\ \'[0-9]\+\.[0-9]\+\.[0-9]\+\'/version\ =\ \'$(VERSION)\'/ docs/source/conf.py
$(SED) -ri s/release\ =\ \'[0-9]\+\.[0-9]\+\.[0-9]\+\'/release\ =\ \'$(VERSION)\'/ docs/source/conf.py
$(SED) -ri "s/(Unreleased)/`date +%Y-%m-%d`/" CHANGES.md
make pot
make po
make po2json
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": "converse.js",
"description": "Web-based XMPP/Jabber chat client written in javascript",
"version": "3.1.0",
"version": "3.1.1",
"license": "MPL-2.0",
"devDependencies": {},
"dependencies": {},
Expand Down
23 changes: 17 additions & 6 deletions dist/converse-mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* An XMPP chat client that runs in the browser.
*
* Version: 3.1.0
* Version: 3.1.1
*/

/* jshint ignore:start */
Expand Down Expand Up @@ -51680,11 +51680,22 @@ _.SORT_BYLENGTH = function (a, b) {
};

_.ITEM = function (text, input) {
var html = input.trim() === "" ? text : text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "<mark>$&</mark>");
return $.create("li", {
innerHTML: html,
"aria-selected": "false"
});
input = input.trim();
var element = document.createElement("li");
element.setAttribute("aria-selected", "false");

var regex = new RegExp("("+input+")", "ig");
var parts = input ? text.split(regex) : [text];
parts.forEach(function (txt) {
if (input && txt.match(regex)) {
var match = document.createElement("mark");
match.textContent = txt;
element.appendChild(match);
} else {
element.appendChild(document.createTextNode(txt));
}
});
return element;
};

_.REPLACE = function (text) {
Expand Down
2 changes: 1 addition & 1 deletion dist/converse-no-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* An XMPP chat client that runs in the browser.
*
* Version: 3.1.0
* Version: 3.1.1
*/

/* jshint ignore:start */
Expand Down
23 changes: 17 additions & 6 deletions dist/converse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* An XMPP chat client that runs in the browser.
*
* Version: 3.1.0
* Version: 3.1.1
*/

/* jshint ignore:start */
Expand Down Expand Up @@ -55014,11 +55014,22 @@ _.SORT_BYLENGTH = function (a, b) {
};

_.ITEM = function (text, input) {
var html = input.trim() === "" ? text : text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "<mark>$&</mark>");
return $.create("li", {
innerHTML: html,
"aria-selected": "false"
});
input = input.trim();
var element = document.createElement("li");
element.setAttribute("aria-selected", "false");

var regex = new RegExp("("+input+")", "ig");
var parts = input ? text.split(regex) : [text];
parts.forEach(function (txt) {
if (input && txt.match(regex)) {
var match = document.createElement("mark");
match.textContent = txt;
element.appendChild(match);
} else {
element.appendChild(document.createTextNode(txt));
}
});
return element;
};

_.REPLACE = function (text) {
Expand Down
23 changes: 17 additions & 6 deletions dist/inverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* An XMPP chat client that runs in the browser.
*
* Version: 3.1.0
* Version: 3.1.1
*/

/* jshint ignore:start */
Expand Down Expand Up @@ -55014,11 +55014,22 @@ _.SORT_BYLENGTH = function (a, b) {
};

_.ITEM = function (text, input) {
var html = input.trim() === "" ? text : text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "<mark>$&</mark>");
return $.create("li", {
innerHTML: html,
"aria-selected": "false"
});
input = input.trim();
var element = document.createElement("li");
element.setAttribute("aria-selected", "false");

var regex = new RegExp("("+input+")", "ig");
var parts = input ? text.split(regex) : [text];
parts.forEach(function (txt) {
if (input && txt.match(regex)) {
var match = document.createElement("mark");
match.textContent = txt;
element.appendChild(match);
} else {
element.appendChild(document.createTextNode(txt));
}
});
return element;
};

_.REPLACE = function (text) {
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '3.1.0'
version = '3.1.1'
# The full version, including alpha/beta/rc tags.
release = '3.1.0'
release = '3.1.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions locale/converse.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Converse.js 3.1.0\n"
"Project-Id-Version: Converse.js 3.1.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-05 09:57+0000\n"
"POT-Creation-Date: 2017-07-12 22:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "converse.js",
"version": "3.1.0",
"version": "3.1.1",
"description": "Browser based XMPP instant messaging client",
"main": "main.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/start.frag
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* An XMPP chat client that runs in the browser.
*
* Version: 3.1.0
* Version: 3.1.1
*/

/* jshint ignore:start */
Expand Down

0 comments on commit 7721275

Please sign in to comment.