Skip to content

Commit

Permalink
bumped version to 1.4.2 and updated release date
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Aug 4, 2017
1 parent 413d17c commit 6efb6bf
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nwmatcher",
"version": "1.4.1",
"version": "1.4.2",
"homepage": "https://github.com/dperini/nwmatcher",
"authors": [
"Diego Perini <diego.perini@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion build/HEADER
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* NWMatcher 1.4.1 - Fast CSS3 Selector Engine
* NWMatcher 1.4.2 - Fast CSS3 Selector Engine
* Copyright (C) 2007-2017 Diego Perini
* See http://nwbox.com/license
*/
2 changes: 1 addition & 1 deletion build/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nwmatcher",
"version": "1.4.1",
"version": "1.4.2",
"description": "A CSS3-compliant JavaScript selector engine.",
"homepage": "http://javascript.nwbox.com/NWMatcher/",
"main": "./src/nwmatcher",
Expand Down
6 changes: 3 additions & 3 deletions src/nwmatcher-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* nwmatcher-base.js - A fast CSS selector engine and matcher
*
* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.1
* Version: 1.4.2
* Created: 20070722
* Release: 20170610
* Release: 20170804
*
* License:
* http://javascript.nwbox.com/NWMatcher/MIT-LICENSE
Expand All @@ -28,7 +28,7 @@

})(this, function(global) {

var version = 'nwmatcher-1.4.1',
var version = 'nwmatcher-1.4.2',

doc = global.document,
root = doc.documentElement,
Expand Down
6 changes: 3 additions & 3 deletions src/nwmatcher-noqsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* nwmatcher-noqsa.js - A fast CSS selector engine and matcher
*
* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.1
* Version: 1.4.2
* Created: 20070722
* Release: 20170610
* Release: 20170804
*
* License:
* http://javascript.nwbox.com/NWMatcher/MIT-LICENSE
Expand All @@ -28,7 +28,7 @@

})(this, function(global) {

var version = 'nwmatcher-1.4.1',
var version = 'nwmatcher-1.4.2',

doc = global.document,
root = doc.documentElement,
Expand Down
6 changes: 3 additions & 3 deletions src/nwmatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* nwmatcher.js - A fast CSS selector engine and matcher
*
* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.1
* Version: 1.4.2
* Created: 20070722
* Release: 20170610
* Release: 20170804
*
* License:
* http://javascript.nwbox.com/NWMatcher/MIT-LICENSE
Expand All @@ -28,7 +28,7 @@

})(this, function(global) {

var version = 'nwmatcher-1.4.1',
var version = 'nwmatcher-1.4.2',

// processing context & root element
doc = global.document,
Expand Down
2 changes: 1 addition & 1 deletion test/css3-compat/css3-compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var CDN = 'http://ajax.googleapis.com/ajax/libs/',
engines = {
'querySelectorAll': [ 'document.querySelectorAll(s)', '' ],

'nwmatcher-1.4.1': [ 'NW.Dom.select(s)', '../../src/nwmatcher-noqsa.js' ]
'nwmatcher-1.4.2': [ 'NW.Dom.select(s)', '../../src/nwmatcher-noqsa.js' ]

// 'base2-2.0alpha1': [ 'base2.dom.querySelectorAll(c,s)', 'lib/base2+dom.js' ],
// 'prototype-1.6.1': [ '$$(s)', CDN + 'prototype/1.6.1.0/prototype.js' ],
Expand Down
20 changes: 9 additions & 11 deletions test/ender/ender.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
* nwmatcher.js - A fast CSS selector engine and matcher
*
* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.1
* Version: 1.4.2
* Created: 20070722
* Release: 20170610
* Release: 20170804
*
* License:
* http://javascript.nwbox.com/NWMatcher/MIT-LICENSE
Expand All @@ -124,7 +124,7 @@

})(this, function(global) {

var version = 'nwmatcher-1.4.1',
var version = 'nwmatcher-1.4.2',

// processing context & root element
doc = global.document,
Expand Down Expand Up @@ -1223,30 +1223,28 @@
// E + F (F adiacent sibling of E)
else if ((match = selector.match(Patterns.adjacent))) {
source = NATIVE_TRAVERSAL_API ?
'var N' + k + '=e;while(e&&(e=e.previousElementSibling)){' + source + 'break;}e=N' + k + ';' :
'var N' + k + '=e;while(e&&(e=e.previousSibling)){if(e.nodeName>"@"){' + source + 'break;}}e=N' + k + ';';
'var N' + k + '=e;if((e=e.previousElementSibling)){' + source + '}e=N' + k + ';' :
'var N' + k + '=e;while((e=e.previousSibling)){if(e.nodeType==1){' + source + 'break;}}e=N' + k + ';';
}

// *** General sibling combinator
// E ~ F (F relative sibling of E)
else if ((match = selector.match(Patterns.relative))) {
source = NATIVE_TRAVERSAL_API ?
('var N' + k + '=e;e=e.parentNode.firstElementChild;' +
'while(e&&e!==N' + k + '){' + source + 'e=e.nextElementSibling;}e=N' + k + ';') :
('var N' + k + '=e;e=e.parentNode.firstChild;' +
'while(e&&e!==N' + k + '){if(e.nodeName>"@"){' + source + '}e=e.nextSibling;}e=N' + k + ';');
'var N' + k + '=e;while((e=e.previousElementSibling)){' + source + '}e=N' + k + ';' :
'var N' + k + '=e;while((e=e.previousSibling)){if(e.nodeType==1){' + source + '}}e=N' + k + ';';
}

// *** Child combinator
// E > F (F children of E)
else if ((match = selector.match(Patterns.children))) {
source = 'var N' + k + '=e;while(e&&e!==h&&e!==g&&(e=e.parentNode)){' + source + 'break;}e=N' + k + ';';
source = 'var N' + k + '=e;if((e=e.parentNode)&&e.nodeType==1){' + source + '}e=N' + k + ';';
}

// *** Descendant combinator
// E F (E ancestor of F)
else if ((match = selector.match(Patterns.ancestor))) {
source = 'var N' + k + '=e;while(e&&e!==h&&e!==g&&(e=e.parentNode)){' + source + '}e=N' + k + ';';
source = 'var N' + k + '=e;while((e=e.parentNode)&&e.nodeType==1){' + source + '}e=N' + k + ';';
}

// *** Structural pseudo-classes
Expand Down

0 comments on commit 6efb6bf

Please sign in to comment.