Skip to content

Commit

Permalink
Bumped version to 8.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiospampinato committed Mar 8, 2023
1 parent 504bec9 commit 6f14934
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### [v8.1.4](https://github.com/fabiospampinato/cash/releases/tag/8.1.4) (2023-03-08)

- Updatd contribution guide
- Replaced Karma with Playwright, removing most dev dependencies, removing coverage reports, and adding support for Safari
- Updated dependencies
- Lowercased readme file
- Lowercased changelog file
- $.serialize: avoiding encoding "%20" as "+", for better alignment with jQuery

### [v8.1.3](https://github.com/fabiospampinato/cash/releases/tag/8.1.3) (2023-01-31)

- $.fn.text: ensuring it reads text from every node in the collection, not just the first one, for better alignment with jQuery
Expand Down
3 changes: 1 addition & 2 deletions dist/cash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1101,10 +1101,9 @@ function one(eventFullName, selector, data, callback) {
}
;
fn.one = one;
const queryEncodeSpaceRe = /%20/g;
const queryEncodeCRLFRe = /\r?\n/g;
function queryEncode(prop, value) {
return `&${encodeURIComponent(prop)}=${encodeURIComponent(value.replace(queryEncodeCRLFRe, '\r\n')).replace(queryEncodeSpaceRe, '+')}`;
return `&${encodeURIComponent(prop)}=${encodeURIComponent(value.replace(queryEncodeCRLFRe, '\r\n'))}`;
}
const skippableRe = /file|reset|submit|button|image/i;
const checkableRe = /radio|checkbox/i;
Expand Down
3 changes: 1 addition & 2 deletions dist/cash.js
Original file line number Diff line number Diff line change
Expand Up @@ -1113,10 +1113,9 @@ function one(eventFullName, selector, data, callback) {
}
;
fn.one = one;
var queryEncodeSpaceRe = /%20/g;
var queryEncodeCRLFRe = /\r?\n/g;
function queryEncode(prop, value) {
return "&".concat(encodeURIComponent(prop), "=").concat(encodeURIComponent(value.replace(queryEncodeCRLFRe, '\r\n')).replace(queryEncodeSpaceRe, '+'));
return "&".concat(encodeURIComponent(prop), "=").concat(encodeURIComponent(value.replace(queryEncodeCRLFRe, '\r\n')));
}
var skippableRe = /file|reset|submit|button|image/i;
var checkableRe = /radio|checkbox/i;
Expand Down
4 changes: 2 additions & 2 deletions dist/cash.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions dist/cash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2771,12 +2771,11 @@ function one ( this: Cash, eventFullName: Record<string, EventCallback> | string
fn.one = one;


const queryEncodeSpaceRe = /%20/g;
const queryEncodeCRLFRe = /\r?\n/g;

function queryEncode ( prop: string, value: string ): string {

return `&${encodeURIComponent ( prop )}=${encodeURIComponent ( value.replace ( queryEncodeCRLFRe, '\r\n' ) ).replace ( queryEncodeSpaceRe, '+' )}`;
return `&${encodeURIComponent ( prop )}=${encodeURIComponent ( value.replace ( queryEncodeCRLFRe, '\r\n' ) )}`;

}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cash-dom",
"repository": "github:fabiospampinato/cash",
"description": "An absurdly small jQuery alternative for modern browsers.",
"version": "8.1.3",
"version": "8.1.4",
"license": "MIT",
"browser": "./dist/cash.js",
"main": "./dist/cash.js",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ If you're migrating from jQuery be sure to read our [migration guide](https://gi

## Usage

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

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.3/cash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.4/cash.min.js"></script>
<script>
$(function () {
$('html').addClass ( 'dom-loaded' );
Expand Down

0 comments on commit 6f14934

Please sign in to comment.