Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3 (#326)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [prettier](https://prettier.io)
([source](https://togithub.com/prettier/prettier)) | [`2.8.8` ->
`3.0.0`](https://renovatebot.com/diffs/npm/prettier/2.8.8/3.0.0) |
[![age](https://badges.renovateapi.com/packages/npm/prettier/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/prettier/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/prettier/3.0.0/compatibility-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/prettier/3.0.0/confidence-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prettier/prettier (prettier)</summary>

###
[`v3.0.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;300)

[Compare
Source](https://togithub.com/prettier/prettier/compare/2.8.8...3.0.0)


[diff](https://togithub.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.0)

🔗 [Release Notes](https://prettier.io/blog/2023/07/05/3.0.0.html)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/octokit/rest.js).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Create or Update Pull Request Action <create-or-update-pull-request@users.noreply.github.com>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
  • Loading branch information
3 people committed Jul 6, 2023
1 parent 36d1a72 commit 64ca2b9
Show file tree
Hide file tree
Showing 26 changed files with 95 additions and 95 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/endpoint-group.js
Expand Up @@ -32,7 +32,7 @@ export default class EndPointGroup extends Component {
entries.forEach((entry) => {
if (entry.isIntersecting) {
console.log(
`EndPointGroup.entry.intersectionRatio: ${entry.intersectionRatio}`
`EndPointGroup.entry.intersectionRatio: ${entry.intersectionRatio}`,
);
const isAbove = entry.boundingClientRect.y < entry.rootBounds.y;
console.log(`isAbove ${isAbove}`);
Expand All @@ -41,7 +41,7 @@ export default class EndPointGroup extends Component {

if (entry.intersectionRatio >= 0.1) {
console.log(
`EndPointGroup.onIntersection ${this.props.node.fieldValue}`
`EndPointGroup.onIntersection ${this.props.node.fieldValue}`,
);
this.props.onVisibleEndPointGroup(this.props.node.fieldValue);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/index-page.js
Expand Up @@ -76,7 +76,7 @@ export default class IndexPage extends Component {
<option key={id} value={sourceInstanceName}>
{sourceInstanceName}
</option>
)
),
)}
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/search.js
Expand Up @@ -60,7 +60,7 @@ export default class Search extends Component {
<SearchResults
results={this.state.results.slice(
0,
this.state.visibleResultsCount
this.state.visibleResultsCount,
)}
/>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/api/00_usage.md
Expand Up @@ -189,7 +189,7 @@ const myOctokit = new MyOctokit({
throttle: {
onRateLimit: (retryAfter, options) => {
myOctokit.log.warn(
`Request quota exhausted for request ${options.method} ${options.url}`
`Request quota exhausted for request ${options.method} ${options.url}`,
);

if (options.request.retryCount === 0) {
Expand All @@ -201,7 +201,7 @@ const myOctokit = new MyOctokit({
onSecondaryRateLimit: (retryAfter, options, octokit) => {
// does not retry, only logs a warning
octokit.log.warn(
`Secondary quota detected for request ${options.method} ${options.url}`
`Secondary quota detected for request ${options.method} ${options.url}`,
);
},
},
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/api/05_pagination.md
Expand Up @@ -27,7 +27,7 @@ octokit
.paginate(
"GET /repos/{owner}/{repo}/issues",
{ owner: "octokit", repo: "rest.js" },
(response) => response.data.map((issue) => issue.title)
(response) => response.data.map((issue) => issue.title),
)
.then((issueTitles) => {
// issueTitles is now an array with the titles only
Expand All @@ -45,7 +45,7 @@ octokit.paginate(
done();
}
return response.data;
}
},
);
```

Expand All @@ -70,7 +70,7 @@ for await (const response of octokit.paginate.iterator(
{
owner: "octokit",
repo: "rest.js",
}
},
)) {
// do whatever you want with each response, break out of the loop, etc.
}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/api/08_plugins.md
Expand Up @@ -9,7 +9,7 @@ You can customize and extend Octokit’s functionality using plugins
const { Octokit } = require("@octokit/rest");
const MyOctokit = Octokit.plugin(
require("./lib/my-plugin"),
require("octokit-plugin-example")
require("octokit-plugin-example"),
);

// lib/my-plugin.js
Expand All @@ -21,7 +21,7 @@ module.exports = (octokit, options = { greeting: "Hello" }) => {
octokit.log.info(
`${options.method} ${options.url}${response.status} in ${
Date.now() - time
}ms`
}ms`,
);
return response;
});
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/api/09_throttling.md
Expand Up @@ -20,7 +20,7 @@ const octokit = new MyOctokit({
throttle: {
onRateLimit: (retryAfter, options) => {
octokit.log.warn(
`Request quota exhausted for request ${options.method} ${options.url}`
`Request quota exhausted for request ${options.method} ${options.url}`,
);

// Retry twice after hitting a rate limit error, then give up
Expand All @@ -32,7 +32,7 @@ const octokit = new MyOctokit({
onSecondaryRateLimit: (retryAfter, options, octokit) => {
// does not retry, only logs a warning
octokit.log.warn(
`Secondary quota detected for request ${options.method} ${options.url}`
`Secondary quota detected for request ${options.method} ${options.url}`,
);
},
},
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,7 +49,7 @@
"fetch-mock": "^9.0.0",
"glob": "^10.2.5",
"jest": "^29.0.0",
"prettier": "2.8.8",
"prettier": "3.0.0",
"semantic-release": "^21.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^29.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -9,7 +9,7 @@ import { VERSION } from "./version";
export const Octokit = Core.plugin(
requestLog,
legacyRestEndpointMethods,
paginateRest
paginateRest,
).defaults({
userAgent: `octokit-rest.js/${VERSION}`,
});
Expand Down
2 changes: 1 addition & 1 deletion test/integration/agent-ca/agent-ca-test.js
Expand Up @@ -22,7 +22,7 @@ describe("custom client certificate", () => {
response.writeHead(200);
response.write("ok");
response.end();
}
},
);

server.listen(0, done);
Expand Down

0 comments on commit 64ca2b9

Please sign in to comment.