@valbuild/cli 0.153.4 → 0.153.6
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,34 @@
|
|
|
1
1
|
# @valbuild/cli
|
|
2
2
|
|
|
3
|
+
## 0.153.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1057](https://github.com/valbuild/val/pull/1057) [`79b4452`](https://github.com/valbuild/val/commit/79b4452441ae2a9442f1217cca372f2d7cebd5a4) Thanks [@freekh](https://github.com/freekh)! - Security fixes. Update if you run Val's dev server, or have deployed a site without `VAL_API_KEY` and `VAL_SECRET`.
|
|
8
|
+
|
|
9
|
+
- **`/api/val/files` serves media only.** It answered any path in the project, without a sign-in: `/api/val/files/.env` returned the file. It now serves files under `/public`, and their drafts, and nothing else.
|
|
10
|
+
- **An upload cannot be written outside Val's patch store.** A file's path and a patch's id are checked before anything is written or read, so a path with `..` in it is refused.
|
|
11
|
+
- **In local filesystem mode, the API answers only your own Studio.** A request from another site's page is refused, and so is one addressed to a host name that is not `localhost` or an IP address. If you develop on another name (`my-app.test`, a tunnel that passes its own `Host`), list it in the `VAL_ALLOWED_HOSTS` environment variable, comma separated.
|
|
12
|
+
- **A deployed site without credentials no longer serves the API.** Without `VAL_API_KEY` and `VAL_SECRET` an app runs in local filesystem mode, which has no sign-in. With `NODE_ENV=production` it now refuses, and says what to set.
|
|
13
|
+
- **`redirect_to` stays on your site.** `/api/val/logout`, `/enable`, `/disable` and `/authorize` redirected to any URL they were given. They now accept a path, or a URL on the same site.
|
|
14
|
+
- **Draft mode is turned on after sign-in**, not when the sign-in starts, so a visitor who is not signed in can no longer switch it on.
|
|
15
|
+
- `image-size`, `simple-git` and `zod` are updated past their published advisories.
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`00b13fe`](https://github.com/valbuild/val/commit/00b13fe0ed9adc2ce22b3e9827e9fa5b10d5bfdf), [`79b4452`](https://github.com/valbuild/val/commit/79b4452441ae2a9442f1217cca372f2d7cebd5a4), [`a8a1056`](https://github.com/valbuild/val/commit/a8a105620849ff73b91aff1492c39548926a7a7f)]:
|
|
18
|
+
- @valbuild/shared@0.153.6
|
|
19
|
+
- @valbuild/server@0.153.6
|
|
20
|
+
- @valbuild/language-server@0.153.6
|
|
21
|
+
|
|
22
|
+
## 0.153.5
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`0176db3`](https://github.com/valbuild/val/commit/0176db30d8d621002cf72025b063b6f62b79b00d), [`6b3f4c5`](https://github.com/valbuild/val/commit/6b3f4c53ad51a86027654f64da5fb332f40df37f)]:
|
|
27
|
+
- @valbuild/server@0.153.5
|
|
28
|
+
- @valbuild/shared@0.153.5
|
|
29
|
+
- @valbuild/core@0.153.5
|
|
30
|
+
- @valbuild/language-server@0.153.5
|
|
31
|
+
|
|
3
32
|
## 0.153.4
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -3007,7 +3007,7 @@ async function buildArtifacts(options) {
|
|
|
3007
3007
|
var packageJson = {
|
|
3008
3008
|
name: "@valbuild/cli",
|
|
3009
3009
|
"private": false,
|
|
3010
|
-
version: "0.153.
|
|
3010
|
+
version: "0.153.6",
|
|
3011
3011
|
description: "Val CLI tools",
|
|
3012
3012
|
repository: {
|
|
3013
3013
|
type: "git",
|
|
@@ -3039,7 +3039,7 @@ var packageJson = {
|
|
|
3039
3039
|
jszip: "^3.10.1",
|
|
3040
3040
|
meow: "^9.0.0",
|
|
3041
3041
|
picocolors: "^1.1.1",
|
|
3042
|
-
zod: "^4.
|
|
3042
|
+
zod: "^4.6.6",
|
|
3043
3043
|
"zod-validation-error": "^5.0.0"
|
|
3044
3044
|
},
|
|
3045
3045
|
peerDependencies: {
|
|
@@ -3007,7 +3007,7 @@ async function buildArtifacts(options) {
|
|
|
3007
3007
|
var packageJson = {
|
|
3008
3008
|
name: "@valbuild/cli",
|
|
3009
3009
|
"private": false,
|
|
3010
|
-
version: "0.153.
|
|
3010
|
+
version: "0.153.6",
|
|
3011
3011
|
description: "Val CLI tools",
|
|
3012
3012
|
repository: {
|
|
3013
3013
|
type: "git",
|
|
@@ -3039,7 +3039,7 @@ var packageJson = {
|
|
|
3039
3039
|
jszip: "^3.10.1",
|
|
3040
3040
|
meow: "^9.0.0",
|
|
3041
3041
|
picocolors: "^1.1.1",
|
|
3042
|
-
zod: "^4.
|
|
3042
|
+
zod: "^4.6.6",
|
|
3043
3043
|
"zod-validation-error": "^5.0.0"
|
|
3044
3044
|
},
|
|
3045
3045
|
peerDependencies: {
|
|
@@ -2972,7 +2972,7 @@ async function buildArtifacts(options) {
|
|
|
2972
2972
|
var packageJson = {
|
|
2973
2973
|
name: "@valbuild/cli",
|
|
2974
2974
|
"private": false,
|
|
2975
|
-
version: "0.153.
|
|
2975
|
+
version: "0.153.6",
|
|
2976
2976
|
description: "Val CLI tools",
|
|
2977
2977
|
repository: {
|
|
2978
2978
|
type: "git",
|
|
@@ -3004,7 +3004,7 @@ var packageJson = {
|
|
|
3004
3004
|
jszip: "^3.10.1",
|
|
3005
3005
|
meow: "^9.0.0",
|
|
3006
3006
|
picocolors: "^1.1.1",
|
|
3007
|
-
zod: "^4.
|
|
3007
|
+
zod: "^4.6.6",
|
|
3008
3008
|
"zod-validation-error": "^5.0.0"
|
|
3009
3009
|
},
|
|
3010
3010
|
peerDependencies: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/cli",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.153.
|
|
4
|
+
"version": "0.153.6",
|
|
5
5
|
"description": "Val CLI tools",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"jszip": "^3.10.1",
|
|
25
25
|
"meow": "^9.0.0",
|
|
26
26
|
"picocolors": "^1.1.1",
|
|
27
|
-
"zod": "^4.
|
|
27
|
+
"zod": "^4.6.6",
|
|
28
28
|
"zod-validation-error": "^5.0.0",
|
|
29
|
-
"@valbuild/
|
|
30
|
-
"@valbuild/server": "0.153.4",
|
|
29
|
+
"@valbuild/core": "0.153.5",
|
|
31
30
|
"@valbuild/eslint-plugin": "0.150.13",
|
|
32
|
-
"@valbuild/
|
|
33
|
-
"@valbuild/
|
|
31
|
+
"@valbuild/language-server": "0.153.6",
|
|
32
|
+
"@valbuild/server": "0.153.6",
|
|
33
|
+
"@valbuild/shared": "0.153.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"prettier": "*",
|