@swiftbrowser/wasm-sdk-icu-data 0.0.0-stage → 0.9.1

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 CHANGED
@@ -1,3 +1,25 @@
1
- # Temporary Holding Version
1
+ # @swiftbrowser/wasm-sdk-icu-data
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ICU's complete data package (icudt76l.dat, 34 MB), as lib_FoundationICU.a carries it in the SDK. @swiftbrowser/cli keeps the locale-independent items and an app's languages and links that in its place.
4
+
5
+ One of the packages that carry the Swift SDK for WebAssembly (swift-6.4.0-RELEASE_wasm)
6
+ for SwiftBrowser, split by who needs which files:
7
+
8
+ | Package | Contents |
9
+ | --- | --- |
10
+ | @swiftbrowser/wasm-sdk | the WASI sysroot, clang's headers, the standard library |
11
+ | @swiftbrowser/wasm-sdk-foundation | Foundation and CoreFoundation |
12
+ | @swiftbrowser/wasm-sdk-icu | lib_FoundationICU.a without its data member |
13
+ | @swiftbrowser/wasm-sdk-icu-data | ICU's whole data package |
14
+ | @swiftbrowser/wasm-sdk-testing | XCTest and Swift Testing |
15
+ | @swiftbrowser/wasm-sdk-cxx | libc++'s headers and C++ interop |
16
+
17
+ Each keeps its files at their paths in the SDK's `wasm32-unknown-wasip1`
18
+ directory, and lists them in `files.json`, so the SDK is the packages laid
19
+ over each other. [@swiftbrowser/cli](https://www.npmjs.com/package/@swiftbrowser/cli)
20
+ does that when it compiles with the Swift compiler built as WebAssembly and
21
+ no Swift is installed (`swiftbrowser doctor --install`), and SwiftBrowser's
22
+ playground fetches the files it needs from them. The files are the SDK's,
23
+ unchanged but for ICU's data moving out of its archive; the dynamic-linking
24
+ libraries, Embedded Swift and the modules' documentation are left out. See
25
+ LICENSE.txt for the licenses of what they contain.
package/files.json ADDED
@@ -0,0 +1,3 @@
1
+ [
2
+ "swift.xctoolchain/usr/lib/swift_static/wasi/icudt76l.dat"
3
+ ]
package/package.json CHANGED
@@ -1,6 +1,20 @@
1
1
  {
2
2
  "name": "@swiftbrowser/wasm-sdk-icu-data",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.9.1",
4
+ "description": "ICU's data for the Swift SDK for WebAssembly's Foundation: the whole icudt76l.dat package, which @swiftbrowser/cli trims to an app's languages (Swift 6.4.0).",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/noya-app/SwiftBrowser.git",
9
+ "directory": "packages/wasm-sdk-icu-data"
10
+ },
11
+ "files": [
12
+ "wasm32-unknown-wasip1",
13
+ "files.json",
14
+ "LICENSE.txt",
15
+ "README.md"
16
+ ],
17
+ "scripts": {
18
+ "prepack": "node ../wasm-sdk/pack-sdk.mjs --check wasm-sdk-icu-data"
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/icudt76l.dat
3
+ size: 33976096 bytes
4
+ sha256: 7ca4d8abf60fbc0b25e57dc658b8c4c4236774d0c78fff601d3cad2dccd59dd9