Permalink
Commits on Mar 10, 2017
  1. Add note about throwing errors

    fb55 committed on GitHub Mar 10, 2017
    and replace `var` with `const`
Commits on Jan 19, 2017
  1. Release current version as 1.3.0-rc0

    fb55 committed Jan 19, 2017
    I’m not entirely happy with the current state of this module, but this
    allows people to use this right now.
Commits on Nov 20, 2016
  1. Add findOne to README (#75)

    nrkn committed with fb55 Nov 20, 2016
Commits on Nov 18, 2016
  1. Allow adapter to be passed in via options (#66)

    nrkn committed with fb55 Nov 18, 2016
    * WIP
    
    Still to do, finish browser-adapter tests - the adapter API and also
    that it works with CSS select with a handful of selectors (if a handful
    works likely the whole thing should).
    
    * Fix whitespace
    
    * Tests for adapter
    
    * Fix eol
    
    crlf -> lf
    
    * eslint
    
    * eslint
    
    * spaces in parens etc
    
    * eslint spaces in parens
    
    * Correct mixed tabs/spaces
    
    * adapter.getText -> getText, attribute rules inside closure
    
    * options guard, remove browser adapter
    
    * eslint
    
    * Fix eslint errors (#70)
    
    * rebase, eslint etc
    
    Signed-off-by: Nik Coughlin <nrkn.com@gmail.com>
    
    * Tests for adapter
    
    * spaces in parens etc
    
    * eslint spaces in parens
    
    * Correct mixed tabs/spaces
    
    * adapter.getText -> getText, attribute rules inside closure
    
    * options guard, remove browser adapter
    
    * eslint
    
    Fixes #71
Commits on Oct 31, 2016
  1. Fix eslint errors (#70)

    fb55 committed on GitHub Oct 31, 2016
Commits on Aug 24, 2016
  1. Update tested node.js versions

    fb55 committed on GitHub Aug 24, 2016
Commits on Jul 4, 2016
  1. Use eslint

    fb55 committed Jul 4, 2016
    and switch from SyntaxError to a simple Error (aids when writing
    selectors in the Node.js repl)
  2. Add siblings elements if needed (#43)

    Delgan committed with fb55 Jul 4, 2016
    * Try to fix some indentation inconsistency
    * Add unittests to spotlight issue #42
    * Uncomment some tests and Fix issue with selector
    * Fix #42 by adding siblings elements if needed
    
    The module was not able to select siblings elements for selector
    starting with `+` or `~` because these siblings elements was not
    present in the array passed to `searchFunc`.
Commits on Nov 24, 2015
  1. Merge branch 'fix-regression'

    Delgan committed Nov 24, 2015
  2. Merge pull request #38 from Delgan/fix-regression

    fb55 committed Nov 24, 2015
    Propose an alternative way to solve regression
  3. compile: added check to prevent error

    Delgan committed Nov 24, 2015
    Could throw an error if a query is just ":scope" for example, because of
    `t[1]` while tokens array contains only one element.
  4. Remove unused 'index' parameter

    Delgan committed Nov 24, 2015
  5. Propose an alternative way to solve regression

    Delgan committed Nov 24, 2015
    Create a new type of descendant token which accepts element itself.
    This looks more elegant and efficient than the previous commit which added complexity to the code and parameters.
    
    This is only used while querying an array of elements.
  6. 1.2.0

    fb55 committed Nov 24, 2015
  7. Merge pull request #37 from Delgan/fix-regression

    fb55 committed Nov 24, 2015
    Fix regression, include self while querying array
Commits on Nov 23, 2015
  1. Fix regression, include self while querying array

    Delgan committed Nov 23, 2015
    Elements from an array are now included to the query.
    
    The issue was due to `absolutize()` introduced in v1.1.0. This function adds `":scope "` to the selector, and because of the descendant selector `" "`, "root" element from the array could not be reached.
    
    The fix is to make the descendant selector more flexible so it accepts current element (without call `getParent()`) if the context is an array, and if the descendant selector is directly following the first `:scope`. So, others descendant selectors work as usual.
  2. tests: correct one qwery unit test

    Delgan committed Nov 23, 2015
    According to the documentation, `CSSselect()` should not query element itself except if an array of elements is used as context. This behavior differs from the one of Qwery library, so the unit test has to be changed.
    
    See this comment for more information: cheeriojs/cheerio#728 (comment)
Commits on Nov 22, 2015
  1. update css-what

    fb55 committed Nov 22, 2015
  2. Merge pull request #34 from pigshell/icontains

    fb55 committed Nov 22, 2015
    pseudos: implement :icontains, case-insensitive version of :contains
  3. Merge pull request #35 from fb55/greenkeeper-update-all

    fb55 committed Nov 22, 2015
    Update all dependencies 🌴
  4. chore(package): update dependencies

    greenkeeperio-bot committed Nov 22, 2015
Commits on Jul 6, 2015
  1. Merge pull request #31 from jugglinmike/badge-url

    fb55 committed Jul 6, 2015
    Correct URL for CI status "badge" icon
  2. Correct URL for CI status "badge" icon

    jugglinmike committed Jul 6, 2015
    The icon referenced from the project's README file should describe the
    state of the continuous integration for this project.
Commits on Jul 4, 2015
  1. Merge pull request #30 from jugglinmike/failing-test

    fb55 committed Jul 4, 2015
    scope regression
  2. Add failing test to demonstrate regression

    jugglinmike committed Jul 4, 2015
    Commit 0f0daad introduced a breaking
    change in this library's functionality: the selection API no longer
    matches against elements specified via an array when those elements are
    not root nodes.
    
    There were previously no tests asserting this behavior, but the change
    should be considered "breaking" for two reasons:
    
    1. it is inconsistent--root nodes may still be queried in this way
    2. the project's documentation implies the original behavior:
    
       > ### `CSSselect(query, elems, options)`
       >
       > Queries `elems`, returns an array containing all matches.
       >
       > - `query` can be either a CSS selector or a function.
       > - `elems` can be either an array of elements, or a single element. If
       >    it is an element, its children will be queried.
       > - `options` is described below.
    
    Add one test that continues to work as expected (selecting from a root
    node) and an equivalent test that was made to fail by the commit
    mentioned above.
Commits on Mar 20, 2015
Commits on Mar 14, 2015
  1. use nth-check 1.0.1

    fb55 committed Mar 14, 2015
Commits on Mar 13, 2015
  1. pseudos: fixed scope

    fb55 committed Mar 13, 2015
Commits on Mar 12, 2015
  1. started working on better sorting

    fb55 committed Mar 12, 2015
Commits on Mar 6, 2015
  1. index: export compileToken

    fb55 committed Mar 6, 2015