@constructive-io/graphql-codegen 5.7.4 → 5.9.0
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 +1 -0
- package/client/error.d.ts +1 -1
- package/client/error.js +10 -5
- package/client/index.d.ts +1 -1
- package/client/index.js +10 -5
- package/esm/client/error.d.ts +1 -1
- package/esm/client/error.js +1 -1
- package/esm/client/index.d.ts +1 -1
- package/esm/client/index.js +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -923,6 +923,7 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
923
923
|
### 🧪 Testing
|
|
924
924
|
|
|
925
925
|
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
|
|
926
|
+
* [pglite-test](https://github.com/constructive-io/constructive/tree/main/postgres/pglite-test): **🪶 Drop-in pgsql-test replacement backed by PGlite** — in-process Postgres, no server required, instance-per-suite isolation.
|
|
926
927
|
* [pgsql-seed](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-seed): **🌱 PostgreSQL seeding utilities** for CSV, JSON, SQL data loading, and pgpm deployment.
|
|
927
928
|
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
|
|
928
929
|
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
|
package/client/error.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Re-export error handling utilities from @constructive-io/graphql-query.
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, type ErrorClass, type ErrorContext, type GraphQLError, type ParsedError, } from '@constructive-io/graphql-query';
|
package/client/error.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toError = exports.parseGraphQLError = exports.parse = exports.isRetryable = exports.isPublicError = exports.isPublicCode = exports.isConstructiveError = exports.format = exports.createError = exports.classify = exports.ConstructiveError = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Re-export error handling utilities from @constructive-io/graphql-query.
|
|
6
6
|
*/
|
|
7
7
|
var graphql_query_1 = require("@constructive-io/graphql-query");
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "PG_ERROR_CODES", { enumerable: true, get: function () { return graphql_query_1.PG_ERROR_CODES; } });
|
|
8
|
+
Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return graphql_query_1.ConstructiveError; } });
|
|
9
|
+
Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return graphql_query_1.classify; } });
|
|
11
10
|
Object.defineProperty(exports, "createError", { enumerable: true, get: function () { return graphql_query_1.createError; } });
|
|
11
|
+
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return graphql_query_1.format; } });
|
|
12
|
+
Object.defineProperty(exports, "isConstructiveError", { enumerable: true, get: function () { return graphql_query_1.isConstructiveError; } });
|
|
13
|
+
Object.defineProperty(exports, "isPublicCode", { enumerable: true, get: function () { return graphql_query_1.isPublicCode; } });
|
|
14
|
+
Object.defineProperty(exports, "isPublicError", { enumerable: true, get: function () { return graphql_query_1.isPublicError; } });
|
|
15
|
+
Object.defineProperty(exports, "isRetryable", { enumerable: true, get: function () { return graphql_query_1.isRetryable; } });
|
|
16
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return graphql_query_1.parse; } });
|
|
12
17
|
Object.defineProperty(exports, "parseGraphQLError", { enumerable: true, get: function () { return graphql_query_1.parseGraphQLError; } });
|
|
13
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return graphql_query_1.toError; } });
|
package/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Client exports
|
|
3
3
|
*/
|
|
4
|
-
export { createError,
|
|
4
|
+
export { classify, ConstructiveError, createError, type ErrorClass, type ErrorContext, format, type GraphQLError, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, type ParsedError, parseGraphQLError, toError, } from './error';
|
|
5
5
|
export { createGraphQLClient, execute, type ExecuteOptions, type GraphQLClient, type GraphQLClientOptions, type GraphQLResponse, } from './execute';
|
|
6
6
|
export { type DocumentTypeDecoration, TypedDocumentString, } from './typed-document';
|
package/client/index.js
CHANGED
|
@@ -3,14 +3,19 @@
|
|
|
3
3
|
* Client exports
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TypedDocumentString = exports.execute = exports.createGraphQLClient = exports.
|
|
6
|
+
exports.TypedDocumentString = exports.execute = exports.createGraphQLClient = exports.toError = exports.parseGraphQLError = exports.parse = exports.isRetryable = exports.isPublicError = exports.isPublicCode = exports.isConstructiveError = exports.format = exports.createError = exports.ConstructiveError = exports.classify = void 0;
|
|
7
7
|
var error_1 = require("./error");
|
|
8
|
+
Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return error_1.classify; } });
|
|
9
|
+
Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return error_1.ConstructiveError; } });
|
|
8
10
|
Object.defineProperty(exports, "createError", { enumerable: true, get: function () { return error_1.createError; } });
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
Object.defineProperty(exports, "
|
|
11
|
+
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return error_1.format; } });
|
|
12
|
+
Object.defineProperty(exports, "isConstructiveError", { enumerable: true, get: function () { return error_1.isConstructiveError; } });
|
|
13
|
+
Object.defineProperty(exports, "isPublicCode", { enumerable: true, get: function () { return error_1.isPublicCode; } });
|
|
14
|
+
Object.defineProperty(exports, "isPublicError", { enumerable: true, get: function () { return error_1.isPublicError; } });
|
|
15
|
+
Object.defineProperty(exports, "isRetryable", { enumerable: true, get: function () { return error_1.isRetryable; } });
|
|
16
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return error_1.parse; } });
|
|
12
17
|
Object.defineProperty(exports, "parseGraphQLError", { enumerable: true, get: function () { return error_1.parseGraphQLError; } });
|
|
13
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return error_1.toError; } });
|
|
14
19
|
var execute_1 = require("./execute");
|
|
15
20
|
Object.defineProperty(exports, "createGraphQLClient", { enumerable: true, get: function () { return execute_1.createGraphQLClient; } });
|
|
16
21
|
Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
|
package/esm/client/error.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Re-export error handling utilities from @constructive-io/graphql-query.
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, type ErrorClass, type ErrorContext, type GraphQLError, type ParsedError, } from '@constructive-io/graphql-query';
|
package/esm/client/error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Re-export error handling utilities from @constructive-io/graphql-query.
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, } from '@constructive-io/graphql-query';
|
package/esm/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Client exports
|
|
3
3
|
*/
|
|
4
|
-
export { createError,
|
|
4
|
+
export { classify, ConstructiveError, createError, type ErrorClass, type ErrorContext, format, type GraphQLError, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, type ParsedError, parseGraphQLError, toError, } from './error';
|
|
5
5
|
export { createGraphQLClient, execute, type ExecuteOptions, type GraphQLClient, type GraphQLClientOptions, type GraphQLResponse, } from './execute';
|
|
6
6
|
export { type DocumentTypeDecoration, TypedDocumentString, } from './typed-document';
|
package/esm/client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Client exports
|
|
3
3
|
*/
|
|
4
|
-
export { createError,
|
|
4
|
+
export { classify, ConstructiveError, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, } from './error';
|
|
5
5
|
export { createGraphQLClient, execute, } from './execute';
|
|
6
6
|
export { TypedDocumentString, } from './typed-document';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -56,25 +56,25 @@
|
|
|
56
56
|
"@0no-co/graphql.web": "^1.1.2",
|
|
57
57
|
"@babel/generator": "^7.29.1",
|
|
58
58
|
"@babel/types": "^7.29.0",
|
|
59
|
-
"@constructive-io/graphql-query": "^4.
|
|
60
|
-
"@constructive-io/graphql-types": "^3.
|
|
59
|
+
"@constructive-io/graphql-query": "^4.7.0",
|
|
60
|
+
"@constructive-io/graphql-types": "^3.23.0",
|
|
61
61
|
"@inquirerer/utils": "^3.3.9",
|
|
62
|
-
"@pgpmjs/core": "^7.
|
|
62
|
+
"@pgpmjs/core": "^7.10.0",
|
|
63
63
|
"ajv": "^8.20.0",
|
|
64
64
|
"deepmerge": "^4.3.1",
|
|
65
65
|
"find-and-require-package-json": "^0.9.1",
|
|
66
|
-
"gql-ast": "^3.
|
|
67
|
-
"graphile-schema": "^2.
|
|
66
|
+
"gql-ast": "^3.18.0",
|
|
67
|
+
"graphile-schema": "^2.6.0",
|
|
68
68
|
"graphql": "16.13.0",
|
|
69
69
|
"inflekt": "^0.7.1",
|
|
70
70
|
"inquirerer": "^4.9.1",
|
|
71
71
|
"jiti": "^2.7.0",
|
|
72
72
|
"oxfmt": "^0.51.0",
|
|
73
|
-
"pg-cache": "^3.
|
|
74
|
-
"pg-env": "^1.
|
|
75
|
-
"pgsql-client": "^4.
|
|
76
|
-
"pgsql-seed": "^3.
|
|
77
|
-
"query-spec": "^0.
|
|
73
|
+
"pg-cache": "^3.20.0",
|
|
74
|
+
"pg-env": "^1.23.0",
|
|
75
|
+
"pgsql-client": "^4.5.0",
|
|
76
|
+
"pgsql-seed": "^3.5.0",
|
|
77
|
+
"query-spec": "^0.6.0",
|
|
78
78
|
"undici": "^8.3.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"tsx": "^4.21.0",
|
|
102
102
|
"typescript": "^5.9.3"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "bb3269d48cdf2bc8f361bdd79b4833c921c13ec3"
|
|
105
105
|
}
|