@ctx-core/graphql-client 7.0.107 → 7.0.112

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/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # @ctx-core/graphql-client
2
2
 
3
+ ## 7.0.112
4
+
5
+ ### Patch Changes
6
+
7
+ - tsconfig.json: "target": "ES2021"
8
+ - Updated dependencies
9
+ - @ctx-core/dom@11.0.47
10
+ - @ctx-core/fetch@11.0.100
11
+ - @ctx-core/object@22.0.7
12
+
13
+ ## 7.0.111
14
+
15
+ ### Patch Changes
16
+
17
+ - package.json: "types": "./src/index.ts": better editing experience
18
+ - Updated dependencies
19
+ - @ctx-core/dom@11.0.46
20
+ - @ctx-core/fetch@11.0.99
21
+ - @ctx-core/object@22.0.6
22
+
23
+ ## 7.0.110
24
+
25
+ ### Patch Changes
26
+
27
+ - @types/node: ^16.11.13 -> ^17.0.0
28
+ - fix: build
29
+ - Updated dependencies
30
+ - @ctx-core/dom@11.0.45
31
+ - @ctx-core/fetch@11.0.98
32
+ - @ctx-core/object@22.0.5
33
+
34
+ ## 7.0.109
35
+
36
+ ### Patch Changes
37
+
38
+ - \*.d.ts export
39
+ - Updated dependencies
40
+ - @ctx-core/dom@11.0.44
41
+ - @ctx-core/fetch@11.0.97
42
+ - @ctx-core/object@22.0.4
43
+
44
+ ## 7.0.108
45
+
46
+ ### Patch Changes
47
+
48
+ - fix: tsconfig.json: "rootDir": "."
49
+ - Updated dependencies
50
+ - @ctx-core/dom@11.0.43
51
+ - @ctx-core/fetch@11.0.96
52
+ - @ctx-core/object@22.0.3
53
+
3
54
  ## 7.0.107
4
55
 
5
56
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ export interface FetchHttpHeaders extends Record<string, string> {
2
+ 'Content-Type': string;
3
+ }
@@ -0,0 +1,5 @@
1
+ import type { FetchHttpHeaders } from './FetchHttpHeaders.js';
2
+ export interface FetchHttpOpts {
3
+ url?: string;
4
+ headers?: FetchHttpHeaders;
5
+ }
@@ -0,0 +1,6 @@
1
+ import type { FetchHttpOpts } from './FetchHttpOpts.js';
2
+ export declare function graphql_fetch<data_T extends unknown = unknown>(body: string, fn_in_http_opts?: FetchHttpOpts): Promise<graphql_fetch_response_T<data_T>>;
3
+ export interface graphql_fetch_response_T<data_T extends unknown = unknown> {
4
+ data: data_T;
5
+ }
6
+ export { graphql_fetch as fetch_graphql, graphql_fetch as fetch__graphql, };
@@ -0,0 +1,4 @@
1
+ import type { FetchHttpOpts } from './FetchHttpOpts.js';
2
+ export declare function graphql_fetch_<O1 extends unknown = unknown>(in_http_opts?: FetchHttpOpts): graphql_fetch_T<O1>;
3
+ export declare type graphql_fetch_T<O extends unknown = unknown> = (body: string, fn_in_http_opts: FetchHttpOpts) => Promise<O>;
4
+ export { graphql_fetch_ as _graphql_fetch, graphql_fetch_ as _fetch__graphql, };
@@ -0,0 +1,2 @@
1
+ export declare function graphql_port_txt_(port?: string | undefined): string;
2
+ export { graphql_port_txt_ as _graphql_port_txt, graphql_port_txt_ as _txt__port__graphql, };
@@ -0,0 +1,2 @@
1
+ export declare function graphql_url_(host?: string): string;
2
+ export { graphql_url_ as _graphql_url, graphql_url_ as _url__graphql, };
@@ -0,0 +1,6 @@
1
+ export * from './graphql_fetch_.js';
2
+ export * from './graphql_port_txt_.js';
3
+ export * from './graphql_url_.js';
4
+ export * from './FetchHttpHeaders.js';
5
+ export * from './FetchHttpOpts.js';
6
+ export * from './graphql_fetch.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/graphql-client",
3
- "version": "7.0.107",
3
+ "version": "7.0.112",
4
4
  "description": "ctx-core graphql-client",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -17,22 +17,22 @@
17
17
  "license": "Apache-2.0",
18
18
  "author": "Brian Takita",
19
19
  "type": "module",
20
+ "types": "./src/index.ts",
20
21
  "exports": {
21
22
  ".": {
22
- "import": "./dist/index.js",
23
- "types": "./src/index.ts"
23
+ "import": "./dist/index.js"
24
24
  },
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@ctx-core/dom": "^11.0.42",
29
- "@ctx-core/fetch": "^11.0.95",
30
- "@ctx-core/object": "^22.0.2"
28
+ "@ctx-core/dom": "^11.0.47",
29
+ "@ctx-core/fetch": "^11.0.100",
30
+ "@ctx-core/object": "^22.0.7"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@swc/cli": "^0.1.55",
34
34
  "@swc/core": "^1.2.120",
35
- "@types/node": "^16.11.13",
35
+ "@types/node": "^17.0.0",
36
36
  "rimraf": "^3.0.2",
37
37
  "typescript": "next"
38
38
  },
@@ -44,8 +44,12 @@
44
44
  "scripts": {
45
45
  "@ctx-core/graphql": "workspace:^9.0.30",
46
46
  "build": "npm run compile",
47
- "clean": "rimraf dist",
48
- "compile": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
47
+ "clean": "rimraf dist && npm run clean_tsbuildinfo",
48
+ "clean_tsbuildinfo": "rm -f tsconfig.tsbuildinfo && rm -f dist/**/*.d.ts",
49
+ "compile": "npm run compile_source && npm run compile_declaration",
50
+ "compile_source": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
51
+ "compile_declaration": "npm run clean_tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir dist",
49
52
  "exec": "$@"
50
- }
53
+ },
54
+ "readme": "# @ctx-core/graphql-client\n\nGraphQL client logic\n"
51
55
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compileOnSave": true,
3
3
  "compilerOptions": {
4
- "target": "ES2020",
4
+ "target": "ES2021",
5
5
  "composite": true,
6
6
  "declaration": true,
7
7
  "sourceMap": true,
@@ -23,7 +23,6 @@
23
23
  ],
24
24
  "rootDir": "src",
25
25
  "outDir": "dist",
26
- "mapRoot": "",
27
26
  "declarationDir": "dist",
28
27
  "lib": ["dom", "ESNext"],
29
28
  "types": [