@valbuild/shared 0.150.11 → 0.150.12
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 +11 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +34 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +41 -0
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +41 -0
- package/internal/dist/valbuild-shared-internal.esm.js +41 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.150.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#977](https://github.com/valbuild/val/pull/977) [`55f565e`](https://github.com/valbuild/val/commit/55f565eefe470d1a7cda436d628aec2f7ad61969) Thanks [@freekh](https://github.com/freekh)! - The Studio now shows which versions of Val it runs. Open the Account panel (the button at the foot of the left rail) and click the grey line at the bottom, for example `TanStack · Val 0.150.8`, to see:
|
|
8
|
+
|
|
9
|
+
- what your app's server runs: `@valbuild/next` or `@valbuild/tanstack`, `@valbuild/core` and `@valbuild/server`
|
|
10
|
+
- what the Studio in your browser loaded: `@valbuild/ui`, and the `@valbuild/core` bundled into it
|
|
11
|
+
|
|
12
|
+
**Copy all** puts the list on the clipboard, ready to paste into a bug report. The server's half comes from a new `GET /api/val/versions` route, which needs the same sign-in as the rest of the Studio. If your server's Val is older than the Studio, the list says so and still shows the Studio's half.
|
|
13
|
+
|
|
3
14
|
## 0.150.11
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -404,6 +404,40 @@ export declare const Api: {
|
|
|
404
404
|
}, z.core.$strip>]>;
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
|
+
/**
|
|
408
|
+
* The versions of Val's packages the server runs, for the list at the foot
|
|
409
|
+
* of the Studio's account panel.
|
|
410
|
+
*/
|
|
411
|
+
"/versions": {
|
|
412
|
+
GET: {
|
|
413
|
+
req: {
|
|
414
|
+
cookies: {
|
|
415
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
419
|
+
status: z.ZodLiteral<200>;
|
|
420
|
+
json: z.ZodObject<{
|
|
421
|
+
framework: z.ZodNullable<z.ZodObject<{
|
|
422
|
+
name: z.ZodUnion<readonly [z.ZodLiteral<"next">, z.ZodLiteral<"tanstack">]>;
|
|
423
|
+
version: z.ZodString;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
core: z.ZodString;
|
|
426
|
+
server: z.ZodString;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
429
|
+
status: z.ZodLiteral<401>;
|
|
430
|
+
json: z.ZodObject<{
|
|
431
|
+
message: z.ZodString;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
status: z.ZodLiteral<404>;
|
|
435
|
+
json: z.ZodObject<{
|
|
436
|
+
message: z.ZodString;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
}, z.core.$strip>]>;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
407
441
|
"/stat": {
|
|
408
442
|
POST: {
|
|
409
443
|
req: {
|
|
@@ -1960,6 +1960,47 @@ var Api = {
|
|
|
1960
1960
|
})])
|
|
1961
1961
|
}
|
|
1962
1962
|
},
|
|
1963
|
+
/**
|
|
1964
|
+
* The versions of Val's packages the server runs, for the list at the foot
|
|
1965
|
+
* of the Studio's account panel.
|
|
1966
|
+
*/
|
|
1967
|
+
"/versions": {
|
|
1968
|
+
GET: {
|
|
1969
|
+
req: {
|
|
1970
|
+
cookies: {
|
|
1971
|
+
val_session: zod.z.string().optional()
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
res: zod.z.union([zod.z.object({
|
|
1975
|
+
status: zod.z.literal(200),
|
|
1976
|
+
json: zod.z.object({
|
|
1977
|
+
/** Null where no binding said: the demo, a test. */
|
|
1978
|
+
framework: zod.z.object({
|
|
1979
|
+
name: zod.z.union([zod.z.literal("next"), zod.z.literal("tanstack")]),
|
|
1980
|
+
version: zod.z.string()
|
|
1981
|
+
}).nullable(),
|
|
1982
|
+
core: zod.z.string(),
|
|
1983
|
+
server: zod.z.string()
|
|
1984
|
+
})
|
|
1985
|
+
}), zod.z.object({
|
|
1986
|
+
status: zod.z.literal(401),
|
|
1987
|
+
json: zod.z.object({
|
|
1988
|
+
message: zod.z.string()
|
|
1989
|
+
})
|
|
1990
|
+
}),
|
|
1991
|
+
/*
|
|
1992
|
+
* A server older than the Studio, which has no such route: it answers
|
|
1993
|
+
* "Route not found". Listed so the Studio can tell that apart from a
|
|
1994
|
+
* request that failed, since only the second is worth retrying.
|
|
1995
|
+
*/
|
|
1996
|
+
zod.z.object({
|
|
1997
|
+
status: zod.z.literal(404),
|
|
1998
|
+
json: zod.z.object({
|
|
1999
|
+
message: zod.z.string()
|
|
2000
|
+
})
|
|
2001
|
+
})])
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
1963
2004
|
"/stat": {
|
|
1964
2005
|
POST: {
|
|
1965
2006
|
req: {
|
|
@@ -1960,6 +1960,47 @@ var Api = {
|
|
|
1960
1960
|
})])
|
|
1961
1961
|
}
|
|
1962
1962
|
},
|
|
1963
|
+
/**
|
|
1964
|
+
* The versions of Val's packages the server runs, for the list at the foot
|
|
1965
|
+
* of the Studio's account panel.
|
|
1966
|
+
*/
|
|
1967
|
+
"/versions": {
|
|
1968
|
+
GET: {
|
|
1969
|
+
req: {
|
|
1970
|
+
cookies: {
|
|
1971
|
+
val_session: zod.z.string().optional()
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
res: zod.z.union([zod.z.object({
|
|
1975
|
+
status: zod.z.literal(200),
|
|
1976
|
+
json: zod.z.object({
|
|
1977
|
+
/** Null where no binding said: the demo, a test. */
|
|
1978
|
+
framework: zod.z.object({
|
|
1979
|
+
name: zod.z.union([zod.z.literal("next"), zod.z.literal("tanstack")]),
|
|
1980
|
+
version: zod.z.string()
|
|
1981
|
+
}).nullable(),
|
|
1982
|
+
core: zod.z.string(),
|
|
1983
|
+
server: zod.z.string()
|
|
1984
|
+
})
|
|
1985
|
+
}), zod.z.object({
|
|
1986
|
+
status: zod.z.literal(401),
|
|
1987
|
+
json: zod.z.object({
|
|
1988
|
+
message: zod.z.string()
|
|
1989
|
+
})
|
|
1990
|
+
}),
|
|
1991
|
+
/*
|
|
1992
|
+
* A server older than the Studio, which has no such route: it answers
|
|
1993
|
+
* "Route not found". Listed so the Studio can tell that apart from a
|
|
1994
|
+
* request that failed, since only the second is worth retrying.
|
|
1995
|
+
*/
|
|
1996
|
+
zod.z.object({
|
|
1997
|
+
status: zod.z.literal(404),
|
|
1998
|
+
json: zod.z.object({
|
|
1999
|
+
message: zod.z.string()
|
|
2000
|
+
})
|
|
2001
|
+
})])
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
1963
2004
|
"/stat": {
|
|
1964
2005
|
POST: {
|
|
1965
2006
|
req: {
|
|
@@ -1953,6 +1953,47 @@ var Api = {
|
|
|
1953
1953
|
})])
|
|
1954
1954
|
}
|
|
1955
1955
|
},
|
|
1956
|
+
/**
|
|
1957
|
+
* The versions of Val's packages the server runs, for the list at the foot
|
|
1958
|
+
* of the Studio's account panel.
|
|
1959
|
+
*/
|
|
1960
|
+
"/versions": {
|
|
1961
|
+
GET: {
|
|
1962
|
+
req: {
|
|
1963
|
+
cookies: {
|
|
1964
|
+
val_session: z.string().optional()
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
res: z.union([z.object({
|
|
1968
|
+
status: z.literal(200),
|
|
1969
|
+
json: z.object({
|
|
1970
|
+
/** Null where no binding said: the demo, a test. */
|
|
1971
|
+
framework: z.object({
|
|
1972
|
+
name: z.union([z.literal("next"), z.literal("tanstack")]),
|
|
1973
|
+
version: z.string()
|
|
1974
|
+
}).nullable(),
|
|
1975
|
+
core: z.string(),
|
|
1976
|
+
server: z.string()
|
|
1977
|
+
})
|
|
1978
|
+
}), z.object({
|
|
1979
|
+
status: z.literal(401),
|
|
1980
|
+
json: z.object({
|
|
1981
|
+
message: z.string()
|
|
1982
|
+
})
|
|
1983
|
+
}),
|
|
1984
|
+
/*
|
|
1985
|
+
* A server older than the Studio, which has no such route: it answers
|
|
1986
|
+
* "Route not found". Listed so the Studio can tell that apart from a
|
|
1987
|
+
* request that failed, since only the second is worth retrying.
|
|
1988
|
+
*/
|
|
1989
|
+
z.object({
|
|
1990
|
+
status: z.literal(404),
|
|
1991
|
+
json: z.object({
|
|
1992
|
+
message: z.string()
|
|
1993
|
+
})
|
|
1994
|
+
})])
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1956
1997
|
"/stat": {
|
|
1957
1998
|
POST: {
|
|
1958
1999
|
req: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.150.
|
|
3
|
+
"version": "0.150.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
],
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"typescript": "^6.0.3",
|
|
74
|
-
"@valbuild/tanstack-build": "0.150.
|
|
74
|
+
"@valbuild/tanstack-build": "0.150.12"
|
|
75
75
|
},
|
|
76
76
|
"sideEffects": false,
|
|
77
77
|
"scripts": {
|