Skip to content

Commit

Permalink
build(deps-dev): bump prettier from 3.0.3 to 3.1.1 (#3536)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump prettier from 3.0.3 to 3.1.1

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.0.3...3.1.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* format

* format

* format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Felix Boehm <[email protected]>
  • Loading branch information
dependabot[bot] and fb55 authored Jan 2, 2024
1 parent eef2483 commit 8ce7ff5
Show file tree
Hide file tree
Showing 34 changed files with 379 additions and 379 deletions.
2 changes: 1 addition & 1 deletion benchmark/benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ suites.add<Cheerio<Element>>(
test(_, $body) {
$body.prepend('<div>'.repeat(50));
},
}
},
);
suites.add<Cheerio<Element>>('manipulation - after - highmem', 'jquery.html', {
setup($) {
Expand Down
4 changes: 2 additions & 2 deletions benchmark/suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import cheerio from '../lib/index.js';
const documentDir = path.join(__dirname, 'documents');
const jQuerySrc = fs.readFileSync(
path.join(__dirname, '../node_modules/jquery/dist/jquery.slim.js'),
'utf8'
'utf8',
);
const jQueryScript = new Script(jQuerySrc);
let filterRe = /./;
Expand Down Expand Up @@ -82,7 +82,7 @@ export default class Suites {
_benchCheerio<T>(
suite: Suite,
markup: string,
options: SuiteOptions<T>
options: SuiteOptions<T>,
): void {
const $ = cheerio.load(markup);
const testFn = options.test;
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"jquery": "^3.7.1",
"jsdom": "^23.0.1",
"lint-staged": "^15.2.0",
"prettier": "^3.0.3",
"prettier": "^3.1.1",
"prettier-plugin-jsdoc": "^1.3.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand All @@ -109,7 +109,7 @@
"format": "npm run format:es && npm run format:prettier",
"format:es": "npm run lint:es -- --fix",
"format:prettier": "npm run format:prettier:raw -- --write",
"format:prettier:raw": "prettier \"**/*.{{m,c,}{j,t}s{x,},md,json,yml}\" --ignore-path .gitignore",
"format:prettier:raw": "prettier \"**/*.{{m,c,}{j,t}s{x,},md{x,},json,y{a,}ml}\" --ignore-path .gitignore",
"benchmark": "npm run build:cjs && ts-node benchmark/benchmark.ts --regex \"^(?!.*highmem)\"",
"update-sponsors": "node --loader ts-node/esm scripts/fetch-sponsors.mts",
"bench": "npm run benchmark",
Expand All @@ -125,7 +125,6 @@
"singleQuote": true,
"tabWidth": 2,
"proseWrap": "always",
"trailingComma": "es5",
"plugins": [
"./node_modules/prettier-plugin-jsdoc/dist/index.js"
],
Expand Down
10 changes: 5 additions & 5 deletions scripts/fetch-sponsors.mts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function fetchGitHubSponsors(): Promise<Sponsor[]> {
headers: {
authorization: `token ${CHEERIO_SPONSORS_GITHUB_TOKEN}`,
},
}
},
);

// Return an array in the same format as Open Collective
Expand All @@ -218,7 +218,7 @@ async function fetchGitHubSponsors(): Promise<Sponsor[]> {
monthlyDonation: tier.monthlyPriceInDollars * 100,
source: 'github',
tier: getTierSlug(tier.monthlyPriceInDollars),
})
}),
);
}

Expand Down Expand Up @@ -304,7 +304,7 @@ let readme = await fs.readFile(README_PATH, 'utf8');
for (let sectionStartIndex = 0; ; ) {
sectionStartIndex = readme.indexOf(
SECTION_START_BEGINNING,
sectionStartIndex
sectionStartIndex,
);

if (sectionStartIndex < 0) break;
Expand All @@ -313,7 +313,7 @@ for (let sectionStartIndex = 0; ; ) {

const sectionStartEndIndex = readme.indexOf(
SECTION_START_END,
sectionStartIndex
sectionStartIndex,
);
const sectionName = readme
.slice(sectionStartIndex, sectionStartEndIndex)
Expand All @@ -336,7 +336,7 @@ for (let sectionStartIndex = 0; ; ) {
fit: 'fillmax',
fill: 'solid',
})}" title="${s.name}" alt="${s.name}"></img>
</a>`
</a>`,
)
.join('\n')}\n\n${readme.slice(sectionEndIndex)}`;
}
Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/deprecated.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,26 +227,26 @@ describe('deprecated APIs', () => {

it('(cheerio object) : should omit comment nodes', () => {
const $ = cheerio.load(
'<a>This is <!-- a comment --> not a comment.</a>'
'<a>This is <!-- a comment --> not a comment.</a>',
);
expect($.text($('a'))).toBe('This is not a comment.');
});

it('(cheerio object) : should include text contents of children recursively', () => {
const $ = cheerio.load(
'<a>This is <div>a child with <span>another child and <!-- a comment --> not a comment</span> followed by <em>one last child</em> and some final</div> text.</a>'
'<a>This is <div>a child with <span>another child and <!-- a comment --> not a comment</span> followed by <em>one last child</em> and some final</div> text.</a>',
);
expect($.text($('a'))).toBe(
'This is a child with another child and not a comment followed by one last child and some final text.'
'This is a child with another child and not a comment followed by one last child and some final text.',
);
});

it('() : should return the rendered text content of the root', () => {
const $ = cheerio.load(
'<a>This is <div>a child with <span>another child and <!-- a comment --> not a comment</span> followed by <em>one last child</em> and some final</div> text.</a>'
'<a>This is <div>a child with <span>another child and <!-- a comment --> not a comment</span> followed by <em>one last child</em> and some final</div> text.</a>',
);
expect($.text()).toBe(
'This is a child with another child and not a comment followed by one last child and some final text.'
'This is a child with another child and not a comment followed by one last child and some final text.',
);
});

Expand All @@ -257,7 +257,7 @@ describe('deprecated APIs', () => {

it('(cheerio object) : should omit style tags', () => {
const $ = cheerio.load(
'<style type="text/css">.cf-hidden { display: none; }</style>'
'<style type="text/css">.cf-hidden { display: none; }</style>',
);
expect($.text()).toBe('.cf-hidden { display: none; }');
});
Expand Down
8 changes: 4 additions & 4 deletions src/__tests__/xml.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('render', () => {
const str =
'<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123" />';
expect(xml(str)).toBe(
'<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>'
'<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>',
);
});

Expand All @@ -42,14 +42,14 @@ describe('render', () => {
it('should not keep camelCase for new nodes', () => {
const str = '<g><someElem someAttribute="something">hello</someElem></g>';
expect(dom(str, { xml: false })).toBe(
'<someelem someattribute="something">hello</someelem>'
'<someelem someattribute="something">hello</someelem>',
);
});

it('should keep camelCase for new nodes', () => {
const str = '<g><someElem someAttribute="something">hello</someElem></g>';
expect(dom(str, { xml: true })).toBe(
'<someElem someAttribute="something">hello</someElem>'
'<someElem someAttribute="something">hello</someElem>',
);
});

Expand All @@ -58,7 +58,7 @@ describe('render', () => {
const $ = cheerio.load('', { xml: false });

expect($(str).html()).toBe(
'<someelem someattribute="something">hello</someelem>'
'<someelem someattribute="something">hello</someelem>',
);
});
});
Expand Down
Loading

0 comments on commit 8ce7ff5

Please sign in to comment.