Skip to content

Commit f1ab249

Browse files
committed
v10.2.3 => Release Notes for details
1 parent 555c590 commit f1ab249

14 files changed

+16
-12
lines changed

dist/autoComplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
return new Promise(function ($return, $error) {
473473
var queryVal, condition;
474474
queryVal = q || getQuery(ctx.input);
475-
queryVal = ctx.query ? query(queryVal) : queryVal;
475+
queryVal = ctx.query ? ctx.query(queryVal) : queryVal;
476476
condition = checkTrigger(queryVal, ctx.trigger, ctx.threshold);
477477
if (condition) {
478478
return getData(ctx).then(function ($await_2) {

dist/autoComplete.js.gz

3 Bytes
Binary file not shown.

dist/autoComplete.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/autoComplete.min.js.gz

-1 Bytes
Binary file not shown.

docs/demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
7373
<meta name="theme-color" content="#ffffff">
7474
<link rel="stylesheet" type="text/css" media="screen"
75-
href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.2/dist/css/autoComplete.min.css">
75+
href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.3/dist/css/autoComplete.min.css">
7676
<!-- <link rel="stylesheet" type="text/css" media="screen" href="./css/autoComplete.css"> -->
7777
<link rel="stylesheet" type="text/css" media="screen" href="./css/main.css">
7878
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
@@ -150,7 +150,7 @@ <h4>mode</h4>
150150
</div>
151151
</footer>
152152
</div>
153-
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.2/dist/autoComplete.min.js"></script>
153+
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.3/dist/autoComplete.min.js"></script>
154154
<!-- <script src="./js/autoComplete.js"></script> -->
155155
<script src="./js/index.js"></script>
156156
</body>

docs/demo/js/autoComplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
return new Promise(function ($return, $error) {
473473
var queryVal, condition;
474474
queryVal = q || getQuery(ctx.input);
475-
queryVal = ctx.query ? query(queryVal) : queryVal;
475+
queryVal = ctx.query ? ctx.query(queryVal) : queryVal;
476476
condition = checkTrigger(queryVal, ctx.trigger, ctx.threshold);
477477
if (condition) {
478478
return getData(ctx).then(function ($await_2) {

docs/demo/js/autoComplete.js.gz

3 Bytes
Binary file not shown.

docs/demo/js/autoComplete.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/demo/js/autoComplete.min.js.gz

-1 Bytes
Binary file not shown.

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
src="//platform-api.sharethis.com/js/sharethis.js#property=5c213660c276020011d38212&product=inline-share-buttons"
159159
async="async"></script>
160160
<link rel="stylesheet"
161-
href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.2/dist/css/autoComplete.min.css">
161+
href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.3/dist/css/autoComplete.min.css">
162162
</head>
163163

164164
<body>
@@ -209,7 +209,7 @@
209209
mustache: {
210210
data: ["../package.json", {
211211
minVersion: "10.2",
212-
version: "10.2.2"
212+
version: "10.2.3"
213213
}]
214214
}
215215
}
@@ -224,7 +224,7 @@
224224
<script src="https://cdn.jsdelivr.net/npm/docsify-example-panels"></script>
225225
<script src="//cdn.jsdelivr.net/npm/codeblock-iframe@latest/dist/index.min.js"></script>
226226
<script src="//cdn.jsdelivr.net/npm/docsify-codeblock-iframe@latest/dist/index.min.js"></script>
227-
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.2/dist/autoComplete.min.js"></script>
227+
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.3/dist/autoComplete.min.js"></script>
228228
</body>
229229

230230
</html>

docs/release-notes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ For more information on semantic versioning, please visit <http://semver.org/>.
3535

3636
***
3737

38-
### v10.2.2 ✨
38+
### v10.2.3 ✨
39+
- 🔧 Fixed: `query` API issue (Thanks 👍 @folknor) #254
40+
41+
### v10.2.2
3942
- ➕ Added: Security awareness note under the `Usage` section in the [Docs](https://tarekraafat.github.io/autoComplete.js/#/usage?id=_2-script) (Thanks 👍 @needlag) #254
4043
- 🔧 Fixed: `search` API method was not returning the result value
4144
- 🎛️ Updated: Library code with deep cleanup & minor optimizations resulted in around `2.4%` size reduction of the minified version and `3.2%` of the original version and additional performance improvements

docs/usage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const autoCompleteJS = new autoComplete({ config });
160160
> 1- [DOMPurify](https://github.com/cure53/DOMPurify)<br>
161161
> 2- [js-xss](https://github.com/leizongmin/js-xss)<br>
162162
> 3- [sanitize-html](https://github.com/apostrophecms/sanitize-html)
163+
> 4- [escape-goat](https://github.com/sindresorhus/escape-goat)
163164
164165
***
165166

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "10.2.2",
2+
"version": "10.2.3",
33
"name": "@tarekraafat/autocomplete.js",
44
"description": "Simple autocomplete pure vanilla Javascript library.",
55
"keywords": [

src/services/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { render, close } from "../controllers/listController";
1111
export default async function (ctx, q) {
1212
// Get "input" query value
1313
let queryVal = q || getQuery(ctx.input);
14-
queryVal = ctx.query ? query(queryVal) : queryVal;
14+
queryVal = ctx.query ? ctx.query(queryVal) : queryVal;
1515
// Get trigger decision
1616
const condition = checkTrigger(queryVal, ctx.trigger, ctx.threshold);
1717

0 commit comments

Comments
 (0)