From 78d505083247e961432b0d7b8ef17fd6ff6172db Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 14 Apr 2022 09:47:28 +0100 Subject: [PATCH] Docs: clarify caret contraint with ^0.0.x constraint (#10728) --- doc/articles/versions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/articles/versions.md b/doc/articles/versions.md index 81ed0cddf..5a50b805b 100644 --- a/doc/articles/versions.md +++ b/doc/articles/versions.md @@ -181,7 +181,7 @@ The `^` operator behaves very similarly, but it sticks closer to semantic versioning, and will always allow non-breaking updates. For example `^1.2.3` is equivalent to `>=1.2.3 <2.0.0` as none of the releases until 2.0 should break backwards compatibility. For pre-1.0 versions it also acts with safety -in mind and treats `^0.3` as `>=0.3.0 <0.4.0`. +in mind and treats `^0.3` as `>=0.3.0 <0.4.0` and `^0.0.3` as `>=0.0.3 <0.0.4`. This is the recommended operator for maximum interoperability when writing library code.