uniweb 1.21.20 → 1.21.21
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 +2 -2
- package/src/commands/publish.js +6 -1
- package/src/commands/push.js +14 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.21",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.5.21",
|
|
44
44
|
"@uniweb/content-writer": "~1.3.1",
|
|
45
|
-
"@uniweb/core": "~1.4.12",
|
|
46
45
|
"@uniweb/schemas": "~1.6.5",
|
|
46
|
+
"@uniweb/core": "~1.4.12",
|
|
47
47
|
"@uniweb/semantic-parser": "~1.13.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/src/commands/publish.js
CHANGED
|
@@ -630,10 +630,16 @@ export async function publish(args = []) {
|
|
|
630
630
|
// 3. Partition the queries by schema presence (a first emit reads `schemaless`
|
|
631
631
|
// — the queries with no data schema, whose compiled files 4c uploads; no
|
|
632
632
|
// ball carries them since 2026-08-18).
|
|
633
|
+
// ⭐ With the keys this deployment's Sections take (`deploymentFields`), as the push below
|
|
634
|
+
// is: this emit says which files go up, and a key sent only where it is taken can name one —
|
|
635
|
+
// `touch_icon` does. ⛔ Until 2026-10-28 it went without them, so a touch icon was sent as the
|
|
636
|
+
// site path it was written as, and never uploaded.
|
|
637
|
+
const fields = await deploymentFields({ client, siteDir })
|
|
633
638
|
let probe
|
|
634
639
|
try {
|
|
635
640
|
probe = await emitSyncPackages(siteDir, {
|
|
636
641
|
backend: client.origin,
|
|
642
|
+
...fields,
|
|
637
643
|
// Placement identity for the folder — see writeFolderItemUuids.
|
|
638
644
|
folderItemUuids: readFolderItemUuids(siteDir, client.origin),
|
|
639
645
|
...(foundationDir ? { foundationDir } : {}),
|
|
@@ -922,7 +928,6 @@ export async function publish(args = []) {
|
|
|
922
928
|
// edited since this clone last synced, the push is refused rather than
|
|
923
929
|
// overwriting them, and nothing goes live. `--force` drops the precondition.
|
|
924
930
|
const forced = args.includes('--force')
|
|
925
|
-
const fields = await deploymentFields({ client, siteDir })
|
|
926
931
|
// A foundation named by catalog ref — a clone's: its kept registered version types a query named
|
|
927
932
|
// for a data key (`ensureRegisteredFoundation`).
|
|
928
933
|
await ensureRegisteredFoundation({
|
package/src/commands/push.js
CHANGED
|
@@ -446,6 +446,16 @@ export async function push(args = [], deps = {}) {
|
|
|
446
446
|
if (!guard.ok) return { exitCode: 1 }
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
+
// The keys this deployment's Sections take (`deploymentFields`) — read before the media probe,
|
|
450
|
+
// which says which files go up: a key sent only where it is taken can name one (`touch_icon`).
|
|
451
|
+
// ⛔ Until 2026-10-28 the probe went without them, so a touch icon was sent as the site path it
|
|
452
|
+
// was written as, and never uploaded.
|
|
453
|
+
const fields = await deploymentFields({
|
|
454
|
+
client,
|
|
455
|
+
siteDir,
|
|
456
|
+
offline: Boolean(output) || dryRun
|
|
457
|
+
})
|
|
458
|
+
|
|
449
459
|
let assetRewrite = null
|
|
450
460
|
let assetIds = null
|
|
451
461
|
if (!output && !dryRun) {
|
|
@@ -453,9 +463,10 @@ export async function push(args = [], deps = {}) {
|
|
|
453
463
|
let refusals = []
|
|
454
464
|
try {
|
|
455
465
|
const probe = await emitSyncPackages(siteDir, {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
466
|
+
backend: client.origin,
|
|
467
|
+
...fields,
|
|
468
|
+
// Placement identity for the folder — see writeFolderItemUuids.
|
|
469
|
+
folderItemUuids: readFolderItemUuids(siteDir, client.origin),
|
|
459
470
|
...(foundationDir ? { foundationDir } : {}),
|
|
460
471
|
resolveModel: makeModelResolver({ client, offline: false, siteDir })
|
|
461
472
|
})
|
|
@@ -553,11 +564,6 @@ export async function push(args = [], deps = {}) {
|
|
|
553
564
|
output || dryRun
|
|
554
565
|
? readItemUuids(siteDir, client.origin)
|
|
555
566
|
: await ensureItemUuids({ client, siteDir, note })
|
|
556
|
-
const fields = await deploymentFields({
|
|
557
|
-
client,
|
|
558
|
-
siteDir,
|
|
559
|
-
offline: Boolean(output) || dryRun
|
|
560
|
-
})
|
|
561
567
|
// A foundation named by catalog ref — a clone's: its kept registered version types a query named
|
|
562
568
|
// for a data key (`ensureRegisteredFoundation`). Offline, only what is already kept.
|
|
563
569
|
if (!output && !dryRun) {
|