@swiftbrowser/kit 0.6.7 → 0.8.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 (47) hide show
  1. package/README.md +8 -7
  2. package/kit.json +7 -3
  3. package/package.json +4 -8
  4. package/wasm-plugins/SwiftDataMacros.wasm +4 -0
  5. package/wasm32-unknown-wasip1/Modules/AVKit.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  6. package/wasm32-unknown-wasip1/Modules/Combine.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  7. package/wasm32-unknown-wasip1/Modules/Combine.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  8. package/wasm32-unknown-wasip1/Modules/Compression.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  9. package/wasm32-unknown-wasip1/Modules/Compression.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  10. package/wasm32-unknown-wasip1/Modules/CoreImage.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  11. package/wasm32-unknown-wasip1/Modules/CoreImage.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  12. package/wasm32-unknown-wasip1/Modules/CoreLocation.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  13. package/wasm32-unknown-wasip1/Modules/CoreLocation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  14. package/wasm32-unknown-wasip1/Modules/FoundationBridge.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  15. package/wasm32-unknown-wasip1/Modules/FoundationBridge.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  16. package/wasm32-unknown-wasip1/Modules/ImageIO.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  17. package/wasm32-unknown-wasip1/Modules/ImageIO.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  18. package/wasm32-unknown-wasip1/Modules/LinkPresentation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  19. package/wasm32-unknown-wasip1/Modules/MapKit.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  20. package/wasm32-unknown-wasip1/Modules/OSLog.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  21. package/wasm32-unknown-wasip1/Modules/QuickLook.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  22. package/wasm32-unknown-wasip1/Modules/SafariServices.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  23. package/wasm32-unknown-wasip1/Modules/SwiftUI.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  24. package/wasm32-unknown-wasip1/Modules/SwiftUI.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  25. package/wasm32-unknown-wasip1/Modules/UIKit.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  26. package/wasm32-unknown-wasip1/Modules/UIKit.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  27. package/wasm32-unknown-wasip1/Modules/UserNotifications.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  28. package/wasm32-unknown-wasip1/Modules/WebKit.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  29. package/wasm32-unknown-wasip1/Modules/os.swiftmodule/wasm32-unknown-wasip1.swiftdoc +0 -0
  30. package/wasm32-unknown-wasip1/Modules/os.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  31. package/wasm32-unknown-wasip1/lib/libAVKit.a +0 -0
  32. package/wasm32-unknown-wasip1/lib/libCombine.a +0 -0
  33. package/wasm32-unknown-wasip1/lib/libCompression.a +0 -0
  34. package/wasm32-unknown-wasip1/lib/libCoreImage.a +0 -0
  35. package/wasm32-unknown-wasip1/lib/libCoreLocation.a +0 -0
  36. package/wasm32-unknown-wasip1/lib/libFoundationBridge.a +0 -0
  37. package/wasm32-unknown-wasip1/lib/libImageIO.a +0 -0
  38. package/wasm32-unknown-wasip1/lib/libLinkPresentation.a +0 -0
  39. package/wasm32-unknown-wasip1/lib/libMapKit.a +0 -0
  40. package/wasm32-unknown-wasip1/lib/libOSLog.a +0 -0
  41. package/wasm32-unknown-wasip1/lib/libQuickLook.a +0 -0
  42. package/wasm32-unknown-wasip1/lib/libSafariServices.a +0 -0
  43. package/wasm32-unknown-wasip1/lib/libSwiftUI.a +0 -0
  44. package/wasm32-unknown-wasip1/lib/libUIKit.a +0 -0
  45. package/wasm32-unknown-wasip1/lib/libUserNotifications.a +0 -0
  46. package/wasm32-unknown-wasip1/lib/libWebKit.a +0 -0
  47. package/wasm32-unknown-wasip1/lib/libos.a +0 -0
package/README.md CHANGED
@@ -5,18 +5,19 @@ SwiftBrowser compiled for WebAssembly, so that
5
5
  an app's own code only: every module of the Swift package
6
6
  ([@swiftbrowser/swift](https://www.npmjs.com/package/@swiftbrowser/swift)) and
7
7
  an archive of its objects, with debug info, for Swift 6.4.0 and its Swift SDK
8
- for WebAssembly. One package per host adds the macros (`@Model`, `#Predicate`,
9
- `@Entry`):
10
- [@swiftbrowser/kit-linux-x64](https://www.npmjs.com/package/@swiftbrowser/kit-linux-x64),
11
- [-linux-arm64](https://www.npmjs.com/package/@swiftbrowser/kit-linux-arm64),
12
- [-darwin-arm64](https://www.npmjs.com/package/@swiftbrowser/kit-darwin-arm64),
13
- installed with this one on a matching machine.
8
+ for WebAssembly, and its macros (`@Model`, `#Predicate`, `@Entry`) built as
9
+ WebAssembly. The macros are the same files on every host:
10
+ [@swiftbrowser/wasm-compiler](https://www.npmjs.com/package/@swiftbrowser/wasm-compiler)
11
+ runs them for its own compiler, and for a native toolchain through a small
12
+ launcher the CLI names as the macros' plugin executables. (Releases up to
13
+ 0.7 shipped them as executables in one package per host,
14
+ @swiftbrowser/kit-linux-x64, -linux-arm64 and -darwin-arm64.)
14
15
 
15
16
  The CLI depends on it, at its own version: there is nothing to import or
16
17
  configure. On the first `dev` or `build` it copies the kit into its cache
17
18
  (`~/.cache/swiftbrowser/kits/`), checks that the installed toolchain reads its
18
19
  modules, and builds every app against it. When it cannot use the kit (another
19
- toolchain, a host without a macros package) it compiles SwiftBrowser once
20
+ toolchain, or Windows, where the compiler cannot run the launcher) it compiles SwiftBrowser once
20
21
  itself, as it would without this package. See the CLI's README.
21
22
 
22
23
  `kit.json` names the shim the kit was built from (the id the CLI computes from
package/kit.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "id": "1dc47353ade53c91f05f",
3
+ "id": "3876ad753ed7b9b6c310",
4
4
  "swift": "6.4",
5
5
  "sdk": "f07b7be3c586d92d7a07051fc6d303b87ebea67eadc40640ba59d5a8b79aa86d",
6
6
  "targets": {
@@ -31,10 +31,12 @@
31
31
  "CoreGraphics": [
32
32
  "SwiftUI"
33
33
  ],
34
+ "Compression": [],
34
35
  "ImageIO": [
35
36
  "CoreGraphics",
36
37
  "SwiftUI",
37
- "CoreFoundationTypes"
38
+ "CoreFoundationTypes",
39
+ "Compression"
38
40
  ],
39
41
  "CoreImage": [
40
42
  "SwiftUI"
@@ -105,7 +107,6 @@
105
107
  "NaturalLanguage": [
106
108
  "FoundationBridge"
107
109
  ],
108
- "Compression": [],
109
110
  "zlib": [
110
111
  "Compression"
111
112
  ],
@@ -299,5 +300,8 @@
299
300
  },
300
301
  "macros": [
301
302
  "SwiftDataMacros"
303
+ ],
304
+ "wasmPlugins": [
305
+ "SwiftDataMacros"
302
306
  ]
303
307
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swiftbrowser/kit",
3
- "version": "0.6.7",
4
- "description": "SwiftBrowser compiled for WebAssembly, so that @swiftbrowser/cli builds an app's own code only: every module of the Swift package and an archive of its objects (with debug info), for Swift 6.4.0 and its Swift SDK for WebAssembly. The host's package (@swiftbrowser/kit-linux-x64, -linux-arm64, -darwin-arm64) adds the macros.",
3
+ "version": "0.8.0",
4
+ "description": "SwiftBrowser compiled for WebAssembly, so that @swiftbrowser/cli builds an app's own code only: every module of the Swift package and an archive of its objects (with debug info), for Swift 6.4.0 and its Swift SDK for WebAssembly. Its macros come built as WebAssembly, the same on every host: @swiftbrowser/wasm-compiler runs them, for its own compiler and for a native toolchain.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/noya-app/SwiftBrowser.git",
@@ -10,16 +10,12 @@
10
10
  "files": [
11
11
  "kit.json",
12
12
  "wasm32-unknown-wasip1",
13
+ "wasm-plugins",
13
14
  "index.mjs",
14
15
  "index.d.ts",
15
16
  "README.md"
16
17
  ],
17
18
  "type": "module",
18
19
  "main": "./index.mjs",
19
- "types": "./index.d.ts",
20
- "optionalDependencies": {
21
- "@swiftbrowser/kit-linux-x64": "0.6.7",
22
- "@swiftbrowser/kit-linux-arm64": "0.6.7",
23
- "@swiftbrowser/kit-darwin-arm64": "0.6.7"
24
- }
20
+ "types": "./index.d.ts"
25
21
  }
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/wasm-plugins/SwiftDataMacros.wasm
3
+ size: 42886777 bytes
4
+ sha256: b0bec116e537a7b2be2e5df322f16ea53fe3beaa506d214a6549d99205170e03
Binary file