Polymer tools must support a wide range of developers, using a variety of operating systems, toolchains, and possibly corporate and IT support policies. To help our users plan ahead and understand what environments we support, this document details our guidelines and process for supporting versions of Node.js.
Luckily, Node has developed a clear release and long term support plan which we can base our support policy on. In developing this plan, we've made the assumption that our tools are run at development time, not in production, and developer environments are usually easier to update than production environments.
We support all "Current" and "Active LTS" releases of Node.js according to the Node.js Long Term Support Release Schedule, but not "Maintenance" releases.
This means we will support from two to three semver major versions of Node.js, depending on where we are in the Node LTS schedule. Currently we support 6.x, 8.x, and 9.x.
Yarn should be drop-in compatible with npm, as it uses the same package.json format as npm and can install the same packages from the npm registry.
We support npm v3 and newer. If you don't have v3 or newer installed, you can upgrade npm by running
npm i -g npm.
We support Windows 10, Linux and macOS (née OS X).
"Support" for an environment means we test in it, and will fix any issues specific to it. We ensure support for environments via continuous integration.
We run tests for our tools libraries on Travis CI, which covers Ubuntu Linux and Node.js v6. We also run the Polymer CLI tests, which cover most of the libraries, on Appveyor, which covers Windows 10.
We will be increasing coverage of libraries on Appveyor Windows environments and Travis macOS environments over time.
When we end support for an environment we will do so with a major version change so that legacy environments can depend on the old version. We will update CI configurations to stop testing on unsupported environments.
Unsupported environments will not necessarily stop working right away, but we will eventually use features that are only supported in newer environments.