21383

NPM caret doesn't bring in newest minor version

Question:

In my package.json one of my dependencies is... "@packageXXX": "^0.7.0",

When I do a "npm outdated" I see... @packageXXX current: 0.7.0 wanted: 0.7.0 latest: 0.8.0

When I do "npm i" it doesn't install the latest minor version "0.8.0"

My understand is having the caret there is suppose to update to the latest minor version, but it doesn't. Can someone explain what I'm doing wrong?

Answer1:

This is the case with 0.x.x since a leading zero indicates that the package isn't into a "stable" version yet. Until your package hits 1.x.x you'll need to do these updates manually (and be careful...your package isn't stable yet, meaning breaking changes can occur!).

<a href="https://semver.org/" rel="nofollow">https://semver.org/</a>

<blockquote>

Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.

</blockquote>

Recommend

  • Why DbSet doesn't implement EnumerableAsync
  • SQL Server - Find records that have appeared 3 times in last 30 days
  • Object browser in vba7 does not show WebClient Object members [duplicate]
  • Deducing the return type of a standalone function
  • How to get yyyy-mm-dd hh:mm:ss format from 28 Jul 2011 22:33:57 in iPhone?
  • CLIENT STACK TRACE in Hibernate using c3p0
  • Insertion Sort in C#
  • Retrieving saved checkboxes' name and values from database
  • Weekday as String to number
  • How to use grep to output unique lines of code from a file?
  • C++ Time measurement of functions
  • Unable to create a textclip in moviepy (imagemagick succesfully installed?) - got Utf8 Error
  • Using Facebook Graph API with ASP.NET
  • Adding custom message on Thank You page by shipping method
  • CABasicAnimation creates empty default value copy of CALayer
  • Python tk scrollbar becomes inactive once text is outside the screen
  • Handle query parameters recursively using htaccess
  • Get last 15 lines from a large file in SFTP with phpseclib [duplicate]
  • async GET request with body from browser
  • create circular Auto Horizontal Scroll View?
  • How to modify the way a ForeignKey field is rendered in a Django admin page to avoid browser crash?
  • C++11: Why rvalue reference parameter implicitly converted to lvalue
  • How to control xtics in gnuplot
  • Create an Office365 mailbox from within C# Web API method
  • Julia 1.0 UndefVarError - Scope of Variable
  • How to resolve this in PHPUnit where it is asking me to set KERNEL_DIR in my phpunit.xml?
  • Tensorflow Dataset API restore Iterator after completing one epoch
  • How to merge objects within array based on attribute
  • How to restrict use of third party camera app from your app
  • Problems to understand DXGI DirectX 11 Desktop Duplication to get a Buffer or Array
  • C++ STL stack pop operation giving segmentation fault
  • I am consuming a WCF service that requires headers from a .NET 2 website. How can I programmatically
  • how to get the location(lat/lng) on google maps v3 from the location(x,y)
  • Change cell value based on cell color in google spreadsheet
  • VSTS work items list through REST API
  • Bind selectedDates Aggregation for Calendar
  • Can someone explain this Java code (formatting the output using System.out.format) to me?
  • Call Microservice from another Microservice within Docker
  • How to use FirstOrDefault inside Include
  • Time Complexity of Fibonacci Algorithm [duplicate]