The package follows semantic versioning: within a major version, upgrading never breaks code that uses the package as documented. This page says what that promise covers.
Everything exported from the package entry point, as its documentation describes it:
IndexOutOfBoundsError, TypeError, …) and by when they are thrown;toString and toJSON produce;Time: O(log n));toJSON output and what from accepts);Every change to the exported types is recorded: the repository keeps a report of the public type surface, so each change to it is reviewed and released with a changelog entry saying how it affects you.
These may change in any release, including a patch:
instanceof, not by text.hashCode results are seeded per loaded copy and unspecified; never store one
or depend on its value.revision values. Compare revision only for "changed or not".private members, and property names you can see at run
time but that are not documented.Only a new major version may:
undefined where it never did);A minor version may add: new exports, new methods, new optional parameters or options, and supported environments. A patch version fixes behaviour that did not match the documentation, improves messages, speeds things up or shrinks the bundle.
A feature to be removed is first marked @deprecated in its documentation, which editors show
with a strikethrough, and its replacement is named. It keeps working for at least one minor
version and is removed only in a major version, listed in that release's changelog.
Until 1.0.0, a minor version (0.3.0 → 0.4.0) may contain breaking changes; each one is
still listed in the changelog with what to change. Patch versions (0.3.1) do not break. A
^0.3.0 range stays within 0.3.x, so it never picks up a breaking minor.
Two copies of the package in one program recognise each other's values (for instanceof and the
is… guards) when they share a major version. Every 0.x release counts as the same major
version as 1.x for this purpose, so values pass between any 0.x and 1.x copies, even across a
0.x minor that changed the API.