Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Semantic Versioning

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Semantic Versioning

社内勉強会で発表した資料

Avatar for Pine Mizune

Pine Mizune

November 17, 2015
Tweet

More Decks by Pine Mizune

Other Decks in Programming

Transcript

  1. 目次 • ターゲット層と目的 • Semantic Versioning とは ? • Semantic

    Versioning の規格について • Semantic Versioning で良いこと • npm@v3 と Semantic Versioning • まとめ
  2. Semantic Versioning とは ?  バージョン番号の付け方の規格  v1.0.0 / v0.10.38

    ← この付け方の規格  SemVer と略す  Ruby / Node で公式に採用  Rubygems / npm のライブラリは従う必要がある  Perl は非準拠
  3. Semantic Versioning の規格 v 1 . 2 . 3 破壊的変更

    機能追加 バグ修正 major を上げる minor を上げる patch を上げる major . minor . patch
  4. Semantic Versioning の規格 (その他)  major.minor.patch-pre_release … 不安定版  例:

    1.0.0-beta / 1.0.0-rc.10  0.minor.patch … 開発版  例: 0.1.0 / 0.9.8 / 0.10.38  Semantic Versioning では 0.x.x は特別扱い  0.x.x 系は常に破壊的変更が許される
  5. Semantic Versioning の良い所  バージョン番号だけで変更内容を伝えられる  バージョンアップするか否かの指標になる  状況に応じてバージョンアップを選択できる 

    全体を通した依存関係の解決ができる  依存関係に矛盾がないか機械的に判定できる  依存関係を最適化できる -> npm@v3
  6. fin