Skip to content

Commit 8f664d1

Browse files
committed
build: adopt word-to-md-swift 1.0.0 in md-to-word-swift
word-to-md-swift 1.0.0 renamed its module WordToMDSwift → WordToMD (see CLAUDE.md, Architecture Principles → Module Naming). That is a source-breaking change, which is why it went to 1.0.0 rather than 0.9.0: three consumers pin `from: "0.x"`, and SPM reads that as `0.x..<1.0.0`, so a breaking MINOR would have been picked up automatically by every one of them. Also widens this package's ooxml-swift range. It was pinned `from: "0.5.1"`, which resolves to `0.5.1..<1.0.0` — mathematically incompatible with the 3.x that word-to-md-swift now requires, so resolution failed outright rather than degrading. The two test files change only the import line. Carried along: .gitignore and .claude/settings.json pick up the idd-worktree isolation path and setting from this session's worktree runs. Unrelated to the dependency change, listed here so the diff holds no surprises. Refs #155
1 parent 7ffc050 commit 8f664d1

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

.claude/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
}
1313
]
1414
},
15-
"includeGitInstructions": false
16-
}
15+
"includeGitInstructions": false,
16+
"worktree": {
17+
"bgIsolation": "none"
18+
}
19+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,6 @@ openspec/.vector-search.db*
147147
# Plugin-scoped binary cache (#117) — downloaded MCP binaries + version sidecars
148148
plugins/.bin-cache/
149149
plugins/*/.bin-cache/
150+
151+
# IDD parallel worktree isolation (idd-worktree.sh #167) — not tracked in main tree
152+
.claude/worktrees/

packages/md-to-word-swift/Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ let package = Package(
1010
dependencies: [
1111
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.4.0"),
1212
.package(url: "https://github.com/PsychQuant/common-converter-swift.git", from: "0.4.0"),
13-
.package(url: "https://github.com/PsychQuant/ooxml-swift.git", from: "0.5.1"),
13+
.package(url: "https://github.com/PsychQuant/ooxml-swift.git", "2.0.0"..<"4.0.0"),
1414
.package(url: "https://github.com/jpsim/Yams.git", from: "5.0.0"),
15-
.package(url: "https://github.com/PsychQuant/word-to-md-swift.git", from: "0.4.0"),
15+
.package(url: "https://github.com/PsychQuant/word-to-md-swift.git", from: "1.0.0"),
1616
],
1717
targets: [
1818
.target(
@@ -28,7 +28,7 @@ let package = Package(
2828
name: "MDToWordTests",
2929
dependencies: [
3030
"MDToWord",
31-
.product(name: "WordToMDSwift", package: "word-to-md-swift"),
31+
.product(name: "WordToMD", package: "word-to-md-swift"),
3232
.product(name: "CommonConverterSwift", package: "common-converter-swift"),
3333
.product(name: "OOXMLSwift", package: "ooxml-swift"),
3434
]

packages/md-to-word-swift/Tests/MDToWordTests/E2ETests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import XCTest
22
@testable import MDToWord
33
import OOXMLSwift
4-
import WordToMDSwift
4+
import WordToMD
55
import CommonConverterSwift
66

77
/// End-to-End round-trip tests starting from .docx files.

packages/md-to-word-swift/Tests/MDToWordTests/RoundTripTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import XCTest
22
@testable import MDToWord
33
import OOXMLSwift
4-
import WordToMDSwift
4+
import WordToMD
55
import CommonConverterSwift
66

77
/// Bijection 驗證:

0 commit comments

Comments
 (0)