@bleedingdev/modern-js-create 3.5.0-ultramodern.3 → 3.5.0-ultramodern.30
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 +21 -17
- package/dist/cjs/ultramodern-tooling/commands.cjs +772 -75
- package/dist/cjs/ultramodern-tooling/config.cjs +149 -8
- package/dist/cjs/ultramodern-workspace/add-vertical.cjs +25 -0
- package/dist/cjs/ultramodern-workspace/api.cjs +44 -0
- package/dist/cjs/ultramodern-workspace/app-files.cjs +8 -11
- package/dist/cjs/ultramodern-workspace/backend-federation.cjs +282 -0
- package/dist/cjs/ultramodern-workspace/contracts.cjs +24 -8
- package/dist/cjs/ultramodern-workspace/delivery-unit-sync.cjs +157 -0
- package/dist/cjs/ultramodern-workspace/delivery-unit.cjs +88 -0
- package/dist/cjs/ultramodern-workspace/descriptors.cjs +24 -0
- package/dist/cjs/ultramodern-workspace/module-federation.cjs +161 -50
- package/dist/cjs/ultramodern-workspace/package-json.cjs +26 -43
- package/dist/cjs/ultramodern-workspace/pnpm-workspace-policy-plan.cjs +166 -0
- package/dist/cjs/ultramodern-workspace/tooling-command-catalog.cjs +153 -0
- package/dist/cjs/ultramodern-workspace/versions.cjs +8 -3
- package/dist/cjs/ultramodern-workspace/workspace-script-plan.cjs +175 -0
- package/dist/cjs/ultramodern-workspace/workspace-scripts.cjs +104 -63
- package/dist/cjs/ultramodern-workspace/workspace-validation-contract.cjs +97 -0
- package/dist/cjs/ultramodern-workspace/write-workspace.cjs +11 -3
- package/dist/cjs/ultramodern-workspace/zerops.cjs +100 -0
- package/dist/esm/ultramodern-tooling/commands.js +775 -78
- package/dist/esm/ultramodern-tooling/config.js +144 -9
- package/dist/esm/ultramodern-workspace/add-vertical.js +26 -1
- package/dist/esm/ultramodern-workspace/api.js +43 -2
- package/dist/esm/ultramodern-workspace/app-files.js +8 -11
- package/dist/esm/ultramodern-workspace/backend-federation.js +217 -0
- package/dist/esm/ultramodern-workspace/contracts.js +24 -8
- package/dist/esm/ultramodern-workspace/delivery-unit-sync.js +108 -0
- package/dist/esm/ultramodern-workspace/delivery-unit.js +31 -0
- package/dist/esm/ultramodern-workspace/descriptors.js +13 -1
- package/dist/esm/ultramodern-workspace/module-federation.js +160 -42
- package/dist/esm/ultramodern-workspace/package-json.js +16 -40
- package/dist/esm/ultramodern-workspace/pnpm-workspace-policy-plan.js +113 -0
- package/dist/esm/ultramodern-workspace/tooling-command-catalog.js +100 -0
- package/dist/esm/ultramodern-workspace/versions.js +6 -4
- package/dist/esm/ultramodern-workspace/workspace-script-plan.js +110 -0
- package/dist/esm/ultramodern-workspace/workspace-scripts.js +88 -65
- package/dist/esm/ultramodern-workspace/workspace-validation-contract.js +59 -0
- package/dist/esm/ultramodern-workspace/write-workspace.js +14 -6
- package/dist/esm/ultramodern-workspace/zerops.js +62 -0
- package/dist/esm-node/ultramodern-tooling/commands.js +775 -78
- package/dist/esm-node/ultramodern-tooling/config.js +144 -9
- package/dist/esm-node/ultramodern-workspace/add-vertical.js +26 -1
- package/dist/esm-node/ultramodern-workspace/api.js +43 -2
- package/dist/esm-node/ultramodern-workspace/app-files.js +8 -11
- package/dist/esm-node/ultramodern-workspace/backend-federation.js +218 -0
- package/dist/esm-node/ultramodern-workspace/contracts.js +24 -8
- package/dist/esm-node/ultramodern-workspace/delivery-unit-sync.js +109 -0
- package/dist/esm-node/ultramodern-workspace/delivery-unit.js +32 -0
- package/dist/esm-node/ultramodern-workspace/descriptors.js +13 -1
- package/dist/esm-node/ultramodern-workspace/module-federation.js +160 -42
- package/dist/esm-node/ultramodern-workspace/package-json.js +16 -40
- package/dist/esm-node/ultramodern-workspace/pnpm-workspace-policy-plan.js +114 -0
- package/dist/esm-node/ultramodern-workspace/tooling-command-catalog.js +101 -0
- package/dist/esm-node/ultramodern-workspace/versions.js +6 -4
- package/dist/esm-node/ultramodern-workspace/workspace-script-plan.js +111 -0
- package/dist/esm-node/ultramodern-workspace/workspace-scripts.js +88 -65
- package/dist/esm-node/ultramodern-workspace/workspace-validation-contract.js +60 -0
- package/dist/esm-node/ultramodern-workspace/write-workspace.js +14 -6
- package/dist/esm-node/ultramodern-workspace/zerops.js +63 -0
- package/dist/types/ultramodern-tooling/config.d.ts +6 -0
- package/dist/types/ultramodern-workspace/api.d.ts +1 -0
- package/dist/types/ultramodern-workspace/backend-federation.d.ts +11 -0
- package/dist/types/ultramodern-workspace/contracts.d.ts +1 -1
- package/dist/types/ultramodern-workspace/delivery-unit-sync.d.ts +6 -0
- package/dist/types/ultramodern-workspace/delivery-unit.d.ts +27 -0
- package/dist/types/ultramodern-workspace/descriptors.d.ts +4 -0
- package/dist/types/ultramodern-workspace/module-federation.d.ts +4 -9
- package/dist/types/ultramodern-workspace/package-json.d.ts +0 -1
- package/dist/types/ultramodern-workspace/pnpm-workspace-policy-plan.d.ts +39 -0
- package/dist/types/ultramodern-workspace/tooling-command-catalog.d.ts +18 -0
- package/dist/types/ultramodern-workspace/versions.d.ts +5 -3
- package/dist/types/ultramodern-workspace/workspace-script-plan.d.ts +72 -0
- package/dist/types/ultramodern-workspace/workspace-scripts.d.ts +13 -0
- package/dist/types/ultramodern-workspace/workspace-validation-contract.d.ts +42 -0
- package/dist/types/ultramodern-workspace/zerops.d.ts +2 -0
- package/package.json +3 -3
- package/template-workspace/.gitignore.handlebars +4 -0
- package/template-workspace/README.md.handlebars +18 -15
- package/template-workspace/patches/@module-federation__bridge-react@2.6.0.patch +140 -0
- package/template-workspace/patches/@module-federation__modern-js-v3@2.6.0.patch +57 -0
- package/template-workspace/patches/drizzle-orm-ts7-strict-declarations.patch +452 -0
- package/template-workspace/patches/effect-schema-error-type-id.patch +18 -0
- package/template-workspace/pnpm-workspace.yaml.handlebars +8 -0
- package/template-workspace/scripts/bootstrap-agent-skills.mjs +11 -3
- package/templates/workspace-scripts/check-ultramodern-api-boundaries.mts +40 -2
- package/templates/workspace-scripts/generate-node-backend-federation.mjs +270 -0
- package/templates/workspace-scripts/materialize-zerops-runtime.mjs +448 -0
- package/templates/workspace-scripts/proof-cloudflare-version.mjs +237 -9
- package/templates/workspace-scripts/proof-node-backend-federation.mjs +729 -0
- package/templates/workspace-scripts/ultramodern-cloudflare-proof.mjs +188 -2
- package/templates/workspace-scripts/validate-ultramodern-workspace.mjs.handlebars +434 -18
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
diff --git a/dist/lazy-load-component-plugin-BYI941I2.mjs b/dist/lazy-load-component-plugin-BYI941I2.mjs
|
|
2
|
+
index dfba15be1e9753e0f164b53cfb22feda13f39ea4..6be1b47903b9f6807bb0111df6c588f0d54ebf53 100644
|
|
3
|
+
--- a/dist/lazy-load-component-plugin-BYI941I2.mjs
|
|
4
|
+
+++ b/dist/lazy-load-component-plugin-BYI941I2.mjs
|
|
5
|
+
@@ -235,6 +235,41 @@ function getTargetModuleInfo(id, instance) {
|
|
6
|
+
remoteEntry
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
+function normalizeHref(href) {
|
|
10
|
+
+ if (typeof document === "undefined") {
|
|
11
|
+
+ return href;
|
|
12
|
+
+ }
|
|
13
|
+
+ try {
|
|
14
|
+
+ return new URL(href, document.baseURI).href;
|
|
15
|
+
+ } catch {
|
|
16
|
+
+ return href;
|
|
17
|
+
+ }
|
|
18
|
+
+}
|
|
19
|
+
+function isStylesheetLink(link) {
|
|
20
|
+
+ return link.relList.contains("stylesheet") || link.rel.toLowerCase().split(/\s+/u).includes("stylesheet");
|
|
21
|
+
+}
|
|
22
|
+
+function hasStylesheetLinkInHead(href, ignoredLink) {
|
|
23
|
+
+ if (typeof document === "undefined" || !document.head) {
|
|
24
|
+
+ return false;
|
|
25
|
+
+ }
|
|
26
|
+
+ const normalizedHref = normalizeHref(href);
|
|
27
|
+
+ return Array.from(
|
|
28
|
+
+ document.head.querySelectorAll("link[href]")
|
|
29
|
+
+ ).some(
|
|
30
|
+
+ (link) => link !== ignoredLink && isStylesheetLink(link) && normalizeHref(link.href) === normalizedHref
|
|
31
|
+
+ );
|
|
32
|
+
+}
|
|
33
|
+
+function StylesheetAsset({ href }) {
|
|
34
|
+
+ const [shouldRender, setShouldRender] = useState(true);
|
|
35
|
+
+ const linkRef = useRef(null);
|
|
36
|
+
+ useEffect(() => {
|
|
37
|
+
+ setShouldRender(!hasStylesheetLinkInHead(href, linkRef.current));
|
|
38
|
+
+ }, [href]);
|
|
39
|
+
+ if (!shouldRender) {
|
|
40
|
+
+ return null;
|
|
41
|
+
+ }
|
|
42
|
+
+ return /* @__PURE__ */ React__default.createElement("link", { ref: linkRef, href, rel: "stylesheet", type: "text/css" });
|
|
43
|
+
+}
|
|
44
|
+
function collectSSRAssets(options) {
|
|
45
|
+
const {
|
|
46
|
+
id,
|
|
47
|
+
@@ -253,15 +288,19 @@ function collectSSRAssets(options) {
|
|
48
|
+
}
|
|
49
|
+
const { module: targetModule, publicPath, remoteEntry } = moduleAndPublicPath;
|
|
50
|
+
if (injectLink) {
|
|
51
|
+
+ const stylesheetHrefs = /* @__PURE__ */ new Set();
|
|
52
|
+
[...targetModule.assets.css.sync, ...targetModule.assets.css.async].sort().forEach((file, index) => {
|
|
53
|
+
+ const href = `${publicPath}${file}`;
|
|
54
|
+
+ if (stylesheetHrefs.has(href)) {
|
|
55
|
+
+ return;
|
|
56
|
+
+ }
|
|
57
|
+
+ stylesheetHrefs.add(href);
|
|
58
|
+
links.push(
|
|
59
|
+
/* @__PURE__ */ React__default.createElement(
|
|
60
|
+
- "link",
|
|
61
|
+
+ StylesheetAsset,
|
|
62
|
+
{
|
|
63
|
+
key: `${file.split(".")[0]}_${index}`,
|
|
64
|
+
- href: `${publicPath}${file}`,
|
|
65
|
+
- rel: "stylesheet",
|
|
66
|
+
- type: "text/css"
|
|
67
|
+
+ href
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
diff --git a/dist/lazy-load-component-plugin-DG4e3Tib.js b/dist/lazy-load-component-plugin-DG4e3Tib.js
|
|
72
|
+
index 321c9c3cd55bf9d62a6825c9186267dfe28e5e93..867e7237d5a2ea613130c7e1710cdd998924d9db 100644
|
|
73
|
+
--- a/dist/lazy-load-component-plugin-DG4e3Tib.js
|
|
74
|
+
+++ b/dist/lazy-load-component-plugin-DG4e3Tib.js
|
|
75
|
+
@@ -236,6 +236,41 @@ function getTargetModuleInfo(id, instance) {
|
|
76
|
+
remoteEntry
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
+function normalizeHref(href) {
|
|
80
|
+
+ if (typeof document === "undefined") {
|
|
81
|
+
+ return href;
|
|
82
|
+
+ }
|
|
83
|
+
+ try {
|
|
84
|
+
+ return new URL(href, document.baseURI).href;
|
|
85
|
+
+ } catch {
|
|
86
|
+
+ return href;
|
|
87
|
+
+ }
|
|
88
|
+
+}
|
|
89
|
+
+function isStylesheetLink(link) {
|
|
90
|
+
+ return link.relList.contains("stylesheet") || link.rel.toLowerCase().split(/\s+/u).includes("stylesheet");
|
|
91
|
+
+}
|
|
92
|
+
+function hasStylesheetLinkInHead(href, ignoredLink) {
|
|
93
|
+
+ if (typeof document === "undefined" || !document.head) {
|
|
94
|
+
+ return false;
|
|
95
|
+
+ }
|
|
96
|
+
+ const normalizedHref = normalizeHref(href);
|
|
97
|
+
+ return Array.from(
|
|
98
|
+
+ document.head.querySelectorAll("link[href]")
|
|
99
|
+
+ ).some(
|
|
100
|
+
+ (link) => link !== ignoredLink && isStylesheetLink(link) && normalizeHref(link.href) === normalizedHref
|
|
101
|
+
+ );
|
|
102
|
+
+}
|
|
103
|
+
+function StylesheetAsset({ href }) {
|
|
104
|
+
+ const [shouldRender, setShouldRender] = React.useState(true);
|
|
105
|
+
+ const linkRef = React.useRef(null);
|
|
106
|
+
+ React.useEffect(() => {
|
|
107
|
+
+ setShouldRender(!hasStylesheetLinkInHead(href, linkRef.current));
|
|
108
|
+
+ }, [href]);
|
|
109
|
+
+ if (!shouldRender) {
|
|
110
|
+
+ return null;
|
|
111
|
+
+ }
|
|
112
|
+
+ return /* @__PURE__ */ React.createElement("link", { ref: linkRef, href, rel: "stylesheet", type: "text/css" });
|
|
113
|
+
+}
|
|
114
|
+
function collectSSRAssets(options) {
|
|
115
|
+
const {
|
|
116
|
+
id,
|
|
117
|
+
@@ -254,15 +289,19 @@ function collectSSRAssets(options) {
|
|
118
|
+
}
|
|
119
|
+
const { module: targetModule, publicPath, remoteEntry } = moduleAndPublicPath;
|
|
120
|
+
if (injectLink) {
|
|
121
|
+
+ const stylesheetHrefs = /* @__PURE__ */ new Set();
|
|
122
|
+
[...targetModule.assets.css.sync, ...targetModule.assets.css.async].sort().forEach((file, index) => {
|
|
123
|
+
+ const href = `${publicPath}${file}`;
|
|
124
|
+
+ if (stylesheetHrefs.has(href)) {
|
|
125
|
+
+ return;
|
|
126
|
+
+ }
|
|
127
|
+
+ stylesheetHrefs.add(href);
|
|
128
|
+
links.push(
|
|
129
|
+
/* @__PURE__ */ React.createElement(
|
|
130
|
+
- "link",
|
|
131
|
+
+ StylesheetAsset,
|
|
132
|
+
{
|
|
133
|
+
key: `${file.split(".")[0]}_${index}`,
|
|
134
|
+
- href: `${publicPath}${file}`,
|
|
135
|
+
- rel: "stylesheet",
|
|
136
|
+
- type: "text/css"
|
|
137
|
+
+ href
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
diff --git a/dist/cjs/cli/configPlugin.js b/dist/cjs/cli/configPlugin.js
|
|
2
|
+
index 0d01ad0..e5485a2 100644
|
|
3
|
+
--- a/dist/cjs/cli/configPlugin.js
|
|
4
|
+
+++ b/dist/cjs/cli/configPlugin.js
|
|
5
|
+
@@ -212,9 +212,12 @@ var __webpack_exports__ = {};
|
|
6
|
+
if (!chain.output.get('uniqueName')) chain.output.uniqueName(mfConfig.name);
|
|
7
|
+
const splitChunkConfig = chain.optimization.splitChunks.entries();
|
|
8
|
+
if (!isServer) (0, utils_namespaceObject.autoDeleteSplitChunkCacheGroups)(mfConfig, splitChunkConfig);
|
|
9
|
+
- if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups) {
|
|
10
|
+
+ if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups && splitChunkConfig.chunks !== undefined && splitChunkConfig.chunks !== 'async') {
|
|
11
|
+
+ const previousChunks = splitChunkConfig.chunks;
|
|
12
|
+
splitChunkConfig.chunks = 'async';
|
|
13
|
+
- external_logger_js_default().warn('splitChunks.chunks = async is not allowed with stream SSR mode, it will auto changed to "async"');
|
|
14
|
+
+ if (void 0 !== previousChunks) {
|
|
15
|
+
+ external_logger_js_default().warn(`splitChunks.chunks = ${previousChunks} is not allowed with stream SSR mode, it will auto changed to "async"`);
|
|
16
|
+
+ }
|
|
17
|
+
}
|
|
18
|
+
if ((0, external_utils_js_namespaceObject.isDev)() && 'auto' === chain.output.get('publicPath')) {
|
|
19
|
+
var _modernjsConfig_server;
|
|
20
|
+
diff --git a/dist/esm/cli/configPlugin.mjs b/dist/esm/cli/configPlugin.mjs
|
|
21
|
+
index 3e880c8..93e4290 100644
|
|
22
|
+
--- a/dist/esm/cli/configPlugin.mjs
|
|
23
|
+
+++ b/dist/esm/cli/configPlugin.mjs
|
|
24
|
+
@@ -194,9 +194,12 @@ function patchBundlerConfig(options) {
|
|
25
|
+
if (!chain.output.get('uniqueName')) chain.output.uniqueName(mfConfig.name);
|
|
26
|
+
var splitChunkConfig = chain.optimization.splitChunks.entries();
|
|
27
|
+
if (!isServer) autoDeleteSplitChunkCacheGroups(mfConfig, splitChunkConfig);
|
|
28
|
+
- if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups) {
|
|
29
|
+
+ if (!isServer && enableSSR && splitChunkConfig && (void 0 === splitChunkConfig ? "undefined" : _type_of__(splitChunkConfig)) === 'object' && splitChunkConfig.cacheGroups && void 0 !== splitChunkConfig.chunks && splitChunkConfig.chunks !== 'async') {
|
|
30
|
+
+ var previousChunks = splitChunkConfig.chunks;
|
|
31
|
+
splitChunkConfig.chunks = 'async';
|
|
32
|
+
- logger.warn('splitChunks.chunks = async is not allowed with stream SSR mode, it will auto changed to "async"');
|
|
33
|
+
+ if (void 0 !== previousChunks) {
|
|
34
|
+
+ logger.warn("splitChunks.chunks = ".concat(previousChunks, " is not allowed with stream SSR mode, it will auto changed to \"async\""));
|
|
35
|
+
+ }
|
|
36
|
+
}
|
|
37
|
+
if (isDev() && 'auto' === chain.output.get('publicPath')) {
|
|
38
|
+
var _modernjsConfig_server;
|
|
39
|
+
diff --git a/dist/esm-node/cli/configPlugin.mjs b/dist/esm-node/cli/configPlugin.mjs
|
|
40
|
+
index 722f1bb..dcac7ec 100644
|
|
41
|
+
--- a/dist/esm-node/cli/configPlugin.mjs
|
|
42
|
+
+++ b/dist/esm-node/cli/configPlugin.mjs
|
|
43
|
+
@@ -165,9 +165,12 @@ function patchBundlerConfig(options) {
|
|
44
|
+
if (!chain.output.get('uniqueName')) chain.output.uniqueName(mfConfig.name);
|
|
45
|
+
const splitChunkConfig = chain.optimization.splitChunks.entries();
|
|
46
|
+
if (!isServer) autoDeleteSplitChunkCacheGroups(mfConfig, splitChunkConfig);
|
|
47
|
+
- if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups) {
|
|
48
|
+
+ if (!isServer && enableSSR && splitChunkConfig && 'object' == typeof splitChunkConfig && splitChunkConfig.cacheGroups && splitChunkConfig.chunks !== undefined && splitChunkConfig.chunks !== 'async') {
|
|
49
|
+
+ const previousChunks = splitChunkConfig.chunks;
|
|
50
|
+
splitChunkConfig.chunks = 'async';
|
|
51
|
+
- logger.warn('splitChunks.chunks = async is not allowed with stream SSR mode, it will auto changed to "async"');
|
|
52
|
+
+ if (void 0 !== previousChunks) {
|
|
53
|
+
+ logger.warn(`splitChunks.chunks = ${previousChunks} is not allowed with stream SSR mode, it will auto changed to "async"`);
|
|
54
|
+
+ }
|
|
55
|
+
}
|
|
56
|
+
if (isDev() && 'auto' === chain.output.get('publicPath')) {
|
|
57
|
+
var _modernjsConfig_server;
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
diff --git a/arktype/column.d.ts b/arktype/column.d.ts
|
|
2
|
+
index 6ee3575..65adb61 100644
|
|
3
|
+
--- a/arktype/column.d.ts
|
|
4
|
+
+++ b/arktype/column.d.ts
|
|
5
|
+
@@ -3,6 +3,7 @@ import * as arktype from "arktype";
|
|
6
|
+
import { Type } from "arktype";
|
|
7
|
+
import * as arktype_internal_variants_object_ts0 from "arktype/internal/variants/object.ts";
|
|
8
|
+
import * as arktype_internal_variants_string_ts0 from "arktype/internal/variants/string.ts";
|
|
9
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
10
|
+
|
|
11
|
+
//#region src/arktype/column.d.ts
|
|
12
|
+
declare const literalSchema: arktype.BaseType<string | number | boolean | null, {}>;
|
|
13
|
+
diff --git a/better-sqlite3/driver.d.ts b/better-sqlite3/driver.d.ts
|
|
14
|
+
index 02ff3ee..de2ccc0 100644
|
|
15
|
+
--- a/better-sqlite3/driver.d.ts
|
|
16
|
+
+++ b/better-sqlite3/driver.d.ts
|
|
17
|
+
@@ -4,6 +4,7 @@ import { SQLiteAsyncDatabase } from "../sqlite-core/async/db.js";
|
|
18
|
+
import { Database, Options } from "better-sqlite3";
|
|
19
|
+
import { AnyRelations, EmptyRelations } from "../relations.js";
|
|
20
|
+
import { DrizzleSQLiteConfig } from "../sqlite-core/utils.js";
|
|
21
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
22
|
+
|
|
23
|
+
//#region src/better-sqlite3/driver.d.ts
|
|
24
|
+
type DrizzleBetterSQLite3DatabaseConfig = ({
|
|
25
|
+
diff --git a/cockroach-core/policies.d.ts b/cockroach-core/policies.d.ts
|
|
26
|
+
index 3d00007..d2f3f2a 100644
|
|
27
|
+
--- a/cockroach-core/policies.d.ts
|
|
28
|
+
+++ b/cockroach-core/policies.d.ts
|
|
29
|
+
@@ -12,7 +12,7 @@ interface CockroachPolicyConfig {
|
|
30
|
+
using?: SQL;
|
|
31
|
+
withCheck?: SQL;
|
|
32
|
+
}
|
|
33
|
+
-declare class CockroachPolicy implements CockroachPolicyConfig {
|
|
34
|
+
+declare class CockroachPolicy {
|
|
35
|
+
readonly name: string;
|
|
36
|
+
static readonly [entityKind]: string;
|
|
37
|
+
readonly as: CockroachPolicyConfig['as'];
|
|
38
|
+
diff --git a/cockroach-core/roles.d.ts b/cockroach-core/roles.d.ts
|
|
39
|
+
index d797efa..1dbb593 100644
|
|
40
|
+
--- a/cockroach-core/roles.d.ts
|
|
41
|
+
+++ b/cockroach-core/roles.d.ts
|
|
42
|
+
@@ -5,7 +5,7 @@ interface CockroachRoleConfig {
|
|
43
|
+
createDb?: boolean;
|
|
44
|
+
createRole?: boolean;
|
|
45
|
+
}
|
|
46
|
+
-declare class CockroachRole implements CockroachRoleConfig {
|
|
47
|
+
+declare class CockroachRole {
|
|
48
|
+
readonly name: string;
|
|
49
|
+
static readonly [entityKind]: string;
|
|
50
|
+
constructor(name: string, config?: CockroachRoleConfig);
|
|
51
|
+
diff --git a/column-builder.d.ts b/column-builder.d.ts
|
|
52
|
+
index ef98a22..6f6703b 100644
|
|
53
|
+
--- a/column-builder.d.ts
|
|
54
|
+
+++ b/column-builder.d.ts
|
|
55
|
+
@@ -143,11 +143,12 @@ type IsIdentity<T, TType extends 'always' | 'byDefault'> = T & {
|
|
56
|
+
identity: TType;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
-interface ColumnBuilderBase<out T extends ColumnBuilderBaseConfig<ColumnType> = ColumnBuilderBaseConfig<ColumnType>> {
|
|
60
|
+
+interface ColumnBuilderBase<T extends ColumnBuilderBaseConfig<ColumnType> = ColumnBuilderBaseConfig<ColumnType>> {
|
|
61
|
+
_: T;
|
|
62
|
+
}
|
|
63
|
+
-declare abstract class ColumnBuilder<out T extends ColumnBuilderBaseConfig<ColumnType>, TRuntimeConfig extends object = object, TExtraConfig extends ColumnBuilderExtraConfig = ColumnBuilderExtraConfig> implements ColumnBuilderBase<T> {
|
|
64
|
+
+declare abstract class ColumnBuilder<T extends ColumnBuilderBaseConfig<ColumnType>, TRuntimeConfig extends object = object, TExtraConfig extends ColumnBuilderExtraConfig = ColumnBuilderExtraConfig> implements ColumnBuilderBase<T> {
|
|
65
|
+
static readonly [entityKind]: string;
|
|
66
|
+
+ protected config: ColumnBuilderRuntimeConfig<T['data']> & TRuntimeConfig;
|
|
67
|
+
_: T;
|
|
68
|
+
constructor(name: string, dataType: ColumnType, columnType: string);
|
|
69
|
+
/**
|
|
70
|
+
diff --git a/column.d.ts b/column.d.ts
|
|
71
|
+
index 1ca227f..1c9f1bf 100644
|
|
72
|
+
--- a/column.d.ts
|
|
73
|
+
+++ b/column.d.ts
|
|
74
|
+
@@ -21,10 +21,10 @@ interface ColumnBaseConfig<TDataType extends ColumnType> {
|
|
75
|
+
generated: unknown;
|
|
76
|
+
identity: undefined | 'always' | 'byDefault';
|
|
77
|
+
}
|
|
78
|
+
-interface Column<out T extends ColumnBaseConfig<ColumnType> = ColumnBaseConfig<ColumnType>, out TRuntimeConfig extends object = object> extends DriverValueMapper<T['data'], T['driverParam']>, SQLWrapper {
|
|
79
|
+
+interface Column<T extends ColumnBaseConfig<ColumnType> = ColumnBaseConfig<ColumnType>, TRuntimeConfig extends object = object> extends DriverValueMapper<T['data'], T['driverParam']>, SQLWrapper {
|
|
80
|
+
as(alias: string): this;
|
|
81
|
+
}
|
|
82
|
+
-declare abstract class Column<out T extends ColumnBaseConfig<ColumnType> = ColumnBaseConfig<ColumnType>, out TRuntimeConfig extends object = object> implements DriverValueMapper<T['data'], T['driverParam']>, SQLWrapper {
|
|
83
|
+
+declare abstract class Column<T extends ColumnBaseConfig<ColumnType> = ColumnBaseConfig<ColumnType>, TRuntimeConfig extends object = object> implements DriverValueMapper<T['data'], T['driverParam']>, SQLWrapper {
|
|
84
|
+
static readonly [entityKind]: string;
|
|
85
|
+
readonly _: T;
|
|
86
|
+
readonly name: string;
|
|
87
|
+
diff --git a/effect-schema/column.d.ts b/effect-schema/column.d.ts
|
|
88
|
+
index 11aa6de..f6a1750 100644
|
|
89
|
+
--- a/effect-schema/column.d.ts
|
|
90
|
+
+++ b/effect-schema/column.d.ts
|
|
91
|
+
@@ -1,6 +1,7 @@
|
|
92
|
+
import { Column } from "../column.js";
|
|
93
|
+
import { Schema, Top } from "effect/Schema";
|
|
94
|
+
import { Schema as Schema$1 } from "effect";
|
|
95
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
96
|
+
|
|
97
|
+
//#region src/effect-schema/column.d.ts
|
|
98
|
+
declare const literalSchema: Schema$1.Union<readonly [Schema$1.String, Schema$1.Number, Schema$1.Boolean, Schema$1.Null]>;
|
|
99
|
+
diff --git a/mssql-core/columns/binary.d.ts b/mssql-core/columns/binary.d.ts
|
|
100
|
+
index 926d12b..f0e8ad4 100644
|
|
101
|
+
--- a/mssql-core/columns/binary.d.ts
|
|
102
|
+
+++ b/mssql-core/columns/binary.d.ts
|
|
103
|
+
@@ -1,6 +1,7 @@
|
|
104
|
+
import { MsSqlColumn, MsSqlColumnBuilder } from "./common.js";
|
|
105
|
+
import { entityKind } from "../../entity.js";
|
|
106
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
107
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
108
|
+
|
|
109
|
+
//#region src/mssql-core/columns/binary.d.ts
|
|
110
|
+
declare class MsSqlBinaryBuilder extends MsSqlColumnBuilder<{
|
|
111
|
+
diff --git a/mssql-core/columns/varbinary.d.ts b/mssql-core/columns/varbinary.d.ts
|
|
112
|
+
index 86cf734..89777a0 100644
|
|
113
|
+
--- a/mssql-core/columns/varbinary.d.ts
|
|
114
|
+
+++ b/mssql-core/columns/varbinary.d.ts
|
|
115
|
+
@@ -1,6 +1,7 @@
|
|
116
|
+
import { MsSqlColumn, MsSqlColumnBuilder } from "./common.js";
|
|
117
|
+
import { entityKind } from "../../entity.js";
|
|
118
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
119
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
120
|
+
|
|
121
|
+
//#region src/mssql-core/columns/varbinary.d.ts
|
|
122
|
+
declare class MsSqlVarBinaryBuilder extends MsSqlColumnBuilder<{
|
|
123
|
+
diff --git a/mysql-core/codecs.d.ts b/mysql-core/codecs.d.ts
|
|
124
|
+
index 82688dc..c3214ef 100644
|
|
125
|
+
--- a/mysql-core/codecs.d.ts
|
|
126
|
+
+++ b/mysql-core/codecs.d.ts
|
|
127
|
+
@@ -1,6 +1,7 @@
|
|
128
|
+
import { PartialWithUndefined } from "../utils.js";
|
|
129
|
+
import { CastCodec, Codecs } from "../codecs.js";
|
|
130
|
+
import * as __sql_sql_ts0 from "../sql/sql.js";
|
|
131
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
132
|
+
|
|
133
|
+
//#region src/mysql-core/codecs.d.ts
|
|
134
|
+
type MySqlType = 'tinyint' | 'smallint' | 'mediumint' | 'int' | 'bigint' | 'bigint:number' | 'bigint:string' | 'serial' | 'decimal' | 'decimal:number' | 'decimal:bigint' | 'float' | 'double' | 'real' | 'bit' | 'boolean' | 'char' | 'varchar' | 'tinytext' | 'text' | 'mediumtext' | 'longtext' | 'enum' | 'set' | 'binary' | 'varbinary' | 'tinyblob' | 'tinyblob:buffer' | 'blob' | 'blob:buffer' | 'mediumblob' | 'mediumblob:buffer' | 'longblob' | 'longblob:buffer' | 'date' | 'date:string' | 'datetime' | 'datetime:string' | 'time' | 'timestamp' | 'timestamp:string' | 'year' | 'json' | 'geometry' | 'point' | 'linestring' | 'polygon' | 'multipoint' | 'multilinestring' | 'multipolygon' | 'geometrycollection';
|
|
135
|
+
diff --git a/mysql-core/columns/blob.d.ts b/mysql-core/columns/blob.d.ts
|
|
136
|
+
index b351f03..5e5354a 100644
|
|
137
|
+
--- a/mysql-core/columns/blob.d.ts
|
|
138
|
+
+++ b/mysql-core/columns/blob.d.ts
|
|
139
|
+
@@ -2,6 +2,7 @@ import { MySqlColumn, MySqlColumnBuilder } from "./common.js";
|
|
140
|
+
import { entityKind } from "../../entity.js";
|
|
141
|
+
import { Equal } from "../../utils.js";
|
|
142
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
143
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
144
|
+
|
|
145
|
+
//#region src/mysql-core/columns/blob.d.ts
|
|
146
|
+
type MySqlBlobColumnType = 'tinyblob' | 'blob' | 'mediumblob' | 'longblob';
|
|
147
|
+
diff --git a/pg-core/codecs.d.ts b/pg-core/codecs.d.ts
|
|
148
|
+
index 4cade44..836270e 100644
|
|
149
|
+
--- a/pg-core/codecs.d.ts
|
|
150
|
+
+++ b/pg-core/codecs.d.ts
|
|
151
|
+
@@ -3,6 +3,7 @@ import { PartialWithUndefined } from "../utils.js";
|
|
152
|
+
import { CastArrayCodec, CastCodec, Codecs, NormalizeArrayCodec, NormalizeCodec } from "../codecs.js";
|
|
153
|
+
import * as __sql_sql_ts0 from "../sql/sql.js";
|
|
154
|
+
import { SQLChunk } from "../sql/sql.js";
|
|
155
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
156
|
+
|
|
157
|
+
//#region src/pg-core/codecs.d.ts
|
|
158
|
+
type PostGISType = 'geometry(point)' | 'geometry(pointz)' | 'geometry(pointm)' | 'geometry(pointzm)' | 'geometry(linestring)' | 'geometry(linestringz)' | 'geometry(linestringm)' | 'geometry(linestringzm)' | 'geometry(polygon)' | 'geometry(polygonz)' | 'geometry(polygonm)' | 'geometry(polygonzm)' | 'geometry(multipoint)' | 'geometry(multipointz)' | 'geometry(multipointm)' | 'geometry(multipointzm)' | 'geometry(multilinestring)' | 'geometry(multilinestringz)' | 'geometry(multilinestringm)' | 'geometry(multilinestringzm)' | 'geometry(multipolygon)' | 'geometry(multipolygonz)' | 'geometry(multipolygonm)' | 'geometry(multipolygonzm)' | 'geometry(geometrycollection)' | 'geometry(geometrycollectionz)' | 'geometry(geometrycollectionm)' | 'geometry(geometrycollectionzm)' | 'geometry(circularstring)' | 'geometry(circularstringz)' | 'geometry(circularstringm)' | 'geometry(circularstringzm)' | 'geometry(compoundcurve)' | 'geometry(compoundcurvez)' | 'geometry(compoundcurvem)' | 'geometry(compoundcurvezm)' | 'geometry(curvepolygon)' | 'geometry(curvepolygonz)' | 'geometry(curvepolygonm)' | 'geometry(curvepolygonzm)' | 'geometry(multicurve)' | 'geometry(multicurvez)' | 'geometry(multicurvem)' | 'geometry(multicurvezm)' | 'geometry(multisurface)' | 'geometry(multisurfacez)' | 'geometry(multisurfacem)' | 'geometry(multisurfacezm)' | 'geometry(polyhedralsurface)' | 'geometry(polyhedralsurfacez)' | 'geometry(polyhedralsurfacem)' | 'geometry(polyhedralsurfacezm)' | 'geometry(tin)' | 'geometry(tinz)' | 'geometry(tinm)' | 'geometry(tinzm)' | 'geometry(triangle)' | 'geometry(trianglez)' | 'geometry(trianglem)' | 'geometry(trianglezm)' | 'geography(point)' | 'geography(linestring)' | 'geography(polygon)' | 'geography(multipoint)' | 'geography(multilinestring)' | 'geography(multipolygon)' | 'geography(geometrycollection)' | 'box2d' | 'box3d' | 'raster';
|
|
159
|
+
diff --git a/pg-core/columns/bytea.d.ts b/pg-core/columns/bytea.d.ts
|
|
160
|
+
index bb1dd83..00e56e0 100644
|
|
161
|
+
--- a/pg-core/columns/bytea.d.ts
|
|
162
|
+
+++ b/pg-core/columns/bytea.d.ts
|
|
163
|
+
@@ -1,5 +1,6 @@
|
|
164
|
+
import { PgColumn, PgColumnBuilder } from "./common.js";
|
|
165
|
+
import { entityKind } from "../../entity.js";
|
|
166
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
167
|
+
|
|
168
|
+
//#region src/pg-core/columns/bytea.d.ts
|
|
169
|
+
declare class PgByteaBuilder extends PgColumnBuilder<{
|
|
170
|
+
diff --git a/pg-core/columns/common.d.ts b/pg-core/columns/common.d.ts
|
|
171
|
+
index 440bc5c..6ed0933 100644
|
|
172
|
+
--- a/pg-core/columns/common.d.ts
|
|
173
|
+
+++ b/pg-core/columns/common.d.ts
|
|
174
|
+
@@ -44,7 +44,7 @@ interface PgColumnBuilderRuntimeConfig<TData> {
|
|
175
|
+
generatedIdentity: GeneratedIdentityConfig | undefined;
|
|
176
|
+
dimensions?: PgArrayDimension;
|
|
177
|
+
}
|
|
178
|
+
-interface PgColumnBaseConfig<out TDataType extends ColumnType = ColumnType> {
|
|
179
|
+
+interface PgColumnBaseConfig<TDataType extends ColumnType = ColumnType> {
|
|
180
|
+
name: string;
|
|
181
|
+
dataType: TDataType;
|
|
182
|
+
tableName: string;
|
|
183
|
+
@@ -111,7 +111,7 @@ type GetBaseData<T> = T extends {
|
|
184
|
+
} ? U : T extends {
|
|
185
|
+
data: infer D;
|
|
186
|
+
} ? D : unknown;
|
|
187
|
+
-type ResolvePgColumnConfig<out T extends PgColumnBuilderConfig, out TTableName extends string, out TData = (T['dimensions'] extends 1 | 2 | 3 | 4 | 5 ? WrapArray<GetBaseData<T>, T['dimensions']> : GetBaseData<T>)> = {
|
|
188
|
+
+type ResolvePgColumnConfig<T extends PgColumnBuilderConfig, TTableName extends string, TData = (T['dimensions'] extends 1 | 2 | 3 | 4 | 5 ? WrapArray<GetBaseData<T>, T['dimensions']> : GetBaseData<T>)> = {
|
|
189
|
+
name: string;
|
|
190
|
+
tableName: TTableName;
|
|
191
|
+
dataType: T['dataType'];
|
|
192
|
+
@@ -132,8 +132,8 @@ interface AnyPgColumnBuilder {
|
|
193
|
+
readonly _: PgColumnBuilderConfig;
|
|
194
|
+
}
|
|
195
|
+
type PgBuildColumn<TTableName extends string, TBuilder extends AnyPgColumnBuilder, TBuiltConfig extends PgColumnBaseConfig<ColumnType> = ResolvePgColumnConfig<TBuilder['_'], TTableName>> = PgColumn<ColumnType, TBuiltConfig, {}>;
|
|
196
|
+
-type PgBuildColumns<out TTableName extends string, out TConfigMap extends Record<string, AnyPgColumnBuilder>> = { [Key in keyof TConfigMap]: PgBuildColumn<TTableName, TConfigMap[Key]> } & {};
|
|
197
|
+
-type PgBuildExtraConfigColumns<out TConfigMap extends Record<string, AnyPgColumnBuilder>> = { [Key in keyof TConfigMap]: ExtraConfigColumn } & {};
|
|
198
|
+
+type PgBuildColumns<TTableName extends string, TConfigMap extends Record<string, AnyPgColumnBuilder>> = { [Key in keyof TConfigMap]: PgBuildColumn<TTableName, TConfigMap[Key]> } & {};
|
|
199
|
+
+type PgBuildExtraConfigColumns<TConfigMap extends Record<string, AnyPgColumnBuilder>> = { [Key in keyof TConfigMap]: ExtraConfigColumn } & {};
|
|
200
|
+
type PgColumns = Record<string, PgColumn>;
|
|
201
|
+
interface ReferenceConfig {
|
|
202
|
+
ref: () => PgColumn;
|
|
203
|
+
@@ -143,7 +143,7 @@ interface ReferenceConfig {
|
|
204
|
+
onDelete?: UpdateDeleteAction;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
-declare abstract class PgColumnBuilder<out T extends PgColumnBuilderConfig = PgColumnBuilderConfig, out TRuntimeConfig extends object = object> {
|
|
208
|
+
+declare abstract class PgColumnBuilder<T extends PgColumnBuilderConfig = PgColumnBuilderConfig, TRuntimeConfig extends object = object> {
|
|
209
|
+
static readonly [entityKind]: string;
|
|
210
|
+
readonly _: T;
|
|
211
|
+
private foreignKeyConfigs;
|
|
212
|
+
@@ -256,7 +256,7 @@ declare abstract class PgColumnBuilder<out T extends PgColumnBuilderConfig = PgC
|
|
213
|
+
}): this;
|
|
214
|
+
generatedAlwaysAs(as: SQL | (() => SQL)): SetHasGenerated<this>;
|
|
215
|
+
}
|
|
216
|
+
-declare abstract class PgColumn<out TColumnType extends ColumnType = any, out T extends PgColumnBaseConfig<TColumnType> = PgColumnBaseConfig<TColumnType>, out TRuntimeConfig extends object = {}> extends Column<T, TRuntimeConfig> {
|
|
217
|
+
+declare abstract class PgColumn<TColumnType extends ColumnType = any, T extends PgColumnBaseConfig<TColumnType> = PgColumnBaseConfig<TColumnType>, TRuntimeConfig extends object = {}> extends Column<T, TRuntimeConfig> {
|
|
218
|
+
static readonly [entityKind]: string;
|
|
219
|
+
readonly dimensions: PgArrayDimension;
|
|
220
|
+
constructor(table: PgTable, config: PgColumnBuilderRuntimeConfig<T['data']> & TRuntimeConfig);
|
|
221
|
+
@@ -266,7 +266,7 @@ type IndexedExtraConfigType = {
|
|
222
|
+
nulls?: 'first' | 'last';
|
|
223
|
+
opClass?: string;
|
|
224
|
+
};
|
|
225
|
+
-declare class ExtraConfigColumn<out T extends PgColumnBaseConfig<ColumnType> = PgColumnBaseConfig<ColumnType>> extends PgColumn<ColumnType, T, IndexedExtraConfigType> {
|
|
226
|
+
+declare class ExtraConfigColumn<T extends PgColumnBaseConfig<ColumnType> = PgColumnBaseConfig<ColumnType>> extends PgColumn<ColumnType, T, IndexedExtraConfigType> {
|
|
227
|
+
static readonly [entityKind]: string;
|
|
228
|
+
/** @itnernal */
|
|
229
|
+
readonly codec: undefined;
|
|
230
|
+
diff --git a/pg-core/columns/date.common.d.ts b/pg-core/columns/date.common.d.ts
|
|
231
|
+
index ac7d730..058a76b 100644
|
|
232
|
+
--- a/pg-core/columns/date.common.d.ts
|
|
233
|
+
+++ b/pg-core/columns/date.common.d.ts
|
|
234
|
+
@@ -2,7 +2,7 @@ import { PgColumnBuilder, PgColumnBuilderConfig, SetHasDefault } from "./common.
|
|
235
|
+
import { entityKind } from "../../entity.js";
|
|
236
|
+
|
|
237
|
+
//#region src/pg-core/columns/date.common.d.ts
|
|
238
|
+
-declare abstract class PgDateColumnBuilder<out T extends PgColumnBuilderConfig = PgColumnBuilderConfig, out TRuntimeConfig extends object = object> extends PgColumnBuilder<T, TRuntimeConfig> {
|
|
239
|
+
+declare abstract class PgDateColumnBuilder<T extends PgColumnBuilderConfig = PgColumnBuilderConfig, TRuntimeConfig extends object = object> extends PgColumnBuilder<T, TRuntimeConfig> {
|
|
240
|
+
static readonly [entityKind]: string;
|
|
241
|
+
/**
|
|
242
|
+
* Adds a `default now()` clause to the column definition.
|
|
243
|
+
diff --git a/pg-core/columns/int.common.d.ts b/pg-core/columns/int.common.d.ts
|
|
244
|
+
index 1f84a02..a43b929 100644
|
|
245
|
+
--- a/pg-core/columns/int.common.d.ts
|
|
246
|
+
+++ b/pg-core/columns/int.common.d.ts
|
|
247
|
+
@@ -3,7 +3,7 @@ import { HasIdentity, PgColumnBuilder, PgColumnBuilderConfig } from "./common.js
|
|
248
|
+
import { entityKind } from "../../entity.js";
|
|
249
|
+
|
|
250
|
+
//#region src/pg-core/columns/int.common.d.ts
|
|
251
|
+
-declare abstract class PgIntColumnBuilder<out T extends PgColumnBuilderConfig = PgColumnBuilderConfig, out TRuntimeConfig extends object = object> extends PgColumnBuilder<T, TRuntimeConfig> {
|
|
252
|
+
+declare abstract class PgIntColumnBuilder<T extends PgColumnBuilderConfig = PgColumnBuilderConfig, TRuntimeConfig extends object = object> extends PgColumnBuilder<T, TRuntimeConfig> {
|
|
253
|
+
static readonly [entityKind]: string;
|
|
254
|
+
/**
|
|
255
|
+
* Adds an `ALWAYS AS IDENTITY` clause to the column definition.
|
|
256
|
+
diff --git a/pg-core/policies.d.ts b/pg-core/policies.d.ts
|
|
257
|
+
index 8dddf4c..8cf30d5 100644
|
|
258
|
+
--- a/pg-core/policies.d.ts
|
|
259
|
+
+++ b/pg-core/policies.d.ts
|
|
260
|
+
@@ -12,7 +12,7 @@ interface PgPolicyConfig {
|
|
261
|
+
using?: SQL;
|
|
262
|
+
withCheck?: SQL;
|
|
263
|
+
}
|
|
264
|
+
-declare class PgPolicy implements PgPolicyConfig {
|
|
265
|
+
+declare class PgPolicy {
|
|
266
|
+
readonly name: string;
|
|
267
|
+
static readonly [entityKind]: string;
|
|
268
|
+
readonly as: PgPolicyConfig['as'];
|
|
269
|
+
diff --git a/pg-core/roles.d.ts b/pg-core/roles.d.ts
|
|
270
|
+
index 24534db..2fa36a4 100644
|
|
271
|
+
--- a/pg-core/roles.d.ts
|
|
272
|
+
+++ b/pg-core/roles.d.ts
|
|
273
|
+
@@ -6,7 +6,7 @@ interface PgRoleConfig {
|
|
274
|
+
createRole?: boolean;
|
|
275
|
+
inherit?: boolean;
|
|
276
|
+
}
|
|
277
|
+
-declare class PgRole implements PgRoleConfig {
|
|
278
|
+
+declare class PgRole {
|
|
279
|
+
readonly name: string;
|
|
280
|
+
static readonly [entityKind]: string;
|
|
281
|
+
constructor(name: string, config?: PgRoleConfig);
|
|
282
|
+
diff --git a/pg-core/table.d.ts b/pg-core/table.d.ts
|
|
283
|
+
index adccbf6..f9b6ebf 100644
|
|
284
|
+
--- a/pg-core/table.d.ts
|
|
285
|
+
+++ b/pg-core/table.d.ts
|
|
286
|
+
@@ -14,7 +14,7 @@ import { Casing } from "../casing.js";
|
|
287
|
+
type PgTableExtraConfigValue = AnyIndexBuilder | CheckBuilder | ForeignKeyBuilder | PrimaryKeyBuilder | UniqueConstraintBuilder | PgPolicy;
|
|
288
|
+
type PgTableExtraConfig = Record<string, PgTableExtraConfigValue>;
|
|
289
|
+
type TableConfig = TableConfig$1<PgColumns>;
|
|
290
|
+
-declare class PgTable<out T extends TableConfig = TableConfig> extends Table<T> {
|
|
291
|
+
+declare class PgTable<T extends TableConfig = TableConfig> extends Table<T> {
|
|
292
|
+
static readonly [entityKind]: string;
|
|
293
|
+
}
|
|
294
|
+
type AnyPgTable<TPartial extends Partial<TableConfig> = {}> = PgTable<UpdateTableConfig<TableConfig, TPartial>>;
|
|
295
|
+
diff --git a/singlestore-core/columns/binary.d.ts b/singlestore-core/columns/binary.d.ts
|
|
296
|
+
index dd01a90..0c882c5 100644
|
|
297
|
+
--- a/singlestore-core/columns/binary.d.ts
|
|
298
|
+
+++ b/singlestore-core/columns/binary.d.ts
|
|
299
|
+
@@ -1,6 +1,7 @@
|
|
300
|
+
import { SingleStoreColumn, SingleStoreColumnBuilder } from "./common.js";
|
|
301
|
+
import { entityKind } from "../../entity.js";
|
|
302
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
303
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
304
|
+
|
|
305
|
+
//#region src/singlestore-core/columns/binary.d.ts
|
|
306
|
+
declare class SingleStoreBinaryBuilder extends SingleStoreColumnBuilder<{
|
|
307
|
+
diff --git a/singlestore-core/columns/varbinary.d.ts b/singlestore-core/columns/varbinary.d.ts
|
|
308
|
+
index 7850009..89f380f 100644
|
|
309
|
+
--- a/singlestore-core/columns/varbinary.d.ts
|
|
310
|
+
+++ b/singlestore-core/columns/varbinary.d.ts
|
|
311
|
+
@@ -1,6 +1,7 @@
|
|
312
|
+
import { SingleStoreColumn, SingleStoreColumnBuilder } from "./common.js";
|
|
313
|
+
import { entityKind } from "../../entity.js";
|
|
314
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
315
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
316
|
+
|
|
317
|
+
//#region src/singlestore-core/columns/varbinary.d.ts
|
|
318
|
+
declare class SingleStoreVarBinaryBuilder extends SingleStoreColumnBuilder<{
|
|
319
|
+
diff --git a/singlestore-core/columns/vector.d.ts b/singlestore-core/columns/vector.d.ts
|
|
320
|
+
index d129b98..c72325e 100644
|
|
321
|
+
--- a/singlestore-core/columns/vector.d.ts
|
|
322
|
+
+++ b/singlestore-core/columns/vector.d.ts
|
|
323
|
+
@@ -2,6 +2,7 @@ import { SingleStoreColumn, SingleStoreColumnBuilder } from "./common.js";
|
|
324
|
+
import { entityKind } from "../../entity.js";
|
|
325
|
+
import { Equal } from "../../utils.js";
|
|
326
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
327
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
328
|
+
|
|
329
|
+
//#region src/singlestore-core/columns/vector.d.ts
|
|
330
|
+
declare class SingleStoreVectorBuilder extends SingleStoreColumnBuilder<{
|
|
331
|
+
diff --git a/sqlite-core/columns/blob.d.ts b/sqlite-core/columns/blob.d.ts
|
|
332
|
+
index aaf8ade..c76d313 100644
|
|
333
|
+
--- a/sqlite-core/columns/blob.d.ts
|
|
334
|
+
+++ b/sqlite-core/columns/blob.d.ts
|
|
335
|
+
@@ -2,6 +2,7 @@ import { SQLiteColumn, SQLiteColumnBuilder } from "./common.js";
|
|
336
|
+
import { entityKind } from "../../entity.js";
|
|
337
|
+
import { Equal } from "../../utils.js";
|
|
338
|
+
import { ColumnBaseConfig } from "../../column.js";
|
|
339
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
340
|
+
|
|
341
|
+
//#region src/sqlite-core/columns/blob.d.ts
|
|
342
|
+
type BlobMode = 'buffer' | 'json' | 'bigint';
|
|
343
|
+
diff --git a/sqlite-core/columns/custom.d.ts b/sqlite-core/columns/custom.d.ts
|
|
344
|
+
index c9b5ae9..344bd59 100644
|
|
345
|
+
--- a/sqlite-core/columns/custom.d.ts
|
|
346
|
+
+++ b/sqlite-core/columns/custom.d.ts
|
|
347
|
+
@@ -5,6 +5,7 @@ import { ColumnBaseConfig } from "../../column.js";
|
|
348
|
+
import { SQL, SQLGenerator } from "../../sql/sql.js";
|
|
349
|
+
import { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
|
350
|
+
import { AnySQLiteTable } from "../table.js";
|
|
351
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
352
|
+
|
|
353
|
+
//#region src/sqlite-core/columns/custom.d.ts
|
|
354
|
+
type ConvertCustomConfig<T extends Partial<CustomTypeValues>> = {
|
|
355
|
+
diff --git a/sqlite-core/query-builders/select.types.d.ts b/sqlite-core/query-builders/select.types.d.ts
|
|
356
|
+
index d427f70..e74334b 100644
|
|
357
|
+
--- a/sqlite-core/query-builders/select.types.d.ts
|
|
358
|
+
+++ b/sqlite-core/query-builders/select.types.d.ts
|
|
359
|
+
@@ -77,7 +77,7 @@ type SQLiteSelectKind<T extends SQLiteSelectHKTBase, TTableName extends string |
|
|
360
|
+
interface SQLiteSelectQueryBuilderHKT extends SQLiteSelectHKTBase {
|
|
361
|
+
_type: SQLiteSelectBase<SQLiteSelectQueryBuilderHKT, this['tableName'], this['runResult'], Assume<this['selection'], ColumnsSelection>, this['selectMode'], Assume<this['nullabilityMap'], Record<string, JoinNullability>>, this['dynamic'], this['excludedMethods'], Assume<this['result'], any[]>, Assume<this['selectedFields'], ColumnsSelection>>;
|
|
362
|
+
}
|
|
363
|
+
-type SQLiteSetOperatorExcludedMethods = 'config' | 'leftJoin' | 'rightJoin' | 'innerJoin' | 'fullJoin' | 'where' | 'having' | 'groupBy';
|
|
364
|
+
+type SQLiteSetOperatorExcludedMethods = 'leftJoin' | 'rightJoin' | 'innerJoin' | 'fullJoin' | 'where' | 'having' | 'groupBy';
|
|
365
|
+
type CreateSQLiteSelectFromBuilderMode<TBuilderMode extends 'db' | 'qb', THKT extends SQLiteSelectHKTBase, TTableName extends string | undefined, TRunResult, TSelection extends ColumnsSelection, TSelectMode extends SelectMode> = TBuilderMode extends 'db' ? SQLiteSelectKind<THKT, TTableName, TRunResult, TSelection, TSelectMode, TTableName extends string ? Record<TTableName, 'not-null'> : {}, false, never> : SQLiteSelectBase<SQLiteSelectQueryBuilderHKT, TTableName, TRunResult, TSelection, TSelectMode>;
|
|
366
|
+
type SQLiteSelectWithout<T extends AnySQLiteSelectQueryBuilder, TDynamic extends boolean, K extends keyof T & string, TResetExcluded extends boolean = false> = TDynamic extends true ? T : Omit<SQLiteSelectKind<T['_']['hkt'], T['_']['tableName'], T['_']['runResult'], T['_']['selection'], T['_']['selectMode'], T['_']['nullabilityMap'], TDynamic, TResetExcluded extends true ? K : T['_']['excludedMethods'] | K, T['_']['result'], T['_']['selectedFields']>, TResetExcluded extends true ? K : T['_']['excludedMethods'] | K>;
|
|
367
|
+
type SQLiteSelectExecute<T extends AnySQLiteSelect> = T['_']['result'];
|
|
368
|
+
diff --git a/table.d.ts b/table.d.ts
|
|
369
|
+
index 8249814..cf1bacc 100644
|
|
370
|
+
--- a/table.d.ts
|
|
371
|
+
+++ b/table.d.ts
|
|
372
|
+
@@ -19,7 +19,7 @@ interface TableTypeConfig<T extends TableConfig> {
|
|
373
|
+
readonly columns: T['columns'];
|
|
374
|
+
readonly dialect: T['dialect'];
|
|
375
|
+
}
|
|
376
|
+
-declare class Table<out T extends TableConfig = TableConfig> {
|
|
377
|
+
+declare class Table<T extends TableConfig = TableConfig> {
|
|
378
|
+
static readonly [entityKind]: string;
|
|
379
|
+
readonly _: TableTypeConfig<T>;
|
|
380
|
+
constructor(name: string, schema: string | undefined, baseName: string);
|
|
381
|
+
diff --git a/typebox-legacy/column.types.d.ts b/typebox-legacy/column.types.d.ts
|
|
382
|
+
index 7d0414c..c0ce84c 100644
|
|
383
|
+
--- a/typebox-legacy/column.types.d.ts
|
|
384
|
+
+++ b/typebox-legacy/column.types.d.ts
|
|
385
|
+
@@ -4,6 +4,7 @@ import { Assume } from "../utils.js";
|
|
386
|
+
import { Column } from "../column.js";
|
|
387
|
+
import { ColumnTypeData, ExtractColumnTypeData } from "../column-builder.js";
|
|
388
|
+
import * as t from "@sinclair/typebox";
|
|
389
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
390
|
+
|
|
391
|
+
//#region src/typebox-legacy/column.types.d.ts
|
|
392
|
+
interface GenericSchema<T> extends t.TSchema {
|
|
393
|
+
diff --git a/typebox/column.d.ts b/typebox/column.d.ts
|
|
394
|
+
index 966a89a..76c575d 100644
|
|
395
|
+
--- a/typebox/column.d.ts
|
|
396
|
+
+++ b/typebox/column.d.ts
|
|
397
|
+
@@ -1,6 +1,7 @@
|
|
398
|
+
import { JsonSchema } from "./column.types.js";
|
|
399
|
+
import { Column } from "../column.js";
|
|
400
|
+
import Type, { TSchema } from "typebox";
|
|
401
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
402
|
+
|
|
403
|
+
//#region src/typebox/column.d.ts
|
|
404
|
+
declare class TBuffer extends Type.Base<Buffer> {
|
|
405
|
+
diff --git a/valibot/column.d.ts b/valibot/column.d.ts
|
|
406
|
+
index f7c9d94..00d10aa 100644
|
|
407
|
+
--- a/valibot/column.d.ts
|
|
408
|
+
+++ b/valibot/column.d.ts
|
|
409
|
+
@@ -1,6 +1,7 @@
|
|
410
|
+
import { Json } from "../utils.js";
|
|
411
|
+
import { Column } from "../column.js";
|
|
412
|
+
import * as v from "valibot";
|
|
413
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
414
|
+
|
|
415
|
+
//#region src/valibot/column.d.ts
|
|
416
|
+
declare const literalSchema: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
417
|
+
diff --git a/valibot/column.types.d.ts b/valibot/column.types.d.ts
|
|
418
|
+
index cab6045..6583423 100644
|
|
419
|
+
--- a/valibot/column.types.d.ts
|
|
420
|
+
+++ b/valibot/column.types.d.ts
|
|
421
|
+
@@ -4,6 +4,7 @@ import { Assume } from "../utils.js";
|
|
422
|
+
import { Column } from "../column.js";
|
|
423
|
+
import { ColumnDataConstraint, ColumnDataType, ColumnTypeData, ExtractColumnTypeData } from "../column-builder.js";
|
|
424
|
+
import * as v from "valibot";
|
|
425
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
426
|
+
|
|
427
|
+
//#region src/valibot/column.types.d.ts
|
|
428
|
+
type ExtractAdditionalProperties<TColumn extends Column> = {
|
|
429
|
+
diff --git a/zod/column.d.ts b/zod/column.d.ts
|
|
430
|
+
index a8b8182..beae528 100644
|
|
431
|
+
--- a/zod/column.d.ts
|
|
432
|
+
+++ b/zod/column.d.ts
|
|
433
|
+
@@ -2,6 +2,7 @@ import { Json } from "../utils.js";
|
|
434
|
+
import { FactoryOptions } from "./schema.types.js";
|
|
435
|
+
import { Column } from "../column.js";
|
|
436
|
+
import { z } from "zod/v4";
|
|
437
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
438
|
+
|
|
439
|
+
//#region src/zod/column.d.ts
|
|
440
|
+
declare const literalSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
441
|
+
diff --git a/zod/column.types.d.ts b/zod/column.types.d.ts
|
|
442
|
+
index b542477..dd71e63 100644
|
|
443
|
+
--- a/zod/column.types.d.ts
|
|
444
|
+
+++ b/zod/column.types.d.ts
|
|
445
|
+
@@ -5,6 +5,7 @@ import { Assume } from "../utils.js";
|
|
446
|
+
import { Column } from "../column.js";
|
|
447
|
+
import { ColumnTypeData, ExtractColumnTypeData } from "../column-builder.js";
|
|
448
|
+
import { z } from "zod/v4";
|
|
449
|
+
+type Buffer<T extends ArrayBufferLike = ArrayBufferLike> = Uint8Array<T>;
|
|
450
|
+
|
|
451
|
+
//#region src/zod/column.types.d.ts
|
|
452
|
+
type GetArrayDepth<T, Depth extends number = 0> = Depth extends 5 ? 5 : T extends readonly (infer U)[] ? GetArrayDepth<U, [1, 2, 3, 4, 5][Depth]> : Depth;
|