Skip to content

Commit

Permalink
Revert #2046
Browse files Browse the repository at this point in the history
We never released this API, so let's revert it.

Custom pseudos can now be added using the `pseudos` option.
  • Loading branch information
fb55 committed May 20, 2022
1 parent b07df4c commit 1cb0fce
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,6 @@ export const load = getLoad(parse, (dom, options) =>
*/
export default load([]);

import { filters, pseudos, aliases } from 'cheerio-select';

/**
* Extension points for adding custom pseudo selectors.
*
* @deprecated Use the `options.pseudos` option instead.
* @example <caption>Adds a custom pseudo selector `:classic`, which matches
* some fun HTML elements that are no more.</caption>
*
* ```js
* import { load, select } from 'cheerio';
*
* // Aliases are short hands for longer HTML selectors
* select.aliases.classic = 'marquee,blink';
*
* const $ = load(doc);
* $(':classic').html();
* ```
*/
export const select = { filters, pseudos, aliases };

export { html, xml, text } from './static.js';

import * as staticMethods from './static.js';
Expand Down

0 comments on commit 1cb0fce

Please sign in to comment.