3 title: ESLint v<%- version %> released
8 # ESLint v<%= version %> released
10 We just pushed ESLint v<%- version %>, which is a <%- type %> release upgrade of ESLint. This release <% if (type !== "patch") { %>adds some new features and <% } %>fixes several bugs found in the previous release.<% if (type === "major") { %> This release also has some breaking changes, so please read the following closely.<% } %>
13 const RULE_REGEX = new RegExp(`\`?\\b(${ruleList.join("|")})\\b\`?`, "g");
15 function linkify(line) {
17 .replace(/([^\s/]+[/][^\s/]+)?#(\d+)/g, (_, repo, num) => `[${repo || ""}#${num}](https://github.com/${repo || "eslint/eslint"}/issues/${num})`)
18 .replace(RULE_REGEX, "[$&](/docs/rules/$1)");
21 function outputList(items) {
22 items.forEach(function(line) {%>
23 <%- linkify(line) %><%
29 <% if (prereleaseMajorVersion) { %>
32 This is a summary of the major changes you need to know about for this version of ESLint.
36 Since this is a pre-release version, you will not automatically be upgraded by npm. You must specify the `next` tag when installing:
39 npm i eslint@next --save-dev
42 You can also specify the version directly:
45 npm i eslint@<%- version %> --save-dev
50 As there are a lot of changes, we've created a [migration guide](/docs/<%- prereleaseMajorVersion %>/user-guide/migrating-to-<%- prereleaseMajorVersion %>) describing the changes in great detail along with the steps you should take to address them. We expect that most users should be able to upgrade without any build changes, but the migration guide should be a useful resource if you encounter problems.
54 <% if (typeof changelog.breaking !== "undefined") { %>
57 <% outputList(changelog.breaking); %>
61 <% if (typeof changelog.new !== "undefined") { %>
64 <% outputList(changelog.new); %>
68 <% if (typeof changelog.update !== "undefined") { %>
71 <% outputList(changelog.update); %>
75 <% if (typeof changelog.fix !== "undefined") { %>
78 <% outputList(changelog.fix); %>
82 <% if (typeof changelog.docs !== "undefined") { %>
85 <% outputList(changelog.docs); %>
89 <% if (typeof changelog.upgrade !== "undefined") { %>
90 ## Dependency Upgrades
92 <% outputList(changelog.upgrade); %>
96 <% if (typeof changelog.build !== "undefined") { %>
99 <% outputList(changelog.build); %>
103 <% if (typeof changelog.chore !== "undefined") { %>
106 <% outputList(changelog.chore); %>