Commit 07ab30d
committed
Removed
- `Plugins/BridgeJS/Sources/BridgeJSCore/SwiftToSkeleton.swift` now rejects `@JS protocol` with a clear diagnostic pointing to `@JSClass struct`; updated `ImportTS.swift` messaging accordingly.
- Dropped protocol fixtures/snapshots (`Plugins/BridgeJS/Tests/BridgeJSToolTests/Inputs/Protocol.swift` and related snapshots); README/type-modeling notes now steer interface modeling toward `@JSClass` (`Plugins/BridgeJS/README.md`).
- Rewrote the DocC article to document `@JSClass` interface usage and migration steps (`Sources/JavaScriptKit/Documentation.docc/Articles/BridgeJS/Exporting-Swift/Exporting-Swift-Protocols.md`).
- Removed protocol-based runtime APIs/tests, refreshed JS harness, and regenerated bridge outputs to align (`Tests/BridgeJSRuntimeTests/ExportAPITests.swift`, `Tests/prelude.mjs`, `Tests/BridgeJSRuntimeTests/Generated/*`).
Tests run:
- `swift test --package-path Plugins/BridgeJS`@JS protocol support and migrated guidance/tests to @JSClass interfaces.1 parent b0bf4a3 commit 07ab30d
File tree
11 files changed
+2010
-6806
lines changed- Plugins/BridgeJS
- Sources/BridgeJSCore
- Tests/BridgeJSToolTests
- Inputs
- __Snapshots__/ExportSwiftTests
- Sources/JavaScriptKit/Documentation.docc/Articles/BridgeJS/Exporting-Swift
- Tests
- BridgeJSRuntimeTests
- Generated
- JavaScript
11 files changed
+2010
-6806
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 113 | + | |
127 | 114 | | |
128 | 115 | | |
129 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
| 887 | + | |
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| |||
Lines changed: 4 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
| 1425 | + | |
1433 | 1426 | | |
1434 | 1427 | | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | 1428 | | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1471 | 1432 | | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
1478 | 1433 | | |
1479 | 1434 | | |
1480 | 1435 | | |
| |||
Lines changed: 0 additions & 116 deletions
This file was deleted.
0 commit comments