Skip to content

Commit

Permalink
Merge pull request #127 from tomik23:version-update
Browse files Browse the repository at this point in the history
build: Version update
  • Loading branch information
tomickigrzegorz authored Feb 10, 2022
2 parents 0bf786e + cfa0e5d commit 0ff08ee
Show file tree
Hide file tree
Showing 21 changed files with 1,038 additions and 1,130 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 2022-02-10 (v1.7.5)
### Build
- added script to change library version everywhere during production build

### Performance
- reducing the size of the library by mangle properties and methods:
```js
mangle: {
properties: {
regex: /^_/,
},
},
```

### Refactoring
- removing duplicate method 'setAttr'

## 2022-01-19 (v1.7.4)

### Changed
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ See the demo - [example](https://tomik23.github.io/autocomplete/)
#### CSS

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tomik23/[email protected].4/dist/css/autocomplete.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tomik23/[email protected].5/dist/css/autocomplete.min.css"/>
```

#### JavaScript

```html
<script src="https://cdn.jsdelivr.net/gh/tomik23/[email protected].4/dist/js/autocomplete.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/tomik23/[email protected].5/dist/js/autocomplete.min.js"></script>
```

##### -- OR --

Download from `docs` folder and insert to html:
Download from `dist` folder and insert to html:

- dist/css/autocomplete.css
- dist/js/autocomplete.min.js
Expand Down Expand Up @@ -154,7 +154,7 @@ npm run prod
| cache | boolean | `false` | | The characters entered in the input field are cached |
| howManyCharacters | number | `1` | | The number of characters entered should start searching |
| delay | number | `500` | | Time in milliseconds that the component should wait after last keystroke before calling search function 1000 = 1s |
| ariaLabelClear | string | `Clear the search query.` | | Set aria-label attribute for the clear button |
| ariaLabelClear | string | `clear the search query.` | | Set aria-label attribute for the clear button |
| classPreventClosing | string | | | Prevents results from hiding after clicking on element with this class |
| classGroup | string | | | Enter a class name, this class will be added to the group name elements |
| classPrefix | string | | | Prefixing all autocomplete css class name, 'prefix-auto-', default 'auto-' |
Expand Down Expand Up @@ -415,7 +415,7 @@ const auto = new Autocomplete('you-id', {
classGroup: '',
classPrefix: 'auto',
howManyCharacters: 1,
ariaLabelClear: 'clear text from input',
ariaLabelClear: 'clear the search query',
delay: 500,
onSearch: ({ currentValue, element }) => {},
onResults: ({ currentValue, matches, template, classGroup }) => {},
Expand Down Expand Up @@ -445,9 +445,9 @@ Configuration for IE:
### cdn
- https://cdn.jsdelivr.net/gh/tomik23/[email protected].4/dist/js/polyfill.js
- https://cdn.jsdelivr.net/gh/tomik23/[email protected].4/dist/js/autocomplete.ie.min.js
- https://cdn.jsdelivr.net/gh/tomik23/[email protected].4/dist/css/autocomplete.ie.min.css
- https://cdn.jsdelivr.net/gh/tomik23/[email protected].5/dist/js/polyfill.js
- https://cdn.jsdelivr.net/gh/tomik23/[email protected].5/dist/js/autocomplete.ie.min.js
- https://cdn.jsdelivr.net/gh/tomik23/[email protected].5/dist/css/autocomplete.ie.min.css
### cdn polyfill from npm
Expand Down
Loading

0 comments on commit 0ff08ee

Please sign in to comment.