Skip to content

Commit 1afe0ec

Browse files
Update dependency @theguild/prettier-config to v1 (#676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
1 parent 85aa5ae commit 1afe0ec

File tree

420 files changed

+5562
-2863
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

420 files changed

+5562
-2863
lines changed

.changeset/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changesets
22

3-
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4-
with multi-package repos, or single-package repos to help you version and publish your code. You can
5-
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool
4+
that works with multi-package repos, or single-package repos to help you version and publish your
5+
code. You can find the full documentation for it
6+
[in our repository](https://github.com/changesets/changesets)
67

78
We have a quick list of common questions to get you started engaging with this project in
89
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.eslintrc.cjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ module.exports = {
2626
rules: {
2727
'no-process-env': 'error',
2828
'no-restricted-globals': ['error', 'stop'],
29-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', ignoreRestSiblings: true }],
29+
'@typescript-eslint/no-unused-vars': [
30+
'error',
31+
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
32+
],
3033
'no-empty': ['error', { allowEmptyCatch: true }],
3134

3235
'import/no-absolute-path': 'error',

.github/workflows/cd.yaml

+12-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
run: pnpm build:libraries
4646

4747
- name: Schema Publish
48-
run: ./packages/libraries/cli/bin/dev schema:publish "packages/services/api/src/modules/*/module.graphql.ts" --force --github
48+
run:
49+
./packages/libraries/cli/bin/dev schema:publish
50+
"packages/services/api/src/modules/*/module.graphql.ts" --force --github
4951

5052
- name: Prepare NPM Credentials
5153
run: |
@@ -65,7 +67,9 @@ jobs:
6567
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6668

6769
- name: Extract published version
68-
if: steps.changesets.outputs.published && contains(steps.changesets.outputs.publishedPackages, '"@graphql-hive/cli"')
70+
if:
71+
steps.changesets.outputs.published && contains(steps.changesets.outputs.publishedPackages,
72+
'"@graphql-hive/cli"')
6973
id: cli
7074
run: |
7175
echo '${{steps.changesets.outputs.publishedPackages}}' > cli-ver.json
@@ -88,7 +92,9 @@ jobs:
8892
working-directory: packages/libraries/cli
8993
env:
9094
VERSION: ${{ steps.cli.outputs.version }}
91-
run: pnpm oclif promote --no-xz --sha ${GITHUB_SHA:0:7} --version $VERSION || pnpm oclif promote --no-xz --sha ${GITHUB_SHA:0:8} --version $VERSION
95+
run:
96+
pnpm oclif promote --no-xz --sha ${GITHUB_SHA:0:7} --version $VERSION || pnpm oclif
97+
promote --no-xz --sha ${GITHUB_SHA:0:8} --version $VERSION
9298

9399
publish_rust:
94100
name: Publish Rust
@@ -316,7 +322,9 @@ jobs:
316322
run: strip target/x86_64-unknown-linux-gnu/release/router
317323

318324
- name: Compress
319-
run: ./target/x86_64-unknown-linux-gnu/release/compress ./target/x86_64-unknown-linux-gnu/release/router ./router.tar.gz
325+
run:
326+
./target/x86_64-unknown-linux-gnu/release/compress
327+
./target/x86_64-unknown-linux-gnu/release/router ./router.tar.gz
320328

321329
- name: Upload artifact
322330
uses: actions/upload-artifact@v3

.github/workflows/ci.yaml

+8-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ jobs:
1717
POSTGRES_USER: postgres
1818
POSTGRES_DB: registry
1919
options: >-
20-
--health-cmd pg_isready
21-
--health-interval 10s
22-
--health-timeout 5s
23-
--health-retries 5
20+
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2421
2522
outputs:
2623
hive_token_present: ${{ steps.secrets_present.outputs.hive_token }}
@@ -128,7 +125,10 @@ jobs:
128125
id: pr-label-check
129126

130127
- name: Schema Check
131-
run: ./packages/libraries/cli/bin/dev schema:check "packages/services/api/src/modules/*/module.graphql.ts" ${{ steps.pr-label-check.outputs.SAFE_FLAG }} --github
128+
run:
129+
./packages/libraries/cli/bin/dev schema:check
130+
"packages/services/api/src/modules/*/module.graphql.ts" ${{
131+
steps.pr-label-check.outputs.SAFE_FLAG }} --github
132132

133133
test:
134134
name: Tests
@@ -283,7 +283,9 @@ jobs:
283283
run: strip target/x86_64-unknown-linux-gnu/release/router
284284

285285
- name: Compress
286-
run: ./target/x86_64-unknown-linux-gnu/release/compress ./target/x86_64-unknown-linux-gnu/release/router ./router.tar.gz
286+
run:
287+
./target/x86_64-unknown-linux-gnu/release/compress
288+
./target/x86_64-unknown-linux-gnu/release/router ./router.tar.gz
287289

288290
- name: Upload artifact
289291
uses: actions/upload-artifact@v3

CODE_OF_CONDUCT.md

+61-22
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,43 @@
22

33
## 1. Purpose
44

5-
A primary goal of GraphQL Hive is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
5+
A primary goal of GraphQL Hive is to be inclusive to the largest number of contributors, with the
6+
most varied and diverse backgrounds possible. As such, we are committed to providing a friendly,
7+
safe and welcoming environment for all, regardless of gender, sexual orientation, ability,
8+
ethnicity, socioeconomic status, and religion (or lack thereof).
69

7-
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
10+
This code of conduct outlines our expectations for all those who participate in our community, as
11+
well as the consequences for unacceptable behavior.
812

9-
We invite all those who participate in GraphQL Hive to help us create safe and positive experiences for everyone.
13+
We invite all those who participate in GraphQL Hive to help us create safe and positive experiences
14+
for everyone.
1015

1116
## 2. Open [Source/Culture/Tech] Citizenship
1217

13-
A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
18+
A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by
19+
encouraging participants to recognize and strengthen the relationships between our actions and their
20+
effects on our community.
1421

15-
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
22+
Communities mirror the societies in which they exist and positive action is essential to counteract
23+
the many forms of inequality and abuses of power that exist in society.
1624

17-
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
25+
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and
26+
encourages all participants to contribute to the fullest extent, we want to know.
1827

1928
## 3. Expected Behavior
2029

2130
The following behaviors are expected and requested of all community members:
2231

23-
- Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
32+
- Participate in an authentic and active way. In doing so, you contribute to the health and
33+
longevity of this community.
2434
- Exercise consideration and respect in your speech and actions.
2535
- Attempt collaboration before conflict.
2636
- Refrain from demeaning, discriminatory, or harassing behavior and speech.
27-
- Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
28-
- Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
37+
- Be mindful of your surroundings and of your fellow participants. Alert community leaders if you
38+
notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if
39+
they seem inconsequential.
40+
- Remember that community event venues may be shared with members of the public; please be
41+
respectful to all patrons of these locations.
2942

3043
## 4. Unacceptable Behavior
3144

@@ -35,56 +48,82 @@ The following behaviors are considered harassment and are unacceptable within ou
3548
- Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
3649
- Posting or displaying sexually explicit or violent material.
3750
- Posting or threatening to post other people's personally identifying information ("doxing").
38-
- Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
51+
- Personal insults, particularly those related to gender, sexual orientation, race, religion, or
52+
disability.
3953
- Inappropriate photography or recording.
4054
- Inappropriate physical contact. You should have someone's consent before touching them.
41-
- Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
55+
- Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching,
56+
groping, and unwelcomed sexual advances.
4257
- Deliberate intimidation, stalking or following (online or in person).
4358
- Advocating for, or encouraging, any of the above behavior.
4459
- Sustained disruption of community events, including talks and presentations.
4560

4661
## 5. Weapons Policy
4762

48-
No weapons will be allowed at GraphQL Hive events, community spaces, or in other spaces covered by the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives (including fireworks), and large knives such as those used for hunting or display, as well as any other item used for the purpose of causing injury or harm to others. Anyone seen in possession of one of these items will be asked to leave immediately, and will only be allowed to return without the weapon. Community members are further expected to comply with all state and local laws on this matter.
63+
No weapons will be allowed at GraphQL Hive events, community spaces, or in other spaces covered by
64+
the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives
65+
(including fireworks), and large knives such as those used for hunting or display, as well as any
66+
other item used for the purpose of causing injury or harm to others. Anyone seen in possession of
67+
one of these items will be asked to leave immediately, and will only be allowed to return without
68+
the weapon. Community members are further expected to comply with all state and local laws on this
69+
matter.
4970

5071
## 6. Consequences of Unacceptable Behavior
5172

52-
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
73+
Unacceptable behavior from any community member, including sponsors and those with decision-making
74+
authority, will not be tolerated.
5375

5476
Anyone asked to stop unacceptable behavior is expected to comply immediately.
5577

56-
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
78+
If a community member engages in unacceptable behavior, the community organizers may take any action
79+
they deem appropriate, up to and including a temporary ban or permanent expulsion from the community
80+
without warning (and without refund in the case of a paid event).
5781

5882
## 7. Reporting Guidelines
5983

60-
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. contact@the-guild.dev.
84+
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a
85+
community organizer as soon as possible. contact@the-guild.dev.
6186

62-
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
87+
Additionally, community organizers are available to help community members engage with local law
88+
enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context
89+
of in-person events, organizers will also provide escorts as desired by the person experiencing
90+
distress.
6391

6492
## 8. Addressing Grievances
6593

66-
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. [Policy](https://graphql-hive.com/privacy-policy.pdf)
94+
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should
95+
notify with a concise description of your grievance. Your grievance will be handled in accordance
96+
with our existing governing policies. [Policy](https://graphql-hive.com/privacy-policy.pdf)
6797

6898
## 9. Scope
6999

70-
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business.
100+
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests)
101+
to abide by this Code of Conduct in all community venues--online and in-person--as well as in all
102+
one-on-one communications pertaining to community business.
71103

72-
This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
104+
This code of conduct and its related procedures also applies to unacceptable behavior occurring
105+
outside the scope of community activities when such behavior has the potential to adversely affect
106+
the safety and well-being of community members.
73107

74108
## 10. Contact info
75109

76110
contact@the-guild.dev
77111

78112
## 11. License and attribution
79113

80-
The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
114+
The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org)
115+
under a
116+
[Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
81117

82-
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
118+
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/)
119+
and the
120+
[Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
83121

84122
_Revision 2.3. Posted 6 March 2017._
85123

86124
_Revision 2.2. Posted 4 February 2016._
87125

88126
_Revision 2.1. Posted 23 June 2014._
89127

90-
_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._
128+
_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10
129+
January 2013. Posted 17 March 2013._

README.md

+22-11
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
11
# GraphQL Hive
22

3-
GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schemas (Federation, Stitching).
3+
GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages,
4+
from standalone APIs to composed schemas (Federation, Stitching).
45

5-
- Visit [graphql-hive.com](https://graphql-hive.com) ([status page](https://status.graphql-hive.com/))
6+
- Visit [graphql-hive.com](https://graphql-hive.com)
7+
([status page](https://status.graphql-hive.com/))
68
- [Read the announcement blog post](https://www.the-guild.dev/blog/announcing-graphql-hive-public)
79
- [Read the docs](https://docs.graphql-hive.com)
810

911
## Built for the community, for all GraphQL APIs
1012

1113
GraphQL Hive has been built with 3 main objectives in mind:
1214

13-
- **Help GraphQL developers to get to know their GraphQL APIs** a little more with our Schema Registry, Performance Monitoring, Alerts, and Integrations.
15+
- **Help GraphQL developers to get to know their GraphQL APIs** a little more with our Schema
16+
Registry, Performance Monitoring, Alerts, and Integrations.
1417
- **Support all kinds of GraphQL APIs**, from Federation, and Stitching, to standalone APIs.
1518
- **Open Source at the heart**: 100% open-source and build in public with the community.
16-
- **A plug and play SaaS solution**: to give access to Hive to most people with a generous free "Hobby plan"
19+
- **A plug and play SaaS solution**: to give access to Hive to most people with a generous free
20+
"Hobby plan"
1721

1822
## Features Overview
1923

2024
### Schema Registry
2125

2226
GraphQL Hive offers 3 useful features to manage your GraphQL API:
2327

24-
- **Prevent breaking changes** - GraphQL Hive will run a set of checks and notify your team via Slack, GitHub, or within the application.
28+
- **Prevent breaking changes** - GraphQL Hive will run a set of checks and notify your team via
29+
Slack, GitHub, or within the application.
2530
- **Data-driven** definition of a “breaking change” based on Operations Monitoring.
26-
- **History of changes** - an access to the full history of changes, even on a complex composed schema (Federation, Stitching).
31+
- **History of changes** - an access to the full history of changes, even on a complex composed
32+
schema (Federation, Stitching).
2733
- **High-availability and multi-zone CDN** service based on Cloudflare to access Schema Registry
2834

2935
### Monitoring
3036

31-
Once a Schema is deployed, **it is important to be aware of how it is used and what is the experience of its final users**.
37+
Once a Schema is deployed, **it is important to be aware of how it is used and what is the
38+
experience of its final users**.
3239

3340
## Self-hosted
3441

35-
GraphQL Hive is completely open-source under the MIT license, meaning that you are free to host on your own infrastructure.
42+
GraphQL Hive is completely open-source under the MIT license, meaning that you are free to host on
43+
your own infrastructure.
3644

3745
GraphQL Hive helps you get a global overview of the usage of your GraphQL API with:
3846

@@ -43,13 +51,16 @@ GraphQL Hive helps you get a global overview of the usage of your GraphQL API wi
4351

4452
### Integrations
4553

46-
GraphQL Hive is well integrated with **Slack** and most **CI/CD** systems to get you up and running as smoothly as possible!
54+
GraphQL Hive is well integrated with **Slack** and most **CI/CD** systems to get you up and running
55+
as smoothly as possible!
4756

4857
GraphQL Hive can notify your team when schema changes occur, either via Slack or a custom webhook.
4958

50-
Also, the Hive CLI allows integration of the schema checks mechanism to all CI/CD systems (GitHub, BitBucket, Azure, and others). The same applies for schema publishing and operations checks.
59+
Also, the Hive CLI allows integration of the schema checks mechanism to all CI/CD systems (GitHub,
60+
BitBucket, Azure, and others). The same applies for schema publishing and operations checks.
5161

52-
If you are using GitHub, you can directly benefit from the **GraphQL Hive app that will automatically add status checks to your PRs**!
62+
If you are using GitHub, you can directly benefit from the **GraphQL Hive app that will
63+
automatically add status checks to your PRs**!
5364

5465
### Join us in building the future of GraphQL Hive
5566

0 commit comments

Comments
 (0)