vela 0.27.0 → 0.28.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vela",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "type": "module",
5
5
  "description": "A CLI for creating and updating SvelteKit projects",
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "homepage": "https://velastack.dev",
12
12
  "engines": {
13
- "node": ">=22.17"
13
+ "node": ">=22.22"
14
14
  },
15
15
  "bin": {
16
16
  "vela": "./dist/bin.js",
@@ -39,12 +39,14 @@
39
39
  "prepare": "npm run build",
40
40
  "version": "npm run build",
41
41
  "lint:sh": "shellcheck -x -P SCRIPTDIR -S warning templates/server/*.sh",
42
- "test:scripts": "bash scripts/test-server-scripts.sh"
42
+ "test:scripts": "bash scripts/test-server-scripts.sh",
43
+ "sync-versions": "node --experimental-strip-types scripts/sync-versions.ts",
44
+ "canary": "bash scripts/canary.sh"
43
45
  },
44
46
  "dependencies": {
45
47
  "@clack/prompts": "^1.7.0",
46
48
  "@faker-js/faker": "^10.6.0",
47
- "@velastack/patterns": "^0.12.0",
49
+ "@velastack/patterns": "^0.13.0",
48
50
  "@velastack/pocketbase-codegen": "^0.1.0",
49
51
  "@velastack/schema": "^0.3.0",
50
52
  "@velastack/schema-ui": "^0.3.1",
@@ -21,44 +21,44 @@
21
21
  "test:server": "vela test:server"
22
22
  },
23
23
  "devDependencies": {
24
- "@lucide/svelte": "^1.40.0",
25
- "@sveltejs/adapter-node": "^6.0.0",
26
- "@sveltejs/kit": "^3.0.0",
24
+ "@lucide/svelte": "^1.70.0",
25
+ "@sveltejs/adapter-node": "^6.0.2",
26
+ "@sveltejs/kit": "^3.2.0",
27
27
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
28
- "@tailwindcss/typography": "^0.5.19",
29
- "@tailwindcss/vite": "^4.3.3",
30
- "@types/node": "^26.4.1",
31
- "@types/supertest": "^6.0.3",
32
- "@velastack/kit": "^0.4.0",
33
- "@velastack/pocketbase": "^0.4.0",
28
+ "@tailwindcss/typography": "^0.5.20",
29
+ "@tailwindcss/vite": "^4.3.5",
30
+ "@types/node": "^26.6.6",
31
+ "@types/supertest": "^7.2.1",
32
+ "@velastack/kit": "^0.4.1",
33
+ "@velastack/pocketbase": "^0.4.3",
34
34
  "clsx": "^2.1.1",
35
35
  "croner": "^10.0.1",
36
36
  "formsnap": "^2.1.0",
37
37
  "mode-watcher": "^1.1.0",
38
- "openworkflow": "^0.10.0",
39
- "openworkflow-pocketbase": "^0.1.1",
40
- "pocketbase-sveltekit": "^0.28.0",
41
- "prettier": "^3.9.6",
38
+ "openworkflow": "^0.11.0",
39
+ "openworkflow-pocketbase": "^0.2.1",
40
+ "pocketbase-sveltekit": "^0.28.2",
41
+ "prettier": "^3.9.10",
42
42
  "prettier-plugin-svelte": "^4.1.1",
43
- "shadcn-svelte": "^1.7.0",
44
- "supertest": "^7.2.2",
45
- "svelte": "^5.57.1",
46
- "svelte-check": "^4.7.6",
47
- "svelte-meta-tags": "^5.0.2",
48
- "svelte-sonner": "^1.1.0",
49
- "sveltekit-flash-message": "3.0.0",
50
- "sveltekit-superforms": "3.0.0",
51
- "tailwind-merge": "^3.5.0",
52
- "tailwind-variants": "^3.3.0",
53
- "tailwindcss": "^4.3.3",
54
- "tw-animate-css": "^1.3.5",
43
+ "shadcn-svelte": "^1.8.0",
44
+ "supertest": "^7.3.2",
45
+ "svelte": "^5.57.2",
46
+ "svelte-check": "^4.7.8",
47
+ "svelte-meta-tags": "^5.0.3",
48
+ "svelte-sonner": "^1.2.3",
49
+ "sveltekit-flash-message": "^3.0.0",
50
+ "sveltekit-superforms": "^3.1.0",
51
+ "tailwind-merge": "^3.7.0",
52
+ "tailwind-variants": "^3.3.1",
53
+ "tailwindcss": "^4.3.5",
54
+ "tw-animate-css": "^1.4.0",
55
55
  "typescript": "^6.0.3",
56
56
  "vela": "^~VELA_VERSION~",
57
- "vite": "^8.3.0",
58
- "vitest": "^5.0.1",
59
- "zod": "^4.1.11"
57
+ "vite": "^8.3.6",
58
+ "vitest": "^5.1.0",
59
+ "zod": "^4.6.7"
60
60
  },
61
61
  "engines": {
62
- "node": ">=22.17"
62
+ "node": ">=22.22"
63
63
  }
64
64
  }
@@ -21,12 +21,13 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
21
21
  require_provisioned
22
22
  [ "$(id -u)" -eq 0 ] || die "apply must run as root"
23
23
 
24
- # SvelteKit 3 and adapter-node 6 need Node 22.17. A server provisioned before
25
- # them can be older, and a release started on it fails as a crash loop the
26
- # health check reports as "did not become healthy". Refused here instead,
27
- # before anything is touched; `vela provision` upgrades Node in place.
28
- node_at_least 22 17 \
29
- || die "this server runs Node $(node -v 2>/dev/null || echo '(none)'), and vela apps need 22.17 or later - run 'vela provision' to upgrade it"
24
+ # A vela project needs Node 22.22 (its `engines` floor, with engine-strict). A
25
+ # server provisioned earlier can be older, and a release on it fails at
26
+ # `npm ci`, or as a crash loop the health check reports as "did not become
27
+ # healthy". Refused here instead, before anything is touched; `vela provision`
28
+ # upgrades Node in place.
29
+ node_at_least 22 22 \
30
+ || die "this server runs Node $(node -v 2>/dev/null || echo '(none)'), and vela apps need 22.22 or later - run 'vela provision' to upgrade it"
30
31
 
31
32
  INSTANCE=${1:-}; shift || true
32
33
  RELEASE=${1:-}; shift || true
@@ -306,9 +306,8 @@ runtime_origin_lines() {
306
306
  fi
307
307
  }
308
308
 
309
- # Whether the server's Node is at least <major>.<minor>. SvelteKit 3 and
310
- # adapter-node 6 need 22.17, which a server provisioned for SvelteKit 2 may
311
- # not have; `vela provision` upgrades it. No Node at all, or a version that
309
+ # Whether the server's Node is at least <major>.<minor>. A vela project needs
310
+ # 22.22, which a server provisioned earlier may not have; `vela provision` upgrades it. No Node at all, or a version that
312
311
  # cannot be read, is not enough.
313
312
  #
314
313
  # usage: node_at_least <major> <minor>
@@ -102,9 +102,9 @@ ensure_packages build-essential python3
102
102
  # action's default too), not merely one new enough to start them: npm ships with
103
103
  # Node, and the server's `npm ci` has to accept the lockfile the build's npm
104
104
  # wrote. npm 10 (Node 22) rejects some that npm 11 (Node 24) writes, as
105
- # "Missing: ... from lock file". SvelteKit 3 and adapter-node 6 also need 22.17,
106
- # which an explicit `--node-major 22` still has to reach within its line. A
107
- # server already on a later major than NODE_MAJOR is left alone.
105
+ # "Missing: ... from lock file". A vela project also needs 22.22, which an
106
+ # explicit `--node-major 22` still has to reach within its line. A server
107
+ # already on a later major than NODE_MAJOR is left alone.
108
108
  #
109
109
  # Moving a major leaves the hosted apps on dependencies compiled for the old
110
110
  # one. Their running processes keep working, but each needs a redeploy (which
@@ -114,7 +114,7 @@ install_node() {
114
114
  if command -v node >/dev/null 2>&1; then
115
115
  current=$(node -p 'process.versions.node.split(".")[0]' 2>/dev/null || echo 0)
116
116
  fi
117
- if [ "$current" -ge "$line" ] 2>/dev/null && node_at_least 22 17; then
117
+ if [ "$current" -ge "$line" ] 2>/dev/null && node_at_least 22 22; then
118
118
  log "node $(node -v) already installed"
119
119
  return 0
120
120
  fi
@@ -145,7 +145,7 @@ install_node() {
145
145
  # old version in place with apt reporting success. Caught here, it names the
146
146
  # problem; caught by the next deploy, it would only name the symptom.
147
147
  current=$(node -p 'process.versions.node.split(".")[0]' 2>/dev/null || echo 0)
148
- { [ "$current" -ge "$line" ] 2>/dev/null && node_at_least 22 17; } \
148
+ { [ "$current" -ge "$line" ] 2>/dev/null && node_at_least 22 22; } \
149
149
  || die "Node.js is $(node -v 2>/dev/null || echo 'missing') after installing $line.x - check for a held nodejs package or another repository pinned above nodesource"
150
150
  }
151
151
  install_node
@@ -18,32 +18,32 @@
18
18
  "format": "prettier --write ."
19
19
  },
20
20
  "devDependencies": {
21
- "@lucide/svelte": "^1.40.0",
22
- "@sveltejs/adapter-static": "^4.0.0",
23
- "@sveltejs/kit": "^3.0.0",
21
+ "@lucide/svelte": "^1.70.0",
22
+ "@sveltejs/adapter-static": "^4.0.1",
23
+ "@sveltejs/kit": "^3.2.0",
24
24
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
25
- "@tailwindcss/typography": "^0.5.19",
26
- "@tailwindcss/vite": "^4.3.3",
27
- "@types/node": "^26.4.1",
28
- "@velastack/kit": "^0.4.0",
25
+ "@tailwindcss/typography": "^0.5.20",
26
+ "@tailwindcss/vite": "^4.3.5",
27
+ "@types/node": "^26.6.6",
28
+ "@velastack/kit": "^0.4.1",
29
29
  "clsx": "^2.1.1",
30
30
  "mode-watcher": "^1.1.0",
31
- "prettier": "^3.9.6",
31
+ "prettier": "^3.9.10",
32
32
  "prettier-plugin-svelte": "^4.1.1",
33
- "shadcn-svelte": "^1.7.0",
34
- "svelte": "^5.57.1",
35
- "svelte-check": "^4.7.6",
36
- "svelte-meta-tags": "^5.0.2",
37
- "svelte-sonner": "^1.1.0",
38
- "tailwind-merge": "^3.5.0",
39
- "tailwind-variants": "^3.3.0",
40
- "tailwindcss": "^4.3.3",
41
- "tw-animate-css": "^1.3.5",
33
+ "shadcn-svelte": "^1.8.0",
34
+ "svelte": "^5.57.2",
35
+ "svelte-check": "^4.7.8",
36
+ "svelte-meta-tags": "^5.0.3",
37
+ "svelte-sonner": "^1.2.3",
38
+ "tailwind-merge": "^3.7.0",
39
+ "tailwind-variants": "^3.3.1",
40
+ "tailwindcss": "^4.3.5",
41
+ "tw-animate-css": "^1.4.0",
42
42
  "typescript": "^6.0.3",
43
43
  "vela": "^~VELA_VERSION~",
44
- "vite": "^8.3.0"
44
+ "vite": "^8.3.6"
45
45
  },
46
46
  "engines": {
47
- "node": ">=22.17"
47
+ "node": ">=22.22"
48
48
  }
49
49
  }