@cratis/pi 8.12.0 → 8.14.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/corpus/skills/cratis-arc-localize-application/SKILL.md +50 -0
- package/package/corpus/skills/cratis-arc-localize-application/references/csharp.md +52 -0
- package/package/corpus/skills/cratis-arc-localize-application/references/go.md +44 -0
- package/package/corpus/skills/cratis-arc-localize-application/references/typescript-switcher.md +59 -0
- package/package/corpus/skills/cratis-arc-localize-application/references/typescript-tooling.md +82 -0
- package/package/corpus/skills/cratis-arc-localize-application/references/typescript.md +151 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-localization.md +2 -0
- package/package/corpus/skills/cratis-code-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-components-diagnose-screen/SKILL.md +1 -1
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +5 -2
- package/package/corpus/skills/cratis-components-theme-application/references/localization.md +1 -0
- package/package/corpus/skills/cratis-migrate-arc-22-to-23/SKILL.md +59 -0
- package/package/corpus/skills/cratis-migrate-arc-22-to-23/references/csharp.md +121 -0
- package/package/corpus/skills/cratis-migrate-arc-23-to-24/SKILL.md +60 -0
- package/package/corpus/skills/cratis-migrate-arc-23-to-24/references/csharp.md +91 -0
- package/package/corpus/skills/cratis-migrate-arc-23-to-24/references/typescript.md +26 -0
- package/package/corpus/skills/cratis-migrate-components-3-to-4/SKILL.md +72 -0
- package/package/corpus/skills/cratis-migrate-components-3-to-4/references/typescript.md +137 -0
- package/package/corpus/skills/cratis-platform-upgrade-application/SKILL.md +2 -2
- package/package/corpus/skills/cratis-platform-upgrade-application/references/typescript.md +1 -1
- package/package/profile-catalog.json +113 -0
- package/package.json +1 -1
- package/package/corpus/skills/cratis-components-theme-application/references/upgrade-from-previous-major.md +0 -141
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"cratis-arc-host-application",
|
|
29
29
|
"cratis-arc-invoke-command",
|
|
30
30
|
"cratis-arc-isolate-tenant",
|
|
31
|
+
"cratis-arc-localize-application",
|
|
31
32
|
"cratis-arc-page-query",
|
|
32
33
|
"cratis-arc-select-backend-sdk",
|
|
33
34
|
"cratis-arc-validate-command",
|
|
@@ -153,6 +154,7 @@
|
|
|
153
154
|
"cratis-arc-host-application",
|
|
154
155
|
"cratis-arc-invoke-command",
|
|
155
156
|
"cratis-arc-isolate-tenant",
|
|
157
|
+
"cratis-arc-localize-application",
|
|
156
158
|
"cratis-arc-page-query",
|
|
157
159
|
"cratis-arc-select-backend-sdk",
|
|
158
160
|
"cratis-arc-validate-command",
|
|
@@ -207,6 +209,7 @@
|
|
|
207
209
|
"cratis-arc-host-application",
|
|
208
210
|
"cratis-arc-invoke-command",
|
|
209
211
|
"cratis-arc-isolate-tenant",
|
|
212
|
+
"cratis-arc-localize-application",
|
|
210
213
|
"cratis-arc-page-query",
|
|
211
214
|
"cratis-arc-validate-command",
|
|
212
215
|
"cratis-authproxy-configure",
|
|
@@ -255,6 +258,7 @@
|
|
|
255
258
|
"cratis-arc-host-application",
|
|
256
259
|
"cratis-arc-invoke-command",
|
|
257
260
|
"cratis-arc-isolate-tenant",
|
|
261
|
+
"cratis-arc-localize-application",
|
|
258
262
|
"cratis-arc-page-query",
|
|
259
263
|
"cratis-arc-validate-command",
|
|
260
264
|
"cratis-authproxy-configure",
|
|
@@ -292,6 +296,7 @@
|
|
|
292
296
|
"cratis-arc-generate-proxies",
|
|
293
297
|
"cratis-arc-host-application",
|
|
294
298
|
"cratis-arc-invoke-command",
|
|
299
|
+
"cratis-arc-localize-application",
|
|
295
300
|
"cratis-arc-page-query",
|
|
296
301
|
"cratis-arc-validate-command",
|
|
297
302
|
"cratis-chronicle-connect-application",
|
|
@@ -337,6 +342,7 @@
|
|
|
337
342
|
"cratis-arc-host-application",
|
|
338
343
|
"cratis-arc-invoke-command",
|
|
339
344
|
"cratis-arc-isolate-tenant",
|
|
345
|
+
"cratis-arc-localize-application",
|
|
340
346
|
"cratis-arc-page-query",
|
|
341
347
|
"cratis-arc-validate-command",
|
|
342
348
|
"cratis-authproxy-configure",
|
|
@@ -382,6 +388,7 @@
|
|
|
382
388
|
"cratis-arc-host-application",
|
|
383
389
|
"cratis-arc-invoke-command",
|
|
384
390
|
"cratis-arc-isolate-tenant",
|
|
391
|
+
"cratis-arc-localize-application",
|
|
385
392
|
"cratis-arc-page-query",
|
|
386
393
|
"cratis-arc-select-backend-sdk",
|
|
387
394
|
"cratis-arc-validate-command",
|
|
@@ -424,6 +431,7 @@
|
|
|
424
431
|
"cratis-arc-host-application",
|
|
425
432
|
"cratis-arc-invoke-command",
|
|
426
433
|
"cratis-arc-isolate-tenant",
|
|
434
|
+
"cratis-arc-localize-application",
|
|
427
435
|
"cratis-arc-page-query",
|
|
428
436
|
"cratis-arc-select-backend-sdk",
|
|
429
437
|
"cratis-arc-validate-command",
|
|
@@ -468,6 +476,7 @@
|
|
|
468
476
|
"cratis-arc-host-application",
|
|
469
477
|
"cratis-arc-invoke-command",
|
|
470
478
|
"cratis-arc-isolate-tenant",
|
|
479
|
+
"cratis-arc-localize-application",
|
|
471
480
|
"cratis-arc-page-query",
|
|
472
481
|
"cratis-arc-select-backend-sdk",
|
|
473
482
|
"cratis-arc-validate-command",
|
|
@@ -513,6 +522,7 @@
|
|
|
513
522
|
"cratis-arc-generate-proxies",
|
|
514
523
|
"cratis-arc-host-application",
|
|
515
524
|
"cratis-arc-invoke-command",
|
|
525
|
+
"cratis-arc-localize-application",
|
|
516
526
|
"cratis-arc-page-query",
|
|
517
527
|
"cratis-arc-validate-command",
|
|
518
528
|
"cratis-chronicle-connect-application",
|
|
@@ -561,6 +571,7 @@
|
|
|
561
571
|
"cratis-arc-host-application",
|
|
562
572
|
"cratis-arc-invoke-command",
|
|
563
573
|
"cratis-arc-isolate-tenant",
|
|
574
|
+
"cratis-arc-localize-application",
|
|
564
575
|
"cratis-arc-page-query",
|
|
565
576
|
"cratis-arc-select-backend-sdk",
|
|
566
577
|
"cratis-arc-validate-command",
|
|
@@ -604,6 +615,7 @@
|
|
|
604
615
|
"cratis-arc-host-application",
|
|
605
616
|
"cratis-arc-invoke-command",
|
|
606
617
|
"cratis-arc-isolate-tenant",
|
|
618
|
+
"cratis-arc-localize-application",
|
|
607
619
|
"cratis-arc-page-query",
|
|
608
620
|
"cratis-arc-select-backend-sdk",
|
|
609
621
|
"cratis-arc-validate-command",
|
|
@@ -633,6 +645,7 @@
|
|
|
633
645
|
"cratis-arc-identity-and-tenancy-kotlin",
|
|
634
646
|
"cratis-arc-invoke-command",
|
|
635
647
|
"cratis-arc-isolate-tenant",
|
|
648
|
+
"cratis-arc-localize-application",
|
|
636
649
|
"cratis-arc-page-query",
|
|
637
650
|
"cratis-arc-select-backend-sdk",
|
|
638
651
|
"cratis-arc-spring-data-kotlin",
|
|
@@ -664,6 +677,7 @@
|
|
|
664
677
|
"cratis-arc-generate-proxies",
|
|
665
678
|
"cratis-arc-host-application",
|
|
666
679
|
"cratis-arc-invoke-command",
|
|
680
|
+
"cratis-arc-localize-application",
|
|
667
681
|
"cratis-arc-page-query",
|
|
668
682
|
"cratis-arc-validate-command",
|
|
669
683
|
"cratis-code-review",
|
|
@@ -696,6 +710,7 @@
|
|
|
696
710
|
"cratis-arc-host-application",
|
|
697
711
|
"cratis-arc-invoke-command",
|
|
698
712
|
"cratis-arc-isolate-tenant",
|
|
713
|
+
"cratis-arc-localize-application",
|
|
699
714
|
"cratis-arc-page-query",
|
|
700
715
|
"cratis-arc-validate-command",
|
|
701
716
|
"cratis-code-review",
|
|
@@ -740,6 +755,7 @@
|
|
|
740
755
|
"cratis-arc-host-application",
|
|
741
756
|
"cratis-arc-invoke-command",
|
|
742
757
|
"cratis-arc-isolate-tenant",
|
|
758
|
+
"cratis-arc-localize-application",
|
|
743
759
|
"cratis-arc-page-query",
|
|
744
760
|
"cratis-arc-select-backend-sdk",
|
|
745
761
|
"cratis-arc-validate-command",
|
|
@@ -768,6 +784,7 @@
|
|
|
768
784
|
"cratis-arc-host-application",
|
|
769
785
|
"cratis-arc-invoke-command",
|
|
770
786
|
"cratis-arc-isolate-tenant",
|
|
787
|
+
"cratis-arc-localize-application",
|
|
771
788
|
"cratis-arc-page-query",
|
|
772
789
|
"cratis-arc-select-backend-sdk",
|
|
773
790
|
"cratis-arc-validate-command",
|
|
@@ -835,6 +852,7 @@
|
|
|
835
852
|
],
|
|
836
853
|
"availableTargets": [
|
|
837
854
|
"cratis-arc-diagnose-live-query",
|
|
855
|
+
"cratis-arc-localize-application",
|
|
838
856
|
"cratis-arc-react-bind-slice",
|
|
839
857
|
"cratis-arc-react-separate-view-model",
|
|
840
858
|
"cratis-code-review",
|
|
@@ -870,6 +888,7 @@
|
|
|
870
888
|
"cratis-arc-host-application",
|
|
871
889
|
"cratis-arc-invoke-command",
|
|
872
890
|
"cratis-arc-isolate-tenant",
|
|
891
|
+
"cratis-arc-localize-application",
|
|
873
892
|
"cratis-arc-page-query",
|
|
874
893
|
"cratis-arc-select-backend-sdk",
|
|
875
894
|
"cratis-arc-storage-typescript",
|
|
@@ -1417,6 +1436,7 @@
|
|
|
1417
1436
|
"cratis-arc-host-application",
|
|
1418
1437
|
"cratis-arc-invoke-command",
|
|
1419
1438
|
"cratis-arc-isolate-tenant",
|
|
1439
|
+
"cratis-arc-localize-application",
|
|
1420
1440
|
"cratis-arc-page-query",
|
|
1421
1441
|
"cratis-arc-select-backend-sdk",
|
|
1422
1442
|
"cratis-arc-validate-command",
|
|
@@ -1462,6 +1482,7 @@
|
|
|
1462
1482
|
"cratis-arc-generate-proxies",
|
|
1463
1483
|
"cratis-arc-host-application",
|
|
1464
1484
|
"cratis-arc-invoke-command",
|
|
1485
|
+
"cratis-arc-localize-application",
|
|
1465
1486
|
"cratis-arc-page-query",
|
|
1466
1487
|
"cratis-arc-validate-command",
|
|
1467
1488
|
"cratis-platform-deliver-slice",
|
|
@@ -1489,6 +1510,7 @@
|
|
|
1489
1510
|
"cratis-arc-generate-proxies",
|
|
1490
1511
|
"cratis-arc-host-application",
|
|
1491
1512
|
"cratis-arc-invoke-command",
|
|
1513
|
+
"cratis-arc-localize-application",
|
|
1492
1514
|
"cratis-arc-page-query",
|
|
1493
1515
|
"cratis-arc-validate-command",
|
|
1494
1516
|
"cratis-chronicle-connect-application",
|
|
@@ -1523,6 +1545,7 @@
|
|
|
1523
1545
|
"cratis-arc-generate-proxies",
|
|
1524
1546
|
"cratis-arc-host-application",
|
|
1525
1547
|
"cratis-arc-invoke-command",
|
|
1548
|
+
"cratis-arc-localize-application",
|
|
1526
1549
|
"cratis-arc-page-query",
|
|
1527
1550
|
"cratis-arc-validate-command",
|
|
1528
1551
|
"cratis-chronicle-connect-application",
|
|
@@ -1557,6 +1580,7 @@
|
|
|
1557
1580
|
"cratis-arc-generate-proxies",
|
|
1558
1581
|
"cratis-arc-host-application",
|
|
1559
1582
|
"cratis-arc-invoke-command",
|
|
1583
|
+
"cratis-arc-localize-application",
|
|
1560
1584
|
"cratis-arc-page-query",
|
|
1561
1585
|
"cratis-arc-validate-command",
|
|
1562
1586
|
"cratis-chronicle-connect-application",
|
|
@@ -1591,6 +1615,7 @@
|
|
|
1591
1615
|
"cratis-arc-generate-proxies",
|
|
1592
1616
|
"cratis-arc-host-application",
|
|
1593
1617
|
"cratis-arc-invoke-command",
|
|
1618
|
+
"cratis-arc-localize-application",
|
|
1594
1619
|
"cratis-arc-page-query",
|
|
1595
1620
|
"cratis-arc-validate-command",
|
|
1596
1621
|
"cratis-chronicle-connect-application",
|
|
@@ -1772,6 +1797,62 @@
|
|
|
1772
1797
|
],
|
|
1773
1798
|
"languages": []
|
|
1774
1799
|
},
|
|
1800
|
+
{
|
|
1801
|
+
"id": "cratis/migrate/arc-22-to-23",
|
|
1802
|
+
"description": "Temporary: move a C# application from Arc 22 to Arc 23; remove when the upgrade is merged.",
|
|
1803
|
+
"composes": [],
|
|
1804
|
+
"availableTargets": [
|
|
1805
|
+
"cratis-migrate-arc-22-to-23"
|
|
1806
|
+
],
|
|
1807
|
+
"languages": [
|
|
1808
|
+
"csharp"
|
|
1809
|
+
],
|
|
1810
|
+
"migration": {
|
|
1811
|
+
"product": "arc",
|
|
1812
|
+
"from": 22,
|
|
1813
|
+
"to": 23,
|
|
1814
|
+
"packages": {
|
|
1815
|
+
"nuget": [
|
|
1816
|
+
"Cratis",
|
|
1817
|
+
"Cratis.Arc",
|
|
1818
|
+
"Cratis.Arc.Core",
|
|
1819
|
+
"Cratis.Arc.Chronicle",
|
|
1820
|
+
"Cratis.Arc.Mcp"
|
|
1821
|
+
],
|
|
1822
|
+
"npm": [
|
|
1823
|
+
"@cratis/arc",
|
|
1824
|
+
"@cratis/arc.react"
|
|
1825
|
+
]
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"id": "cratis/migrate/arc-23-to-24",
|
|
1831
|
+
"description": "Temporary: move a C# or TypeScript application from Arc 23 to Arc 24; remove when the upgrade is merged.",
|
|
1832
|
+
"composes": [],
|
|
1833
|
+
"availableTargets": [
|
|
1834
|
+
"cratis-migrate-arc-23-to-24"
|
|
1835
|
+
],
|
|
1836
|
+
"languages": [
|
|
1837
|
+
"csharp",
|
|
1838
|
+
"typescript"
|
|
1839
|
+
],
|
|
1840
|
+
"migration": {
|
|
1841
|
+
"product": "arc",
|
|
1842
|
+
"from": 23,
|
|
1843
|
+
"to": 24,
|
|
1844
|
+
"packages": {
|
|
1845
|
+
"nuget": [
|
|
1846
|
+
"Cratis.Arc",
|
|
1847
|
+
"Cratis",
|
|
1848
|
+
"Cratis.Arc.Availability"
|
|
1849
|
+
],
|
|
1850
|
+
"npm": [
|
|
1851
|
+
"@cratis/arc"
|
|
1852
|
+
]
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1775
1856
|
{
|
|
1776
1857
|
"id": "cratis/migrate/arc-24-to-25",
|
|
1777
1858
|
"description": "Temporary: move a C# application from Arc 24 to Arc 25; remove when the upgrade is merged.",
|
|
@@ -1797,6 +1878,28 @@
|
|
|
1797
1878
|
}
|
|
1798
1879
|
}
|
|
1799
1880
|
},
|
|
1881
|
+
{
|
|
1882
|
+
"id": "cratis/migrate/components-3-to-4",
|
|
1883
|
+
"description": "Temporary: move a TypeScript application from Components 3 to Components 4; remove when the upgrade is merged.",
|
|
1884
|
+
"composes": [],
|
|
1885
|
+
"availableTargets": [
|
|
1886
|
+
"cratis-migrate-components-3-to-4"
|
|
1887
|
+
],
|
|
1888
|
+
"languages": [
|
|
1889
|
+
"typescript"
|
|
1890
|
+
],
|
|
1891
|
+
"migration": {
|
|
1892
|
+
"product": "components",
|
|
1893
|
+
"from": 3,
|
|
1894
|
+
"to": 4,
|
|
1895
|
+
"packages": {
|
|
1896
|
+
"npm": [
|
|
1897
|
+
"@cratis/components",
|
|
1898
|
+
"@cratis/components.migrator"
|
|
1899
|
+
]
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1800
1903
|
{
|
|
1801
1904
|
"id": "cratis/modeling/screenplay-stage",
|
|
1802
1905
|
"composes": [
|
|
@@ -1956,6 +2059,7 @@
|
|
|
1956
2059
|
"cratis-arc-host-application",
|
|
1957
2060
|
"cratis-arc-invoke-command",
|
|
1958
2061
|
"cratis-arc-isolate-tenant",
|
|
2062
|
+
"cratis-arc-localize-application",
|
|
1959
2063
|
"cratis-arc-migrate-relational-schema",
|
|
1960
2064
|
"cratis-arc-page-query",
|
|
1961
2065
|
"cratis-arc-react-bind-slice",
|
|
@@ -2059,6 +2163,7 @@
|
|
|
2059
2163
|
"cratis-arc-host-application",
|
|
2060
2164
|
"cratis-arc-invoke-command",
|
|
2061
2165
|
"cratis-arc-isolate-tenant",
|
|
2166
|
+
"cratis-arc-localize-application",
|
|
2062
2167
|
"cratis-arc-page-query",
|
|
2063
2168
|
"cratis-arc-validate-command",
|
|
2064
2169
|
"cratis-chronicle-cli-operations",
|
|
@@ -2144,6 +2249,7 @@
|
|
|
2144
2249
|
"cratis-arc-generate-proxies",
|
|
2145
2250
|
"cratis-arc-host-application",
|
|
2146
2251
|
"cratis-arc-invoke-command",
|
|
2252
|
+
"cratis-arc-localize-application",
|
|
2147
2253
|
"cratis-arc-page-query",
|
|
2148
2254
|
"cratis-arc-validate-command",
|
|
2149
2255
|
"cratis-chronicle-connect-application",
|
|
@@ -2178,6 +2284,7 @@
|
|
|
2178
2284
|
"cratis-arc-generate-proxies",
|
|
2179
2285
|
"cratis-arc-host-application",
|
|
2180
2286
|
"cratis-arc-invoke-command",
|
|
2287
|
+
"cratis-arc-localize-application",
|
|
2181
2288
|
"cratis-arc-page-query",
|
|
2182
2289
|
"cratis-arc-validate-command",
|
|
2183
2290
|
"cratis-chronicle-connect-application",
|
|
@@ -2219,6 +2326,7 @@
|
|
|
2219
2326
|
"cratis-arc-generate-proxies",
|
|
2220
2327
|
"cratis-arc-host-application",
|
|
2221
2328
|
"cratis-arc-invoke-command",
|
|
2329
|
+
"cratis-arc-localize-application",
|
|
2222
2330
|
"cratis-arc-page-query",
|
|
2223
2331
|
"cratis-arc-validate-command",
|
|
2224
2332
|
"cratis-chronicle-connect-application",
|
|
@@ -2259,6 +2367,7 @@
|
|
|
2259
2367
|
"cratis-arc-generate-proxies",
|
|
2260
2368
|
"cratis-arc-host-application",
|
|
2261
2369
|
"cratis-arc-invoke-command",
|
|
2370
|
+
"cratis-arc-localize-application",
|
|
2262
2371
|
"cratis-arc-page-query",
|
|
2263
2372
|
"cratis-arc-validate-command",
|
|
2264
2373
|
"cratis-chronicle-connect-application",
|
|
@@ -2304,6 +2413,7 @@
|
|
|
2304
2413
|
"cratis-arc-generate-proxies",
|
|
2305
2414
|
"cratis-arc-host-application",
|
|
2306
2415
|
"cratis-arc-invoke-command",
|
|
2416
|
+
"cratis-arc-localize-application",
|
|
2307
2417
|
"cratis-arc-page-query",
|
|
2308
2418
|
"cratis-arc-validate-command",
|
|
2309
2419
|
"cratis-choreography-run-workflow",
|
|
@@ -2344,6 +2454,7 @@
|
|
|
2344
2454
|
"cratis-arc-generate-proxies",
|
|
2345
2455
|
"cratis-arc-host-application",
|
|
2346
2456
|
"cratis-arc-invoke-command",
|
|
2457
|
+
"cratis-arc-localize-application",
|
|
2347
2458
|
"cratis-arc-page-query",
|
|
2348
2459
|
"cratis-arc-validate-command",
|
|
2349
2460
|
"cratis-chronicle-connect-application",
|
|
@@ -2386,6 +2497,7 @@
|
|
|
2386
2497
|
"cratis-arc-generate-proxies",
|
|
2387
2498
|
"cratis-arc-host-application",
|
|
2388
2499
|
"cratis-arc-invoke-command",
|
|
2500
|
+
"cratis-arc-localize-application",
|
|
2389
2501
|
"cratis-arc-page-query",
|
|
2390
2502
|
"cratis-arc-validate-command",
|
|
2391
2503
|
"cratis-chronicle-connect-application",
|
|
@@ -2424,6 +2536,7 @@
|
|
|
2424
2536
|
"cratis-arc-generate-proxies",
|
|
2425
2537
|
"cratis-arc-host-application",
|
|
2426
2538
|
"cratis-arc-invoke-command",
|
|
2539
|
+
"cratis-arc-localize-application",
|
|
2427
2540
|
"cratis-arc-page-query",
|
|
2428
2541
|
"cratis-arc-validate-command",
|
|
2429
2542
|
"cratis-chronicle-connect-application",
|
package/package.json
CHANGED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# Upgrade Cratis Components from the previous major
|
|
2
|
-
|
|
3
|
-
## Contents
|
|
4
|
-
|
|
5
|
-
- When this applies
|
|
6
|
-
- Order
|
|
7
|
-
- Run a codemod
|
|
8
|
-
- What each codemod does and refuses
|
|
9
|
-
- Dependencies
|
|
10
|
-
- Removed root namespaces
|
|
11
|
-
- Removed subpaths and symbols
|
|
12
|
-
- Provider and pass-through changes
|
|
13
|
-
- Verify
|
|
14
|
-
- Avoid
|
|
15
|
-
|
|
16
|
-
A one-time task. General package upgrades are in `cratis-platform-upgrade-application`; this reference holds the Components-specific steps. Paths and names in examples are illustrative.
|
|
17
|
-
|
|
18
|
-
## When this applies
|
|
19
|
-
|
|
20
|
-
The application is on the major of `@cratis/components` that rendered through PrimeReact, and moves to the major that owns its own markup. You recognise the old major by any of these in the application:
|
|
21
|
-
|
|
22
|
-
- Component namespaces imported from the package root: `import { Canvas } from '@cratis/components'` used as `<Canvas.Canvas>`.
|
|
23
|
-
- `styledMode()`, `CratisPreset` or `primeReactStyles` in the provider setup.
|
|
24
|
-
- Imports from `@cratis/components/styled` or `@cratis/components/compatibility`.
|
|
25
|
-
|
|
26
|
-
This is not a version bump: imports, provider configuration, CSS selectors and some callbacks change. "Old major" and "new major" below mean these two.
|
|
27
|
-
|
|
28
|
-
## Order
|
|
29
|
-
|
|
30
|
-
Work on a branch. A checkpoint is source, package manifest and lockfile together. Save one only when the application's lint, type check, specs and production build pass. Steps 3 to 6 share one checkpoint: the application does not compile between the package upgrade and the fixes that follow it, so errors left by steps 3 to 5 are expected and the checks must pass only at step 6.
|
|
31
|
-
|
|
32
|
-
1. **Baseline.** Make every check pass on the old major. Save the rollback checkpoint.
|
|
33
|
-
2. **Root imports, still on the old major.** Preview and apply `cratis-components-remove-root-namespace-imports`. The subpaths it writes exist in both majors. Review the diff and every diagnostic, rerun the checks on the old major and save the import-only checkpoint.
|
|
34
|
-
3. **Upgrade the package** to the new major. Then, by hand: the stylesheet imports (Default path in this skill), the provider (below), removed presets and symbols (below), and part names in `pt` and CSS. Type errors remain until step 6 is done; do not checkpoint here.
|
|
35
|
-
4. **Button props.** Preview and apply `cratis-components-button-variant-tone`, then resolve its diagnostics and `TODO(cratis-codemod)` comments.
|
|
36
|
-
5. **Change handlers.** Preview and apply `cratis-components-change-handler`, then resolve its diagnostics and `TODO(cratis-codemod)` comments. A command form field's `onChange` stays a type error until you move it by hand (below).
|
|
37
|
-
6. **Run the checks.** When they pass with no diagnostic and no `TODO(cratis-codemod)` left, save the upgrade checkpoint.
|
|
38
|
-
7. **Replace remaining direct PrimeReact usage** in separate batches (see `cratis-components-choose-control`, `references/from-primereact.md`). Remove PrimeReact packages only when no import, provider, theme or tool still uses them.
|
|
39
|
-
|
|
40
|
-
Steps 4 and 5 produce source for the new major, so they come after step 3. Step 2 comes first because the two later codemods find components through their subpath imports.
|
|
41
|
-
|
|
42
|
-
To abandon a step, return source, manifest and lockfile to the previous checkpoint together, reinstall from that lockfile and rerun its checks.
|
|
43
|
-
|
|
44
|
-
## Run a codemod
|
|
45
|
-
|
|
46
|
-
All three commands ship in `@cratis/components.migrator`. Run them from the application directory whose installed Components package is being upgraded, with the migrator in the same major as the new Components major. Never use `latest`.
|
|
47
|
-
|
|
48
|
-
```sh
|
|
49
|
-
# The caret range of the Components major you are upgrading to.
|
|
50
|
-
TOOLING_RANGE='^<new major>.0.0'
|
|
51
|
-
|
|
52
|
-
npx --package "@cratis/components.migrator@$TOOLING_RANGE" \
|
|
53
|
-
cratis-components-remove-root-namespace-imports --check src
|
|
54
|
-
npx --package "@cratis/components.migrator@$TOOLING_RANGE" \
|
|
55
|
-
cratis-components-remove-root-namespace-imports src
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
- The path argument (`src` here) only selects the files to scan. The installed `@cratis/components` is resolved from the working directory, so run from the application directory rather than passing a path into the app from elsewhere.
|
|
59
|
-
- Replace `<new major>` with the number; the other two commands take the same form. With pnpm use `pnpm dlx --package …`, with Yarn 2 or later `yarn dlx --package …`.
|
|
60
|
-
- `--check` writes nothing. It exits non-zero when a rewrite is pending or a case needs manual review; that exit does not mean the tool failed.
|
|
61
|
-
- An apply run rewrites the safe cases, reports the rest and exits non-zero while any refused case remains.
|
|
62
|
-
- Before scanning, the migrator checks the installed `@cratis/components`. It accepts only the old major or the new major, and otherwise scans and writes nothing.
|
|
63
|
-
- Requires Node.js 20 or later. The codemods bring their own TypeScript, scan `.js`, `.jsx`, `.mjs`, `.cjs`, `.ts`, `.tsx`, `.mts` and `.cts` recursively, skip `node_modules` and `dist`, and are safe to rerun.
|
|
64
|
-
- A codemod does not remove imports it leaves unused. Run the formatter and lint afterwards.
|
|
65
|
-
|
|
66
|
-
**Coming from a major older than the old major (edge case):** the migrator refuses the installed package. Change the imports by hand, install the new major, then run the codemods.
|
|
67
|
-
|
|
68
|
-
## What each codemod does and refuses
|
|
69
|
-
|
|
70
|
-
| Codemod | Rewrites | Leaves for you (reported) |
|
|
71
|
-
| --- | --- | --- |
|
|
72
|
-
| `cratis-components-remove-root-namespace-imports` | `import { X } from '@cratis/components'` to `import * as X from '@cratis/components/<subpath>'`, and `export { X } from '@cratis/components'` to `export * as X from '@cratis/components/<subpath>'`, for every root namespace. Aliases and type-only imports are kept; mixed setup and namespace imports are split. | Whole-package imports (`import * as`, default, `import = require`), dynamic `import()`, `require()`, `export *` re-exports, side-effect imports, unknown symbols, and the `Compatibility` namespace. |
|
|
73
|
-
| `cratis-components-button-variant-tone` | Literal `Button` props: `text` → `variant='ghost'`, `link` → `variant='link'`, `outlined` → `variant='outline'`, `rounded` → `shape='pill'`, and `severity` → `tone` (`secondary`, `contrast` → `neutral`; `info`, `help` → `accent`; `success` → `positive`; `warn` → `caution`; `danger` → `critical`). | Dynamic values, JSX spreads, duplicate props, and a new prop with a non-literal value beside the old prop it replaces. |
|
|
74
|
-
| `cratis-components-change-handler` | A callback that only forwards one event field, on a standalone `Dropdown` `onChange` and on a command form field's `onValueChange`: it now receives the value itself. The field is `event.value` for `Dropdown`, `DropdownField` and `MultiSelectField`, `target.value` for the text, password, text area and color fields, `target.checked` for the checkbox and toggle fields, and `target.valueAsNumber` for the number and slider fields (`currentTarget` likewise). | Callbacks with several statements, several uses of the event, or use of the native event. An `event.value` callback whose parameter is not typed as the old change event, because `.value` may belong to the selected value. `onChange` on a command form field (see below). |
|
|
75
|
-
|
|
76
|
-
- The first codemod keeps namespace access (`Canvas.Canvas` still resolves). Converting to named imports is optional cleanup by hand.
|
|
77
|
-
- When several of `link`, `text` and `outlined` are set, the Button codemod keeps one variant in that order of precedence. A literal new prop (`variant`, `tone`, `shape`) wins over the old prop it replaces.
|
|
78
|
-
- The Button codemod removes an old prop only when discarding its value cannot change what runs: a bare prop or a literal value. When the value is an expression that would no longer be evaluated, as `text` in `<Button link text={record()} />`, the whole prop group stays unchanged and is reported for manual review.
|
|
79
|
-
- A refused case stays unchanged and is reported. The Button and change-handler codemods also mark it with one `TODO(cratis-codemod)` comment, with three exceptions that are reported only: a Button prop that is not safe to remove (above), an untyped `event.value` callback and `onChange` on a command form field.
|
|
80
|
-
- **`onChange` on a command form field** is no longer a prop and fails type checking. Move the side effect to the enclosing `CommandForm`'s `onFieldChange(command, fieldName, oldValue, newValue)`.
|
|
81
|
-
- After the change-handler codemod, remove a `DropdownChangeEvent` type import that is no longer used.
|
|
82
|
-
|
|
83
|
-
## Dependencies
|
|
84
|
-
|
|
85
|
-
- The new major has no PrimeReact, PrimeIcons or Prime theme dependency. Uninstall those packages only when the application no longer imports them directly; otherwise keep them, with their provider, CSS and license, for the surfaces that still use them.
|
|
86
|
-
- `pixi.js` is now an optional peer. Install it when the application imports from the `Canvas` or `PivotViewer` subpath; keep one resolution of it in the application.
|
|
87
|
-
- `AutoCommandForm` needs an Arc release that honours an explicit field name. Update `@cratis/arc` and `@cratis/arc.react` together, to the same version, inside the range the Components package declares.
|
|
88
|
-
- Add the recommended config of `@cratis/eslint-plugin-components` (same major as Components) after `@cratis/eslint-config`; its `no-root-barrel-import` rule keeps root namespace imports from returning.
|
|
89
|
-
|
|
90
|
-
## Removed root namespaces
|
|
91
|
-
|
|
92
|
-
The package root is setup-only: provider, configuration and message types. Every component comes from its subpath.
|
|
93
|
-
|
|
94
|
-
| Old root namespace | Subpath |
|
|
95
|
-
| --- | --- |
|
|
96
|
-
| `Canvas`, `Chat`, `CommandDialog`, `CommandForm`, `Common`, `DataPage`, `DataTables`, `Dialogs`, `Display`, `Dropdown`, `Filter`, `Notifications`, `ObjectContentEditor`, `ObjectNavigationalBar`, `PivotViewer`, `SchemaEditor`, `TimeMachine`, `Toolbar` | `@cratis/components/<same name>` |
|
|
97
|
-
| `Types` | `@cratis/components/types` |
|
|
98
|
-
| `CommandStepper` | The codemod maps the namespace to `@cratis/components/CommandDialog`, because the old namespace was that whole module. In new code import the `CommandStepper` component from `@cratis/components/CommandStepper`. |
|
|
99
|
-
| `Compatibility` | None. Replace its contracts with the typed parts of each component, then delete the import. |
|
|
100
|
-
|
|
101
|
-
`@cratis/components/CommandForm/fields` and `@cratis/components/CommandForm` are the same module.
|
|
102
|
-
|
|
103
|
-
## Removed subpaths and symbols
|
|
104
|
-
|
|
105
|
-
| Removed | Do instead |
|
|
106
|
-
| --- | --- |
|
|
107
|
-
| `@cratis/components/styled`; `styledMode`, `StyledModeOptions`, `CratisPreset`, `primeReactStyles` | Remove the renderer configuration. Import `tokens`, `styles` and optionally `theme`; assign product values to `--cratis-*` tokens directly. |
|
|
108
|
-
| `@cratis/components/compatibility`; the `Compatibility` namespace and its pass-through contract, sentinel and assert helpers | Use each component's typed parts (`DialogParts`, `DataTableParts`, `TablePaginatorParts`, `StepperParts`, `ToolbarParts`) and `data-cratis-part` selectors. |
|
|
109
|
-
| `@cratis/components/primereact-v10-palette` | Map product tokens to `--cratis-*`, or use the baseline theme. |
|
|
110
|
-
| `primeReactCssLayer`, `primeReactCssLayerOrder` | Delete, unless the product still owns direct PrimeReact CSS. Layer order belongs in product CSS. |
|
|
111
|
-
| `cratisDarkModeSelector` | The product's own theme selector, with the matching `--cratis-*` values assigned under it. |
|
|
112
|
-
| `PivotViewerOptimized` | `PivotViewer`. |
|
|
113
|
-
| `CommandStepperContent` | No replacement. Use `CommandStepper` or `StepperCommandDialog`. |
|
|
114
|
-
| Internal helpers that were exported by accident from `Canvas` (`getInitials`, `reactionsExcludingUser`, mention and emoji helpers) and `Filter` (`buildFilterValues`, `buildRangeValues`, `RenderedHistogramBucket`) | No replacement. Inline the logic the application needs. |
|
|
115
|
-
|
|
116
|
-
## Provider and pass-through changes
|
|
117
|
-
|
|
118
|
-
- `CratisComponentsProvider` takes locale, labels, icons, routing, dialog header actions and the toast region (Provider configuration in this skill). Renderer keys are type errors: `license`, `theme`, `defaults`, `pt`, `ripple`, `unstyled` and z-index settings. Remove them; configure a PrimeReact provider that is still needed on its own.
|
|
119
|
-
- `value.locales` is still accepted for the old paginator and date labels. Move them to `value.messages`.
|
|
120
|
-
- `pt` stays, with new keys and plain HTML attributes as values. `ptOptions` and `unstyled` are accepted and do nothing.
|
|
121
|
-
- Rename pass-through keys to Cratis parts. Dialog: `mask` → `backdrop`, `headerTitle` → `title`, `closeButton` → `close`. DataTable: `thead` → `head`, `tbody` → `body`, `bodyRow` → `row`. Every part is in [parts](parts.md).
|
|
122
|
-
- Replace `.p-*` selectors with `[data-cratis-part='…']` selectors and the state attributes in this skill.
|
|
123
|
-
|
|
124
|
-
## Verify
|
|
125
|
-
|
|
126
|
-
- No component is imported from the package root, and no `TODO(cratis-codemod)` remains.
|
|
127
|
-
- `tokens` and `styles` load in every host entry.
|
|
128
|
-
- `pt` keys and CSS selectors name Cratis parts.
|
|
129
|
-
- With the keyboard only: open and dismiss a dialog, move through a stepper, filter and page a table, enter a date, pick a dropdown value, act on a toast.
|
|
130
|
-
- Check each scheme the application supports, then run the checks in Verify in this skill.
|
|
131
|
-
- If a changed control loses behaviour the application needs, stay on the last passing checkpoint until it is resolved.
|
|
132
|
-
|
|
133
|
-
## Avoid
|
|
134
|
-
|
|
135
|
-
- Upgrading the package before the root-import codemod has run and passed on the old major.
|
|
136
|
-
- Running the Button or change-handler codemod before the upgrade.
|
|
137
|
-
- Fetching the migrator with `latest`.
|
|
138
|
-
- Treating a non-zero `--check` exit as a tool failure.
|
|
139
|
-
- Deleting a `TODO(cratis-codemod)` without resolving the case it marks.
|
|
140
|
-
- Uninstalling PrimeReact while a direct import of it remains.
|
|
141
|
-
- Recreating a product → PrimeReact → Cratis token chain. Map product values to `--cratis-*` directly.
|