Skip to content

Commit e1d48d8

Browse files
committed
Update Zip to 2.1.1 and Nodal to 0.4.0
Use consistent String types for element/container names to match Nodal's new explicit overloads.
1 parent d31fdea commit e1d48d8

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

Package.resolved

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ let package = Package(
99
.library(name: "ThreeMF", targets: ["ThreeMF"])
1010
],
1111
dependencies: [
12-
.package(url: "https://github.com/tomasf/Zip.git", from: "2.1.0"),
13-
.package(url: "https://github.com/tomasf/Nodal.git", from: "0.3.2")
12+
.package(url: "https://github.com/tomasf/Zip.git", from: "2.1.1"),
13+
.package(url: "https://github.com/tomasf/Nodal.git", from: "0.4.0")
1414
],
1515
targets: [
1616
.target(

Sources/ThreeMF/Resources/Object/Mesh.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public struct Mesh: Sendable, XMLElementCodable {
1414

1515
public func encode(to element: Node) {
1616
// Use qualified names here as an optimization. We're producing output and have full control.
17-
element.encode(vertices, elementName: Core.vertex.localName, containedIn: Core.vertices)
18-
element.encode(triangles, elementName: Core.triangle.localName, containedIn: Core.triangles)
19-
element.encode(triangleSets, elementName: TriangleSets.triangleSet.localName, containedIn: TriangleSets.triangleSets)
17+
element.encode(vertices, elementName: Core.vertex.localName, containedIn: Core.vertices.localName)
18+
element.encode(triangles, elementName: Core.triangle.localName, containedIn: Core.triangles.localName)
19+
element.encode(triangleSets, elementName: TriangleSets.triangleSet.localName, containedIn: TriangleSets.triangleSets.localName)
2020
}
2121

2222
public init(from element: Node) throws {

Sources/ThreeMF/Resources/Object/Object.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extension Object: XMLElementCodable {
8989
metadata = try element.decode(elementName: Core.metadata)
9090

9191
guard let contentElement = element[element: Core.mesh] ?? element[element: Core.components] else {
92-
throw XMLElementCodableError.elementMissing(Core.mesh)
92+
throw XMLElementCodableError.expandedElementMissing(Core.mesh)
9393
}
9494
content = try .init(from: contentElement)
9595
}

0 commit comments

Comments
 (0)