Skip to content

Commit 890a5d7

Browse files
committed
Upgrade AvalynxSelect to version 1.1.1.
Updated examples and documentation to reflect the version bump. Added null/undefined checks for `options` and `language` parameters to enhance robustness.
1 parent ed2704e commit 890a5d7

11 files changed

+35
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Replace `path/to/avalynx-select.js` with the actual path to the file in your pro
4545
AvalynxSelect is also available via [jsDelivr](https://www.jsdelivr.com/). You can include it in your project like this:
4646

4747
```html
48-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
48+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
4949
```
5050

5151
Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxSelect displays correctly.

dist/js/avalynx-select.esm.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* AvalynxSelect is a lightweight, customizable select dropdown component for web applications. It is designed to be used with Bootstrap version 5.3 or higher and does not require any framework dependencies.
55
*
6-
* @version 1.1.0
6+
* @version 1.1.1
77
* @license MIT
88
* @author https://github.com/avalynx/avalynx-select/graphs/contributors
99
* @website https://github.com/avalynx/
@@ -44,6 +44,12 @@ export class AvalynxSelect {
4444
console.error("AvalynxSelect: Element(s) with selector '" + selector + "' not found");
4545
return;
4646
}
47+
if (options === null || typeof options !== 'object') {
48+
options = {};
49+
}
50+
if (language === null || typeof language !== 'object') {
51+
language = {};
52+
}
4753
this.options = {
4854
className: '',
4955
liveSearch: false,

dist/js/avalynx-select.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* AvalynxSelect is a lightweight, customizable select dropdown component for web applications. It is designed to be used with Bootstrap version 5.3 or higher and does not require any framework dependencies.
55
*
6-
* @version 1.1.0
6+
* @version 1.1.1
77
* @license MIT
88
* @author https://github.com/avalynx/avalynx-select/graphs/contributors
99
* @website https://github.com/avalynx/
@@ -42,6 +42,12 @@ class AvalynxSelect {
4242
console.error("AvalynxSelect: Element(s) with selector '" + selector + "' not found");
4343
return;
4444
}
45+
if (options === null || typeof options !== 'object') {
46+
options = {};
47+
}
48+
if (language === null || typeof language !== 'object') {
49+
language = {};
50+
}
4551
this.options = {
4652
className: '',
4753
liveSearch: false,

examples/simple-select-default-value.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/styles/stackoverflow-light.min.css" id="hljsTheme">
1717
<script>hljs.highlightAll();</script>
1818

19-
<!-- AvalynxSelect 1.1.0 -->
20-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
19+
<!-- AvalynxSelect 1.1.1 -->
20+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
2121

2222
<!-- Example helper -->
2323
<link href="./css/helper.css" rel="stylesheet">

examples/simple-select-disabled.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/styles/stackoverflow-light.min.css" id="hljsTheme">
1717
<script>hljs.highlightAll();</script>
1818

19-
<!-- AvalynxSelect 1.1.0 -->
20-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
19+
<!-- AvalynxSelect 1.1.1 -->
20+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
2121

2222
<!-- Example helper -->
2323
<link href="./css/helper.css" rel="stylesheet">

examples/simple-select-event-listeners.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/styles/stackoverflow-light.min.css" id="hljsTheme">
1717
<script>hljs.highlightAll();</script>
1818

19-
<!-- AvalynxSelect 1.1.0 -->
20-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
19+
<!-- AvalynxSelect 1.1.1 -->
20+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
2121

2222
<!-- Example helper -->
2323
<link href="./css/helper.css" rel="stylesheet">

examples/simple-select-livesearch.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/styles/stackoverflow-light.min.css" id="hljsTheme">
1717
<script>hljs.highlightAll();</script>
1818

19-
<!-- AvalynxSelect 1.1.0 -->
20-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
19+
<!-- AvalynxSelect 1.1.1 -->
20+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
2121

2222
<!-- Example helper -->
2323
<link href="./css/helper.css" rel="stylesheet">

examples/simple-select-responsive.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/styles/stackoverflow-light.min.css" id="hljsTheme">
1717
<script>hljs.highlightAll();</script>
1818

19-
<!-- AvalynxSelect 1.1.0 -->
20-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
19+
<!-- AvalynxSelect 1.1.1 -->
20+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
2121

2222
<!-- Example helper -->
2323
<link href="./css/helper.css" rel="stylesheet">

examples/simple-select.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9/build/styles/stackoverflow-light.min.css" id="hljsTheme">
1717
<script>hljs.highlightAll();</script>
1818

19-
<!-- AvalynxSelect 1.1.0 -->
20-
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.0/dist/js/avalynx-select.js"></script>
19+
<!-- AvalynxSelect 1.1.1 -->
20+
<script src="https://cdn.jsdelivr.net/npm/avalynx-select@1.1.1/dist/js/avalynx-select.js"></script>
2121

2222
<!-- Example helper -->
2323
<link href="./css/helper.css" rel="stylesheet">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "avalynx-select",
33
"title": "AvalynxSelect",
44
"description": "AvalynxSelect is a lightweight, customizable select dropdown component for web applications. It is designed to be used with Bootstrap version 5.3 or higher and does not require any framework dependencies.",
5-
"version": "1.1.0",
5+
"version": "1.1.1",
66
"license": "MIT",
77
"main": "dist/js/avalynx-select.js",
88
"module": "dist/js/avalynx-select.esm.js",

0 commit comments

Comments
 (0)