Skip to content

Commit

Permalink
Bump version number to 1.3.0. Update changelog and regenerate dist fi…
Browse files Browse the repository at this point in the history
…les.
  • Loading branch information
jlbooker committed Nov 16, 2019
1 parent c55b62f commit 662ee46
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 18 deletions.
10 changes: 9 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

### 1.2.0 September 25, 2017
### 1.3.0 November 16, 2019
* Fix autoselect on tab [#199](https://github.com/corejavascript/typeahead.js/pull/199)
* On up/down arrow, set the input only if data.val is a string [#184](https://github.com/corejavascript/typeahead.js/pull/184)
* Apply accessibility attributes to suggestion template [#185](https://github.com/corejavascript/typeahead.js/pull/185)


### 1.2.1 September 25, 2017
* Fix various typos [#137](https://github.com/corejavascript/typeahead.js/pull/137)
* Add jQuery 3 support [#102](https://github.com/corejavascript/typeahead.js/pull/102)
* Remove 'required' class from cloned input field [#125](https://github.com/corejavascript/typeahead.js/pull/125)
Expand All @@ -9,6 +15,8 @@
* Fix link in bloodhound docs [#134](https://github.com/corejavascript/typeahead.js/pull/134)
* Minor change to docs to log object instead of assuming it's a string [#157](https://github.com/corejavascript/typeahead.js/pull/157)

### 1.2.0 September 25, 2017
(Skipped)

### 1.1.1 January 12, 2017
* Fix hiding of .visuallyhidden style (introduced in #104) [#107](https://github.com/corejavascript/typeahead.js/pull/107)
Expand Down
4 changes: 2 additions & 2 deletions dist/bloodhound.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* typeahead.js 1.2.1
* typeahead.js 1.3.0
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -159,7 +159,7 @@
noop: function() {}
};
}();
var VERSION = "1.2.1";
var VERSION = "1.3.0";
var tokenizers = function() {
"use strict";
return {
Expand Down
4 changes: 2 additions & 2 deletions dist/bloodhound.min.js

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions dist/typeahead.bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* typeahead.js 1.2.1
* typeahead.js 1.3.0
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -159,7 +159,7 @@
noop: function() {}
};
}();
var VERSION = "1.2.1";
var VERSION = "1.3.0";
var tokenizers = function() {
"use strict";
return {
Expand Down Expand Up @@ -1844,8 +1844,12 @@
pending: templates.pending && _.templatify(templates.pending),
header: templates.header && _.templatify(templates.header),
footer: templates.footer && _.templatify(templates.footer),
suggestion: templates.suggestion || suggestionTemplate
suggestion: templates.suggestion ? userSuggestionTemplate : suggestionTemplate
};
function userSuggestionTemplate(context) {
var template = templates.suggestion;
return $(template(context)).attr("id", _.guid());
}
function suggestionTemplate(context) {
return $('<div role="option">').attr("id", _.guid()).text(displayFn(context));
}
Expand Down Expand Up @@ -2359,7 +2363,9 @@
if (!cancelMove && !this.eventBus.before("cursorchange", suggestion, datasetName)) {
this.menu.setCursor($candidate);
if (data) {
this.input.setInputValue(data.val);
if (typeof data.val === "string") {
this.input.setInputValue(data.val);
}
} else {
this.input.resetInputValue();
this._updateHint();
Expand Down
6 changes: 3 additions & 3 deletions dist/typeahead.bundle.min.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dist/typeahead.jquery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* typeahead.js 1.2.1
* typeahead.js 1.3.0
* https://github.com/corejavascript/typeahead.js
* Copyright 2013-2019 Twitter, Inc. and other contributors; Licensed MIT
*/
Expand Down Expand Up @@ -897,8 +897,12 @@
pending: templates.pending && _.templatify(templates.pending),
header: templates.header && _.templatify(templates.header),
footer: templates.footer && _.templatify(templates.footer),
suggestion: templates.suggestion || suggestionTemplate
suggestion: templates.suggestion ? userSuggestionTemplate : suggestionTemplate
};
function userSuggestionTemplate(context) {
var template = templates.suggestion;
return $(template(context)).attr("id", _.guid());
}
function suggestionTemplate(context) {
return $('<div role="option">').attr("id", _.guid()).text(displayFn(context));
}
Expand Down Expand Up @@ -1412,7 +1416,9 @@
if (!cancelMove && !this.eventBus.before("cursorchange", suggestion, datasetName)) {
this.menu.setCursor($candidate);
if (data) {
this.input.setInputValue(data.val);
if (typeof data.val === "string") {
this.input.setInputValue(data.val);
}
} else {
this.input.resetInputValue();
this._updateHint();
Expand Down
4 changes: 2 additions & 2 deletions dist/typeahead.jquery.min.js

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
Expand Up @@ -71,6 +71,6 @@
"scripts": {
"test": "bower install && node ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
},
"version": "1.2.1",
"version": "1.3.0",
"main": "dist/typeahead.bundle.js"
}

0 comments on commit 662ee46

Please sign in to comment.