@brickkit/core 0.14.0 → 0.16.0-beta.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/dist/chunks/client.d.ts +8 -3
- package/dist/chunks/client.js +54 -22
- package/dist/chunks/client.js.map +1 -1
- package/dist/chunks/server.d.ts +33 -14
- package/dist/chunks/server.js +2829 -651
- package/dist/chunks/server.js.map +1 -1
- package/dist/chunks/types.d.ts +1171 -298
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/index.d.ts +233 -14
- package/dist/index.js +255 -252
- package/dist/index.js.map +1 -1
- package/dist/pg.d.ts +2 -3
- package/dist/pg.js +1 -1
- package/dist/tanstack-query.d.ts +1 -2
- package/dist/testing.d.ts +1 -2
- package/dist/testing.js +1 -1
- package/dist/workflow.d.ts +2 -3
- package/package.json +11 -11
package/dist/pg.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { relations, sql } from "drizzle-orm";
|
|
2
1
|
import { bigint, bigserial, boolean, char, check, date, decimal, doublePrecision, foreignKey, index, integer, interval, json, jsonb, numeric, pgEnum, pgSchema, pgTable, pgView, primaryKey, real, serial, smallint, text, time, timestamp, uniqueIndex, uuid, varchar } from "drizzle-orm/pg-core";
|
|
2
|
+
import { relations, sql } from "drizzle-orm";
|
|
3
3
|
import { PostgresJsDatabase, PostgresJsDatabase as PostgresJsDatabase$1 } from "drizzle-orm/postgres-js";
|
|
4
4
|
/** Typed Postgres Drizzle instance, as held by `defineDatabase({engine})`. */
|
|
5
5
|
export type PgDatabase<TSchema extends Record<string, unknown> = Record<string, unknown>> = PostgresJsDatabase$1<TSchema>;
|
|
6
|
-
export { type PostgresJsDatabase, bigint, bigserial, boolean, char, check, date, decimal, doublePrecision, foreignKey, index, integer, interval, json, jsonb, numeric, pgEnum, pgSchema, pgTable, pgView, primaryKey, real, relations, serial, smallint, sql, text, time, timestamp, uniqueIndex, uuid, varchar };
|
|
7
|
-
//# sourceMappingURL=pg.d.ts.map
|
|
6
|
+
export { type PostgresJsDatabase, bigint, bigserial, boolean, char, check, date, decimal, doublePrecision, foreignKey, index, integer, interval, json, jsonb, numeric, pgEnum, pgSchema, pgTable, pgView, primaryKey, real, relations, serial, smallint, sql, text, time, timestamp, uniqueIndex, uuid, varchar };
|
package/dist/pg.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { relations, sql } from "drizzle-orm";
|
|
2
1
|
import { bigint, bigserial, boolean, char, check, date, decimal, doublePrecision, foreignKey, index, integer, interval, json, jsonb, numeric, pgEnum, pgSchema, pgTable, pgView, primaryKey, real, serial, smallint, text, time, timestamp, uniqueIndex, uuid, varchar } from "drizzle-orm/pg-core";
|
|
2
|
+
import { relations, sql } from "drizzle-orm";
|
|
3
3
|
export { bigint, bigserial, boolean, char, check, date, decimal, doublePrecision, foreignKey, index, integer, interval, json, jsonb, numeric, pgEnum, pgSchema, pgTable, pgView, primaryKey, real, relations, serial, smallint, sql, text, time, timestamp, uniqueIndex, uuid, varchar };
|
package/dist/tanstack-query.d.ts
CHANGED
|
@@ -39,5 +39,4 @@ export type BrickQueryClient<T> = T extends BrickClientAction<infer _I, infer _O
|
|
|
39
39
|
export declare function createBrickQueryClient<T extends Record<string, unknown>>(options: BrickClientOptions & {
|
|
40
40
|
contract: T;
|
|
41
41
|
}): BrickQueryClient<T>;
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=tanstack-query.d.ts.map
|
|
42
|
+
export {};
|
package/dist/testing.d.ts
CHANGED
|
@@ -27,5 +27,4 @@ export interface TestApp<TContract> {
|
|
|
27
27
|
* expect(await client.orders.ship()).toBe("shipped");
|
|
28
28
|
* await cleanup();
|
|
29
29
|
*/
|
|
30
|
-
export declare function createTestApp<TContract extends Record<string, any> = Record<string, any>>(options: TestAppOptions<TContract> | (() => TestAppOptions<TContract>)): TestApp<TContract>;
|
|
31
|
-
//# sourceMappingURL=testing.d.ts.map
|
|
30
|
+
export declare function createTestApp<TContract extends Record<string, any> = Record<string, any>>(options: TestAppOptions<TContract> | (() => TestAppOptions<TContract>)): TestApp<TContract>;
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as createBrickClient } from "./chunks/client.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as brick, v as resetGlobalRegistry } from "./chunks/server.js";
|
|
3
3
|
// src/testing.ts
|
|
4
4
|
/**
|
|
5
5
|
* Build an app for a test, with a typed client and a cleanup. Pass a function
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as ErrorDetails, s as ActionErrorDefinition, xr as ListenerFailure } from "./chunks/types.js";
|
|
2
2
|
import { TSchema, Type as t } from "@sinclair/typebox";
|
|
3
3
|
/**
|
|
4
4
|
* Define a reusable error. Spread it into the `errors` of any action, listener,
|
|
@@ -70,5 +70,4 @@ export declare function stepErrors<const TErrors extends Record<string, ActionEr
|
|
|
70
70
|
* }
|
|
71
71
|
*/
|
|
72
72
|
export declare function stepFailure<const TErrors extends Record<string, ActionErrorDefinition>>(error: unknown, errors: TErrors): ListenerFailure<TErrors>;
|
|
73
|
-
export { t };
|
|
74
|
-
//# sourceMappingURL=workflow.d.ts.map
|
|
73
|
+
export { t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brickkit/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0-beta.0",
|
|
4
4
|
"description": "Core engine primitives for the Brick-TS framework",
|
|
5
5
|
"homepage": "https://brickkit.dev",
|
|
6
6
|
"keywords": [
|
|
@@ -72,22 +72,22 @@
|
|
|
72
72
|
"@opentelemetry/api": "^1.9.0",
|
|
73
73
|
"@sinclair/typebox": "^0.34.52",
|
|
74
74
|
"elysia": "2.0.0-rc.1",
|
|
75
|
-
"postgres": "^4.
|
|
75
|
+
"postgres": "^4.1.1"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@opentelemetry/context-async-hooks": "^3.
|
|
79
|
-
"@opentelemetry/core": "^3.
|
|
80
|
-
"@opentelemetry/sdk-trace": "^3.
|
|
81
|
-
"@tanstack/query-core": "5.
|
|
82
|
-
"@tanstack/vue-query": "5.
|
|
78
|
+
"@opentelemetry/context-async-hooks": "^3.1.1",
|
|
79
|
+
"@opentelemetry/core": "^3.1.1",
|
|
80
|
+
"@opentelemetry/sdk-trace": "^3.1.1",
|
|
81
|
+
"@tanstack/query-core": "5.107.1",
|
|
82
|
+
"@tanstack/vue-query": "5.107.1",
|
|
83
83
|
"@types/bun": "^1.4.4",
|
|
84
84
|
"drizzle-kit": "0.31.11",
|
|
85
85
|
"drizzle-orm": "^0.45.4",
|
|
86
|
-
"oxfmt": "^0.
|
|
87
|
-
"oxlint": "^1.
|
|
88
|
-
"tsdown": "^0.23.
|
|
86
|
+
"oxfmt": "^0.78.0",
|
|
87
|
+
"oxlint": "^1.93.0",
|
|
88
|
+
"tsdown": "^0.23.7",
|
|
89
89
|
"typescript": "^7.0.2",
|
|
90
|
-
"vue": "^3.5.
|
|
90
|
+
"vue": "^3.5.45"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@tanstack/query-core": "^5.0.0",
|