@edium/halifax 2.3.0 → 2.4.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/CHANGELOG.md +69 -0
- package/README.md +6 -3
- package/README_GRAPHQL.md +352 -0
- package/README_INTERFACES.md +6 -3
- package/README_MULTITENANCY.md +87 -0
- package/README_OPENAPI.md +8 -8
- package/dist/core/crudRouter.d.ts +38 -0
- package/dist/core/crudRouter.js +53 -1
- package/dist/core/handlerUtils.d.ts +1 -1
- package/dist/core/handlers/create.js +1 -1
- package/dist/core/handlers/deleteMany.js +1 -1
- package/dist/core/handlers/deleteOne.js +1 -1
- package/dist/core/handlers/query.js +1 -1
- package/dist/core/handlers/readMany.js +1 -1
- package/dist/core/handlers/readOne.js +1 -1
- package/dist/core/handlers/updateMany.js +1 -1
- package/dist/core/handlers/updateOne.js +1 -1
- package/dist/core/handlers/upsertOne.js +1 -1
- package/dist/core/types.d.ts +22 -0
- package/dist/graphql/graphiql.d.ts +5 -0
- package/dist/graphql/graphiql.js +29 -0
- package/dist/graphql/index.d.ts +4 -0
- package/dist/graphql/index.js +3 -0
- package/dist/graphql/registerGraphqlRoute.d.ts +10 -0
- package/dist/graphql/registerGraphqlRoute.js +79 -0
- package/dist/graphql/scalars.d.ts +6 -0
- package/dist/graphql/scalars.js +32 -0
- package/dist/graphql/schema.d.ts +3 -0
- package/dist/graphql/schema.js +635 -0
- package/dist/graphql/types.d.ts +48 -0
- package/dist/graphql/types.js +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './adapters/http/ExpressAdapter.js';
|
|
2
2
|
export * from './openapi/index.js';
|
|
3
|
+
export type { GraphQLOptions, GraphQLResourceContext, GraphQLResolverContext } from './graphql/index.js';
|
|
3
4
|
export * from './adapters/orm/prisma/index.js';
|
|
4
5
|
export * from './auth/AuthStrategy.js';
|
|
5
6
|
export * from './core/cache/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edium/halifax",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Auto-generate type-safe REST CRUD APIs from your data models. Adapter-driven: Express/Fastify/HyperExpress, Prisma (PostgreSQL, MySQL, MariaDB, SQL Server, CockroachDB, SQLite), JWT/API-key auth, multi-tenancy, a dynamic query builder, and pluggable Redis caching.",
|
|
5
5
|
"author": "David LaTour <david@edium.com>",
|
|
6
6
|
"homepage": "https://github.com/splayfee/halifax#readme",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"README_AUTOCRUD.md",
|
|
57
57
|
"README_CACHE.md",
|
|
58
58
|
"README_HTTP_ADAPTERS.md",
|
|
59
|
+
"README_GRAPHQL.md",
|
|
59
60
|
"README_MULTITENANCY.md",
|
|
60
61
|
"README_QUERYBUILDER.md",
|
|
61
62
|
"README_REPO_ADAPTERS.md",
|
|
@@ -79,7 +80,8 @@
|
|
|
79
80
|
"express": "^4.17.0 || ^5.0.0",
|
|
80
81
|
"fastify": ">=4.0.0",
|
|
81
82
|
"hyper-express": ">=6.0.0",
|
|
82
|
-
"ultimate-express": ">=2.0.0"
|
|
83
|
+
"ultimate-express": ">=2.0.0",
|
|
84
|
+
"graphql": ">=16.0.0"
|
|
83
85
|
},
|
|
84
86
|
"peerDependenciesMeta": {
|
|
85
87
|
"@prisma/client": {
|
|
@@ -99,6 +101,9 @@
|
|
|
99
101
|
},
|
|
100
102
|
"ultimate-express": {
|
|
101
103
|
"optional": true
|
|
104
|
+
},
|
|
105
|
+
"graphql": {
|
|
106
|
+
"optional": true
|
|
102
107
|
}
|
|
103
108
|
},
|
|
104
109
|
"devDependencies": {
|
|
@@ -133,6 +138,7 @@
|
|
|
133
138
|
"typescript": "^6.0.3",
|
|
134
139
|
"typescript-eslint": "^8.61.0",
|
|
135
140
|
"ultimate-express": "^2.1.1",
|
|
141
|
+
"graphql": "^17.0.0",
|
|
136
142
|
"vitest": "^4.1.8"
|
|
137
143
|
},
|
|
138
144
|
"keywords": [
|