docs(core): finish changelog (#17840)

This commit is contained in:
Isaac Mann 2023-06-28 21:05:19 -04:00 committed by GitHub
parent 7d15e0c350
commit 126a19ff0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 173 additions and 8 deletions

9
docs/changelog/14_5_0.md Normal file
View File

@ -0,0 +1,9 @@
# Nx 14.5
[Read the 14.5 release blog post](https://blog.nrwl.io/nx-14-5-cypess-v10-output-globs-linter-perf-react-tailwind-support-c15f0b5dc2fc)
Here are some of our feature highlights:
{% cards cols="2" %}
{% card title="Support for Cypress 10" type="video" url="https://youtu.be/QDWN4C7T-Ck" /%}
{% /cards %}

View File

@ -1,5 +1,17 @@
# Nx 15.0
[Read the 15.0 release blog post](https://blog.nrwl.io/whats-new-in-nx-15-7e14e1ff282d)
Here are some of our feature highlights:
{% cards cols="2" %}
{% card title="Combine the Power of Nx Graph and Nx Console" type="video" url="https://youtu.be/ZST_rmhzRXI" /%}
{% /cards %}
## Breaking Changes ## Breaking Changes
Use [the `nx migrate` command](/core-features/automate-updating-dependencies) to automatically account for these breaking changes.
{% cards cols="2" %} {% cards cols="2" %}
{% card title="Removed UMD format support for rollup" type="external" url="https://github.com/nrwl/nx/pull/12426" /%} {% card title="Removed UMD format support for rollup" type="external" url="https://github.com/nrwl/nx/pull/12426" /%}
{% card title="Removed --only-failed option" type="external" url="https://github.com/nrwl/nx/pull/12471" /%} {% card title="Removed --only-failed option" type="external" url="https://github.com/nrwl/nx/pull/12471" /%}

17
docs/changelog/15_3_0.md Normal file
View File

@ -0,0 +1,17 @@
# Nx 15.3
[Read the 15.3 release blog post](https://blog.nrwl.io/nx-15-3-standalone-projects-vite-task-graph-and-more-3ed23f7827ed)
{% youtube
src="https://www.youtube.com/embed/KBFQZw5ynFs"
title="What's new in Nx 15.3?"
width="100%" /%}
Here are some of our feature highlights:
{% cards cols="2" %}
{% card title="Introducing the Nx Task Graph Visualization" type="video" url="https://youtu.be/wOE3r4299fs" /%}
{% card title="Standalone Applications with Nx" type="video" url="https://youtu.be/qEaVzh-oBBc" /%}
{% card title="Add Nx to any Project" type="video" url="https://youtu.be/VmGCZ77ao_I" /%}
{% card title="Run Root-level NPM Scripts with Nx" type="video" url="https://youtu.be/PRURABLaS8s" /%}
{% card title="Wrap Any Command with Nx Run-Commands" type="video" url="https://youtu.be/iygb-KhAeik" /%}
{% /cards %}

13
docs/changelog/15_4_0.md Normal file
View File

@ -0,0 +1,13 @@
# Nx 15.4
[Read the 15.4 release blog post](https://blog.nrwl.io/nx-15-4-vite-4-support-a-new-nx-watch-command-and-more-77cbf6c9a711)
{% youtube
src="https://www.youtube.com/embed/G02THNy3PcE"
title="Nx 15.4 is out! Here's all you need to know"
width="100%" /%}
Here are some of our feature highlights:
{% cards cols="2" %}
{% card title="One Command to Run Multiple Tasks in Parallel" type="video" url="https://youtu.be/ROTO89i5m_4" /%}
{% /cards %}

16
docs/changelog/15_7_0.md Normal file
View File

@ -0,0 +1,16 @@
# Nx 15.7
[Read the 15.7 release blog post](https://blog.nrwl.io/nx-15-7-node-support-angular-lts-lockfile-pruning-46f067090711)
{% youtube
src="https://www.youtube.com/embed/IStJODzZSoc"
title="What's new in Nx 15.7?"
width="100%" /%}
Here are some of our feature highlights:
{% cards cols="2" %}
{% card title="Build Node Backends - The Easy Way!" type="video" url="https://youtu.be/K4f-fMuAoRY" /%}
{% card title="Angular LTS Support Starting with Nx 15.7" type="video" url="https://youtu.be/AQV4WFldwlY" /%}
{% card title="Create NgModule Free Angular Apps" type="video" url="https://youtu.be/Hi3aJ0Rlkls" /%}
{% card title="More Flexible Webpack Configs" type="video" url="https://youtu.be/CIT4MFMraXg" /%}
{% /cards %}

16
docs/changelog/15_8_0.md Normal file
View File

@ -0,0 +1,16 @@
# Nx 15.8
[Read the 15.8 release blog post](https://blog.nrwl.io/nx-15-8-rust-hasher-nx-console-for-intellij-deno-node-and-storybook-aa2b8585772e)
{% youtube
src="https://www.youtube.com/embed/4XdHT5Y7zj4"
title="Nx 15.8 - All you need to know!"
width="100%" /%}
Here are some of our feature highlights:
{% cards cols="2" %}
{% card title="NEW!!! Nx Deno Plugin" type="video" url="https://youtu.be/NpH8cFSp51E" /%}
{% card title="Nx Console Goes Poly-IDE" type="video" url="https://youtu.be/xUTm6GDqwJM" /%}
{% card title="Prioritized Params in Nx Console" type="video" url="https://youtu.be/JJ12zKedwIs" /%}
{% card title="Easy, Modular Node Applications!" type="video" url="https://youtu.be/LHLW0b4fr2w" /%}
{% /cards %}

View File

@ -20,7 +20,7 @@ Here are some of our feature highlights:
## Deprecations ## Deprecations
{% cards cols="2" %} {% cards cols="2" %}
{% card title="workspace-lint" type="external" url="https://github.com/nrwl/nx/pull/16385" /%} {% card title="workspace-lint" type="document" url="/deprecated/workspace-lint" /%}
{% card title="module federation utils from devkit public api" type="external" url="https://github.com/nrwl/nx/pull/16574" /%} {% card title="module federation utils from devkit public api" type="external" url="https://github.com/nrwl/nx/pull/16574" /%}
{% card title="Global implicitDependencies" url="/deprecated/global-implicit-dependencies" /%} {% card title="Global implicitDependencies" url="/deprecated/global-implicit-dependencies" /%}
{% card title="stylus style option for react and next" type="external" url="https://github.com/nrwl/nx/pull/16135" /%} {% card title="stylus style option for react and next" type="external" url="https://github.com/nrwl/nx/pull/16135" /%}
@ -29,6 +29,8 @@ Here are some of our feature highlights:
## Breaking Changes ## Breaking Changes
Use [the `nx migrate` command](/core-features/automate-updating-dependencies) to automatically account for these breaking changes.
{% cards cols="2" %} {% cards cols="2" %}
{% card title="Removed @nrwl/cypress/plugins/preprocessor" type="external" url="https://github.com/nrwl/nx/pull/16170" /%} {% card title="Removed @nrwl/cypress/plugins/preprocessor" type="external" url="https://github.com/nrwl/nx/pull/16170" /%}
{% card title="Removed simpleModuleName option from Angular library" type="external" url="https://github.com/nrwl/nx/pull/16219" /%} {% card title="Removed simpleModuleName option from Angular library" type="external" url="https://github.com/nrwl/nx/pull/16219" /%}

7
docs/changelog/16_4_0.md Normal file
View File

@ -0,0 +1,7 @@
## Deprecations
{% cards cols="2" %}
{% card title="cypress tsconfig option" type="external" url="https://github.com/nrwl/nx/pull/17165" /%}
{% card title="print-affected" type="external" url="https://github.com/nrwl/nx/pull/17341" /%}
{% card title="affected:graph" type="external" url="https://github.com/nrwl/nx/pull/17341" /%}
{% /cards %}

View File

@ -1443,6 +1443,14 @@
"isExternal": false, "isExternal": false,
"children": [], "children": [],
"disableCollapsible": false "disableCollapsible": false
},
{
"name": "Changelog",
"path": "/reference/changelog",
"id": "changelog",
"isExternal": true,
"children": [],
"disableCollapsible": false
} }
], ],
"disableCollapsible": false "disableCollapsible": false
@ -1511,6 +1519,14 @@
"children": [], "children": [],
"disableCollapsible": false "disableCollapsible": false
}, },
{
"name": "Changelog",
"path": "/reference/changelog",
"id": "changelog",
"isExternal": true,
"children": [],
"disableCollapsible": false
},
{ {
"name": "Deprecated", "name": "Deprecated",
"path": "/deprecated", "path": "/deprecated",

View File

@ -1796,6 +1796,16 @@
"isExternal": false, "isExternal": false,
"path": "/reference/glossary", "path": "/reference/glossary",
"tags": [] "tags": []
},
{
"id": "changelog",
"name": "Changelog",
"description": "",
"file": "",
"itemList": [],
"isExternal": true,
"path": "/reference/changelog",
"tags": []
} }
], ],
"isExternal": false, "isExternal": false,
@ -1882,6 +1892,16 @@
"path": "/reference/glossary", "path": "/reference/glossary",
"tags": [] "tags": []
}, },
"/reference/changelog": {
"id": "changelog",
"name": "Changelog",
"description": "",
"file": "",
"itemList": [],
"isExternal": true,
"path": "/reference/changelog",
"tags": []
},
"/deprecated": { "/deprecated": {
"id": "deprecated", "id": "deprecated",
"name": "Deprecated", "name": "Deprecated",

View File

@ -583,6 +583,13 @@
"id": "glossary", "id": "glossary",
"tags": [], "tags": [],
"file": "shared/reference/glossary" "file": "shared/reference/glossary"
},
{
"name": "Changelog",
"id": "changelog",
"file": "",
"path": "/reference/changelog",
"isExternal": true
} }
] ]
}, },

View File

@ -80,7 +80,12 @@ export default function NxDocumentation({
} }
export const getStaticPaths: GetStaticPaths = () => { export const getStaticPaths: GetStaticPaths = () => {
const reservedPaths = ['/recipes', '/nx-cloud', '/packages']; const reservedPaths = [
'/recipes',
'/nx-cloud',
'/packages',
'/reference/changelog',
];
return { return {
paths: nxDocumentationApi paths: nxDocumentationApi
.getSlugsStaticDocumentPaths() .getSlugsStaticDocumentPaths()

View File

@ -1,12 +1,21 @@
import { TagIcon } from '@heroicons/react/24/outline'; import { TagIcon } from '@heroicons/react/24/outline';
import { Footer, Header } from '@nx/nx-dev/ui-common'; import {
Breadcrumbs,
DocumentationHeader,
Footer,
SidebarContainer,
} from '@nx/nx-dev/ui-common';
import { renderMarkdown } from '@nx/nx-dev/ui-markdoc'; import { renderMarkdown } from '@nx/nx-dev/ui-markdoc';
import { cx } from '@nx/nx-dev/ui-primitives'; import { cx } from '@nx/nx-dev/ui-primitives';
import { NextSeo } from 'next-seo'; import { NextSeo } from 'next-seo';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import { Octokit } from 'octokit'; import { Octokit } from 'octokit';
import { compare, parse } from 'semver'; import { compare, parse } from 'semver';
import { changeLogApi } from '../lib/changelog.api'; import { changeLogApi } from '../../lib/changelog.api';
import { useNavToggle } from '../../lib/navigation-toggle.effect';
import { menusApi } from '../../lib/menus.api';
import { MenuItem } from '@nx/nx-dev/models-menu';
import { getBasicNxSection } from '@nx/nx-dev/data-access-menu';
interface ChangelogEntry { interface ChangelogEntry {
version: string; version: string;
@ -19,6 +28,7 @@ interface ChangelogEntry {
interface ChangeLogProps { interface ChangeLogProps {
changelog: ChangelogEntry[]; changelog: ChangelogEntry[];
menu: MenuItem[];
} }
interface GithubReleaseData { interface GithubReleaseData {
@ -153,6 +163,7 @@ export async function getStaticProps(): Promise<{ props: ChangeLogProps }> {
return { return {
props: { props: {
changelog: groupedReleases, changelog: groupedReleases,
menu: menusApi.getMenu('nx', ''),
}, },
}; };
} }
@ -178,6 +189,11 @@ export default function Changelog(props: ChangeLogProps): JSX.Element {
}); });
const convertToDate = (invalidDate) => const convertToDate = (invalidDate) =>
new Date(invalidDate.replace(/(nd|th|rd)/g, '')); new Date(invalidDate.replace(/(nd|th|rd)/g, ''));
const { toggleNav, navIsOpen } = useNavToggle();
const menu = {
sections: [getBasicNxSection(props.menu)],
};
return ( return (
<> <>
@ -201,10 +217,19 @@ export default function Changelog(props: ChangeLogProps): JSX.Element {
type: 'website', type: 'website',
}} }}
/> />
<Header /> <div className="w-full flex-shrink-0">
<DocumentationHeader isNavOpen={navIsOpen} toggleNav={toggleNav} />
</div>
<main id="main" role="main"> <main id="main" role="main">
<div className="mx-auto flex max-w-7xl flex-col space-y-12 py-12 px-4 sm:px-6 lg:space-y-0 lg:py-16 lg:px-8"> <div className="mx-auto flex max-w-7xl flex-col py-8 px-4 sm:px-6 lg:px-8">
<header className="space-y-4 md:py-12"> <div className="mb-6">
<Breadcrumbs path={router.asPath} />
</div>
<div className="hidden">
<SidebarContainer menu={menu} navIsOpen={navIsOpen} />
</div>
<header className="mt-0">
<h1 className="text-3xl font-semibold tracking-tight text-slate-900 dark:text-slate-100 sm:text-5xl"> <h1 className="text-3xl font-semibold tracking-tight text-slate-900 dark:text-slate-100 sm:text-5xl">
Nx Changelog Nx Changelog
</h1> </h1>
@ -212,7 +237,7 @@ export default function Changelog(props: ChangeLogProps): JSX.Element {
All the Nx goodies in one page, sorted by release. All the Nx goodies in one page, sorted by release.
</p> </p>
</header> </header>
<ul role="list" className="m-0 space-y-6"> <ul className="m-0 space-y-6 py-6">
{renderedChangelog.map((changelog, idx) => ( {renderedChangelog.map((changelog, idx) => (
<li key={changelog.version} className="relative sm:flex gap-x-4"> <li key={changelog.version} className="relative sm:flex gap-x-4">
<div <div