[{"data":1,"prerenderedAt":390,"buildId":391},["ShallowReactive",2],{"-guide-semver-ranges":3,"-guide-semver-ranges-surround":308,"navigation_docs":321},{"id":4,"title":5,"body":6,"description":298,"extension":299,"links":300,"meta":301,"navigation":302,"path":304,"seo":305,"stem":306,"__hash__":307},"docs\u002F2.guide\u002F5.semver-ranges.md","Semver Ranges",{"type":7,"value":8,"toc":283},"minimark",[9,26,31,43,65,76,80,215,219,224,230,234,240,244,250,254,261,265,271,275],[10,11,12,13,20,21,25],"p",{},"npm uses ",[14,15,19],"a",{"href":16,"rel":17},"https:\u002F\u002Fsemver.org\u002F",[18],"nofollow","semantic versioning"," (semver) to manage package versions. A ",[22,23,24],"strong",{},"semver range"," is a string that describes a set of version numbers. On npmx, you can type a semver range into the version filter input on any package page to quickly find matching versions.",[27,28,30],"h2",{"id":29},"version-format","Version format",[10,32,33,34,37,38,42],{},"Every npm version follows the format ",[22,35,36],{},"MAJOR.MINOR.PATCH",", for example ",[39,40,41],"code",{},"3.2.1",":",[44,45,46,53,59],"ul",{},[47,48,49,52],"li",{},[22,50,51],{},"MAJOR"," - incremented for breaking changes",[47,54,55,58],{},[22,56,57],{},"MINOR"," - incremented for new features (backwards-compatible)",[47,60,61,64],{},[22,62,63],{},"PATCH"," - incremented for bug fixes (backwards-compatible)",[10,66,67,68,71,72,75],{},"Some versions also include a ",[22,69,70],{},"prerelease"," tag, such as ",[39,73,74],{},"4.0.0-beta.1",".",[27,77,79],{"id":78},"common-range-syntax","Common range syntax",[81,82,83,99],"table",{},[84,85,86],"thead",{},[87,88,89,93,96],"tr",{},[90,91,92],"th",{},"Range",[90,94,95],{},"Meaning",[90,97,98],{},"Example matches",[100,101,102,116,129,142,153,166,178,189,202],"tbody",{},[87,103,104,110,113],{},[105,106,107],"td",{},[39,108,109],{},"*",[105,111,112],{},"Any version",[105,114,115],{},"0.0.2, 3.1.0, 3.2.6",[87,117,118,123,126],{},[105,119,120],{},[39,121,122],{},"^3.0.0",[105,124,125],{},"Compatible with 3.x (same major)",[105,127,128],{},"3.0.0, 3.1.0, 3.9.5",[87,130,131,136,139],{},[105,132,133],{},[39,134,135],{},"~3.2.0",[105,137,138],{},"At least 3.2.0, same major.minor",[105,140,141],{},"3.2.0, 3.2.1, 3.2.99",[87,143,144,149,151],{},[105,145,146],{},[39,147,148],{},"3.2.x",[105,150,138],{},[105,152,141],{},[87,154,155,160,163],{},[105,156,157],{},[39,158,159],{},">=2.0.0 \u003C3.0.0",[105,161,162],{},"At least 2.0.0 but below 3.0.0",[105,164,165],{},"2.0.0, 2.5.3, 2.99.0",[87,167,168,173,176],{},[105,169,170],{},[39,171,172],{},"1.2.3",[105,174,175],{},"Exactly this version",[105,177,172],{},[87,179,180,185,187],{},[105,181,182],{},[39,183,184],{},"=1.2.3",[105,186,175],{},[105,188,172],{},[87,190,191,196,199],{},[105,192,193],{},[39,194,195],{},"^0.3.1",[105,197,198],{},"At least 0.3.1, same major.minor (0.x is special)",[105,200,201],{},"0.3.1, 0.3.2",[87,203,204,209,212],{},[105,205,206],{},[39,207,208],{},"^0.0.4",[105,210,211],{},"Exactly 0.0.4 (0.0.x is special)",[105,213,214],{},"0.0.4 (only)",[27,216,218],{"id":217},"examples","Examples",[220,221,223],"h3",{"id":222},"find-all-3x-versions","Find all 3.x versions",[10,225,226,227,229],{},"Type ",[39,228,122],{}," to see every version compatible with major version 3.",[220,231,233],{"id":232},"find-patch-releases-for-a-specific-minor","Find patch releases for a specific minor",[10,235,226,236,239],{},[39,237,238],{},"~2.4.0"," to see only 2.4.x patch releases (2.4.0, 2.4.1, 2.4.2, etc.).",[220,241,243],{"id":242},"find-versions-in-a-specific-range","Find versions in a specific range",[10,245,226,246,249],{},[39,247,248],{},">=1.0.0 \u003C2.0.0"," to see all 1.x stable releases.",[220,251,253],{"id":252},"find-a-specific-version","Find a specific version",[10,255,256,257,260],{},"Type the exact version number, like ",[39,258,259],{},"5.3.1",", to check if it exists.",[220,262,264],{"id":263},"find-prerelease-versions","Find prerelease versions",[10,266,226,267,270],{},[39,268,269],{},">=3.0.0-alpha.0"," to find alpha, beta, and release candidate versions for a major release.",[27,272,274],{"id":273},"learn-more","Learn more",[10,276,277,278,75],{},"The full semver range specification is documented at ",[14,279,282],{"href":280,"rel":281},"https:\u002F\u002Fgithub.com\u002Fnpm\u002Fnode-semver#ranges",[18],"node-semver",{"title":284,"searchDepth":285,"depth":285,"links":286},"",2,[287,288,289,297],{"id":29,"depth":285,"text":30},{"id":78,"depth":285,"text":79},{"id":217,"depth":285,"text":218,"children":290},[291,293,294,295,296],{"id":222,"depth":292,"text":223},3,{"id":232,"depth":292,"text":233},{"id":242,"depth":292,"text":243},{"id":252,"depth":292,"text":253},{"id":263,"depth":292,"text":264},{"id":273,"depth":285,"text":274},"Learn how to use semver ranges to filter package versions on npmx.dev","md",null,{},{"icon":303},"i-lucide-filter","\u002Fguide\u002Fsemver-ranges",{"title":5,"description":298},"2.guide\u002F5.semver-ranges","Ej8nz04Rt17lynPWRQcroitCq4KJJT1fRT8kYgmqWWY",[309,315],{"title":310,"path":311,"stem":312,"description":313,"icon":314,"children":-1},"VS Code Extension","\u002Fguide\u002Fvscode-extension","2.guide\u002F4.vscode-extension","The npmx VS Code extension brings npmx.dev insights into your editor.","i-simple-icons-visualstudiocode",{"title":316,"path":317,"stem":318,"description":319,"icon":320,"children":-1},"Badges","\u002Fguide\u002Fbadges","2.guide\u002F6.badges","Generate modern markdown badges with the npmx.dev API","i-lucide:badge",[322,339,363,379],{"title":323,"icon":324,"path":325,"stem":326,"children":327,"page":338},"Getting Started","i-lucide:rocket","\u002Fgetting-started","1.getting-started",[328,333],{"title":329,"path":330,"stem":331,"icon":332},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide:house",{"title":334,"path":335,"stem":336,"icon":337},"Quick Start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F2.quick-start","i-lucide:zap",false,{"title":340,"icon":341,"path":342,"stem":343,"children":344,"page":338},"Guide","i-lucide:book-open","\u002Fguide","2.guide",[345,350,355,360,361,362],{"title":346,"path":347,"stem":348,"icon":349},"Features","\u002Fguide\u002Ffeatures","2.guide\u002F1.features","i-lucide:sparkles",{"title":351,"path":352,"stem":353,"icon":354},"Keyboard Shortcuts","\u002Fguide\u002Fkeyboard-shortcuts","2.guide\u002F2.keyboard-shortcuts","i-lucide:keyboard",{"title":356,"path":357,"stem":358,"icon":359},"URL Structure","\u002Fguide\u002Furl-structure","2.guide\u002F3.url-structure","i-lucide:link",{"title":310,"path":311,"stem":312,"icon":314},{"title":5,"path":304,"stem":306,"icon":303},{"title":316,"path":317,"stem":318,"icon":320},{"title":364,"icon":365,"path":366,"stem":367,"children":368,"page":338},"FAQ","i-lucide:circle-help","\u002Ffaq","3.faq",[369,374],{"title":370,"path":371,"stem":372,"icon":373},"Troubleshooting","\u002Ffaq\u002Ftroubleshooting","3.faq\u002F1.troubleshooting","i-lucide:wrench",{"title":375,"path":376,"stem":377,"icon":378},"Comparison","\u002Ffaq\u002Fcomparison","3.faq\u002F2.comparison","i-lucide:git-compare",{"title":380,"icon":381,"path":382,"stem":383,"children":384,"page":338},"Integrations","i-lucide:cable","\u002Fintegrations","4.integrations",[385],{"title":386,"path":387,"stem":388,"icon":389},"Atmosphere","\u002Fintegrations\u002Fatmosphere","4.integrations\u002F1.atmosphere","i-lucide:cloudy",1795658074215,"a1417b9f-1b70-4aed-bf2d-71962337c9cb"]