Skip to content

Commit 0810986

Browse files
committed
chore: update LICENSE, README and npm keywords
1 parent c663854 commit 0810986

18 files changed

Lines changed: 189 additions & 73 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright © 2021 GQty
3+
Copyright © 2024 GQty
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@
1414

1515
[![GQty Hero Section](internal/images/hero.png)](https://gqty.dev)
1616

17-
---
17+
Data requirements within your application are picked up automatically, freeing
18+
you from having to maintain GraphQL queries by-hand. It offers a first-class
19+
TypeScript experience. See API documentation at all times within autocomplete.
1820

19-
Head over to [gqty.dev](https://gqty.dev) to explore features and documentation.
21+
Make breaking changes to your API, and see type-errors exactly where things are
22+
breaking, in realtime. No more running a separate validation step.
2023

21-
---
24+
**Head over to [gqty.dev](https://gqty.dev) to explore features and
25+
documentations!**
2226

2327
## Get involved
2428

25-
Documentation, bug reports, pull requests, and all other contributions are
26-
welcome! See [`CONTRIBUTING.md`](CONTRIBUTING.md).
27-
28-
Docs powered by [Vercel](https://vercel.com/?utm_source=gqty&utm_campaign=oss)
29+
Documentation, bug reports, pull requests, and other contributions are welcomed!
30+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for more information.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"prepare": "husky install",
1717
"publish:all": "changeset version && pnpm i && pnpm test && pnpm -r publish --access public",
1818
"test": "pnpm test -r --no-sort --no-bail --stream --",
19-
"test:ci": "pnpm test -r --workspace-concurrency=0 --no-sort --no-bail --stream --"
19+
"test:ci": "CI=1 pnpm test -r --workspace-concurrency=0 --no-sort --no-bail --stream --"
2020
},
2121
"devDependencies": {
2222
"@changesets/apply-release-plan": "^7.0.0",

packages/cli/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright © 2021 GQty
3+
Copyright © 2024 GQty
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

packages/cli/README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1-
# @gqty/cli
1+
<p align="center">
2+
<a href="https://gqty.dev">
3+
<img src="https://github.com/gqty-dev/gqty/raw/main/internal/images/logo.png
4+
" height="150" alt="gqty" />
5+
</a>
6+
</p>
27

3-
## Visit [https://gqty.dev/docs/cli/codegen](https://gqty.dev/docs/cli/codegen)
8+
<h2 align="center">
9+
The No-GraphQL Client for TypeScript
10+
11+
[![Documentation](https://img.shields.io/badge/documentation-documentation?color=C00B84)](https://gqty.dev)
12+
[![Discord](https://img.shields.io/discord/874477141834739762?color=7289d9&label=discord)](https://discord.gg/U967mp5qbQ)
13+
14+
</h2>
15+
16+
[![GQty Hero Section](https://github.com/gqty-dev/gqty/raw/main/internal/images/hero.png)](https://gqty.dev)
17+
18+
Data requirements within your application are picked up automatically, freeing
19+
you from having to maintain GraphQL queries by-hand. It offers a first-class
20+
TypeScript experience. See API documentation at all times within autocomplete.
21+
22+
Make breaking changes to your API, and see type-errors exactly where things are
23+
breaking, in realtime. No more running a separate validation step.
24+
25+
**Head over to [gqty.dev](https://gqty.dev) to explore features and
26+
documentations!**
27+
28+
## Get involved
29+
30+
Documentation, bug reports, pull requests, and other contributions are welcomed!
31+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for more information.

packages/cli/package.json

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"name": "@gqty/cli",
3+
"private": false,
4+
"sideEffects": false,
35
"version": "3.3.0",
46
"homepage": "https://gqty.dev",
57
"repository": {
@@ -11,30 +13,24 @@
1113
"maintainers": [
1214
"Vicary Archangel <vicary.archangel@member.mensa.org>"
1315
],
14-
"sideEffects": false,
15-
"exports": {
16-
".": {
17-
"require": "./dist/index.js",
18-
"import": "./dist/index.mjs",
19-
"types": "./dist/index.d.ts"
20-
},
21-
"./deps": "./dist/deps.js",
22-
"./*": {
23-
"require": "./dist/*.js",
24-
"import": "./dist/*.mjs",
25-
"types": "./dist/*.d.ts"
26-
}
27-
},
28-
"main": "dist/index.js",
29-
"module": "dist/index.mjs",
30-
"typings": "dist/index.d.ts",
3116
"bin": {
3217
"gqty": "bin/gqty.mjs"
3318
},
3419
"files": [
3520
"dist",
3621
"src"
3722
],
23+
"publishConfig": {
24+
"directory": "dist"
25+
},
26+
"keywords": [
27+
"client",
28+
"codegen",
29+
"gqty",
30+
"graphql",
31+
"interactive",
32+
"reactive"
33+
],
3834
"scripts": {
3935
"analyze": "size-limit --why",
4036
"build": "bob-tsm build.ts",
@@ -79,19 +75,5 @@
7975
"test-utils": "workspace:^",
8076
"tmp-promise": "^3.0.3",
8177
"wait-on": "^7.2.0"
82-
},
83-
"publishConfig": {
84-
"directory": "dist"
85-
},
86-
"typesVersions": {
87-
"*": {
88-
"dist/index.d.ts": [
89-
"dist/index.d.ts"
90-
],
91-
"*": [
92-
"dist/*",
93-
"dist/*/index.d.ts"
94-
]
95-
}
9678
}
9779
}

packages/gqty/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright © 2021 GQty
3+
Copyright © 2024 GQty
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

packages/gqty/README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
1-
# [GQty](https://gqty.dev) [![Documentation](https://img.shields.io/badge/documentation-documentation?color=C00B84)](https://gqty.dev)
1+
<p align="center">
2+
<a href="https://gqty.dev">
3+
<img src="https://github.com/gqty-dev/gqty/raw/main/internal/images/logo.png
4+
" height="150" alt="gqty" />
5+
</a>
6+
</p>
27

3-
> GQty is a fully-featured GraphQL client, which lowers the barrier of entry towards using GraphQL.
8+
<h2 align="center">
9+
The No-GraphQL Client for TypeScript
410

5-
Data requirements within your application are picked up automatically, freeing you from having to maintain GraphQL queries by-hand. It offers a first-class TypeScript experience. See API documentation at all times within autocomplete.
11+
[![Documentation](https://img.shields.io/badge/documentation-documentation?color=C00B84)](https://gqty.dev)
12+
[![Discord](https://img.shields.io/discord/874477141834739762?color=7289d9&label=discord)](https://discord.gg/U967mp5qbQ)
613

7-
Make breaking changes to your API, and see type-errors exactly where things are breaking, in realtime. No more running a separate validation step.
14+
</h2>
815

9-
**More documentation is available at [gqty.dev/docs/getting-started](https://gqty.dev/docs/getting-started).**
16+
[![GQty Hero Section](https://github.com/gqty-dev/gqty/raw/main/internal/images/hero.png)](https://gqty.dev)
1017

11-
<a href="https://gqty.dev">
12-
<img alt="Example usage" src="https://user-images.githubusercontent.com/13242392/112103674-fddc4980-8ba1-11eb-8c83-b527dcb0243d.PNG" />
13-
</a>
18+
Data requirements within your application are picked up automatically, freeing
19+
you from having to maintain GraphQL queries by-hand. It offers a first-class
20+
TypeScript experience. See API documentation at all times within autocomplete.
21+
22+
Make breaking changes to your API, and see type-errors exactly where things are
23+
breaking, in realtime. No more running a separate validation step.
24+
25+
**Head over to [gqty.dev](https://gqty.dev) to explore features and
26+
documentations!**
27+
28+
## Get involved
29+
30+
Documentation, bug reports, pull requests, and other contributions are welcomed!
31+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for more information.

packages/gqty/src/Client/compat/subscriptionsClient.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createDeferredIterator } from 'gqty/Utils/deferred';
1+
import { createDeferredIterator } from '../../Utils/deferred';
22
import type { ExecutionResult } from 'graphql';
33
import type {
44
Client,
@@ -16,7 +16,7 @@ import type { LegacySelection as Selection } from './selection';
1616
type Promisable<T> = T | Promise<T>;
1717

1818
export type LegacySubscriptionsClient<
19-
TData extends Record<string, unknown> = Record<string, unknown>
19+
TData extends Record<string, unknown> = Record<string, unknown>,
2020
> = {
2121
subscribe(opts: {
2222
query: string;
@@ -46,7 +46,7 @@ export type LegacySubscriptionsClient<
4646
};
4747

4848
export interface LegacySubscribeEvents<
49-
TData extends Record<string, unknown> = Record<string, unknown>
49+
TData extends Record<string, unknown> = Record<string, unknown>,
5050
> {
5151
onData: (data: TData) => void;
5252
onError: (payload: { error: GQtyError; data: TData | null }) => void;
@@ -71,7 +71,7 @@ export const createLegacySubscriptionsClient = (
7171
const client = {
7272
subscribe: <
7373
TData = Record<string, unknown>,
74-
TExtensions = Record<string, unknown>
74+
TExtensions = Record<string, unknown>,
7575
>(
7676
payload: SubscribePayload,
7777
sink: Sink<ExecutionResult<TData, TExtensions>>
@@ -143,7 +143,7 @@ export const createLegacySubscriptionsClient = (
143143
},
144144
iterate<
145145
TData = Record<string, unknown>,
146-
TExtensions = Record<string, unknown>
146+
TExtensions = Record<string, unknown>,
147147
>(
148148
payload: SubscribePayload
149149
): AsyncIterableIterator<ExecutionResult<TData, TExtensions>> {

packages/gqty/src/Client/resolvers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ export type CreateResolverFn<TSchema extends BaseGeneratedSchema> = (
8383
) => ResolverParts<TSchema>;
8484

8585
export type ResolveFn<TSchema extends BaseGeneratedSchema> = <
86-
TData extends unknown = unknown
86+
TData extends unknown = unknown,
8787
>(
8888
fn: DataFn<TSchema, TData>,
8989
options?: ResolveOptions
9090
) => Promise<TData>;
9191

9292
export type SubscribeFn<TSchema extends BaseGeneratedSchema> = <
93-
TData extends unknown = unknown
93+
TData extends unknown = unknown,
9494
>(
9595
fn: DataFn<TSchema, TData>,
9696
options?: SubscribeOptions
@@ -126,6 +126,7 @@ export type ResolverOptions = {
126126
/** Custom GraphQL extensions to be exposed to the query fetcher. */
127127
extensions?: Record<string, unknown>;
128128

129+
/** Retry strategy upon fetch failure. */
129130
retryPolicy?: RetryOptions;
130131

131132
onSelect?: SchemaContext['select'];

0 commit comments

Comments
 (0)