vertz 0.0.1 → 0.1.1

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 ADDED
@@ -0,0 +1,13 @@
1
+ # vertz
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`a207936`](https://github.com/vertz-dev/vertz/commit/a2079362c54a8b61ea2368039abcb08681448380), [`db53497`](https://github.com/vertz-dev/vertz/commit/db534979df714d51227a34b4d5b80960e34ec33c), [`b2d43d4`](https://github.com/vertz-dev/vertz/commit/b2d43d4f265e4b1a806b3e96f00721cc38cc07e8), [`2ec4dd3`](https://github.com/vertz-dev/vertz/commit/2ec4dd3be1ac13f74015e977a699cd59fd7291bc), [`259e250`](https://github.com/vertz-dev/vertz/commit/259e2501116f805fed49b95471aaeb4f80515256), [`6443339`](https://github.com/vertz-dev/vertz/commit/64433394142ddff76d8021b25259c9c901d62b1e), [`3407afd`](https://github.com/vertz-dev/vertz/commit/3407afdf543481cd559e550454144d16e6a26e06), [`f3b132a`](https://github.com/vertz-dev/vertz/commit/f3b132af4f6ff39e967d4ca3d33f7e6ee12eff84), [`4f780bb`](https://github.com/vertz-dev/vertz/commit/4f780bba6bee7a493c9a1e0b8463ea2126a7285b), [`c38def6`](https://github.com/vertz-dev/vertz/commit/c38def6b6e060f63afeaacd93afa85aae9154833), [`0a33c14`](https://github.com/vertz-dev/vertz/commit/0a33c142a12a54e0da61423701ca338118ab9c98), [`0f1c028`](https://github.com/vertz-dev/vertz/commit/0f1c028dd6bb90e37ac71f60e40ba0be774cca11), [`6814cd8`](https://github.com/vertz-dev/vertz/commit/6814cd8da818cd0b36deaea132ca589cf6a03a89), [`7207c4c`](https://github.com/vertz-dev/vertz/commit/7207c4c44c2fc83f67459cbcba8e6010b4d05145), [`a454791`](https://github.com/vertz-dev/vertz/commit/a454791e0c6866cbad1d0d96bc3c0688282b021b), [`e17ccb2`](https://github.com/vertz-dev/vertz/commit/e17ccb261ecebc1ca7d58b75365869cb29253a3c), [`948f127`](https://github.com/vertz-dev/vertz/commit/948f127bf4b752274800c045d010590f1cc266d8), [`9ee0308`](https://github.com/vertz-dev/vertz/commit/9ee03084f71803b04eef5f05ced2f90b52a9fa8e), [`63f074e`](https://github.com/vertz-dev/vertz/commit/63f074eefa96b49eb72724f8ec377a14a1f2c630)]:
8
+ - @vertz/server@0.2.0
9
+ - @vertz/testing@0.2.0
10
+ - @vertz/db@0.2.0
11
+ - @vertz/schema@0.2.0
12
+ - @vertz/ui-compiler@1.0.0
13
+ - @vertz/ui@0.2.0
package/README.md CHANGED
@@ -1,20 +1,34 @@
1
1
  # vertz
2
2
 
3
- This is a placeholder package to secure the `vertz` package name on npm.
3
+ The unified meta-package for the [Vertz](https://github.com/vertz-dev/vertz) framework.
4
4
 
5
- This package is maintained by the [@vertz](https://www.npmjs.com/org/vertz) organization.
5
+ Instead of installing individual `@vertz/*` packages, install `vertz` and import what you need via subpath exports:
6
6
 
7
- For the actual Vertz framework packages, please see:
8
- - [@vertz/core](https://www.npmjs.com/package/@vertz/core)
9
- - [@vertz/compiler](https://www.npmjs.com/package/@vertz/compiler)
10
- - [@vertz/codegen](https://www.npmjs.com/package/@vertz/codegen)
11
- - And other packages under the @vertz scope
7
+ ```ts
8
+ import { createServer } from 'vertz/server';
9
+ import { s } from 'vertz/schema';
10
+ import { createDb } from 'vertz/db';
11
+ import { createTestClient } from 'vertz/testing';
12
+ ```
12
13
 
13
- ## Installation
14
+ ## Why subpath exports?
14
15
 
15
- ```bash
16
- npm install vertz
17
- ```
16
+ - **Tree-shakeable** — importing `vertz/server` only pulls in `@vertz/server`, nothing else.
17
+ - **One dependency** — `npm install vertz` gives you the whole framework.
18
+ - **No barrel file** — there's no default `import from 'vertz'`; every import is explicit.
19
+
20
+ ## Available subpaths
21
+
22
+ | Subpath | Resolves to | Status |
23
+ |---|---|---|
24
+ | `vertz/server` | `@vertz/server` | ✅ |
25
+ | `vertz/schema` | `@vertz/schema` | ✅ |
26
+ | `vertz/db` | `@vertz/db` | ✅ |
27
+ | `vertz/testing` | `@vertz/testing` | ✅ |
28
+ | `vertz/ui` | `@vertz/ui` | ✅ |
29
+ | `vertz/ui-compiler` | `@vertz/ui-compiler` | ✅ |
30
+ | `vertz/router` | `@vertz/router` | 🚧 Planned |
31
+ | `vertz/signal` | `@vertz/signal` | 🚧 Planned |
18
32
 
19
33
  ## License
20
34
 
@@ -0,0 +1,88 @@
1
+ import { describe, it, expect } from 'vitest';
2
+
3
+ /**
4
+ * Tests that each subpath export from the `vertz` meta-package
5
+ * correctly re-exports from the underlying @vertz/* package.
6
+ *
7
+ * Tree-shaking: each subpath is a separate entry point with `sideEffects: false`,
8
+ * so bundlers will only include the code actually imported.
9
+ */
10
+
11
+ describe('vertz meta-package subpath exports', () => {
12
+ it('vertz/server re-exports @vertz/server', async () => {
13
+ const mod = await import('vertz/server');
14
+ // createServer is the primary export from @vertz/server
15
+ expect(mod.createServer).toBeDefined();
16
+ expect(typeof mod.createServer).toBe('function');
17
+ });
18
+
19
+ it('vertz/schema re-exports @vertz/schema', async () => {
20
+ const mod = await import('vertz/schema');
21
+ // s is the schema builder
22
+ expect(mod.s).toBeDefined();
23
+ expect(typeof mod.s).toBe('object');
24
+ });
25
+
26
+ it('vertz/db re-exports @vertz/db', async () => {
27
+ const mod = await import('vertz/db');
28
+ // Should have db-related exports
29
+ expect(Object.keys(mod).length).toBeGreaterThan(0);
30
+ });
31
+
32
+ it('vertz/testing re-exports @vertz/testing', async () => {
33
+ const mod = await import('vertz/testing');
34
+ expect(Object.keys(mod).length).toBeGreaterThan(0);
35
+ });
36
+
37
+ it('vertz/ui re-exports @vertz/ui', async () => {
38
+ const mod = await import('vertz/ui');
39
+ expect(Object.keys(mod).length).toBeGreaterThan(0);
40
+ });
41
+
42
+ it('vertz/ui-compiler re-exports @vertz/ui-compiler', async () => {
43
+ const mod = await import('vertz/ui-compiler');
44
+ expect(Object.keys(mod).length).toBeGreaterThan(0);
45
+ });
46
+
47
+ it('vertz has no default/root export', async () => {
48
+ // Verify package.json has no "." export
49
+ const fs = await import('fs');
50
+ const path = await import('path');
51
+ const pkgPath = path.resolve(import.meta.dirname, '..', 'package.json');
52
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
53
+ expect(pkg.exports['.']).toBeUndefined();
54
+ expect(pkg.main).toBeUndefined();
55
+ });
56
+
57
+ it('vertz/router re-exports @vertz/ui', async () => {
58
+ const mod = await import('vertz/router');
59
+ // Should have router-related exports
60
+ expect(Object.keys(mod).length).toBeGreaterThan(0);
61
+ });
62
+
63
+ it('vertz/signal re-exports @vertz/ui', async () => {
64
+ const mod = await import('vertz/signal');
65
+ // Should have signal-related exports
66
+ expect(Object.keys(mod).length).toBeGreaterThan(0);
67
+ });
68
+ });
69
+
70
+ describe('tree-shaking: subpaths are independent modules', () => {
71
+ it('each subpath points to a separate source file', async () => {
72
+ // Verify the package.json exports field has separate entry points
73
+ const fs = await import('fs');
74
+ const path = await import('path');
75
+ const pkgPath = path.resolve(import.meta.dirname, '..', 'package.json');
76
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
77
+
78
+ const exportPaths = Object.values(pkg.exports) as Array<{ import: string }>;
79
+ const importPaths = exportPaths.map((e) => e.import);
80
+
81
+ // All import paths should be unique (no shared entry point)
82
+ const unique = new Set(importPaths);
83
+ expect(unique.size).toBe(importPaths.length);
84
+
85
+ // sideEffects must be false for tree-shaking
86
+ expect(pkg.sideEffects).toBe(false);
87
+ });
88
+ });
package/package.json CHANGED
@@ -1,26 +1,67 @@
1
1
  {
2
2
  "name": "vertz",
3
- "version": "0.0.1",
4
- "description": "Placeholder package to secure the vertz package name",
5
- "main": "index.js",
6
- "files": [
7
- "index.js",
8
- "README.md"
9
- ],
10
- "scripts": {
11
- "prepublishOnly": "echo 'Publishing vertz placeholder package'"
12
- },
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "description": "The first TypeScript stack built for LLMs",
13
7
  "repository": {
14
8
  "type": "git",
15
- "url": "https://github.com/blimu-dev/vertz"
9
+ "url": "https://github.com/vertz-dev/vertz.git",
10
+ "directory": "packages/vertz"
16
11
  },
17
- "author": "viniciusdacal",
18
- "license": "MIT",
19
- "keywords": [
20
- "vertz",
21
- "placeholder"
22
- ],
23
12
  "publishConfig": {
24
- "access": "public"
13
+ "access": "public",
14
+ "provenance": true
15
+ },
16
+ "sideEffects": false,
17
+ "exports": {
18
+ "./server": {
19
+ "import": "./src/server.ts",
20
+ "types": "./src/server.ts"
21
+ },
22
+ "./schema": {
23
+ "import": "./src/schema.ts",
24
+ "types": "./src/schema.ts"
25
+ },
26
+ "./db": {
27
+ "import": "./src/db.ts",
28
+ "types": "./src/db.ts"
29
+ },
30
+ "./testing": {
31
+ "import": "./src/testing.ts",
32
+ "types": "./src/testing.ts"
33
+ },
34
+ "./ui": {
35
+ "import": "./src/ui.ts",
36
+ "types": "./src/ui.ts"
37
+ },
38
+ "./ui-compiler": {
39
+ "import": "./src/ui-compiler.ts",
40
+ "types": "./src/ui-compiler.ts"
41
+ },
42
+ "./router": {
43
+ "import": "./src/router.ts",
44
+ "types": "./src/router.ts"
45
+ },
46
+ "./signal": {
47
+ "import": "./src/signal.ts",
48
+ "types": "./src/signal.ts"
49
+ }
50
+ },
51
+ "scripts": {
52
+ "test": "vitest run",
53
+ "test:watch": "vitest",
54
+ "build": "echo 'meta-package: no build needed'"
55
+ },
56
+ "dependencies": {
57
+ "@vertz/server": "workspace:*",
58
+ "@vertz/schema": "workspace:*",
59
+ "@vertz/db": "workspace:*",
60
+ "@vertz/testing": "workspace:*",
61
+ "@vertz/ui": "workspace:*",
62
+ "@vertz/ui-compiler": "workspace:*"
63
+ },
64
+ "devDependencies": {
65
+ "vitest": "^4.0.18"
25
66
  }
26
67
  }
package/src/db.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@vertz/db';
package/src/router.ts ADDED
@@ -0,0 +1,27 @@
1
+ export {
2
+ defineRoutes,
3
+ matchRoute,
4
+ createLink,
5
+ executeLoaders,
6
+ matchPath,
7
+ createRouter,
8
+ createOutlet,
9
+ parseSearchParams,
10
+ useSearchParams,
11
+ } from '@vertz/ui';
12
+
13
+ export type {
14
+ CompiledRoute,
15
+ LoaderData,
16
+ MatchedRoute,
17
+ RouteConfig,
18
+ RouteDefinitionMap,
19
+ RouteMatch,
20
+ SearchParamSchema,
21
+ LinkProps,
22
+ MatchResult,
23
+ NavigateOptions,
24
+ Router,
25
+ OutletContext,
26
+ ExtractParams,
27
+ } from '@vertz/ui';
package/src/schema.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@vertz/schema';
package/src/server.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@vertz/server';
package/src/signal.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { signal, computed, effect } from '@vertz/ui';
2
+ export { batch } from '@vertz/ui';
3
+ export type { Signal, Computed, DisposeFn } from '@vertz/ui';
package/src/testing.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@vertz/testing';
@@ -0,0 +1 @@
1
+ export * from '@vertz/ui-compiler';
package/src/ui.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@vertz/ui';
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "dist",
4
+ "rootDir": "src"
5
+ },
6
+ "extends": "../../tsconfig.json",
7
+ "include": ["src"]
8
+ }
package/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Placeholder package to secure the vertz package name on npm.
3
- * This package is maintained by the @vertz organization.
4
- */
5
-
6
- module.exports = {
7
- name: 'vertz',
8
- version: '0.0.1',
9
- description: 'Placeholder package to secure the vertz package name'
10
- };