uniweb 0.12.60 → 0.13.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 +5 -5
- package/partials/agents.md +1148 -1387
- package/src/commands/update.js +21 -2
- package/src/framework-index.json +4 -4
package/src/commands/update.js
CHANGED
|
@@ -497,8 +497,14 @@ async function refreshAgents(ctx) {
|
|
|
497
497
|
return 'created'
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
/**
|
|
501
|
-
|
|
500
|
+
/**
|
|
501
|
+
* Print a compact recap of what changed, plus a review hint.
|
|
502
|
+
*
|
|
503
|
+
* Exported for tests: the dev-server restart notice must fire exactly when the
|
|
504
|
+
* installed packages changed, and stay quiet otherwise (this runs on every
|
|
505
|
+
* `uniweb update`, including no-op ones).
|
|
506
|
+
*/
|
|
507
|
+
export function printSummary({ editedPaths, depsEdited, installRan, installPm, agentsResult, cliVersion }) {
|
|
502
508
|
log(`${colors.bright}Summary${colors.reset}`)
|
|
503
509
|
if (depsEdited) {
|
|
504
510
|
log(` ${colors.green}✓${colors.reset} package.json updated in ${editedPaths.length} file${editedPaths.length === 1 ? '' : 's'}`)
|
|
@@ -512,5 +518,18 @@ function printSummary({ editedPaths, depsEdited, installRan, installPm, agentsRe
|
|
|
512
518
|
else if (agentsResult === 'updated') log(` ${colors.green}✓${colors.reset} AGENTS.md updated (v${cliVersion})`)
|
|
513
519
|
else if (agentsResult === 'skipped' && depsEdited) log(` ${colors.dim}·${colors.reset} AGENTS.md not refreshed (see above)`)
|
|
514
520
|
log(`${colors.dim}Review changes with${colors.reset} ${colors.cyan}git diff${colors.reset}${colors.dim}, then commit.${colors.reset}`)
|
|
521
|
+
|
|
522
|
+
// Only when the installed packages actually changed under a process that may
|
|
523
|
+
// still be running. This failure is nastier than it sounds: hot reload picks
|
|
524
|
+
// up your source but not a swapped dependency, so a dev server started before
|
|
525
|
+
// the update keeps serving the OLD framework against your NEW project code.
|
|
526
|
+
// The result looks like a bug you just introduced, and the one place nobody
|
|
527
|
+
// thinks to look is the server that has been running fine all along.
|
|
528
|
+
if (depsEdited && installRan) {
|
|
529
|
+
log('')
|
|
530
|
+
log(`${colors.yellow}↻${colors.reset} ${colors.bright}Restart any running dev server.${colors.reset}`)
|
|
531
|
+
log(`${colors.dim}Hot reload picks up your source, not swapped dependencies — a running${colors.reset} ${colors.cyan}uniweb dev${colors.reset} ${colors.dim}keeps using the framework version it started with.${colors.reset}`)
|
|
532
|
+
}
|
|
533
|
+
|
|
515
534
|
log('')
|
|
516
535
|
}
|
package/src/framework-index.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-25T11:36:01.542Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/build": {
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.15.0",
|
|
7
7
|
"path": "framework/build",
|
|
8
8
|
"deps": [
|
|
9
9
|
"@uniweb/content-reader",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"deps": []
|
|
90
90
|
},
|
|
91
91
|
"@uniweb/templates": {
|
|
92
|
-
"version": "0.7.
|
|
92
|
+
"version": "0.7.45",
|
|
93
93
|
"path": "framework/templates",
|
|
94
94
|
"deps": []
|
|
95
95
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"deps": []
|
|
100
100
|
},
|
|
101
101
|
"@uniweb/unipress": {
|
|
102
|
-
"version": "0.4.
|
|
102
|
+
"version": "0.4.48",
|
|
103
103
|
"path": "framework/unipress",
|
|
104
104
|
"deps": [
|
|
105
105
|
"@uniweb/build",
|