uniweb 0.12.19 → 0.12.20

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": "uniweb",
3
- "version": "0.12.19",
3
+ "version": "0.12.20",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,12 +42,12 @@
42
42
  "prompts": "^2.4.2",
43
43
  "tar": "^7.0.0",
44
44
  "@uniweb/core": "0.7.11",
45
- "@uniweb/kit": "0.9.11",
46
- "@uniweb/runtime": "0.8.13"
45
+ "@uniweb/runtime": "0.8.14",
46
+ "@uniweb/kit": "0.9.13"
47
47
  },
48
48
  "peerDependencies": {
49
- "@uniweb/build": "0.14.4",
50
- "@uniweb/content-reader": "1.1.10",
49
+ "@uniweb/build": "0.14.5",
50
+ "@uniweb/content-reader": "1.1.11",
51
51
  "@uniweb/semantic-parser": "1.1.17"
52
52
  },
53
53
  "peerDependenciesMeta": {
@@ -225,7 +225,12 @@ export async function publish(args = []) {
225
225
  // intends the NEW one. Without rebuilding we'd ship inconsistent
226
226
  // bytes (schema says one version, registry record says another).
227
227
  const distDir = join(foundationDir, 'dist')
228
+ // @uniweb/build@0.14.0+ emits dist/entry.js (Phase 5 of CDN migration);
229
+ // older builds emitted dist/foundation.js. Accept either so a single CLI
230
+ // works against both old and new foundations during the rollout window.
231
+ const entryJs = join(distDir, 'entry.js')
228
232
  const foundationJs = join(distDir, 'foundation.js')
233
+ const hasMainArtifact = () => existsSync(entryJs) || existsSync(foundationJs)
229
234
  const schemaJson = join(distDir, 'meta', 'schema.json')
230
235
 
231
236
  // Pre-read package.json so we can compare its version against the
@@ -335,7 +340,7 @@ export async function publish(args = []) {
335
340
  }
336
341
  }
337
342
 
338
- let needsBuild = !existsSync(foundationJs) || !existsSync(schemaJson)
343
+ let needsBuild = !hasMainArtifact() || !existsSync(schemaJson)
339
344
  let buildReason = needsBuild ? 'no dist/ found' : null
340
345
 
341
346
  if (!needsBuild) {
@@ -446,8 +451,8 @@ export async function publish(args = []) {
446
451
  })
447
452
  console.log('')
448
453
 
449
- if (!existsSync(foundationJs) || !existsSync(schemaJson)) {
450
- error('Build did not produce dist/foundation.js and dist/meta/schema.json')
454
+ if (!hasMainArtifact() || !existsSync(schemaJson)) {
455
+ error('Build did not produce dist/entry.js (or legacy dist/foundation.js) and dist/meta/schema.json')
451
456
  process.exit(1)
452
457
  }
453
458
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-05-06T22:34:24.827Z",
3
+ "generatedAt": "2026-05-12T15:22:16.890Z",
4
4
  "packages": {
5
5
  "@uniweb/build": {
6
- "version": "0.14.4",
6
+ "version": "0.14.5",
7
7
  "path": "framework/build",
8
8
  "deps": [
9
9
  "@uniweb/content-reader",
@@ -14,7 +14,7 @@
14
14
  ]
15
15
  },
16
16
  "@uniweb/content-reader": {
17
- "version": "1.1.10",
17
+ "version": "1.1.11",
18
18
  "path": "framework/content-reader",
19
19
  "deps": []
20
20
  },
@@ -42,7 +42,7 @@
42
42
  "deps": []
43
43
  },
44
44
  "@uniweb/kit": {
45
- "version": "0.9.11",
45
+ "version": "0.9.13",
46
46
  "path": "framework/kit",
47
47
  "deps": [
48
48
  "@uniweb/core"
@@ -54,12 +54,12 @@
54
54
  "deps": []
55
55
  },
56
56
  "@uniweb/press": {
57
- "version": "0.4.5",
57
+ "version": "0.4.6",
58
58
  "path": "framework/press",
59
59
  "deps": []
60
60
  },
61
61
  "@uniweb/runtime": {
62
- "version": "0.8.13",
62
+ "version": "0.8.14",
63
63
  "path": "framework/runtime",
64
64
  "deps": [
65
65
  "@uniweb/core",
package/src/index.js CHANGED
@@ -1205,12 +1205,12 @@ ${colors.cyan}${colors.bright}uniweb login${colors.reset} ${colors.dim}— Log i
1205
1205
  ${colors.bright}Usage:${colors.reset}
1206
1206
  uniweb login [options]
1207
1207
 
1208
- Opens a browser to hub.uniweb.app for OAuth-style login, then captures
1208
+ Opens a browser to www.uniweb.app for OAuth-style login, then captures
1209
1209
  the token via a loopback callback. Falls back to a paste-token prompt
1210
1210
  if the browser flow fails.
1211
1211
 
1212
1212
  ${colors.bright}Options:${colors.reset}
1213
- --backend <url> Override the auth backend (default: https://hub.uniweb.app)
1213
+ --backend <url> Override the auth backend (default: https://www.uniweb.app)
1214
1214
 
1215
1215
  In non-interactive mode (CI / no TTY / --non-interactive), this command
1216
1216
  errors out — set the \`UNIWEB_TOKEN\` env var instead, or run \`login\`
@@ -27,10 +27,8 @@ import { filterCmd } from './pm.js'
27
27
  // REGISTRY hosts platform operations (publish, foundations, runtime, admin):
28
28
  // moved to hosting.uniweb.app in the CDN migration (Phase 4c, 2026-05-04).
29
29
  // BACKEND hosts the PHP user-facing surface (login, account, orgs, billing,
30
- // publish-authorize): owned by the v4 single-domain plan
31
- // (kb/platform/plans/uniweb-domain-plan-v4.md), which will move it to
32
- // uniweb.app/api/* when v4 ships. Until then, it stays at hub.uniweb.app.
33
- const PRODUCTION_BACKEND_URL = 'https://hub.uniweb.app'
30
+ // publish-authorize).
31
+ const PRODUCTION_BACKEND_URL = 'https://www.uniweb.app'
34
32
  const PRODUCTION_REGISTRY_URL = 'https://hosting.uniweb.app'
35
33
 
36
34
  /**