Skip to content

Commit 27d9bec

Browse files
Bumped version to 7.0.3
1 parent 760a388 commit 27d9bec

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### Version 7.0.3
2+
- Updated “EleLoose” type
3+
14
### Version 7.0.2
25
- Readme: updated npm installation command
36
- Updated the “EleLoose” TypeScript type ensuring it isn’t evaluated as “never”

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ If you're migrating from jQuery be sure to read our [migration guide](https://gi
3131

3232
## Usage
3333

34-
Get Cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.2/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@7.0.2/dist/cash.min.js) and use it like this:
34+
Get Cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.3/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@7.0.3/dist/cash.min.js) and use it like this:
3535

3636
```html
37-
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.2/cash.min.js"></script>
37+
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.3/cash.min.js"></script>
3838
<script>
3939
$(function () {
4040
$('html').addClass ( 'dom-loaded' );

dist/cash.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface CashStatic {
1818
}
1919
declare type falsy = undefined | null | false | 0 | '';
2020
declare type Ele = Window | Document | HTMLElement | Element | Node;
21-
declare type EleLoose = Window & Document & HTMLElement & Element & Node;
21+
declare type EleLoose = HTMLElement & Element & Node;
2222
declare type Selector = falsy | string | Function | HTMLCollection | NodeList | Ele | Ele[] | ArrayLike<Ele> | Cash;
2323
declare type Comparator = string | Ele | Cash | ((this: EleLoose, index: number, ele: EleLoose) => boolean);
2424
declare type Context = Document | HTMLElement | Element;

dist/cash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface CashStatic {
5656
type falsy = undefined | null | false | 0 | '';
5757

5858
type Ele = Window | Document | HTMLElement | Element | Node;
59-
type EleLoose = Window & Document & HTMLElement & Element & Node; //UGLY: Trick to remove some kind-of useless type errors //URL: https://github.com/fabiospampinato/cash/issues/278
59+
type EleLoose = HTMLElement & Element & Node; //UGLY: Trick to remove some kind-of useless type errors //URL: https://github.com/fabiospampinato/cash/issues/278
6060
type Selector = falsy | string | Function | HTMLCollection | NodeList | Ele | Ele[] | ArrayLike<Ele> | Cash;
6161
type Comparator = string | Ele | Cash | (( this: EleLoose, index: number, ele: EleLoose ) => boolean);
6262
type Context = Document | HTMLElement | Element;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cash-dom",
33
"description": "An absurdly small jQuery alternative for modern browsers.",
4-
"version": "7.0.2",
4+
"version": "7.0.3",
55
"license": "MIT",
66
"browser": "./dist/cash.js",
77
"main": "./dist/cash.js",

0 commit comments

Comments
 (0)