dependencies version in package.json

2021. 10. 16. 18:52·Computer Science/Terminology and Concepts

semantic versioning

  Semantic versioning (aka SemVer), is a widely adopted version scheme that uses a sequence of three digits (Major.Minor.Patch), an optional pre-release tag and optional build meta tag. 

 

  • backward-incompatible change increments the major number
  • new functionality that is backwards compatible API additions/changes increments the minor number
  • simple bug fix to existing functionality increments the patch number

 

 

difference between tilde(~) and caret(^) in package.json

Symbol Dependency Versions Changes
caret (^) ^3.9.2 3.*.*
  • backwards compatible new functionality
  • old functionality deprecated, but operational
  • large internal refactor
  • bug fix
tilde (~) ~3.9.2 3.9.*
  • bug fix

 

simply, 

  • ~version will update you to all future patch versions, without incrementing the minor version. ~1.2.3 will use releases from 1.2.3 to <1.3.0.
  • ^version  will update you to all future minor/patch versions, without incrementing the major version. ^2.3.4 will use releases from 2.3.4 to <3.0.0.

 

sources

  • why is there a caret in my package.json?
  • semver
  • npm Docs semantic versioning
  • npm Docs dependencies
  • stack overflow

'Computer Science > Terminology and Concepts' 카테고리의 다른 글

peerDependencies 와 overrides 의 차이점(package management)  (0) 2024.11.09
DOM 트리의 탐색  (0) 2022.12.13
What is JSON File ?  (0) 2021.09.09
Service worker  (0) 2021.09.03
CDN  (0) 2021.08.01
'Computer Science/Terminology and Concepts' 카테고리의 다른 글
  • peerDependencies 와 overrides 의 차이점(package management)
  • DOM 트리의 탐색
  • What is JSON File ?
  • Service worker
JTB
JTB
웹/앱 개발 정보를 공유하고 있습니다.
  • JTB
    JTechBlog
    JTB
  • 전체
    오늘
    어제
    • All About Programming;) N
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • Next.js
        • Flutter
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test N
        • LeetCode N
        • Programmers
      • Tech Books & Lectures
        • Javascript_Modern JS Deep d..
        • Network_IT 엔지니어를 위한 네트워크 입문
      • Projects
        • PolyLingo_2025
        • Build Your Body_2024
        • JStargram_2021
        • Covid19 Tracker_2021
        • JPortfolio_2021
      • BootCamp_Codestates
        • TIL
        • TILookCloser
        • Pre Tech Blog
        • IM Tech Blog
        • Daily Issues and DeBugging
        • First Project
        • Final Project
        • Sprint Review
        • Good to Know
        • Socrative Review
        • HTML &amp; CSS
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 글쓰기
    • 관리
  • 공지사항

  • 인기 글

  • 태그

    Network
    need a database
    leetcode
    database
    How memory manage data
    structure of os
    자바스크립트
    Shared resources
    딥다이브
    JavaScript
    Threads and Multithreading
    TCP/IP
    프론트엔드 성능 최적화 가이드
    CPU scheduling algorithm
    이벤트
    indie hacker
    testing
    DOM
    자바스크립트 딥다이브
    polylingo
    Data Structure
    Binary Tree BFS
    모던 자바스크립트 Deep Dive
    커리어
    VoiceJournal
    mobile app
    스코프
    js pattern
    Time complexity and Space complexity
    Operating System
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
dependencies version in package.json
상단으로

티스토리툴바