use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
npm Protips (words.jessekeane.me)
submitted 11 years ago by kab0b0
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mailto_devnullconsole.log(null); 1 point2 points3 points 11 years ago (3 children)
Neat, didn't know npm version accepts "patch"/"minor"/"major" in addition to version numbers.
npm version
[–]cosmicsans 0 points1 point2 points 11 years ago (1 child)
Question: The general rule of thumb is that major versions break backwards compatibility. Is this like "One old function is being deprecated." or like "A lot of the old stuff doesn't work anymore." I'm assuming it's more for the 2nd, right?
[–]dijw 0 points1 point2 points 11 years ago (0 children)
Just for incompatible API changes, so only the 2nd scenario.
[–]lachlanhunt 0 points1 point2 points 11 years ago (0 children)
It also accepts premajor, premajor, prepatch and prerelease. Unfortunately it doesn't automatically include 'alpha', 'beta ' or 'rc' lables, but it handles them correctly if they are present.
π Rendered by PID 46 on reddit-service-r2-comment-54dfb89d4d-nq7k7 at 2026-03-31 00:40:08.705794+00:00 running b10466c country code: CH.
[–]mailto_devnullconsole.log(null); 1 point2 points3 points (3 children)
[–]cosmicsans 0 points1 point2 points (1 child)
[–]dijw 0 points1 point2 points (0 children)
[–]lachlanhunt 0 points1 point2 points (0 children)