Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SemVerの問題点と今のnpmのtips
Search
Yosuke Furukawa
PRO
November 05, 2014
Programming
2
650
SemVerの問題点と今のnpmのtips
Jser.info 200回記念でLTした話です
Yosuke Furukawa
PRO
November 05, 2014
Tweet
Share
More Decks by Yosuke Furukawa
See All by Yosuke Furukawa
Welcome JSConf.jp 2024
yosuke_furukawa
PRO
1
3.2k
tc39 x jsconf.jp Panel Discussion 2024
yosuke_furukawa
PRO
0
170
Removing Corepack
yosuke_furukawa
PRO
9
1.3k
JavaScript Runtime とはなにか
yosuke_furukawa
PRO
15
2.5k
Strip Types と Storage
yosuke_furukawa
PRO
4
350
Module Harmony について
yosuke_furukawa
PRO
3
1.6k
LTのやり方
yosuke_furukawa
PRO
16
2.2k
AppRouter Panel Talk
yosuke_furukawa
PRO
3
720
Node.js v22 で変わること
yosuke_furukawa
PRO
13
5.4k
Other Decks in Programming
See All in Programming
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
Go の GC の不得意な部分を克服したい
taiyow
2
770
useSyncExternalStoreを使いまくる
ssssota
6
1k
Recoilを剥がしている話
kirik
5
6.6k
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
2
460
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
300
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
200
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
700
nekko cloudにおけるProxmox VE利用事例
irumaru
3
420
良いユニットテストを書こう
mototakatsu
5
2k
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
310
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
180
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
65
11k
The Language of Interfaces
destraynor
154
24k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
The Cult of Friendly URLs
andyhume
78
6.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
510
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Transcript
Versioning @yosuke_furukawa
@yosuke_furukawa Node.jsϢʔβʔάϧʔϓද / DeNAॴଐ
Semantic Versioning
major.minor.patch
majorΛ্͛Δ incompatibleͳมߋ͕͋Δ
minorΛ্͛Δ compatibleͳػೳՃ͕͋Δ
patchΛ্͛Δ compatibleͳόάमਖ਼͕͋Δ
࠷ۙͷ
όάमਖ਼ͪΐͬͱͨ͠ػೳՃ͚ͩͲɺ breaking changes͕͋Δ߹ʹ majorόʔδϣϯΛ্͛Δඞཁ͕͋Δ
VOEFSTDPSFKTͰͷػೳՃʹΑͬͯCSFBLJOHDIBOHF͕ൃੜɺ ͡Όͳͯ͘ʹ͠ΖҊ͕݅ग़͖ͯͨ
None
4FNBOUJD7FSTJPOJOHͳΜͯݬ
Romantic Versioning
Romantic VersionجຊSemVarͩ ͚Ͳɺmajor.minor.patchͷmajorมߋ Λਓؒͷؾ࣋ͪͰܾΊΒΕΔɻ
ଞͷҊͱͯ͜͠Μͳͷ͋Δɻ romantic.major.minor.patch romanticͷͱ͜Ζʹ͍ΛೖΕΔɻ
Sentimental Versioning
TFNWBSن͡Όͳͯ͘ΨΠυͰ͋Δ͖ͩͱ͢Δओ ுɻಛʹͲ͏͍͏όʔδϣχϯά͔نఆ͞Εͯͳ͍ɻ
5F9ͱ.&5"'0/5ͬͯόʔδϣϯ͕ К ͱF ʜ ͳΜͩ͠ɺ ͏ͪΐͬͱࣗ༝ͳ֓೦͕΄͍͠
SemVer 3.0 ͕ͪ·ΕͯΔ
ͪͳΈʹ
࠷ۙ npm v2ʹͳͬͯ npm initͷversion͕1.0.0͕ σϑΥϧτʹͳΔΑ͏ʹͳͬͨɻɻɻ
͋·ΓΒΕͯͳ͍ npm tips
npm configΛ͓͏ $ npm config set init.version 0.0.1 ͜͏͢Δͱɺnpm init
Ͱ࡞Δ࣌ͷॳظόʔδϣϯ͕มߋ͞ΕΔ ݩʹ͚ͨ͠Ε $ npm config delete init.version ͰOK