vertz 0.2.70 → 0.2.73

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,94 @@
1
1
  # vertz
2
2
 
3
+ ## 0.2.73
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2822](https://github.com/vertz-dev/vertz/pull/2822) [`a06aaae`](https://github.com/vertz-dev/vertz/commit/a06aaae48e5e5612c36b4dd29dd6e0adebdc776a) Thanks [@viniciusdacal](https://github.com/viniciusdacal)! - Rename `vertz/env` → `vertz/client` so tsconfig `types` discoverability matches
8
+ the Vite convention. The augmentation now correctly types `ImportMeta.hot` as
9
+ `ImportMetaHot | undefined` (it only exists in dev), adds the `accept(cb)`
10
+ callback overload for the in-repo HMR pattern, and drops the Bun-only
11
+ `ImportMeta.main` property. Migrate by updating `tsconfig.json` to
12
+ `"types": ["vertz/client"]` and call sites to `import.meta.hot?.accept()`.
13
+
14
+ Closes #2777.
15
+
16
+ - Updated dependencies [[`7e80041`](https://github.com/vertz-dev/vertz/commit/7e80041df6d5708fb54177edeef8bd211e368c7c), [`c724744`](https://github.com/vertz-dev/vertz/commit/c724744924b75e215201c0d19b047f4b8a287044), [`5223868`](https://github.com/vertz-dev/vertz/commit/5223868cb3001349065cc246e0ca8a03ad9356f4), [`33aed0c`](https://github.com/vertz-dev/vertz/commit/33aed0c8ff4564ca2b4249e3a48a2552f8068d8b), [`b8253ad`](https://github.com/vertz-dev/vertz/commit/b8253ad485fba3fc04164db116ee0192e629b3d2)]:
17
+ - @vertz/ui@0.2.73
18
+ - @vertz/ui-server@0.2.73
19
+ - @vertz/cli@0.2.73
20
+ - @vertz/cloudflare@0.2.73
21
+ - @vertz/db@0.2.73
22
+ - @vertz/errors@0.2.73
23
+ - @vertz/fetch@0.2.73
24
+ - @vertz/schema@0.2.73
25
+ - @vertz/server@0.2.73
26
+ - @vertz/testing@0.2.73
27
+ - @vertz/tui@0.2.73
28
+ - @vertz/ui-primitives@0.2.73
29
+ - @vertz/ui-auth@0.2.20
30
+
31
+ ## 0.2.72
32
+
33
+ ### Patch Changes
34
+
35
+ - [#2773](https://github.com/vertz-dev/vertz/pull/2773) [`303e119`](https://github.com/vertz-dev/vertz/commit/303e119c194bed3b532ce1842ed5293bcf974818) Thanks [@viniciusdacal](https://github.com/viniciusdacal)! - refactor: rename vtz plugin system for honesty
36
+
37
+ Dev is vtz; production build uses a Bun-shaped factory whose purpose (not
38
+ runtime) drives its name.
39
+
40
+ **Breaking changes:**
41
+
42
+ - `@vertz/ui-server/bun-plugin` subpath removed. Use `@vertz/ui-server/build-plugin`.
43
+ - `vertz/ui-server/bun-plugin` subpath removed. Use `vertz/ui-server/build-plugin`.
44
+ - `createVertzBunPlugin` → `createVertzBuildPlugin`.
45
+ - `VertzBunPluginOptions` → `VertzBuildPluginOptions`.
46
+ - `VertzBunPluginResult` → `VertzBuildPluginResult`.
47
+ - `vtz --plugin` CLI flag removed (only Vertz is supported now).
48
+ - `ReactPlugin` removed from Rust (including `PluginChoice::React` config,
49
+ `.vertzrc` handling, `package.json` auto-detect, and embedded React
50
+ fast-refresh assets).
51
+
52
+ **Dead-code cleanup:**
53
+
54
+ - All six `bun-plugin-shim.ts` files deleted from examples, benchmarks, and
55
+ first-party packages. These were orphans — no `bunfig.toml` referenced them.
56
+ - `docs/fullstack-app-setup.md` deleted (documented a setup that no longer worked).
57
+
58
+ - Updated dependencies [[`d8e23a1`](https://github.com/vertz-dev/vertz/commit/d8e23a13049afb0a8611c63081bf799dc9790f77), [`756742c`](https://github.com/vertz-dev/vertz/commit/756742c2eb9cc95e253d441eb79ad5de7a13f25c), [`c65900b`](https://github.com/vertz-dev/vertz/commit/c65900bfa0d3f53e958526c9c0109ed32bd06511), [`8bed545`](https://github.com/vertz-dev/vertz/commit/8bed5454aeeec6c374ceb43bccc92841442d87da), [`e2db646`](https://github.com/vertz-dev/vertz/commit/e2db646ea254b60c9bec01d51400c1c46c328c98), [`8d8976d`](https://github.com/vertz-dev/vertz/commit/8d8976dd3d2d2475f37d0df79f8477fd3f58395f), [`36a459d`](https://github.com/vertz-dev/vertz/commit/36a459d191d732370cb4020533c7f8494622f1b5), [`303e119`](https://github.com/vertz-dev/vertz/commit/303e119c194bed3b532ce1842ed5293bcf974818)]:
59
+ - @vertz/ui@0.2.72
60
+ - @vertz/db@0.2.72
61
+ - @vertz/ui-auth@0.2.20
62
+ - @vertz/schema@0.2.72
63
+ - @vertz/ui-server@0.2.72
64
+ - @vertz/cli@0.2.72
65
+ - @vertz/cloudflare@0.2.72
66
+ - @vertz/errors@0.2.72
67
+ - @vertz/fetch@0.2.72
68
+ - @vertz/server@0.2.72
69
+ - @vertz/testing@0.2.72
70
+ - @vertz/tui@0.2.72
71
+ - @vertz/ui-primitives@0.2.72
72
+
73
+ ## 0.2.71
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies []:
78
+ - @vertz/cli@0.2.71
79
+ - @vertz/cloudflare@0.2.71
80
+ - @vertz/db@0.2.71
81
+ - @vertz/errors@0.2.71
82
+ - @vertz/fetch@0.2.71
83
+ - @vertz/schema@0.2.71
84
+ - @vertz/server@0.2.71
85
+ - @vertz/testing@0.2.71
86
+ - @vertz/tui@0.2.71
87
+ - @vertz/ui@0.2.71
88
+ - @vertz/ui-primitives@0.2.71
89
+ - @vertz/ui-server@0.2.71
90
+ - @vertz/ui-auth@0.2.19
91
+
3
92
  ## 0.2.70
4
93
 
5
94
  ### Patch Changes
package/client.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Vertz client-side runtime type augmentations.
3
+ *
4
+ * Include in your tsconfig.json:
5
+ * "types": ["vertz/client"]
6
+ *
7
+ * Or add a triple-slash reference:
8
+ * /// <reference types="vertz/client" />
9
+ */
10
+
11
+ declare global {
12
+ interface ImportMetaHot {
13
+ /** Accept the current module's HMR update. */
14
+ accept(): void;
15
+ /** Accept the current module's HMR update with a callback receiving the new module. */
16
+ accept(cb: (newModule: unknown) => void): void;
17
+ /** Accept updates for specific dependencies. */
18
+ accept(deps: string | readonly string[], cb?: (modules: unknown[]) => void): void;
19
+ /** Dispose callback — runs before module is replaced. */
20
+ dispose(cb: (data: Record<string, unknown>) => void): void;
21
+ /** Persistent data across HMR updates. */
22
+ data: Record<string, unknown>;
23
+ }
24
+
25
+ interface ImportMeta {
26
+ /** Hot Module Replacement API. Only available in dev mode; undefined in production and SSR. */
27
+ readonly hot: ImportMetaHot | undefined;
28
+ }
29
+ }
30
+
31
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from '@vertz/ui-server/build-plugin';
2
+ //# sourceMappingURL=ui-server-build-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-server-build-plugin.d.ts","sourceRoot":"","sources":["../src/ui-server-build-plugin.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@vertz/ui-server/build-plugin';
2
+ //# sourceMappingURL=ui-server-build-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-server-build-plugin.js","sourceRoot":"","sources":["../src/ui-server-build-plugin.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vertz",
3
- "version": "0.2.70",
3
+ "version": "0.2.73",
4
4
  "description": "Full-stack TypeScript framework — database ORM, API server, compiled UI, and custom runtime. One schema drives every layer.",
5
5
  "keywords": [
6
6
  "ai",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "files": [
32
32
  "dist",
33
- "env.d.ts"
33
+ "client.d.ts"
34
34
  ],
35
35
  "type": "module",
36
36
  "sideEffects": false,
@@ -87,16 +87,16 @@
87
87
  "import": "./dist/ui-components.js",
88
88
  "types": "./dist/ui-components.d.ts"
89
89
  },
90
- "./ui-server/bun-plugin": {
91
- "import": "./dist/ui-server-bun-plugin.js",
92
- "types": "./dist/ui-server-bun-plugin.d.ts"
90
+ "./ui-server/build-plugin": {
91
+ "import": "./dist/ui-server-build-plugin.js",
92
+ "types": "./dist/ui-server-build-plugin.d.ts"
93
93
  },
94
94
  "./ui-auth": {
95
95
  "import": "./dist/ui-auth.js",
96
96
  "types": "./dist/ui-auth.d.ts"
97
97
  },
98
- "./env": {
99
- "types": "./env.d.ts"
98
+ "./client": {
99
+ "types": "./client.d.ts"
100
100
  }
101
101
  },
102
102
  "publishConfig": {
@@ -105,25 +105,25 @@
105
105
  },
106
106
  "scripts": {
107
107
  "build": "tsc",
108
- "typecheck": "tsgo --noEmit",
108
+ "typecheck": "tsgo --noEmit -p tsconfig.typecheck.json",
109
109
  "test": "vtz test"
110
110
  },
111
111
  "dependencies": {
112
- "@vertz/cli": "^0.2.70",
113
- "@vertz/cloudflare": "^0.2.70",
114
- "@vertz/db": "^0.2.70",
115
- "@vertz/errors": "^0.2.70",
116
- "@vertz/fetch": "^0.2.70",
117
- "@vertz/schema": "^0.2.70",
118
- "@vertz/server": "^0.2.70",
119
- "@vertz/testing": "^0.2.70",
120
- "@vertz/tui": "^0.2.70",
121
- "@vertz/ui": "^0.2.70",
122
- "@vertz/ui-auth": "^0.2.19",
123
- "@vertz/ui-primitives": "^0.2.70",
124
- "@vertz/ui-server": "^0.2.70"
112
+ "@vertz/cli": "^0.2.73",
113
+ "@vertz/cloudflare": "^0.2.73",
114
+ "@vertz/db": "^0.2.73",
115
+ "@vertz/errors": "^0.2.73",
116
+ "@vertz/fetch": "^0.2.73",
117
+ "@vertz/schema": "^0.2.73",
118
+ "@vertz/server": "^0.2.73",
119
+ "@vertz/testing": "^0.2.73",
120
+ "@vertz/tui": "^0.2.73",
121
+ "@vertz/ui": "^0.2.73",
122
+ "@vertz/ui-auth": "^0.2.20",
123
+ "@vertz/ui-primitives": "^0.2.73",
124
+ "@vertz/ui-server": "^0.2.73"
125
125
  },
126
126
  "devDependencies": {
127
- "@vertz/test": "0.2.70"
127
+ "@vertz/test": "0.2.73"
128
128
  }
129
129
  }
@@ -1,2 +0,0 @@
1
- export * from '@vertz/ui-server/bun-plugin';
2
- //# sourceMappingURL=ui-server-bun-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-server-bun-plugin.d.ts","sourceRoot":"","sources":["../src/ui-server-bun-plugin.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from '@vertz/ui-server/bun-plugin';
2
- //# sourceMappingURL=ui-server-bun-plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-server-bun-plugin.js","sourceRoot":"","sources":["../src/ui-server-bun-plugin.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
package/env.d.ts DELETED
@@ -1,27 +0,0 @@
1
- /**
2
- * Vertz runtime environment type augmentations.
3
- *
4
- * Include in your tsconfig.json:
5
- * "types": ["vertz/env"]
6
- *
7
- * Or add a triple-slash reference:
8
- * /// <reference types="vertz/env" />
9
- */
10
-
11
- interface ImportMetaHot {
12
- /** Accept the current module's HMR update. */
13
- accept(): void;
14
- /** Accept updates for specific dependencies. */
15
- accept(deps: string | string[], cb?: (modules: unknown[]) => void): void;
16
- /** Dispose callback — runs before module is replaced. */
17
- dispose(cb: (data: Record<string, unknown>) => void): void;
18
- /** Persistent data across HMR updates. */
19
- data: Record<string, unknown>;
20
- }
21
-
22
- interface ImportMeta {
23
- /** Whether this module is the entry point. Available in the vtz runtime. */
24
- readonly main: boolean;
25
- /** Hot Module Replacement API. Only available in dev mode; undefined in production. */
26
- readonly hot: ImportMetaHot | undefined;
27
- }