0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

僕なりの Composer 備忘録

Last updated at Posted at 2024-05-29

自身のバージョン

# 最新にアップデート
$ composer self-update

パッケージのバージョン管理

  • MAJOR.MINOR.PATCHの形式

    • MAJOR: APIの非互換な変更
    • MINOR: 後方互換のある機能追加
    • PATCH: 後方互換のあるバグ修正
  • ~チルダと^キャレットがある。

~チルダの場合

指定 意味
~1.2 >= 1.2.0, < 2.0.0
~1.2.1 >= 1.2.1, < 1.3.0

^キャレットの場合

指定 意味
^1.2 >= 1.2.0, < 2.0.0
^1.2.1 >= 1.2.1 < 2.0.0
^0.3 >= 0.3.0, < 0.4.0
  • ※ 1.0.0未満は開発版と解釈され、PATCHのみしか上がらない

どう使おうか

  • 対象アプリケーションを

    • 継続的にメンテナンス可能 → キャレットでPATCH指定。

    • 継続的にメンテナンス不可 → チルダでPATH指定。

    • 絶対触らない → 何も使わずバージョン指定。

参考:

https://semver.org/

https://zenn.dev/kazma_13/articles/422ffe9026fd56

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?