Skip to content

Commit 0a29df4

Browse files
committed
fix(misc): adjust deprecation messages to v20 (#23223)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Breaking Changes: BREAKING CHANGE: `nx print-affected` was deprecated in 16.4.0 and has been removed. BREAKING CHANGE: `nx affected:graph` was deprecated in 16.4.0 and has been removed. BREAKING CHANGE: The `criticalPath` and `affectedProjects` properties of the JSON created by `nx graph --file graph.json` was deprecated in 16.2.0 and has been removed. ## Current Behavior <!-- This is the behavior we have today --> Some deprecation messages still reference v19. `nx print-affected` was deprecated in 16.4.0 to be removed in Nx 19 but was not removed. `nx affected:graph` was deprecated in 16.4.0 to be removed in Nx 19 but was not removed. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Deprecation messages reference v20 now. `nx print-affected` is removed. `nx affected:graph` is removed. There are redirects to a `deprecated` page describing those commands for Nx users using Nx <19 ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # (cherry picked from commit 8f705e3)
1 parent e42560d commit 0a29df4

File tree

159 files changed

+372
-1022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+372
-1022
lines changed

docs/generated/devkit/NxPluginV1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
**`Deprecated`**
66

7-
Use [NxPluginV2](../../devkit/documents/NxPluginV2) instead. This will be removed in Nx 19
7+
Use [NxPluginV2](../../devkit/documents/NxPluginV2) instead. This will be removed in Nx 20
88

99
#### Type declaration
1010

1111
| Name | Type | Description |
1212
| :------------------------ | :------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1313
| `name` | `string` | - |
14-
| `processProjectGraph?` | `ProjectGraphProcessor` | **`Deprecated`** Use [CreateNodes](../../devkit/documents/CreateNodes) and [CreateDependencies](../../devkit/documents/CreateDependencies) instead. This will be removed in Nx 19 |
15-
| `projectFilePatterns?` | `string`[] | A glob pattern to search for non-standard project files. @example: ["*.csproj", "pom.xml"] **`Deprecated`** Use [CreateNodes](../../devkit/documents/CreateNodes) instead. This will be removed in Nx 19 |
16-
| `registerProjectTargets?` | [`ProjectTargetConfigurator`](../../devkit/documents/ProjectTargetConfigurator) | **`Deprecated`** Add targets to the projects inside of [CreateNodes](../../devkit/documents/CreateNodes) instead. This will be removed in Nx 19 |
14+
| `processProjectGraph?` | `ProjectGraphProcessor` | **`Deprecated`** Use [CreateNodes](../../devkit/documents/CreateNodes) and [CreateDependencies](../../devkit/documents/CreateDependencies) instead. This will be removed in Nx 20 |
15+
| `projectFilePatterns?` | `string`[] | A glob pattern to search for non-standard project files. @example: ["*.csproj", "pom.xml"] **`Deprecated`** Use [CreateNodes](../../devkit/documents/CreateNodes) instead. This will be removed in Nx 20 |
16+
| `registerProjectTargets?` | [`ProjectTargetConfigurator`](../../devkit/documents/ProjectTargetConfigurator) | **`Deprecated`** Add targets to the projects inside of [CreateNodes](../../devkit/documents/CreateNodes) instead. This will be removed in Nx 20 |

docs/generated/devkit/ProjectGraphBuilder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A class which builds up a project graph
44

55
**`Deprecated`**
66

7-
The ProjectGraphProcessor has been deprecated. Use a [CreateNodes](../../devkit/documents/CreateNodes) and/or a [CreateDependencies](../../devkit/documents/CreateDependencies) instead. This will be removed in Nx 19.
7+
The ProjectGraphProcessor has been deprecated. Use a [CreateNodes](../../devkit/documents/CreateNodes) and/or a [CreateDependencies](../../devkit/documents/CreateDependencies) instead. This will be removed in Nx 20.
88

99
## Table of contents
1010

docs/generated/devkit/ProjectGraphProcessorContext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Additional information to be used to process a project graph
44

55
**`Deprecated`**
66

7-
The ProjectGraphProcessor is deprecated. This will be removed in Nx 19.
7+
The ProjectGraphProcessor is deprecated. This will be removed in Nx 20.
88

99
## Table of contents
1010

docs/generated/devkit/ProjectTargetConfigurator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**`Deprecated`**
66

7-
Add targets to the projects in a [CreateNodes](../../devkit/documents/CreateNodes) function instead. This will be removed in Nx 19
7+
Add targets to the projects in a [CreateNodes](../../devkit/documents/CreateNodes) function instead. This will be removed in Nx 20
88

99
#### Type declaration
1010

docs/generated/devkit/getOutputsForTargetAndConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
**`Deprecated`**
1717

18-
Pass the target and overrides instead. This will be removed in v19.
18+
Pass the target and overrides instead. This will be removed in v20.
1919

2020
**getOutputsForTargetAndConfiguration**(`target`, `overrides`, `node`): `string`[]
2121

docs/generated/manifests/menus.json

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4603,6 +4603,22 @@
46034603
"id": "deprecated",
46044604
"isExternal": false,
46054605
"children": [
4606+
{
4607+
"name": "affected:graph",
4608+
"path": "/deprecated/affected-graph",
4609+
"id": "affected-graph",
4610+
"isExternal": false,
4611+
"children": [],
4612+
"disableCollapsible": false
4613+
},
4614+
{
4615+
"name": "print-affected",
4616+
"path": "/deprecated/print-affected",
4617+
"id": "print-affected",
4618+
"isExternal": false,
4619+
"children": [],
4620+
"disableCollapsible": false
4621+
},
46064622
{
46074623
"name": "workspace.json",
46084624
"path": "/deprecated/workspace-json",
@@ -4686,6 +4702,22 @@
46864702
],
46874703
"disableCollapsible": false
46884704
},
4705+
{
4706+
"name": "affected:graph",
4707+
"path": "/deprecated/affected-graph",
4708+
"id": "affected-graph",
4709+
"isExternal": false,
4710+
"children": [],
4711+
"disableCollapsible": false
4712+
},
4713+
{
4714+
"name": "print-affected",
4715+
"path": "/deprecated/print-affected",
4716+
"id": "print-affected",
4717+
"isExternal": false,
4718+
"children": [],
4719+
"disableCollapsible": false
4720+
},
46894721
{
46904722
"name": "workspace.json",
46914723
"path": "/deprecated/workspace-json",
@@ -8378,22 +8410,6 @@
83788410
"children": [],
83798411
"disableCollapsible": false
83808412
},
8381-
{
8382-
"name": "affected:graph",
8383-
"path": "/nx-api/nx/documents/affected-dep-graph",
8384-
"id": "affected-dep-graph",
8385-
"isExternal": false,
8386-
"children": [],
8387-
"disableCollapsible": false
8388-
},
8389-
{
8390-
"name": "print-affected",
8391-
"path": "/nx-api/nx/documents/print-affected",
8392-
"id": "print-affected",
8393-
"isExternal": false,
8394-
"children": [],
8395-
"disableCollapsible": false
8396-
},
83978413
{
83988414
"name": "format:check",
83998415
"path": "/nx-api/nx/documents/format-check",

docs/generated/manifests/nx-api.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,28 +1778,6 @@
17781778
"tags": ["run-tasks"],
17791779
"originalFilePath": "generated/cli/affected"
17801780
},
1781-
"/nx-api/nx/documents/affected-dep-graph": {
1782-
"id": "affected-dep-graph",
1783-
"name": "affected:graph",
1784-
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
1785-
"file": "generated/packages/nx/documents/affected-dep-graph",
1786-
"itemList": [],
1787-
"isExternal": false,
1788-
"path": "/nx-api/nx/documents/affected-dep-graph",
1789-
"tags": [],
1790-
"originalFilePath": "generated/cli/affected-graph"
1791-
},
1792-
"/nx-api/nx/documents/print-affected": {
1793-
"id": "print-affected",
1794-
"name": "print-affected",
1795-
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
1796-
"file": "generated/packages/nx/documents/print-affected",
1797-
"itemList": [],
1798-
"isExternal": false,
1799-
"path": "/nx-api/nx/documents/print-affected",
1800-
"tags": [],
1801-
"originalFilePath": "generated/cli/print-affected"
1802-
},
18031781
"/nx-api/nx/documents/format-check": {
18041782
"id": "format-check",
18051783
"name": "format:check",

docs/generated/manifests/nx.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6302,6 +6302,28 @@
63026302
"mediaImage": "",
63036303
"file": "",
63046304
"itemList": [
6305+
{
6306+
"id": "affected-graph",
6307+
"name": "affected:graph",
6308+
"description": "",
6309+
"mediaImage": "",
6310+
"file": "shared/deprecated/affected-graph",
6311+
"itemList": [],
6312+
"isExternal": false,
6313+
"path": "/deprecated/affected-graph",
6314+
"tags": []
6315+
},
6316+
{
6317+
"id": "print-affected",
6318+
"name": "print-affected",
6319+
"description": "",
6320+
"mediaImage": "",
6321+
"file": "shared/deprecated/print-affected",
6322+
"itemList": [],
6323+
"isExternal": false,
6324+
"path": "/deprecated/print-affected",
6325+
"tags": []
6326+
},
63056327
{
63066328
"id": "workspace-json",
63076329
"name": "workspace.json",
@@ -6417,6 +6439,28 @@
64176439
"path": "/deprecated",
64186440
"tags": []
64196441
},
6442+
"/deprecated/affected-graph": {
6443+
"id": "affected-graph",
6444+
"name": "affected:graph",
6445+
"description": "",
6446+
"mediaImage": "",
6447+
"file": "shared/deprecated/affected-graph",
6448+
"itemList": [],
6449+
"isExternal": false,
6450+
"path": "/deprecated/affected-graph",
6451+
"tags": []
6452+
},
6453+
"/deprecated/print-affected": {
6454+
"id": "print-affected",
6455+
"name": "print-affected",
6456+
"description": "",
6457+
"mediaImage": "",
6458+
"file": "shared/deprecated/print-affected",
6459+
"itemList": [],
6460+
"isExternal": false,
6461+
"path": "/deprecated/print-affected",
6462+
"tags": []
6463+
},
64206464
"/deprecated/workspace-json": {
64216465
"id": "workspace-json",
64226466
"name": "workspace.json",

docs/generated/packages-metadata.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,28 +1757,6 @@
17571757
"tags": ["run-tasks"],
17581758
"originalFilePath": "generated/cli/affected"
17591759
},
1760-
{
1761-
"id": "affected-dep-graph",
1762-
"name": "affected:graph",
1763-
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
1764-
"file": "generated/packages/nx/documents/affected-dep-graph",
1765-
"itemList": [],
1766-
"isExternal": false,
1767-
"path": "nx/documents/affected-dep-graph",
1768-
"tags": [],
1769-
"originalFilePath": "generated/cli/affected-graph"
1770-
},
1771-
{
1772-
"id": "print-affected",
1773-
"name": "print-affected",
1774-
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
1775-
"file": "generated/packages/nx/documents/print-affected",
1776-
"itemList": [],
1777-
"isExternal": false,
1778-
"path": "nx/documents/print-affected",
1779-
"tags": [],
1780-
"originalFilePath": "generated/cli/print-affected"
1781-
},
17821760
{
17831761
"id": "format-check",
17841762
"name": "format:check",

docs/generated/packages/angular/executors/dev-server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"type": "string",
1818
"description": "A browser builder target to serve in the format of `project:target[:configuration]`. Ignored if `buildTarget` is set.",
1919
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
20-
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19."
20+
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20."
2121
},
2222
"buildTarget": {
2323
"type": "string",

docs/generated/packages/angular/executors/module-federation-dev-server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "string",
1616
"description": "A browser builder target to serve in the format of `project:target[:configuration]`.",
1717
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
18-
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19."
18+
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20."
1919
},
2020
"buildTarget": {
2121
"type": "string",

docs/generated/packages/angular/generators/component.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"description": "The name of the project.",
3333
"$default": { "$source": "projectName" },
3434
"x-dropdown": "projects",
35-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
35+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
3636
},
3737
"prefix": {
3838
"type": "string",
@@ -96,7 +96,7 @@
9696
"type": "boolean",
9797
"description": "Create the new files at the top level of the current project.",
9898
"default": false,
99-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19."
99+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
100100
},
101101
"skipImport": {
102102
"type": "boolean",

docs/generated/packages/angular/generators/directive.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"description": "The name of the project.",
3333
"$default": { "$source": "projectName" },
3434
"x-dropdown": "projects",
35-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
35+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
3636
},
3737
"prefix": {
3838
"type": "string",
@@ -67,7 +67,7 @@
6767
"type": "boolean",
6868
"description": "When true (the default), creates the new files at the top level of the current project.",
6969
"default": true,
70-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19."
70+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
7171
},
7272
"module": {
7373
"type": "string",

docs/generated/packages/angular/generators/pipe.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"description": "The name of the project.",
3333
"$default": { "$source": "projectName" },
3434
"x-dropdown": "projects",
35-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
35+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
3636
},
3737
"flat": {
3838
"type": "boolean",
3939
"default": true,
4040
"description": "When true (the default) creates files at the top level of the project.",
41-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19."
41+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
4242
},
4343
"skipTests": {
4444
"type": "boolean",

docs/generated/packages/angular/generators/scam-directive.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"description": "The name of the project.",
4040
"$default": { "$source": "projectName" },
4141
"x-dropdown": "projects",
42-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
42+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
4343
},
4444
"skipTests": {
4545
"type": "boolean",
@@ -56,7 +56,7 @@
5656
"type": "boolean",
5757
"description": "Create the new files at the top level of the current project.",
5858
"default": true,
59-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19."
59+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
6060
},
6161
"selector": {
6262
"type": "string",

docs/generated/packages/angular/generators/scam-pipe.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"description": "The name of the project.",
4040
"$default": { "$source": "projectName" },
4141
"x-dropdown": "projects",
42-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
42+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
4343
},
4444
"skipTests": {
4545
"type": "boolean",
@@ -56,7 +56,7 @@
5656
"type": "boolean",
5757
"description": "Create the new files at the top level of the current project.",
5858
"default": true,
59-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19."
59+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
6060
},
6161
"export": {
6262
"type": "boolean",

docs/generated/packages/angular/generators/scam.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"description": "The name of the project.",
3939
"$default": { "$source": "projectName" },
4040
"x-dropdown": "projects",
41-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
41+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
4242
},
4343
"displayBlock": {
4444
"description": "Specifies if the style will contain `:host { display: block; }`.",
@@ -92,7 +92,7 @@
9292
"type": "boolean",
9393
"description": "Create the new files at the top level of the current project.",
9494
"default": false,
95-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19."
95+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
9696
},
9797
"selector": {
9898
"type": "string",

docs/generated/packages/angular/generators/storybook-configuration.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"configureCypress": {
3030
"type": "boolean",
3131
"description": "Specifies whether to configure Cypress or not.",
32-
"x-deprecated": "Use interactionTests instead. This option will be removed in v19."
32+
"x-deprecated": "Use interactionTests instead. This option will be removed in v20."
3333
},
3434
"generateStories": {
3535
"type": "boolean",
@@ -41,7 +41,7 @@
4141
"generateCypressSpecs": {
4242
"type": "boolean",
4343
"description": "Specifies whether to automatically generate test files in the generated Cypress e2e app.",
44-
"x-deprecated": "Use interactionTests instead. This option will be removed in v19."
44+
"x-deprecated": "Use interactionTests instead. This option will be removed in v20."
4545
},
4646
"configureStaticServe": {
4747
"type": "boolean",
@@ -53,7 +53,7 @@
5353
"cypressDirectory": {
5454
"type": "string",
5555
"description": "A directory where the Cypress project will be placed. Placed at the root by default.",
56-
"x-deprecated": "Use interactionTests instead. This option will be removed in v19."
56+
"x-deprecated": "Use interactionTests instead. This option will be removed in v20."
5757
},
5858
"linter": {
5959
"description": "The tool to use for running lint checks.",

docs/generated/packages/expo/generators/component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"description": "The name of the project.",
2424
"alias": "p",
2525
"$default": { "$source": "projectName" },
26-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v19."
26+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
2727
},
2828
"name": {
2929
"type": "string",

0 commit comments

Comments
 (0)