@supacloud/cli 0.51.2 → 0.53.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.
Files changed (3) hide show
  1. package/README.md +19 -0
  2. package/dist/index.js +9763 -7264
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -30,6 +30,25 @@ Failed compilation preserves the previous generated artifacts.
30
30
  Without a config file, an explicit `--root` retains the legacy source-directory
31
31
  behavior.
32
32
 
33
+ ### Framework source upgrades
34
+
35
+ Breaking source-contract changes use the compiler's migration command, which is
36
+ preview-only by default:
37
+
38
+ ```sh
39
+ cd orders
40
+ bunx supacloud-compiler migrate --root . --json
41
+ bunx supacloud-compiler migrate --root . --write
42
+ bunx supacloud-compiler compile
43
+ bunx supacloud-compiler check
44
+ ```
45
+
46
+ Review the preview and working-tree diff before `--write`. An ambiguous route
47
+ conversion returns a non-zero result and leaves all files untouched. The command
48
+ does not migrate databases or generated artifacts; regenerate those artifacts
49
+ after the source change and use version control for rollback. See the [route
50
+ contract migration guide](../../docs/route-contract-migration.md).
51
+
33
52
  ## Installation
34
53
 
35
54
  Install: