@swiftbrowser/kit 0.7.0 → 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.
- package/README.md +8 -7
- package/package.json +3 -8
- package/wasm-plugins/SwiftDataMacros.wasm +1 -1
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
|
|
9
|
-
|
|
10
|
-
[@swiftbrowser/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,
|
|
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftbrowser/kit",
|
|
3
|
-
"version": "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,
|
|
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",
|
|
@@ -17,10 +17,5 @@
|
|
|
17
17
|
],
|
|
18
18
|
"type": "module",
|
|
19
19
|
"main": "./index.mjs",
|
|
20
|
-
"types": "./index.d.ts"
|
|
21
|
-
"optionalDependencies": {
|
|
22
|
-
"@swiftbrowser/kit-linux-x64": "0.7.0",
|
|
23
|
-
"@swiftbrowser/kit-linux-arm64": "0.7.0",
|
|
24
|
-
"@swiftbrowser/kit-darwin-arm64": "0.7.0"
|
|
25
|
-
}
|
|
20
|
+
"types": "./index.d.ts"
|
|
26
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/wasm-plugins/SwiftDataMacros.wasm
|
|
3
3
|
size: 42886777 bytes
|
|
4
|
-
sha256:
|
|
4
|
+
sha256: b0bec116e537a7b2be2e5df322f16ea53fe3beaa506d214a6549d99205170e03
|