@0no-co/graphql.web 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -16,20 +16,24 @@
|
|
|
16
16
|
<br />
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
`@0no-co/graphql.web` is
|
|
20
|
-
|
|
21
|
-
GraphQL
|
|
19
|
+
`@0no-co/graphql.web` is a utility library, aiming to provide the minimum of
|
|
20
|
+
functions that typical GraphQL clients need and would usually import from
|
|
21
|
+
`graphql`, e.g. a GraphQL query parser, printer, and visitor.
|
|
22
22
|
|
|
23
23
|
While its goal isn’t to be an exact match to [the GraphQL.js
|
|
24
|
-
API](https://graphql.org/graphql-js/graphql/) it aims to
|
|
24
|
+
API](https://graphql.org/graphql-js/graphql/) it aims to remain API- and
|
|
25
25
|
type-compatible where possible and necessary. However, its goal is to provide
|
|
26
26
|
the smallest implementation for common GraphQL utilities that are still either
|
|
27
27
|
spec-compliant or compatible with GraphQL.js’ implementation.
|
|
28
28
|
|
|
29
|
-
> **Note:**
|
|
30
|
-
> `graphql`
|
|
31
|
-
> project](https://github.com/0no-co/graphql-web-lite)
|
|
32
|
-
>
|
|
29
|
+
> **Note:** If you’re instead looking for a drop-in replacement for the
|
|
30
|
+
> `graphql` package that you can just alias into your web apps, read more about
|
|
31
|
+
> the [`graphql-web-lite` project](https://github.com/0no-co/graphql-web-lite),
|
|
32
|
+
> which uses this library to shim the `graphql` package.
|
|
33
|
+
|
|
34
|
+
[`@urql/core`](https://github.com/urql-graphql/urql) depends on this package to
|
|
35
|
+
power its GraphQL query parsing and printing. **If you’re using `@urql/core@^4`
|
|
36
|
+
you’re already using this library! ✨**
|
|
33
37
|
|
|
34
38
|
### Overview
|
|
35
39
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0no-co/graphql.web",
|
|
3
3
|
"description": "A spec-compliant client-side GraphQL implementation",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"author": "0no.co <hi@0no.co>",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./dist/graphql.web",
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
"vitest": "^0.29.7"
|
|
93
93
|
},
|
|
94
94
|
"publishConfig": {
|
|
95
|
-
"access": "public"
|
|
95
|
+
"access": "public",
|
|
96
|
+
"provenance": true
|
|
96
97
|
},
|
|
97
98
|
"scripts": {
|
|
98
99
|
"test": "vitest",
|