vertz 0.1.1 → 0.2.3
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/.turbo/turbo-build.log +2 -0
- package/CHANGELOG.md +30 -0
- package/__tests__/subpath-exports.test.ts +24 -11
- package/package.json +30 -13
- package/src/cloudflare.ts +1 -0
- package/src/errors.ts +1 -0
- package/src/fetch.ts +1 -0
- package/src/tui.ts +1 -0
- package/src/ui-primitives.ts +1 -0
- package/src/router.ts +0 -27
- package/src/signal.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# vertz
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`62dddcb`](https://github.com/vertz-dev/vertz/commit/62dddcbcb4943b12a04bca8466b09ae21901070b), [`62dddcb`](https://github.com/vertz-dev/vertz/commit/62dddcbcb4943b12a04bca8466b09ae21901070b), [`b0b6115`](https://github.com/vertz-dev/vertz/commit/b0b6115e0389447ffb951e875b5ce224e4ace51c)]:
|
|
8
|
+
- @vertz/tui@0.2.3
|
|
9
|
+
- @vertz/ui-compiler@0.2.3
|
|
10
|
+
- @vertz/server@0.2.3
|
|
11
|
+
- @vertz/testing@0.2.3
|
|
12
|
+
- @vertz/cloudflare@0.2.3
|
|
13
|
+
- @vertz/ui-primitives@0.2.2
|
|
14
|
+
- @vertz/schema@0.2.3
|
|
15
|
+
- @vertz/db@0.2.3
|
|
16
|
+
- @vertz/ui@0.2.2
|
|
17
|
+
|
|
18
|
+
## 0.2.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`b6cb0a0`](https://github.com/vertz-dev/vertz/commit/b6cb0a0e3de68974ce1747063288aef7a199f084)]:
|
|
23
|
+
- @vertz/server@0.2.2
|
|
24
|
+
- @vertz/ui@0.2.2
|
|
25
|
+
- @vertz/schema@0.2.2
|
|
26
|
+
- @vertz/testing@0.2.2
|
|
27
|
+
- @vertz/tui@0.2.2
|
|
28
|
+
- @vertz/ui-compiler@0.2.2
|
|
29
|
+
- @vertz/ui-primitives@0.2.2
|
|
30
|
+
- @vertz/db@0.2.2
|
|
31
|
+
- @vertz/cloudflare@0.2.2
|
|
32
|
+
|
|
3
33
|
## 0.1.1
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { describe,
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Tests that each subpath export from the `vertz` meta-package
|
|
@@ -46,23 +46,36 @@ describe('vertz meta-package subpath exports', () => {
|
|
|
46
46
|
|
|
47
47
|
it('vertz has no default/root export', async () => {
|
|
48
48
|
// Verify package.json has no "." export
|
|
49
|
-
const fs = await import('fs');
|
|
50
|
-
const path = await import('path');
|
|
49
|
+
const fs = await import('node:fs');
|
|
50
|
+
const path = await import('node:path');
|
|
51
51
|
const pkgPath = path.resolve(import.meta.dirname, '..', 'package.json');
|
|
52
52
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
53
53
|
expect(pkg.exports['.']).toBeUndefined();
|
|
54
54
|
expect(pkg.main).toBeUndefined();
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
it('vertz/
|
|
58
|
-
const mod = await import('vertz/
|
|
59
|
-
// Should have router-related exports
|
|
57
|
+
it('vertz/fetch re-exports @vertz/fetch', async () => {
|
|
58
|
+
const mod = await import('vertz/fetch');
|
|
60
59
|
expect(Object.keys(mod).length).toBeGreaterThan(0);
|
|
61
60
|
});
|
|
62
61
|
|
|
63
|
-
it('vertz/
|
|
64
|
-
const mod = await import('vertz/
|
|
65
|
-
|
|
62
|
+
it('vertz/errors re-exports @vertz/errors', async () => {
|
|
63
|
+
const mod = await import('vertz/errors');
|
|
64
|
+
expect(Object.keys(mod).length).toBeGreaterThan(0);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('vertz/cloudflare re-exports @vertz/cloudflare', async () => {
|
|
68
|
+
const mod = await import('vertz/cloudflare');
|
|
69
|
+
expect(Object.keys(mod).length).toBeGreaterThan(0);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it('vertz/tui re-exports @vertz/tui', async () => {
|
|
73
|
+
const mod = await import('vertz/tui');
|
|
74
|
+
expect(Object.keys(mod).length).toBeGreaterThan(0);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('vertz/ui-primitives re-exports @vertz/ui-primitives', async () => {
|
|
78
|
+
const mod = await import('vertz/ui-primitives');
|
|
66
79
|
expect(Object.keys(mod).length).toBeGreaterThan(0);
|
|
67
80
|
});
|
|
68
81
|
});
|
|
@@ -70,8 +83,8 @@ describe('vertz meta-package subpath exports', () => {
|
|
|
70
83
|
describe('tree-shaking: subpaths are independent modules', () => {
|
|
71
84
|
it('each subpath points to a separate source file', async () => {
|
|
72
85
|
// Verify the package.json exports field has separate entry points
|
|
73
|
-
const fs = await import('fs');
|
|
74
|
-
const path = await import('path');
|
|
86
|
+
const fs = await import('node:fs');
|
|
87
|
+
const path = await import('node:path');
|
|
75
88
|
const pkgPath = path.resolve(import.meta.dirname, '..', 'package.json');
|
|
76
89
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
77
90
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vertz",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The first TypeScript stack built for LLMs",
|
|
@@ -39,13 +39,25 @@
|
|
|
39
39
|
"import": "./src/ui-compiler.ts",
|
|
40
40
|
"types": "./src/ui-compiler.ts"
|
|
41
41
|
},
|
|
42
|
-
"./
|
|
43
|
-
"import": "./src/
|
|
44
|
-
"types": "./src/
|
|
42
|
+
"./fetch": {
|
|
43
|
+
"import": "./src/fetch.ts",
|
|
44
|
+
"types": "./src/fetch.ts"
|
|
45
45
|
},
|
|
46
|
-
"./
|
|
47
|
-
"import": "./src/
|
|
48
|
-
"types": "./src/
|
|
46
|
+
"./errors": {
|
|
47
|
+
"import": "./src/errors.ts",
|
|
48
|
+
"types": "./src/errors.ts"
|
|
49
|
+
},
|
|
50
|
+
"./cloudflare": {
|
|
51
|
+
"import": "./src/cloudflare.ts",
|
|
52
|
+
"types": "./src/cloudflare.ts"
|
|
53
|
+
},
|
|
54
|
+
"./tui": {
|
|
55
|
+
"import": "./src/tui.ts",
|
|
56
|
+
"types": "./src/tui.ts"
|
|
57
|
+
},
|
|
58
|
+
"./ui-primitives": {
|
|
59
|
+
"import": "./src/ui-primitives.ts",
|
|
60
|
+
"types": "./src/ui-primitives.ts"
|
|
49
61
|
}
|
|
50
62
|
},
|
|
51
63
|
"scripts": {
|
|
@@ -54,12 +66,17 @@
|
|
|
54
66
|
"build": "echo 'meta-package: no build needed'"
|
|
55
67
|
},
|
|
56
68
|
"dependencies": {
|
|
57
|
-
"@vertz/server": "
|
|
58
|
-
"@vertz/schema": "
|
|
59
|
-
"@vertz/db": "
|
|
60
|
-
"@vertz/testing": "
|
|
61
|
-
"@vertz/ui": "
|
|
62
|
-
"@vertz/ui-compiler": "
|
|
69
|
+
"@vertz/server": "0.2.2",
|
|
70
|
+
"@vertz/schema": "0.2.2",
|
|
71
|
+
"@vertz/db": "0.2.2",
|
|
72
|
+
"@vertz/testing": "0.2.2",
|
|
73
|
+
"@vertz/ui": "0.2.2",
|
|
74
|
+
"@vertz/ui-compiler": "0.2.2",
|
|
75
|
+
"@vertz/fetch": "0.2.1",
|
|
76
|
+
"@vertz/errors": "0.2.1",
|
|
77
|
+
"@vertz/cloudflare": "0.2.2",
|
|
78
|
+
"@vertz/tui": "0.2.2",
|
|
79
|
+
"@vertz/ui-primitives": "0.2.2"
|
|
63
80
|
},
|
|
64
81
|
"devDependencies": {
|
|
65
82
|
"vitest": "^4.0.18"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vertz/cloudflare';
|
package/src/errors.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vertz/errors';
|
package/src/fetch.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vertz/fetch';
|
package/src/tui.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vertz/tui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vertz/ui-primitives';
|
package/src/router.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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/signal.ts
DELETED