Skip to content

Commit

Permalink
commit 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadamodassir committed Nov 30, 2024
1 parent 5e4447a commit d1a4e91
Show file tree
Hide file tree
Showing 9 changed files with 1,744 additions and 32 deletions.
27 changes: 27 additions & 0 deletions .package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Below are some of the most common ways to include Snizzle
#### Script tag
```html
<!--including Snizzle (recomended) HTML document in head section -->
<script src="https://cdn.jsdelivr.net/npm/snizzle@1.7.1/dist/snizzle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/snizzle@1.8.0/dist/snizzle.min.js"></script>
```

## Usage
Expand All @@ -81,7 +81,7 @@ define(["snizzle"], function(snizzle) {
## Syntax code example
There are simple some usage Snizzle code example syntax and learn more click [Documentation](https://github.com/jqrony/snizzle/wiki).

Code example: `Snizzle("body > div:nth-child(2) + main:eq(2) > :input:disabled);`
Code example: `Snizzle("body > div:nth-child(2) + main:eq(2) > :input:disabled)`


## How to build Snizzle
Expand All @@ -92,4 +92,4 @@ git clone git://github.com/jqrony/snizzle.git
In the `snizzle/dist` folder you will find build version of snizzle along with the minified copy and associated map file.

## Contributing Guide
See [CONTRIBUTING.md](https://github.com/jqrony/snizzle/blob/main/CONTRIBUTING.md)
See [CONTRIBUTING.md](https://github.com/jqrony/snizzle/blob/main/CONTRIBUTING.md)
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Snizzle",
"name": "snizzle",
"version": "1.7.1",
"version": "1.8.0",
"main": "dist/snizzle.js",
"ignore": [
"node_modules",
Expand All @@ -26,4 +26,4 @@
"name": "Shahzada Modassir",
"url": "https://github.com/jqrony/snizzle/blob/main/AUTHORS.txt"
}
}
}
12 changes: 5 additions & 7 deletions dist/snizzle.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/**
* Snizzle is a advance feature-rich CSS Selector Engine v1.7.1
* Snizzle is a advance feature-rich CSS Selector Engine v1.8.0
* https://github.com/jqrony/snizzle
*
* @releases +10 releases
* @version 1.7.1
* @version 1.8.0
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* @license MIT
* https://github.com/jqrony/snizzle/blob/main/LICENSE
*
* @author Shahzada Modassir <[email protected]>
* Date: 05 May 2024 12:25 GMT+0530 (India Standard Time)
* Date: 28 November 10:03 GMT+0530 (India Standard Time)
*/
(function(window) {

Expand All @@ -30,7 +30,7 @@ var i, support, unique, Expr, getText, isXML, tokenize, select,
preferredDoc = window.document,

// The current version of Snizzle
version = "1.7.1",
version = "1.8.0",

// Instance array-obj methods
arr = [],
Expand Down Expand Up @@ -133,8 +133,6 @@ var i, support, unique, Expr, getText, isXML, tokenize, select,
// 1. TAG (capture 1), 2. :nth-child (capture 2), 3. Slash (capture 3)
xpOrdDesc = "((-?\\w)+(\\["+ whitespace + "*(\\d+)" + whitespace + "*\\])*(\\/|))+",

xpAttributes = "",

xpAxises = "(?:ancestor|descendant)(\\-(or\\-self))?|((?:following|preceding))(\\-(sibling))?"+
"\\:\\:",

Expand Down Expand Up @@ -630,7 +628,7 @@ unique = Snizzle.unique = function(results) {
var i = 0, cloneArray, len = results.length;
results = results || [];
cloneArray = copy(results);
//
// getting all content length
results.length = 0;
results.splice(0, len);

Expand Down
4 changes: 2 additions & 2 deletions dist/snizzle.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit d1a4e91

Please sign in to comment.