Repository navigation
Releases: no-problem-dev/swift-env
Releases · no-problem-dev/swift-env
Release list
2.0.0
Removed
- The
@_exportedre-export of swift-configuration. Code namingConfigReader,ConfigKey, or
EnvironmentVariablesProvider— including anything calling the generatedload()— must now
import Configurationalongsideimport Env.
Added
.spi.yml, so Swift Package Index builds and hosts the DocC documentationCONTRIBUTING.mdscripts/release.shandscripts/compute-next-version.sh, which derive the next version from
the public API diff and stamp it into this file
Changed
- CI no longer builds or tests; it creates a GitHub Release from a pushed tag. Verification runs
locally before pushing.
1.0.4
v1.0.3
v1.0.2
🎉 v1.0.2 リリース
swift-env v1.0.2 がリリースされました。
📝 変更内容
変更
- Swift 6.2 対応: Swift 6.2 安定版に対応
swift-tools-version: 6.0 → 6.2swift-syntax: 600.0.0 → 602.0.0
CI
- Linux x86_64 テスト追加:
swift:6.2-bookwormコンテナでテスト実行
📦 インストール
dependencies: [
.package(url: "https://github.com/no-problem-dev/swift-env.git", .upToNextMajor(from: "1.0.2"))
]🔗 リンク
v1.0.1
🎉 v1.0.1 リリース
swift-env v1.0.1 がリリースされました。
📝 変更内容
追加
@EnvGroupマクロ: 複数の@Env構造体を集約するファサード構造体を生成static func load()メソッドを自動生成し、全ネスト設定を一括読み込み- ネストした
@Envおよび@EnvGroup構造体をサポート - 統一されたエントリーポイントでアプリケーション設定を簡潔に管理
テスト
- EnvGroup マクロ展開テスト追加
📦 インストール
dependencies: [
.package(url: "https://github.com/no-problem-dev/swift-env.git", .upToNextMajor(from: "1.0.1"))
]🔗 リンク
v1.0.0
🎉 v1.0.0 リリース
swift-env v1.0.0 がリリースされました。
📝 変更内容
追加
-
@Envマクロ: 構造体に付与して環境変数設定を自動生成Keysenum(ConfigKey型の静的プロパティ)を自動生成Defaultsenum(デフォルト値の静的プロパティ)を自動生成init(config: ConfigReader)イニシャライザを自動生成Sendableプロトコル準拠を自動追加scopeパラメータでスコープ設定をサポート
-
@Valueマクロ: プロパティに付与して環境変数キーとデフォルト値を指定- String, Int, Double, Bool 型をサポート
- 環境変数キーをドット区切りで指定(例:
"gcp.project.id"→GCP_PROJECT_ID)
-
Apple swift-configuration 1.0 の再エクスポート
ConfigReader,ConfigKey,EnvironmentVariablesProvider等を利用可能
テスト
- 11種類のマクロ展開テスト
- 基本型テスト(String, Int, Double, Bool)
- 複数プロパティテスト
- スコープ付きテスト
- エッジケーステスト
ドキュメント
- README.md(日本語)
- RELEASE_PROCESS.md
- DocCドキュメント
📦 インストール
dependencies: [
.package(url: "https://github.com/no-problem-dev/swift-env.git", .upToNextMajor(from: "1.0.0"))
]