The GitHub Actions job "npm_and_yarn in /javascript for minimatch - Update #1250375851" on fory.git/main has failed. Run started by GitHub user dependabot[bot] (triggered by dependabot[bot]).
Head commit for run: dbf8ee53fe41118dc6f4e7a97803e5f6d04e55e2 / Shawn Yang <[email protected]> docs(swift): refine swift api and docs (#3372) ## Why? The Swift module needed a cleaner public API and clearer user-facing documentation, and it lacked full dynamic map support for `AnyHashable` keys in `Any` workflows. ## What does this PR do? - Refactors Swift buffer I/O by consolidating `ByteWriter`/`ByteReader` into a single `ByteBuffer`, and updates read/write contexts and serializers to use `context.buffer`. - Renames stream-style APIs to Swift-native signatures: - `serializeTo(_ buffer:inout Data, value:)` -> `serialize(_:to:)` - `deserializeFrom(_ reader:, as:)` -> `deserialize(from:as:)` - Adds dynamic serialization support for `AnyHashable` and `[AnyHashable: Any]`, including: - top-level serialize/deserialize overloads in `Fory` - runtime support in `AnySerializer`/`Context` - macro support for `[AnyHashable: Any]` fields in `@ForyObject` - Adds `TypeResolver.register(_:name:)` that accepts dotted names and resolves namespace/type name. - Renames the Swift xlang executable target from `ForySwiftXlangPeer` to `ForyXlangTests` and updates Java xlang test + CI prebuild target accordingly. - Expands Swift docs with a full guide under `docs/guide/swift/` and a comprehensive `swift/README.md`. - Adds/updates Swift tests, including new `AnyTests` cases for `AnyHashable` round-trips and dynamic map normalization. ## Related issues #1017 #3349 ## Does this PR introduce any user-facing change? Yes. This PR updates Swift public APIs (streaming method names and buffer type usage) and adds new dynamic map capabilities. - [x] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark N/A Report URL: https://github.com/apache/fory/actions/runs/22210402252 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
