diff --git a/docs/generated/devkit/NxPluginV1.md b/docs/generated/devkit/NxPluginV1.md index f760023c45bc7..ae989e5296d53 100644 --- a/docs/generated/devkit/NxPluginV1.md +++ b/docs/generated/devkit/NxPluginV1.md @@ -4,13 +4,13 @@ **`Deprecated`** -Use [NxPluginV2](../../devkit/documents/NxPluginV2) instead. This will be removed in Nx 19 +Use [NxPluginV2](../../devkit/documents/NxPluginV2) instead. This will be removed in Nx 20 #### Type declaration | Name | Type | Description | | :------------------------ | :------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | `string` | - | -| `processProjectGraph?` | `ProjectGraphProcessor` | **`Deprecated`** Use [CreateNodes](../../devkit/documents/CreateNodes) and [CreateDependencies](../../devkit/documents/CreateDependencies) instead. This will be removed in Nx 19 | -| `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 | -| `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 | +| `processProjectGraph?` | `ProjectGraphProcessor` | **`Deprecated`** Use [CreateNodes](../../devkit/documents/CreateNodes) and [CreateDependencies](../../devkit/documents/CreateDependencies) instead. This will be removed in Nx 20 | +| `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 | +| `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 | diff --git a/docs/generated/devkit/ProjectGraphBuilder.md b/docs/generated/devkit/ProjectGraphBuilder.md index 617952c4fbe81..823a3209abcde 100644 --- a/docs/generated/devkit/ProjectGraphBuilder.md +++ b/docs/generated/devkit/ProjectGraphBuilder.md @@ -4,7 +4,7 @@ A class which builds up a project graph **`Deprecated`** -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. +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. ## Table of contents diff --git a/docs/generated/devkit/ProjectGraphProcessorContext.md b/docs/generated/devkit/ProjectGraphProcessorContext.md index 243963c48ad67..8ea171e0d5c9b 100644 --- a/docs/generated/devkit/ProjectGraphProcessorContext.md +++ b/docs/generated/devkit/ProjectGraphProcessorContext.md @@ -4,7 +4,7 @@ Additional information to be used to process a project graph **`Deprecated`** -The ProjectGraphProcessor is deprecated. This will be removed in Nx 19. +The ProjectGraphProcessor is deprecated. This will be removed in Nx 20. ## Table of contents diff --git a/docs/generated/devkit/ProjectTargetConfigurator.md b/docs/generated/devkit/ProjectTargetConfigurator.md index b4bf537e7af29..ad896ba05bb5d 100644 --- a/docs/generated/devkit/ProjectTargetConfigurator.md +++ b/docs/generated/devkit/ProjectTargetConfigurator.md @@ -4,7 +4,7 @@ **`Deprecated`** -Add targets to the projects in a [CreateNodes](../../devkit/documents/CreateNodes) function instead. This will be removed in Nx 19 +Add targets to the projects in a [CreateNodes](../../devkit/documents/CreateNodes) function instead. This will be removed in Nx 20 #### Type declaration diff --git a/docs/generated/devkit/getOutputsForTargetAndConfiguration.md b/docs/generated/devkit/getOutputsForTargetAndConfiguration.md index 61ff511c26fee..62589df67547b 100644 --- a/docs/generated/devkit/getOutputsForTargetAndConfiguration.md +++ b/docs/generated/devkit/getOutputsForTargetAndConfiguration.md @@ -15,7 +15,7 @@ **`Deprecated`** -Pass the target and overrides instead. This will be removed in v19. +Pass the target and overrides instead. This will be removed in v20. ▸ **getOutputsForTargetAndConfiguration**(`target`, `overrides`, `node`): `string`[] diff --git a/docs/generated/manifests/menus.json b/docs/generated/manifests/menus.json index 8b2409285688b..9e8bc5784aa9e 100644 --- a/docs/generated/manifests/menus.json +++ b/docs/generated/manifests/menus.json @@ -4603,6 +4603,22 @@ "id": "deprecated", "isExternal": false, "children": [ + { + "name": "affected:graph", + "path": "/deprecated/affected-graph", + "id": "affected-graph", + "isExternal": false, + "children": [], + "disableCollapsible": false + }, + { + "name": "print-affected", + "path": "/deprecated/print-affected", + "id": "print-affected", + "isExternal": false, + "children": [], + "disableCollapsible": false + }, { "name": "workspace.json", "path": "/deprecated/workspace-json", @@ -4686,6 +4702,22 @@ ], "disableCollapsible": false }, + { + "name": "affected:graph", + "path": "/deprecated/affected-graph", + "id": "affected-graph", + "isExternal": false, + "children": [], + "disableCollapsible": false + }, + { + "name": "print-affected", + "path": "/deprecated/print-affected", + "id": "print-affected", + "isExternal": false, + "children": [], + "disableCollapsible": false + }, { "name": "workspace.json", "path": "/deprecated/workspace-json", @@ -8378,22 +8410,6 @@ "children": [], "disableCollapsible": false }, - { - "name": "affected:graph", - "path": "/nx-api/nx/documents/affected-dep-graph", - "id": "affected-dep-graph", - "isExternal": false, - "children": [], - "disableCollapsible": false - }, - { - "name": "print-affected", - "path": "/nx-api/nx/documents/print-affected", - "id": "print-affected", - "isExternal": false, - "children": [], - "disableCollapsible": false - }, { "name": "format:check", "path": "/nx-api/nx/documents/format-check", diff --git a/docs/generated/manifests/nx-api.json b/docs/generated/manifests/nx-api.json index 746747f3e11dc..86b1c286b184f 100644 --- a/docs/generated/manifests/nx-api.json +++ b/docs/generated/manifests/nx-api.json @@ -1778,28 +1778,6 @@ "tags": ["run-tasks"], "originalFilePath": "generated/cli/affected" }, - "/nx-api/nx/documents/affected-dep-graph": { - "id": "affected-dep-graph", - "name": "affected:graph", - "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", - "file": "generated/packages/nx/documents/affected-dep-graph", - "itemList": [], - "isExternal": false, - "path": "/nx-api/nx/documents/affected-dep-graph", - "tags": [], - "originalFilePath": "generated/cli/affected-graph" - }, - "/nx-api/nx/documents/print-affected": { - "id": "print-affected", - "name": "print-affected", - "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", - "file": "generated/packages/nx/documents/print-affected", - "itemList": [], - "isExternal": false, - "path": "/nx-api/nx/documents/print-affected", - "tags": [], - "originalFilePath": "generated/cli/print-affected" - }, "/nx-api/nx/documents/format-check": { "id": "format-check", "name": "format:check", diff --git a/docs/generated/manifests/nx.json b/docs/generated/manifests/nx.json index 7a310df9e1cfd..966e1362fee72 100644 --- a/docs/generated/manifests/nx.json +++ b/docs/generated/manifests/nx.json @@ -6302,6 +6302,28 @@ "mediaImage": "", "file": "", "itemList": [ + { + "id": "affected-graph", + "name": "affected:graph", + "description": "", + "mediaImage": "", + "file": "shared/deprecated/affected-graph", + "itemList": [], + "isExternal": false, + "path": "/deprecated/affected-graph", + "tags": [] + }, + { + "id": "print-affected", + "name": "print-affected", + "description": "", + "mediaImage": "", + "file": "shared/deprecated/print-affected", + "itemList": [], + "isExternal": false, + "path": "/deprecated/print-affected", + "tags": [] + }, { "id": "workspace-json", "name": "workspace.json", @@ -6417,6 +6439,28 @@ "path": "/deprecated", "tags": [] }, + "/deprecated/affected-graph": { + "id": "affected-graph", + "name": "affected:graph", + "description": "", + "mediaImage": "", + "file": "shared/deprecated/affected-graph", + "itemList": [], + "isExternal": false, + "path": "/deprecated/affected-graph", + "tags": [] + }, + "/deprecated/print-affected": { + "id": "print-affected", + "name": "print-affected", + "description": "", + "mediaImage": "", + "file": "shared/deprecated/print-affected", + "itemList": [], + "isExternal": false, + "path": "/deprecated/print-affected", + "tags": [] + }, "/deprecated/workspace-json": { "id": "workspace-json", "name": "workspace.json", diff --git a/docs/generated/packages-metadata.json b/docs/generated/packages-metadata.json index 587f550f52843..487165933f6f0 100644 --- a/docs/generated/packages-metadata.json +++ b/docs/generated/packages-metadata.json @@ -1757,28 +1757,6 @@ "tags": ["run-tasks"], "originalFilePath": "generated/cli/affected" }, - { - "id": "affected-dep-graph", - "name": "affected:graph", - "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", - "file": "generated/packages/nx/documents/affected-dep-graph", - "itemList": [], - "isExternal": false, - "path": "nx/documents/affected-dep-graph", - "tags": [], - "originalFilePath": "generated/cli/affected-graph" - }, - { - "id": "print-affected", - "name": "print-affected", - "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.", - "file": "generated/packages/nx/documents/print-affected", - "itemList": [], - "isExternal": false, - "path": "nx/documents/print-affected", - "tags": [], - "originalFilePath": "generated/cli/print-affected" - }, { "id": "format-check", "name": "format:check", diff --git a/docs/generated/packages/angular/executors/dev-server.json b/docs/generated/packages/angular/executors/dev-server.json index 21fba1e633f72..403a508375ae6 100644 --- a/docs/generated/packages/angular/executors/dev-server.json +++ b/docs/generated/packages/angular/executors/dev-server.json @@ -17,7 +17,7 @@ "type": "string", "description": "A browser builder target to serve in the format of `project:target[:configuration]`. Ignored if `buildTarget` is set.", "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$", - "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20." }, "buildTarget": { "type": "string", diff --git a/docs/generated/packages/angular/executors/module-federation-dev-server.json b/docs/generated/packages/angular/executors/module-federation-dev-server.json index b0547864c8828..4560938746dfc 100644 --- a/docs/generated/packages/angular/executors/module-federation-dev-server.json +++ b/docs/generated/packages/angular/executors/module-federation-dev-server.json @@ -15,7 +15,7 @@ "type": "string", "description": "A browser builder target to serve in the format of `project:target[:configuration]`.", "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$", - "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20." }, "buildTarget": { "type": "string", diff --git a/docs/generated/packages/angular/generators/component.json b/docs/generated/packages/angular/generators/component.json index fd3f9f376d951..6c83bce3a9d1e 100644 --- a/docs/generated/packages/angular/generators/component.json +++ b/docs/generated/packages/angular/generators/component.json @@ -32,7 +32,7 @@ "description": "The name of the project.", "$default": { "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "prefix": { "type": "string", @@ -96,7 +96,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "skipImport": { "type": "boolean", diff --git a/docs/generated/packages/angular/generators/directive.json b/docs/generated/packages/angular/generators/directive.json index 234d9330de356..3e086f47489a8 100644 --- a/docs/generated/packages/angular/generators/directive.json +++ b/docs/generated/packages/angular/generators/directive.json @@ -32,7 +32,7 @@ "description": "The name of the project.", "$default": { "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "prefix": { "type": "string", @@ -67,7 +67,7 @@ "type": "boolean", "description": "When true (the default), creates the new files at the top level of the current project.", "default": true, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "module": { "type": "string", diff --git a/docs/generated/packages/angular/generators/pipe.json b/docs/generated/packages/angular/generators/pipe.json index 2fe55e13a3df7..404fb7e9dec9c 100644 --- a/docs/generated/packages/angular/generators/pipe.json +++ b/docs/generated/packages/angular/generators/pipe.json @@ -32,13 +32,13 @@ "description": "The name of the project.", "$default": { "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "flat": { "type": "boolean", "default": true, "description": "When true (the default) creates files at the top level of the project.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "skipTests": { "type": "boolean", diff --git a/docs/generated/packages/angular/generators/scam-directive.json b/docs/generated/packages/angular/generators/scam-directive.json index 2e29de5b397ee..9164423f406e2 100644 --- a/docs/generated/packages/angular/generators/scam-directive.json +++ b/docs/generated/packages/angular/generators/scam-directive.json @@ -39,7 +39,7 @@ "description": "The name of the project.", "$default": { "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "skipTests": { "type": "boolean", @@ -56,7 +56,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": true, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "selector": { "type": "string", diff --git a/docs/generated/packages/angular/generators/scam-pipe.json b/docs/generated/packages/angular/generators/scam-pipe.json index eb01bddbefcc7..2fee3c75f23b5 100644 --- a/docs/generated/packages/angular/generators/scam-pipe.json +++ b/docs/generated/packages/angular/generators/scam-pipe.json @@ -39,7 +39,7 @@ "description": "The name of the project.", "$default": { "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "skipTests": { "type": "boolean", @@ -56,7 +56,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": true, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "export": { "type": "boolean", diff --git a/docs/generated/packages/angular/generators/scam.json b/docs/generated/packages/angular/generators/scam.json index 5e810c9c326dc..35f0b1c5ddae5 100644 --- a/docs/generated/packages/angular/generators/scam.json +++ b/docs/generated/packages/angular/generators/scam.json @@ -38,7 +38,7 @@ "description": "The name of the project.", "$default": { "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "displayBlock": { "description": "Specifies if the style will contain `:host { display: block; }`.", @@ -92,7 +92,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "selector": { "type": "string", diff --git a/docs/generated/packages/angular/generators/storybook-configuration.json b/docs/generated/packages/angular/generators/storybook-configuration.json index b0603ad79c467..77460c515e84e 100644 --- a/docs/generated/packages/angular/generators/storybook-configuration.json +++ b/docs/generated/packages/angular/generators/storybook-configuration.json @@ -29,7 +29,7 @@ "configureCypress": { "type": "boolean", "description": "Specifies whether to configure Cypress or not.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "generateStories": { "type": "boolean", @@ -41,7 +41,7 @@ "generateCypressSpecs": { "type": "boolean", "description": "Specifies whether to automatically generate test files in the generated Cypress e2e app.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "configureStaticServe": { "type": "boolean", @@ -53,7 +53,7 @@ "cypressDirectory": { "type": "string", "description": "A directory where the Cypress project will be placed. Placed at the root by default.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "linter": { "description": "The tool to use for running lint checks.", diff --git a/docs/generated/packages/expo/generators/component.json b/docs/generated/packages/expo/generators/component.json index f5579ec90e702..8daf5a7ed8a78 100644 --- a/docs/generated/packages/expo/generators/component.json +++ b/docs/generated/packages/expo/generators/component.json @@ -23,7 +23,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/docs/generated/packages/nest/generators/class.json b/docs/generated/packages/nest/generators/class.json index 54794b04e55a0..fe55db76ee059 100644 --- a/docs/generated/packages/nest/generators/class.json +++ b/docs/generated/packages/nest/generators/class.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/controller.json b/docs/generated/packages/nest/generators/controller.json index 2f2de5ae7f8fe..f88a1eb3e83a0 100644 --- a/docs/generated/packages/nest/generators/controller.json +++ b/docs/generated/packages/nest/generators/controller.json @@ -20,7 +20,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "nameAndDirectoryFormat": { "description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/decorator.json b/docs/generated/packages/nest/generators/decorator.json index 2b8a41af5421c..147eaba422ac6 100644 --- a/docs/generated/packages/nest/generators/decorator.json +++ b/docs/generated/packages/nest/generators/decorator.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -40,7 +40,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/filter.json b/docs/generated/packages/nest/generators/filter.json index cd4bb4d3fc52e..973eb2da8e5a3 100644 --- a/docs/generated/packages/nest/generators/filter.json +++ b/docs/generated/packages/nest/generators/filter.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/gateway.json b/docs/generated/packages/nest/generators/gateway.json index 2bfc26fb702aa..2935ca03b6bcb 100644 --- a/docs/generated/packages/nest/generators/gateway.json +++ b/docs/generated/packages/nest/generators/gateway.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/guard.json b/docs/generated/packages/nest/generators/guard.json index de1b34351e3bd..0413b2bf4dce1 100644 --- a/docs/generated/packages/nest/generators/guard.json +++ b/docs/generated/packages/nest/generators/guard.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/interceptor.json b/docs/generated/packages/nest/generators/interceptor.json index 7c1283c450442..44ab7140fd165 100644 --- a/docs/generated/packages/nest/generators/interceptor.json +++ b/docs/generated/packages/nest/generators/interceptor.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/interface.json b/docs/generated/packages/nest/generators/interface.json index 77ff955953ae6..f40d78b511355 100644 --- a/docs/generated/packages/nest/generators/interface.json +++ b/docs/generated/packages/nest/generators/interface.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -40,7 +40,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true } diff --git a/docs/generated/packages/nest/generators/middleware.json b/docs/generated/packages/nest/generators/middleware.json index 62cd735ec5851..8afeaaead5804 100644 --- a/docs/generated/packages/nest/generators/middleware.json +++ b/docs/generated/packages/nest/generators/middleware.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/module.json b/docs/generated/packages/nest/generators/module.json index 058349d4878c7..05942ce8c716f 100644 --- a/docs/generated/packages/nest/generators/module.json +++ b/docs/generated/packages/nest/generators/module.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -40,7 +40,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/pipe.json b/docs/generated/packages/nest/generators/pipe.json index 985d377cd9310..899fac1eb4e1f 100644 --- a/docs/generated/packages/nest/generators/pipe.json +++ b/docs/generated/packages/nest/generators/pipe.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/provider.json b/docs/generated/packages/nest/generators/provider.json index 7d7f7e17e9119..0ae6ebfe8e4fc 100644 --- a/docs/generated/packages/nest/generators/provider.json +++ b/docs/generated/packages/nest/generators/provider.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/resolver.json b/docs/generated/packages/nest/generators/resolver.json index 6b534e100f40e..0d31a6a226d11 100644 --- a/docs/generated/packages/nest/generators/resolver.json +++ b/docs/generated/packages/nest/generators/resolver.json @@ -20,7 +20,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -41,7 +41,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/resource.json b/docs/generated/packages/nest/generators/resource.json index c41094f06eedc..b024614e95474 100644 --- a/docs/generated/packages/nest/generators/resource.json +++ b/docs/generated/packages/nest/generators/resource.json @@ -20,7 +20,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -41,7 +41,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/service.json b/docs/generated/packages/nest/generators/service.json index 7a9152fb5cd40..903aae7fea70c 100644 --- a/docs/generated/packages/nest/generators/service.json +++ b/docs/generated/packages/nest/generators/service.json @@ -25,7 +25,7 @@ "type": "string", "$default": { "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -46,7 +46,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/next/generators/component.json b/docs/generated/packages/next/generators/component.json index b2a5636b055d1..b7da68873f7a6 100644 --- a/docs/generated/packages/next/generators/component.json +++ b/docs/generated/packages/next/generators/component.json @@ -14,7 +14,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/docs/generated/packages/next/generators/page.json b/docs/generated/packages/next/generators/page.json index 9f0eab986a575..3a4f228766991 100644 --- a/docs/generated/packages/next/generators/page.json +++ b/docs/generated/packages/next/generators/page.json @@ -14,7 +14,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", @@ -89,7 +89,7 @@ "type": "boolean", "description": "Create component at the source root rather than its own directory.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "skipFormat": { "description": "Skip formatting files.", diff --git a/docs/generated/packages/nx/documents/affected-dep-graph.md b/docs/generated/packages/nx/documents/affected-dep-graph.md deleted file mode 100644 index a37a51b606e39..0000000000000 --- a/docs/generated/packages/nx/documents/affected-dep-graph.md +++ /dev/null @@ -1,168 +0,0 @@ ---- -title: 'affected:graph - CLI command' -description: 'Graph dependencies affected by changes' ---- - -# affected:graph - -**Deprecated:** Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19. - -Graph dependencies affected by changes - -## Usage - -```shell -nx affected:graph -``` - -Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpm nx`. - -### Examples - -Open the project graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file: - -```shell - nx affected:graph --files=libs/mylib/src/index.ts -``` - -Open the project graph of the workspace in the browser, and highlight the projects affected by the changes between main and HEAD (e.g., PR): - -```shell - nx affected:graph --base=main --head=HEAD -``` - -Save the project graph of the workspace in a json file, and highlight the projects affected by the changes between main and HEAD (e.g., PR): - -```shell - nx affected:graph --base=main --head=HEAD --file=output.json -``` - -Generate a static website with project graph data in an html file, highlighting the projects affected by the changes between main and HEAD (e.g., PR): - -```shell - nx affected:graph --base=main --head=HEAD --file=output.html -``` - -Open the project graph of the workspace in the browser, and highlight the projects affected by the last commit on main: - -```shell - nx affected:graph --base=main~1 --head=main -``` - -Open the project graph of the workspace in the browser, highlight the projects affected, but exclude project-one and project-two: - -```shell - nx affected:graph --exclude=project-one,project-two -``` - -## Options - -### base - -Type: `string` - -Base of the current branch (usually main) - -### exclude - -Type: `string` - -Exclude certain projects from being processed - -### file - -Type: `string` - -Output file (e.g. --file=output.json or --file=dep-graph.html) - -### files - -Type: `string` - -Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces - -### focus - -Type: `string` - -Use to show the project graph for a particular project and every node that is either an ancestor or a descendant. - -### groupByFolder - -Type: `boolean` - -Group projects by folder in the project graph - -### head - -Type: `string` - -Latest commit of the current branch (usually HEAD) - -### help - -Type: `boolean` - -Show help - -### host - -Type: `string` - -Bind the project graph server to a specific ip address. - -### open - -Type: `boolean` - -Default: `true` - -Open the project graph in the browser. - -### port - -Type: `number` - -Bind the project graph server to a specific port. - -### targets - -Type: `string` - -The target to show tasks for in the task graph - -### uncommitted - -Type: `boolean` - -Uncommitted changes - -### untracked - -Type: `boolean` - -Untracked changes - -### version - -Type: `boolean` - -Show version number - -### view - -Type: `string` - -Choices: [projects, tasks] - -Default: `projects` - -Choose whether to view the projects or task graph - -### watch - -Type: `boolean` - -Default: `true` - -Watch for changes to project graph and update in-browser diff --git a/docs/generated/packages/nx/documents/print-affected.md b/docs/generated/packages/nx/documents/print-affected.md deleted file mode 100644 index 934bcea45fe5b..0000000000000 --- a/docs/generated/packages/nx/documents/print-affected.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -title: 'print-affected - CLI command' -description: 'Prints information about the projects and targets affected by changes' ---- - -# print-affected - -**Deprecated:** Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19. - -Prints information about the projects and targets affected by changes - -## Usage - -```shell -nx print-affected -``` - -Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpm nx`. - -### Examples - -Print information about affected projects and the project graph: - -```shell - nx print-affected -``` - -Print information about the projects affected by the changes between main and HEAD (e.g,. PR): - -```shell - nx print-affected --base=main --head=HEAD -``` - -Prints information about the affected projects and a list of tasks to test them: - -```shell - nx print-affected -t test -``` - -Prints the projects property from the print-affected output: - -```shell - nx print-affected -t build --select=projects -``` - -Prints the tasks.target.project property from the print-affected output: - -```shell - nx print-affected -t build --select=tasks.target.project -``` - -## Options - -### base - -Type: `string` - -Base of the current branch (usually main) - -### configuration - -Type: `string` - -This is the configuration to use when performing tasks on projects - -### exclude - -Type: `string` - -Exclude certain projects from being processed - -### files - -Type: `string` - -Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces - -### head - -Type: `string` - -Latest commit of the current branch (usually HEAD) - -### help - -Type: `boolean` - -Show help - -### select - -Type: `string` - -Select the subset of the returned json document (e.g., --select=projects) - -### targets - -Type: `string` - -Tasks to run for affected projects - -### type - -Type: `string` - -Choices: [app, lib] - -Select the type of projects to be returned (e.g., --type=app) - -### uncommitted - -Type: `boolean` - -Uncommitted changes - -### untracked - -Type: `boolean` - -Untracked changes - -### version - -Type: `boolean` - -Show version number diff --git a/docs/generated/packages/plugin/generators/executor.json b/docs/generated/packages/plugin/generators/executor.json index 326befb2d2082..1234117c3b9c7 100644 --- a/docs/generated/packages/plugin/generators/executor.json +++ b/docs/generated/packages/plugin/generators/executor.json @@ -60,7 +60,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "skipFormat": { "type": "boolean", diff --git a/docs/generated/packages/plugin/generators/generator.json b/docs/generated/packages/plugin/generators/generator.json index acb0f6e9322f3..d9e48c8ef099d 100644 --- a/docs/generated/packages/plugin/generators/generator.json +++ b/docs/generated/packages/plugin/generators/generator.json @@ -49,7 +49,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "skipFormat": { "type": "boolean", diff --git a/docs/generated/packages/plugin/generators/migration.json b/docs/generated/packages/plugin/generators/migration.json index 748604daa4d04..04ad52fc1dfa7 100644 --- a/docs/generated/packages/plugin/generators/migration.json +++ b/docs/generated/packages/plugin/generators/migration.json @@ -42,7 +42,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "packageJsonUpdates": { "type": "boolean", diff --git a/docs/generated/packages/react-native/generators/component.json b/docs/generated/packages/react-native/generators/component.json index 46c67785ff344..0dc7f9ffd2d4c 100644 --- a/docs/generated/packages/react-native/generators/component.json +++ b/docs/generated/packages/react-native/generators/component.json @@ -24,7 +24,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/docs/generated/packages/react/generators/component.json b/docs/generated/packages/react/generators/component.json index 7b8aafb0c85c6..1a9f1459216e8 100644 --- a/docs/generated/packages/react/generators/component.json +++ b/docs/generated/packages/react/generators/component.json @@ -14,7 +14,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/docs/generated/packages/react/generators/hook.json b/docs/generated/packages/react/generators/hook.json index ef84c39c7671a..eda02dc565e4c 100644 --- a/docs/generated/packages/react/generators/hook.json +++ b/docs/generated/packages/react/generators/hook.json @@ -20,7 +20,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", @@ -54,7 +54,7 @@ "type": "boolean", "description": "Create hook at the source root rather than its own directory.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "export": { "type": "boolean", diff --git a/docs/generated/packages/react/generators/redux.json b/docs/generated/packages/react/generators/redux.json index c62324fef9cde..484fb6c688bb5 100644 --- a/docs/generated/packages/react/generators/redux.json +++ b/docs/generated/packages/react/generators/redux.json @@ -20,7 +20,7 @@ "description": "The name of the project to add the slice to. If it is an application, then the store configuration will be updated too.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "directory": { "type": "string", diff --git a/docs/generated/packages/react/generators/storybook-configuration.json b/docs/generated/packages/react/generators/storybook-configuration.json index 11b46bf2bfe7d..5c0a68cc5e45f 100644 --- a/docs/generated/packages/react/generators/storybook-configuration.json +++ b/docs/generated/packages/react/generators/storybook-configuration.json @@ -29,7 +29,7 @@ "configureCypress": { "type": "boolean", "description": "Run the cypress-configure generator.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "generateStories": { "type": "boolean", @@ -41,7 +41,7 @@ "generateCypressSpecs": { "type": "boolean", "description": "Automatically generate test files in the Cypress E2E app generated by the `cypress-configure` generator.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "configureStaticServe": { "type": "boolean", @@ -53,7 +53,7 @@ "cypressDirectory": { "type": "string", "description": "A directory where the Cypress project will be placed. Placed at the root by default.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "js": { "type": "boolean", diff --git a/docs/generated/packages/remix/generators/action.json b/docs/generated/packages/remix/generators/action.json index 06c1215499870..c3d56c5a64648 100644 --- a/docs/generated/packages/remix/generators/action.json +++ b/docs/generated/packages/remix/generators/action.json @@ -22,7 +22,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"], diff --git a/docs/generated/packages/remix/generators/error-boundary.json b/docs/generated/packages/remix/generators/error-boundary.json index b5834694ecfca..da101f7b559fa 100644 --- a/docs/generated/packages/remix/generators/error-boundary.json +++ b/docs/generated/packages/remix/generators/error-boundary.json @@ -27,7 +27,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." }, "skipFormat": { "type": "boolean", diff --git a/docs/generated/packages/remix/generators/loader.json b/docs/generated/packages/remix/generators/loader.json index b6a366ab1164a..c3cac9d81e56e 100644 --- a/docs/generated/packages/remix/generators/loader.json +++ b/docs/generated/packages/remix/generators/loader.json @@ -22,7 +22,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"], diff --git a/docs/generated/packages/remix/generators/meta.json b/docs/generated/packages/remix/generators/meta.json index 85399646bdf24..579e434950a44 100644 --- a/docs/generated/packages/remix/generators/meta.json +++ b/docs/generated/packages/remix/generators/meta.json @@ -22,7 +22,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"], diff --git a/docs/generated/packages/remix/generators/resource-route.json b/docs/generated/packages/remix/generators/resource-route.json index f57b7f1d0a0ff..ec8be4829df27 100644 --- a/docs/generated/packages/remix/generators/resource-route.json +++ b/docs/generated/packages/remix/generators/resource-route.json @@ -29,7 +29,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." }, "action": { "type": "boolean", diff --git a/docs/generated/packages/remix/generators/route.json b/docs/generated/packages/remix/generators/route.json index e9bc0ee09d160..6feff8416fe7e 100644 --- a/docs/generated/packages/remix/generators/route.json +++ b/docs/generated/packages/remix/generators/route.json @@ -29,7 +29,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." }, "style": { "type": "string", diff --git a/docs/generated/packages/remix/generators/style.json b/docs/generated/packages/remix/generators/style.json index d298b13073d4e..c4cee8c712ce5 100644 --- a/docs/generated/packages/remix/generators/style.json +++ b/docs/generated/packages/remix/generators/style.json @@ -29,7 +29,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"], diff --git a/docs/generated/packages/storybook/generators/configuration.json b/docs/generated/packages/storybook/generators/configuration.json index 76d288d7512af..5d7e8d18c6a48 100644 --- a/docs/generated/packages/storybook/generators/configuration.json +++ b/docs/generated/packages/storybook/generators/configuration.json @@ -28,12 +28,12 @@ "configureCypress": { "type": "boolean", "description": "Run the cypress-configure generator.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "cypressDirectory": { "type": "string", "description": "A directory where the Cypress project will be placed. Added at root by default.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "linter": { "description": "The tool to use for running lint checks.", diff --git a/docs/generated/packages/vue/generators/component.json b/docs/generated/packages/vue/generators/component.json index 1103adece43a1..0373ecd9c95fa 100644 --- a/docs/generated/packages/vue/generators/component.json +++ b/docs/generated/packages/vue/generators/component.json @@ -20,7 +20,7 @@ "description": "The name of the project.", "alias": "p", "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", @@ -55,7 +55,7 @@ "type": "boolean", "description": "Create component at the source root rather than its own directory.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "export": { "type": "boolean", @@ -69,14 +69,14 @@ "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false, - "x-deprecated": "Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "routing": { "type": "boolean", diff --git a/docs/generated/packages/webpack/executors/webpack.json b/docs/generated/packages/webpack/executors/webpack.json index a97c0c07e857c..08bf0d706f1c7 100644 --- a/docs/generated/packages/webpack/executors/webpack.json +++ b/docs/generated/packages/webpack/executors/webpack.json @@ -311,7 +311,7 @@ "type": "boolean", "description": "Do not apply Nx webpack plugins automatically. Plugins need to be applied in the project's webpack.config.js file (e.g. withNx, withReact, etc.).", "default": true, - "x-deprecated": "Automatic configuration of Webpack is deprecated in favor of an explicit 'webpack.config.js' file. This option will be removed in Nx 19. See https://nx.dev/recipes/webpack/webpack-config-setup." + "x-deprecated": "Automatic configuration of Webpack is deprecated in favor of an explicit 'webpack.config.js' file. This option will be removed in Nx 20. See https://nx.dev/recipes/webpack/webpack-config-setup." }, "standardWebpackConfigFunction": { "type": "boolean", diff --git a/docs/map.json b/docs/map.json index dc28d214b33b8..e91b0b1c18223 100644 --- a/docs/map.json +++ b/docs/map.json @@ -1272,7 +1272,6 @@ } ] }, - { "name": "Troubleshooting", "id": "troubleshooting", @@ -1314,6 +1313,16 @@ "id": "deprecated", "description": "Functionality that has been superseded in the current version of Nx. Listed here for those running older versions.", "itemList": [ + { + "name": "affected:graph", + "id": "affected-graph", + "file": "shared/deprecated/affected-graph" + }, + { + "name": "print-affected", + "id": "print-affected", + "file": "shared/deprecated/print-affected" + }, { "name": "workspace.json", "id": "workspace-json", @@ -1988,16 +1997,6 @@ "id": "affected", "file": "generated/cli/affected" }, - { - "name": "affected:graph", - "id": "affected-dep-graph", - "file": "generated/cli/affected-graph" - }, - { - "name": "print-affected", - "id": "print-affected", - "file": "generated/cli/print-affected" - }, { "name": "format:check", "id": "format-check", diff --git a/docs/generated/cli/affected-graph.md b/docs/shared/deprecated/affected-graph.md similarity index 82% rename from docs/generated/cli/affected-graph.md rename to docs/shared/deprecated/affected-graph.md index a37a51b606e39..4ca3b91c9b5c2 100644 --- a/docs/generated/cli/affected-graph.md +++ b/docs/shared/deprecated/affected-graph.md @@ -5,7 +5,8 @@ description: 'Graph dependencies affected by changes' # affected:graph -**Deprecated:** Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19. +**Deprecated:** Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. +The `affected:graph` command was removed in Nx 19. Graph dependencies affected by changes @@ -19,25 +20,29 @@ Install `nx` globally to invoke the command directly using `nx`, or use `npx nx` ### Examples -Open the project graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file: +Open the project graph of the workspace in the browser, and highlight the projects affected by changing the index.ts +file: ```shell nx affected:graph --files=libs/mylib/src/index.ts ``` -Open the project graph of the workspace in the browser, and highlight the projects affected by the changes between main and HEAD (e.g., PR): +Open the project graph of the workspace in the browser, and highlight the projects affected by the changes between main +and HEAD (e.g., PR): ```shell nx affected:graph --base=main --head=HEAD ``` -Save the project graph of the workspace in a json file, and highlight the projects affected by the changes between main and HEAD (e.g., PR): +Save the project graph of the workspace in a json file, and highlight the projects affected by the changes between main +and HEAD (e.g., PR): ```shell nx affected:graph --base=main --head=HEAD --file=output.json ``` -Generate a static website with project graph data in an html file, highlighting the projects affected by the changes between main and HEAD (e.g., PR): +Generate a static website with project graph data in an html file, highlighting the projects affected by the changes +between main and HEAD (e.g., PR): ```shell nx affected:graph --base=main --head=HEAD --file=output.html @@ -49,7 +54,8 @@ Open the project graph of the workspace in the browser, and highlight the projec nx affected:graph --base=main~1 --head=main ``` -Open the project graph of the workspace in the browser, highlight the projects affected, but exclude project-one and project-two: +Open the project graph of the workspace in the browser, highlight the projects affected, but exclude project-one and +project-two: ```shell nx affected:graph --exclude=project-one,project-two @@ -79,7 +85,8 @@ Output file (e.g. --file=output.json or --file=dep-graph.html) Type: `string` -Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces +Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by +commas or spaces ### focus diff --git a/docs/shared/deprecated/as-provided-vs-derived.md b/docs/shared/deprecated/as-provided-vs-derived.md index fc75dbe1fbb62..4b85bcd853bce 100644 --- a/docs/shared/deprecated/as-provided-vs-derived.md +++ b/docs/shared/deprecated/as-provided-vs-derived.md @@ -1,6 +1,6 @@ # As Provided vs. Derived Generator Path Options -Nx is moving toward a more transparent and predictable way of determining where code will be generated when you run a generator. The new behavior is to take generator options _as provided_ and place the generated code in the exact folder that you specify. Nx will only use the new behavior in Nx version 19. The directory can be specified with a `--directory` flag or use a fully specified path (i.e. `libs/shared/my-lib/src/my-component`). The `--directory` flag will be calculated relative to where you run the command. +Nx is moving toward a more transparent and predictable way of determining where code will be generated when you run a generator. The new behavior is to take generator options _as provided_ and place the generated code in the exact folder that you specify. Nx will only use the new behavior in Nx version 20. The directory can be specified with a `--directory` flag or use a fully specified path (i.e. `libs/shared/my-lib/src/my-component`). The `--directory` flag will be calculated relative to where you run the command. In the past, Nx had lots of logic to try and _derive_ the best place to put code for you. This approach worked for some people, but there were always people that wanted to generate their code in a slightly different location. Accounting for these variations lead to either (1) people in repos with a different structure not being able to use these generators or (2) Nx introducing lots of flags to allow people to tweak where code was generated (flags like `--project`, `--flat`, `--pascalCaseFiles`, `--pascalCaseDirectory`, `--fileName`). It also caused some confusion when code was not generated in the expected location or frustration when the user did not know how to get Nx to derive the right thing. @@ -19,7 +19,7 @@ You can use [Nx Console](/getting-started/editor-setup) for an intuitive experie ## Prompting -To mitigate the impact of this change of direction, Nx will prompt you when running most generators until Nx 19. We know changing these habits may take time so this prompt allows you to choose the previous behavior. +To mitigate the impact of this change of direction, Nx will prompt you when running most generators until Nx 20. We know changing these habits may take time so this prompt allows you to choose the previous behavior. ```{% command="nx g lib my-lib --directory=shared/my-lib" path="~/myorg" %} ✔ Which generator would you like to use? · @nx/node:library @@ -44,7 +44,7 @@ Your intent is your intent. However, the commands you write and run are based on ## Project Generators -As of Nx 16.8.0, generating a project will prompt you to choose how Nx will calculate where the project should be located. For now, you can choose between `as-provided` and `derived` but `as-provided` will be the only option in Nx 19. The CLI flag to choose between the two algorithms for project generators is `--projectNameAndRootFormat`. +As of Nx 16.8.0, generating a project will prompt you to choose how Nx will calculate where the project should be located. For now, you can choose between `as-provided` and `derived` but `as-provided` will be the only option in Nx 20. The CLI flag to choose between the two algorithms for project generators is `--projectNameAndRootFormat`. ### Generate Paths and Names `as-provided` @@ -83,7 +83,7 @@ If you accidentally generate a project in the wrong folder, use the [move genera ## Code Generators -As of Nx 17, code generators such as `component`, `service`, and others will prompt you to choose whether or not Nx will derive the location based on your options or not. In Nx 19, Nx will take the generator options as provided. The following flags are deprecated and will be removed in Nx 19: `--project`, `--flat`, `--pascalCaseFiles`, `--pascalCaseDirectory`, `--fileName`. The CLI flag to choose between the two algorithms for code generators is `--nameAndDirectoryFormat`. +As of Nx 17, code generators such as `component`, `service`, and others will prompt you to choose whether or not Nx will derive the location based on your options or not. In Nx 20, Nx will take the generator options as provided. The following flags are deprecated and will be removed in Nx 20: `--project`, `--flat`, `--pascalCaseFiles`, `--pascalCaseDirectory`, `--fileName`. The CLI flag to choose between the two algorithms for code generators is `--nameAndDirectoryFormat`. ### Generate Paths and Names `as-provided` @@ -100,7 +100,7 @@ If the directory specified is not inside a project, an error will be thrown. ### Use the Old `derived` Paths and Names -Choosing `derived` makes Nx behave the way it did before version 17. Nx will use the deprecated flags (`--project`, `--flat`, `--pascalCaseFiles`, `--pascalCaseDirectory`, `--fileName`) to calculate where to generate the code. This behavior will not be available in Nx 19. +Choosing `derived` makes Nx behave the way it did before version 17. Nx will use the deprecated flags (`--project`, `--flat`, `--pascalCaseFiles`, `--pascalCaseDirectory`, `--fileName`) to calculate where to generate the code. This behavior will not be available in Nx 20. This makes generators behave in the following way: diff --git a/docs/generated/cli/print-affected.md b/docs/shared/deprecated/print-affected.md similarity index 90% rename from docs/generated/cli/print-affected.md rename to docs/shared/deprecated/print-affected.md index 934bcea45fe5b..59e9224eeceff 100644 --- a/docs/generated/cli/print-affected.md +++ b/docs/shared/deprecated/print-affected.md @@ -5,7 +5,8 @@ description: 'Prints information about the projects and targets affected by chan # print-affected -**Deprecated:** Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19. +**Deprecated:** Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on +which best suits your use case. The `print-affected` command was removed in Nx 19. Prints information about the projects and targets affected by changes @@ -73,7 +74,8 @@ Exclude certain projects from being processed Type: `string` -Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces +Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by +commas or spaces ### head diff --git a/docs/shared/deprecated/v1-nx-plugin-api.md b/docs/shared/deprecated/v1-nx-plugin-api.md index 32c4eea5d4a37..676b40cfae2b2 100644 --- a/docs/shared/deprecated/v1-nx-plugin-api.md +++ b/docs/shared/deprecated/v1-nx-plugin-api.md @@ -1,7 +1,7 @@ # Extending the Project Graph of Nx (v1 API) {% callout type="caution" title="Experimental" %} -This API has been superceded by the [v2 API](/extending-nx/recipes/project-graph-plugins) and will be removed in Nx 19. If targeting Nx version 16.7 or higher, please use the v2 API instead. +This API has been superceded by the [v2 API](/extending-nx/recipes/project-graph-plugins) and will be removed in Nx 20. If targeting Nx version 16.7 or higher, please use the v2 API instead. {% /callout %} The v1 plugin API for modifying the project graph was split into two parts: diff --git a/docs/shared/reference/sitemap.md b/docs/shared/reference/sitemap.md index 15f1fd4efa6ae..141f04f8e8973 100644 --- a/docs/shared/reference/sitemap.md +++ b/docs/shared/reference/sitemap.md @@ -207,6 +207,8 @@ - [Unknown Local Cache Error](/troubleshooting/unknown-local-cache) - [Profiling Build Performance](/troubleshooting/performance-profiling) - [Deprecated](/deprecated) + - [affected:graph](/deprecated/affected-graph) + - [print-affected](/deprecated/print-affected) - [workspace.json](/deprecated/workspace-json) - [As Provided vs. Derived](/deprecated/as-provided-vs-derived) - [Workspace Generators](/deprecated/workspace-generators) @@ -530,8 +532,6 @@ - [graph](/nx-api/nx/documents/dep-graph) - [run-many](/nx-api/nx/documents/run-many) - [affected](/nx-api/nx/documents/affected) - - [affected:graph](/nx-api/nx/documents/affected-dep-graph) - - [print-affected](/nx-api/nx/documents/print-affected) - [format:check](/nx-api/nx/documents/format-check) - [format:write](/nx-api/nx/documents/format-write) - [migrate](/nx-api/nx/documents/migrate) diff --git a/e2e/nx/src/affected-graph.test.ts b/e2e/nx/src/affected-graph.test.ts index 40742c30b1b97..4343cbc1564a5 100644 --- a/e2e/nx/src/affected-graph.test.ts +++ b/e2e/nx/src/affected-graph.test.ts @@ -1,6 +1,5 @@ import type { NxJsonConfiguration } from '@nx/devkit'; import { - getPackageManagerCommand, isNotWindows, newProject, readFile, @@ -204,17 +203,17 @@ describe('Nx Affected and Graph Tests', () => { // TODO: investigate why affected gives different results on windows if (isNotWindows()) { runCLI(`generate @nx/web:app ${myapp}`); - expect(runCLI('print-affected --select projects')).toContain(myapp); + expect(runCLI('show projects --affected')).toContain(myapp); runCommand(`git add . && git commit -am "add ${myapp}"`); runCLI(`generate @nx/web:app ${myapp2}`); - let output = runCLI('print-affected --select projects'); + let output = runCLI('show projects --affected'); expect(output).not.toContain(myapp); expect(output).toContain(myapp2); runCommand(`git add . && git commit -am "add ${myapp2}"`); runCLI(`generate @nx/js:lib ${mylib}`); - output = runCLI('print-affected --select projects'); + output = runCLI('show projects --affected'); expect(output).not.toContain(myapp); expect(output).not.toContain(myapp2); expect(output).toContain(mylib); @@ -230,7 +229,7 @@ describe('Nx Affected and Graph Tests', () => { data.tags = ['tag']; return JSON.stringify(data, null, 2); }); - const output = runCLI('print-affected --select projects'); + const output = runCLI('show projects --affected'); expect(output).toContain(myapp); expect(output).not.toContain(myapp2); expect(output).not.toContain(mylib); @@ -241,7 +240,7 @@ describe('Nx Affected and Graph Tests', () => { generateAll(); const root = `libs/${mylib}`; removeFile(root); - const output = runCLI('print-affected --select projects'); + const output = runCLI('show projects --affected'); expect(output).toContain(myapp); expect(output).toContain(myapp2); expect(output).not.toContain(mylib); @@ -258,7 +257,7 @@ describe('Nx Affected and Graph Tests', () => { runCommand('git commit -m "setup test"'); updateFile(`libs/${mylib}/index.html`, ''); - const output = runCLI('print-affected --select projects'); + const output = runCLI('show projects --affected'); expect(output).toContain(myapp); expect(output).not.toContain(myapp2); @@ -283,14 +282,12 @@ describe('Nx Affected and Graph Tests', () => { ); removeFile(`apps/${myapp}/src/index.html`); - const affectedProjects = runCLI( - 'print-affected --uncommitted --select projects' - ) - .replace( - /.*nx print-affected --uncommitted --select projects( --verbose)?\n/, - '' - ) - .split(', '); + const affectedProjects = runCLI('show projects --affected --uncommitted'); + // .replace( + // /.*nx print-affected --uncommitted --select projects( --verbose)?\n/, + // '' + // ) + // .split(', '); expect(affectedProjects).toContain(myapp); expect(affectedProjects).toContain(myapp2); @@ -406,19 +403,6 @@ describe('Nx Affected and Graph Tests', () => { [myapp3]: [], }) ); - - runCLI( - `affected:graph --files="libs/${mylib}/src/index.ts" --file="project-graph.json"` - ); - - expect(() => checkFilesExist('project-graph.json')).not.toThrow(); - - const jsonFileContents2 = readJson('project-graph.json'); - - expect(jsonFileContents2.criticalPath).toContain(myapp); - expect(jsonFileContents2.criticalPath).toContain(myapp2); - expect(jsonFileContents2.criticalPath).toContain(mylib); - expect(jsonFileContents2.criticalPath).not.toContain(mylib2); }, 1000000); if (isNotWindows()) { @@ -538,7 +522,7 @@ describe('Nx Affected and Graph Tests', () => { }); }); -describe('Print-affected', () => { +describe('show projects --affected', () => { let proj: string; beforeAll(() => (proj = newProject())); @@ -583,65 +567,34 @@ describe('Print-affected', () => { ` ); - const resWithoutTarget = JSON.parse( - ( - await runCLIAsync( - `print-affected --files=apps/${myapp}/src/app/app.element.spec.ts`, - { - silent: true, - } - ) - ).stdout + const { stdout: resWithoutTarget } = await runCLIAsync( + `show projects --affected --files=apps/${myapp}/src/app/app.element.spec.ts` ); - expect(resWithoutTarget.tasks).toEqual([]); - compareTwoArrays(resWithoutTarget.projects, [`${myapp}-e2e`, myapp]); + compareTwoArrays(resWithoutTarget.split('\n').filter(Boolean), [ + `${myapp}-e2e`, + myapp, + ]); const resWithTarget = JSON.parse( ( await runCLIAsync( - `print-affected --files=apps/${myapp}/src/app/app.element.spec.ts --target=test`, + `affected -t test --files=apps/${myapp}/src/app/app.element.spec.ts --graph stdout`, { silent: true } ) ).stdout.trim() ); - const { runNx } = getPackageManagerCommand(); - expect(resWithTarget.tasks[0]).toMatchObject({ + expect(resWithTarget.tasks.tasks[`${myapp}:test`]).toMatchObject({ id: `${myapp}:test`, overrides: {}, target: { project: myapp, target: 'test', }, - command: `${runNx} run ${myapp}:test`, outputs: [`coverage/apps/${myapp}`], }); - compareTwoArrays(resWithTarget.projects, [myapp]); - - const resWithTargetWithSelect1 = ( - await runCLIAsync( - `print-affected --files=apps/${myapp}/src/app/app.element.spec.ts --target=test --select=projects`, - { silent: true } - ) - ).stdout.trim(); - compareTwoSerializedArrays(resWithTargetWithSelect1, myapp); - - const resWithTargetWithSelect2 = ( - await runCLIAsync( - `print-affected --files=apps/${myapp}/src/app/app.element.spec.ts --target=test --select="tasks.target.project"`, - { silent: true } - ) - ).stdout.trim(); - compareTwoSerializedArrays(resWithTargetWithSelect2, myapp); }, 120000); - function compareTwoSerializedArrays(a: string, b: string) { - compareTwoArrays( - a.split(',').map((_) => _.trim()), - b.split(',').map((_) => _.trim()) - ); - } - function compareTwoArrays(a: string[], b: string[]) { expect(a.sort((x, y) => x.localeCompare(y))).toEqual( b.sort((x, y) => x.localeCompare(y)) diff --git a/nx-dev/nx-dev/redirect-rules.js b/nx-dev/nx-dev/redirect-rules.js index 6b5866feadd4e..537729ad11792 100644 --- a/nx-dev/nx-dev/redirect-rules.js +++ b/nx-dev/nx-dev/redirect-rules.js @@ -329,10 +329,6 @@ const cliUrls = { '/cli/dep-graph': '/nx/dep-graph', '/cli/run-many': '/nx/run-many', '/cli/affected': '/nx/affected', - '/cli/affected-dep-graph': '/nx/affected-dep-graph', - '/cli/affected-apps': '/packages/nx/documents/print-affected', - '/cli/affected-libs': '/packages/nx/documents/print-affected', - '/cli/print-affected': '/packages/nx/documents/print-affected', '/cli/format-check': '/nx/format-check', '/cli/format-write': '/nx/format-write', '/cli/migrate': '/nx/migrate', @@ -649,14 +645,6 @@ const packagesDocuments = { '/nx/dep-graph': '/packages/nx/documents/dep-graph', '/nx/run-many': '/packages/nx/documents/run-many', '/nx/affected': '/packages/nx/documents/affected', - '/nx/affected-dep-graph': '/packages/nx/documents/affected-dep-graph', - '/nx/affected-apps': '/packages/nx/documents/print-affected', - '/nx/affected-libs': '/packages/nx/documents/print-affected', - '/nx/print-affected': '/packages/nx/documents/print-affected', - '/packages/nx/documents/affected-apps': - '/packages/nx/documents/print-affected', - '/packages/nx/documents/affected-libs': - '/packages/nx/documents/print-affected', '/nx/format-check': '/packages/nx/documents/format-check', '/nx/format-write': '/packages/nx/documents/format-write', '/nx/migrate': '/packages/nx/documents/migrate', @@ -1043,6 +1031,19 @@ const troubleshootingOutOfRecipes = { * Removed deprecated URLs */ const removedDeprecatedUrls = { + '/nx-api/nx/documents/affected-dep-graph': '/deprecated/affected-graph', // nx affected:graph was removed in Nx 19 + '/cli/affected-dep-graph': '/deprecated/affected-graph', + '/nx/affected-dep-graph': '/deprecated/affected-graph', + '/nx-api/nx/documents/print-affected': '/deprecated/print-affected', // nx affected:graph was removed in Nx 19 + '/cli/affected-apps': '/deprecated/print-affected', + '/cli/affected-libs': '/deprecated/print-affected', + '/cli/print-affected': '/deprecated/print-affected', + '/packages/nx/documents/print-affected': '/deprecated/print-affected', + '/nx/affected-apps': '/deprecated/print-affected', + '/nx/affected-libs': '/deprecated/print-affected', + '/nx/print-affected': '/deprecated/print-affected', + '/packages/nx/documents/affected-apps': '/deprecated/print-affected', + '/packages/nx/documents/affected-libs': '/deprecated/print-affected', '/deprecated/default-collection': '/features/generate-code', // 46 views: has not worked since Nx 17 and has very little views '/deprecated/workspace-lint': '/nx-api/nx/documents/report', // 168 views: workspace-lint hasn't worked since Nx 15 and users should use `nx report` to check versions and other info '/deprecated/storybook/angular-storybook-targets': diff --git a/packages/angular/src/builders/dev-server/schema.json b/packages/angular/src/builders/dev-server/schema.json index a7244b7bd4ebd..46e95ea3f5e29 100644 --- a/packages/angular/src/builders/dev-server/schema.json +++ b/packages/angular/src/builders/dev-server/schema.json @@ -17,7 +17,7 @@ "type": "string", "description": "A browser builder target to serve in the format of `project:target[:configuration]`. Ignored if `buildTarget` is set.", "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$", - "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20." }, "buildTarget": { "type": "string", diff --git a/packages/angular/src/builders/webpack-browser/schema.d.ts b/packages/angular/src/builders/webpack-browser/schema.d.ts index 19056df3abe50..ba23348130758 100644 --- a/packages/angular/src/builders/webpack-browser/schema.d.ts +++ b/packages/angular/src/builders/webpack-browser/schema.d.ts @@ -7,7 +7,7 @@ export type BrowserBuilderSchema = Schema & { indexHtmlTransformer?: string; buildLibsFromSource?: boolean; /** - * @deprecated Use `indexHtmlTransformer` instead. It will be removed in Nx 19. + * @deprecated Use `indexHtmlTransformer` instead. It will be removed in Nx 20. */ indexFileTransformer?: string; }; diff --git a/packages/angular/src/executors/module-federation-dev-server/schema.json b/packages/angular/src/executors/module-federation-dev-server/schema.json index faffff4561d30..664abff3e91d9 100644 --- a/packages/angular/src/executors/module-federation-dev-server/schema.json +++ b/packages/angular/src/executors/module-federation-dev-server/schema.json @@ -15,7 +15,7 @@ "type": "string", "description": "A browser builder target to serve in the format of `project:target[:configuration]`.", "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$", - "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20." }, "buildTarget": { "type": "string", diff --git a/packages/angular/src/generators/component/schema.d.ts b/packages/angular/src/generators/component/schema.d.ts index 41caeb1dc2996..26935dcc756bd 100644 --- a/packages/angular/src/generators/component/schema.d.ts +++ b/packages/angular/src/generators/component/schema.d.ts @@ -22,15 +22,15 @@ export interface Schema { skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v20. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/angular/src/generators/component/schema.json b/packages/angular/src/generators/component/schema.json index 113b30663163d..fbe61651b792a 100644 --- a/packages/angular/src/generators/component/schema.json +++ b/packages/angular/src/generators/component/schema.json @@ -34,7 +34,7 @@ "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "prefix": { "type": "string", @@ -98,7 +98,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "skipImport": { "type": "boolean", diff --git a/packages/angular/src/generators/directive/schema.d.ts b/packages/angular/src/generators/directive/schema.d.ts index 09459e008245e..b21a436c060b9 100644 --- a/packages/angular/src/generators/directive/schema.d.ts +++ b/packages/angular/src/generators/directive/schema.d.ts @@ -13,15 +13,15 @@ export interface Schema { export?: boolean; skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v20. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/angular/src/generators/directive/schema.json b/packages/angular/src/generators/directive/schema.json index c9c6b78079822..29b04a9dfea7f 100644 --- a/packages/angular/src/generators/directive/schema.json +++ b/packages/angular/src/generators/directive/schema.json @@ -34,7 +34,7 @@ "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "prefix": { "type": "string", @@ -74,7 +74,7 @@ "type": "boolean", "description": "When true (the default), creates the new files at the top level of the current project.", "default": true, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "module": { "type": "string", diff --git a/packages/angular/src/generators/pipe/schema.d.ts b/packages/angular/src/generators/pipe/schema.d.ts index 2194494951974..0080978acd60e 100644 --- a/packages/angular/src/generators/pipe/schema.d.ts +++ b/packages/angular/src/generators/pipe/schema.d.ts @@ -11,15 +11,15 @@ export interface Schema { export?: boolean; skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v20. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/angular/src/generators/pipe/schema.json b/packages/angular/src/generators/pipe/schema.json index 5300c9a361d37..d94a7daff9175 100644 --- a/packages/angular/src/generators/pipe/schema.json +++ b/packages/angular/src/generators/pipe/schema.json @@ -34,13 +34,13 @@ "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "flat": { "type": "boolean", "default": true, "description": "When true (the default) creates files at the top level of the project.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "skipTests": { "type": "boolean", diff --git a/packages/angular/src/generators/scam-directive/schema.d.ts b/packages/angular/src/generators/scam-directive/schema.d.ts index f61c3da69c337..91a6c00e1b927 100644 --- a/packages/angular/src/generators/scam-directive/schema.d.ts +++ b/packages/angular/src/generators/scam-directive/schema.d.ts @@ -11,15 +11,15 @@ export interface Schema { export?: boolean; skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v20. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/angular/src/generators/scam-directive/schema.json b/packages/angular/src/generators/scam-directive/schema.json index 455e3cd97873f..116ed89ea5cd1 100644 --- a/packages/angular/src/generators/scam-directive/schema.json +++ b/packages/angular/src/generators/scam-directive/schema.json @@ -41,7 +41,7 @@ "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "skipTests": { "type": "boolean", @@ -58,7 +58,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": true, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "selector": { "type": "string", diff --git a/packages/angular/src/generators/scam-pipe/schema.d.ts b/packages/angular/src/generators/scam-pipe/schema.d.ts index 31ec4dcfdcdf1..4d7220d5af876 100644 --- a/packages/angular/src/generators/scam-pipe/schema.d.ts +++ b/packages/angular/src/generators/scam-pipe/schema.d.ts @@ -9,15 +9,15 @@ export interface Schema { export?: boolean; skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v20. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/angular/src/generators/scam-pipe/schema.json b/packages/angular/src/generators/scam-pipe/schema.json index 7a0b9f653c0dd..649aaa5b37d0e 100644 --- a/packages/angular/src/generators/scam-pipe/schema.json +++ b/packages/angular/src/generators/scam-pipe/schema.json @@ -41,7 +41,7 @@ "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "skipTests": { "type": "boolean", @@ -58,7 +58,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": true, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "export": { "type": "boolean", diff --git a/packages/angular/src/generators/scam/schema.d.ts b/packages/angular/src/generators/scam/schema.d.ts index a38470cff067a..4a6c023ec35e4 100644 --- a/packages/angular/src/generators/scam/schema.d.ts +++ b/packages/angular/src/generators/scam/schema.d.ts @@ -19,15 +19,15 @@ export interface Schema { export?: boolean; skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v20. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/angular/src/generators/scam/schema.json b/packages/angular/src/generators/scam/schema.json index a669d72a62a23..85838d8f4f83b 100644 --- a/packages/angular/src/generators/scam/schema.json +++ b/packages/angular/src/generators/scam/schema.json @@ -40,7 +40,7 @@ "$source": "projectName" }, "x-dropdown": "projects", - "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." + "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." }, "displayBlock": { "description": "Specifies if the style will contain `:host { display: block; }`.", @@ -94,7 +94,7 @@ "type": "boolean", "description": "Create the new files at the top level of the current project.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "selector": { "type": "string", diff --git a/packages/angular/src/generators/storybook-configuration/schema.json b/packages/angular/src/generators/storybook-configuration/schema.json index 2871ece213f2d..7b2a170b0a6df 100644 --- a/packages/angular/src/generators/storybook-configuration/schema.json +++ b/packages/angular/src/generators/storybook-configuration/schema.json @@ -29,7 +29,7 @@ "configureCypress": { "type": "boolean", "description": "Specifies whether to configure Cypress or not.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "generateStories": { "type": "boolean", @@ -41,7 +41,7 @@ "generateCypressSpecs": { "type": "boolean", "description": "Specifies whether to automatically generate test files in the generated Cypress e2e app.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "configureStaticServe": { "type": "boolean", @@ -53,7 +53,7 @@ "cypressDirectory": { "type": "string", "description": "A directory where the Cypress project will be placed. Placed at the root by default.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "linter": { "description": "The tool to use for running lint checks.", diff --git a/packages/eslint-plugin/src/configs/javascript.ts b/packages/eslint-plugin/src/configs/javascript.ts index 6fa1f1260bf34..d79ac73a712db 100644 --- a/packages/eslint-plugin/src/configs/javascript.ts +++ b/packages/eslint-plugin/src/configs/javascript.ts @@ -55,7 +55,7 @@ export default { * previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint` * changed how configurations are defined. * - * TODO(v20): re-evalute these deviations from @typescript-eslint/recommended in v19 of Nx + * TODO(v20): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx */ 'no-extra-semi': 'off', '@typescript-eslint/no-extra-semi': 'error', diff --git a/packages/eslint-plugin/src/configs/typescript.ts b/packages/eslint-plugin/src/configs/typescript.ts index 870b6910beab1..a6244addbc27e 100644 --- a/packages/eslint-plugin/src/configs/typescript.ts +++ b/packages/eslint-plugin/src/configs/typescript.ts @@ -38,7 +38,7 @@ export default { * previously defined v5 of `@typescript-eslint`. v6 of `@typescript-eslint` * changed how configurations are defined. * - * TODO(v20): re-evalute these deviations from @typescript-eslint/recommended in v19 of Nx + * TODO(v20): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx */ 'no-extra-semi': 'off', '@typescript-eslint/no-extra-semi': 'error', diff --git a/packages/expo/src/executors/ensure-symlink/ensure-symlink.impl.ts b/packages/expo/src/executors/ensure-symlink/ensure-symlink.impl.ts index 737a74f33a850..2f40e5e1ef8f0 100644 --- a/packages/expo/src/executors/ensure-symlink/ensure-symlink.impl.ts +++ b/packages/expo/src/executors/ensure-symlink/ensure-symlink.impl.ts @@ -7,7 +7,7 @@ export interface ExpoEnsureSymlinkOutput { } /** - * TODO (@xiongemi): remove this function in v19. + * TODO (@xiongemi): remove this function in v20. * @deprecated It is no longer needed for react native 73. */ export default async function* ensureSymlinkExecutor( diff --git a/packages/expo/src/generators/component/schema.d.ts b/packages/expo/src/generators/component/schema.d.ts index e3a3408119b2e..a9ff40ecd7a97 100644 --- a/packages/expo/src/generators/component/schema.d.ts +++ b/packages/expo/src/generators/component/schema.d.ts @@ -4,7 +4,7 @@ export interface Schema { name: string; /** - * @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. + * @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. */ project: string; directory?: string; diff --git a/packages/expo/src/generators/component/schema.json b/packages/expo/src/generators/component/schema.json index 59f223e29e3bb..9fc9c608a3f39 100644 --- a/packages/expo/src/generators/component/schema.json +++ b/packages/expo/src/generators/component/schema.json @@ -22,7 +22,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/packages/js/babel.ts b/packages/js/babel.ts index 5924ff8a3a6e7..316d7d8d5a780 100644 --- a/packages/js/babel.ts +++ b/packages/js/babel.ts @@ -41,7 +41,7 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) { const loose = options.classProperties?.loose ?? options.loose ?? true; if (options.classProperties) { logger.warn( - `Use =\`loose\` option instead of \`classProperties.loose\`. The \`classProperties\` option will be removed in Nx 19` + `Use =\`loose\` option instead of \`classProperties.loose\`. The \`classProperties\` option will be removed in Nx 20` ); } diff --git a/packages/nest/src/generators/class/schema.json b/packages/nest/src/generators/class/schema.json index 2a17b1fd15fc9..cebfec933a508 100644 --- a/packages/nest/src/generators/class/schema.json +++ b/packages/nest/src/generators/class/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/controller/schema.json b/packages/nest/src/generators/controller/schema.json index 93163618b3251..cc54cc6db691c 100644 --- a/packages/nest/src/generators/controller/schema.json +++ b/packages/nest/src/generators/controller/schema.json @@ -22,7 +22,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "nameAndDirectoryFormat": { "description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/decorator/schema.json b/packages/nest/src/generators/decorator/schema.json index d682c49936abb..0d02cdedf3ef7 100644 --- a/packages/nest/src/generators/decorator/schema.json +++ b/packages/nest/src/generators/decorator/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -42,7 +42,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/filter/schema.json b/packages/nest/src/generators/filter/schema.json index c53b0a99ffa28..b5b2ff40b92fd 100644 --- a/packages/nest/src/generators/filter/schema.json +++ b/packages/nest/src/generators/filter/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/gateway/schema.json b/packages/nest/src/generators/gateway/schema.json index c098767288420..5b44b438edb5e 100644 --- a/packages/nest/src/generators/gateway/schema.json +++ b/packages/nest/src/generators/gateway/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/guard/schema.json b/packages/nest/src/generators/guard/schema.json index bfdfc9a53139d..82d3991d7d670 100644 --- a/packages/nest/src/generators/guard/schema.json +++ b/packages/nest/src/generators/guard/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/interceptor/schema.json b/packages/nest/src/generators/interceptor/schema.json index 50e52787c05fc..112123fcd7531 100644 --- a/packages/nest/src/generators/interceptor/schema.json +++ b/packages/nest/src/generators/interceptor/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/interface/schema.json b/packages/nest/src/generators/interface/schema.json index fa9ced365826b..ed97845bfc706 100644 --- a/packages/nest/src/generators/interface/schema.json +++ b/packages/nest/src/generators/interface/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -42,7 +42,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true } diff --git a/packages/nest/src/generators/middleware/schema.json b/packages/nest/src/generators/middleware/schema.json index 96bd8293e8885..58b63d0c10df3 100644 --- a/packages/nest/src/generators/middleware/schema.json +++ b/packages/nest/src/generators/middleware/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/module/schema.json b/packages/nest/src/generators/module/schema.json index bb344b275f7ec..2f3d0818b9c73 100644 --- a/packages/nest/src/generators/module/schema.json +++ b/packages/nest/src/generators/module/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -42,7 +42,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/pipe/schema.json b/packages/nest/src/generators/pipe/schema.json index 25ff965bc3660..e3f34be488f67 100644 --- a/packages/nest/src/generators/pipe/schema.json +++ b/packages/nest/src/generators/pipe/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/provider/schema.json b/packages/nest/src/generators/provider/schema.json index 43d2ea8d11f36..b7427c1c4cf94 100644 --- a/packages/nest/src/generators/provider/schema.json +++ b/packages/nest/src/generators/provider/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/resolver/schema.json b/packages/nest/src/generators/resolver/schema.json index 0ad68e4b47a2d..496ca5b1d4a83 100644 --- a/packages/nest/src/generators/resolver/schema.json +++ b/packages/nest/src/generators/resolver/schema.json @@ -22,7 +22,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -43,7 +43,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/resource/schema.json b/packages/nest/src/generators/resource/schema.json index 3d887ae856d8f..d35f8a055e3c9 100644 --- a/packages/nest/src/generators/resource/schema.json +++ b/packages/nest/src/generators/resource/schema.json @@ -22,7 +22,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -43,7 +43,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/service/schema.json b/packages/nest/src/generators/service/schema.json index e49e8ef8bede1..37a2b036b5bbc 100644 --- a/packages/nest/src/generators/service/schema.json +++ b/packages/nest/src/generators/service/schema.json @@ -27,7 +27,7 @@ "$source": "projectName" }, "alias": "p", - "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." + "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." }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", @@ -48,7 +48,7 @@ }, "flat": { "description": "Flag to indicate if a directory is created.", - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/utils/types.ts b/packages/nest/src/generators/utils/types.ts index 95165cb89a1a8..8c4205755e556 100644 --- a/packages/nest/src/generators/utils/types.ts +++ b/packages/nest/src/generators/utils/types.ts @@ -32,11 +32,11 @@ export type NestGeneratorOptions = { nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @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. + * @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. */ project?: string; }; diff --git a/packages/next/src/generators/component/component.ts b/packages/next/src/generators/component/component.ts index 6aa0a1b48aa54..3f059f139cc28 100644 --- a/packages/next/src/generators/component/component.ts +++ b/packages/next/src/generators/component/component.ts @@ -15,7 +15,7 @@ import { determineArtifactNameAndDirectoryOptions } from '@nx/devkit/src/generat interface Schema { name: string; /** - * @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. + * @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. */ project?: string; style: SupportedStyles; diff --git a/packages/next/src/generators/component/schema.json b/packages/next/src/generators/component/schema.json index ee57d51dbf842..6867bee68098a 100644 --- a/packages/next/src/generators/component/schema.json +++ b/packages/next/src/generators/component/schema.json @@ -13,7 +13,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/packages/next/src/generators/page/schema.d.ts b/packages/next/src/generators/page/schema.d.ts index 577a3cb4ae7f6..9bf07570cc069 100644 --- a/packages/next/src/generators/page/schema.d.ts +++ b/packages/next/src/generators/page/schema.d.ts @@ -3,7 +3,7 @@ import { SupportedStyles } from '@nx/react'; export interface Schema { name: string; /** - * @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. + * @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. */ project?: string; style: SupportedStyles; diff --git a/packages/next/src/generators/page/schema.json b/packages/next/src/generators/page/schema.json index 5162011a09160..7d45f77d357d7 100644 --- a/packages/next/src/generators/page/schema.json +++ b/packages/next/src/generators/page/schema.json @@ -13,7 +13,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", @@ -97,7 +97,7 @@ "type": "boolean", "description": "Create component at the source root rather than its own directory.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "skipFormat": { "description": "Skip formatting files.", diff --git a/packages/nx/schemas/nx-schema.json b/packages/nx/schemas/nx-schema.json index 1eb695b29894a..b3a806f1f3490 100644 --- a/packages/nx/schemas/nx-schema.json +++ b/packages/nx/schemas/nx-schema.json @@ -19,7 +19,7 @@ } }, "additionalProperties": false, - "deprecated": "Use `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 19." + "deprecated": "Use `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 20." }, "defaultBase": { "type": "string", diff --git a/packages/nx/src/command-line/affected/affected.ts b/packages/nx/src/command-line/affected/affected.ts index 663a244b6705f..3b24f70a8e130 100644 --- a/packages/nx/src/command-line/affected/affected.ts +++ b/packages/nx/src/command-line/affected/affected.ts @@ -1,7 +1,6 @@ import { calculateFileChanges } from '../../project-graph/file-utils'; import { runCommand } from '../../tasks-runner/run-command'; import { output } from '../../utils/output'; -import { printAffected } from './print-affected'; import { connectToNxCloudIfExplicitlyAsked } from '../connect/connect-to-nx-cloud'; import type { NxArgs } from '../../utils/command-line-utils'; import { @@ -24,7 +23,6 @@ import { findMatchingProjects } from '../../utils/find-matching-projects'; import { generateGraph } from '../graph/graph'; import { allFileData } from '../../utils/all-file-data'; import { NX_PREFIX, logger } from '../../utils/logger'; -import { affectedGraphDeprecationMessage } from './command-object'; export async function affected( command: 'graph' | 'print-affected' | 'affected', @@ -60,32 +58,6 @@ export async function affected( try { switch (command) { - case 'graph': - logger.warn([NX_PREFIX, affectedGraphDeprecationMessage].join(' ')); - const projectNames = projects.map((p) => p.name); - await generateGraph(args as any, projectNames); - break; - - case 'print-affected': - if (nxArgs.targets && nxArgs.targets.length > 0) { - await printAffected( - allProjectsWithTarget(projects, nxArgs), - projectGraph, - { nxJson }, - nxArgs, - overrides - ); - } else { - await printAffected( - projects, - projectGraph, - { nxJson }, - nxArgs, - overrides - ); - } - break; - case 'affected': { const projectsWithTarget = allProjectsWithTarget(projects, nxArgs); if (nxArgs.graph) { diff --git a/packages/nx/src/command-line/affected/command-object.ts b/packages/nx/src/command-line/affected/command-object.ts index 454780c29b071..268a040126f20 100644 --- a/packages/nx/src/command-line/affected/command-object.ts +++ b/packages/nx/src/command-line/affected/command-object.ts @@ -4,7 +4,6 @@ import { withAffectedOptions, withBatch, withConfiguration, - withDepGraphOptions, withOutputStyleOption, withOverrides, withRunOptions, @@ -141,71 +140,3 @@ export const yargsAffectedE2ECommand: CommandModule = { ); }, }; - -export const affectedGraphDeprecationMessage = - 'Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19.'; -/** - * @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 19.' - */ -export const yargsAffectedGraphCommand: CommandModule = { - command: 'affected:graph', - describe: 'Graph dependencies affected by changes', - aliases: ['affected:dep-graph'], - builder: (yargs) => - linkToNxDevAndExamples( - withAffectedOptions(withDepGraphOptions(yargs)), - 'affected:graph' - ), - handler: async (args) => { - return handleErrors( - (args.verbose as boolean) ?? process.env.NX_VERBOSE_LOGGING === 'true', - async () => { - return await ( - await import('./affected') - ).affected('graph', { - ...args, - }); - } - ); - }, - deprecated: affectedGraphDeprecationMessage, -}; - -export const printAffectedDeprecationMessage = - 'Use `nx show projects --affected`, `nx affected --graph -t build` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19.'; -/** - * @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 19.' - */ -export const yargsPrintAffectedCommand: CommandModule = { - command: 'print-affected', - describe: - 'Prints information about the projects and targets affected by changes', - builder: (yargs) => - linkToNxDevAndExamples( - withAffectedOptions(withTargetAndConfigurationOption(yargs, false)), - 'print-affected' - ) - .option('select', { - type: 'string', - describe: - 'Select the subset of the returned json document (e.g., --select=projects)', - }) - .option('type', { - type: 'string', - choices: ['app', 'lib'], - describe: - 'Select the type of projects to be returned (e.g., --type=app)', - }), - handler: async (args) => { - return handleErrors( - (args.verbose as boolean) ?? process.env.NX_VERBOSE_LOGGING === 'true', - async () => { - await ( - await import('./affected') - ).affected('print-affected', withOverrides(args)); - process.exit(0); - } - ); - }, - deprecated: printAffectedDeprecationMessage, -}; diff --git a/packages/nx/src/command-line/affected/print-affected.spec.ts b/packages/nx/src/command-line/affected/print-affected.spec.ts deleted file mode 100644 index 7cd4a5e1ae17f..0000000000000 --- a/packages/nx/src/command-line/affected/print-affected.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { selectPrintAffected } from './print-affected'; - -describe('print-affected', () => { - describe('selectPrintAffected', () => { - const res = { - projects: ['one', 'two'], - tasks: [ - { - target: { - project: 'one', - }, - }, - { - target: { - project: 'two', - }, - }, - ], - }; - - it('should return the result if select is empty', () => { - expect(selectPrintAffected(res, null)).toEqual(res); - }); - - it('should select an array if without nesting', () => { - expect(selectPrintAffected(res, 'projects')).toEqual('one, two'); - }); - - it('should throw when invalid key', () => { - expect(() => selectPrintAffected(res, 'projects.invalid')).toThrowError( - `Cannot select 'projects.invalid' in the results of print-affected.` - ); - }); - - it('should select an array if with nesting', () => { - expect(selectPrintAffected(res, 'tasks.target.project')).toEqual( - 'one, two' - ); - }); - }); -}); diff --git a/packages/nx/src/command-line/affected/print-affected.ts b/packages/nx/src/command-line/affected/print-affected.ts deleted file mode 100644 index a7aababc16d93..0000000000000 --- a/packages/nx/src/command-line/affected/print-affected.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { getCommandAsString } from '../../tasks-runner/utils'; -import * as yargs from 'yargs'; -import type { NxArgs } from '../../utils/command-line-utils'; -import { - ProjectGraph, - ProjectGraphProjectNode, -} from '../../config/project-graph'; -import { - createTaskGraph, - mapTargetDefaultsToDependencies, -} from '../../tasks-runner/create-task-graph'; -import { NxJsonConfiguration } from '../../config/nx-json'; -import { - DaemonBasedTaskHasher, - InProcessTaskHasher, - TaskHasher, -} from '../../hasher/task-hasher'; -import { hashTask } from '../../hasher/hash-task'; -import { getPackageManagerCommand } from '../../utils/package-manager'; -import { printAffectedDeprecationMessage } from './command-object'; -import { logger, NX_PREFIX } from '../../utils/logger'; -import { getTaskSpecificEnv } from '../../tasks-runner/task-env'; -import { getFileMap } from '../../project-graph/build-project-graph'; -import { daemonClient } from '../../daemon/client/client'; - -/** - * @deprecated Use showProjectsHandler, generateGraph, or affected (without the print-affected mode) instead. - */ -export async function printAffected( - affectedProjects: ProjectGraphProjectNode[], - projectGraph: ProjectGraph, - { nxJson }: { nxJson: NxJsonConfiguration }, - nxArgs: NxArgs, - overrides: yargs.Arguments -) { - logger.warn([NX_PREFIX, printAffectedDeprecationMessage].join(' ')); - const projectsForType = affectedProjects.filter((p) => - nxArgs.type ? p.type === nxArgs.type : true - ); - const projectNames = projectsForType.map((p) => p.name); - const tasksJson = - nxArgs.targets && nxArgs.targets.length > 0 - ? await createTasks( - projectsForType, - projectGraph, - nxArgs, - nxJson, - overrides - ) - : []; - const result = { - tasks: tasksJson, - projects: projectNames, - projectGraph: serializeProjectGraph(projectGraph), - }; - if (nxArgs.select) { - console.log(selectPrintAffected(result, nxArgs.select)); - } else { - console.log(JSON.stringify(selectPrintAffected(result, null), null, 2)); - } -} - -async function createTasks( - affectedProjectsWithTargetAndConfig: ProjectGraphProjectNode[], - projectGraph: ProjectGraph, - nxArgs: NxArgs, - nxJson: NxJsonConfiguration, - overrides: yargs.Arguments -) { - const defaultDependencyConfigs = mapTargetDefaultsToDependencies( - nxJson.targetDefaults - ); - const taskGraph = createTaskGraph( - projectGraph, - defaultDependencyConfigs, - affectedProjectsWithTargetAndConfig.map((p) => p.name), - nxArgs.targets, - nxArgs.configuration, - overrides - ); - - let hasher: TaskHasher; - if (daemonClient.enabled()) { - hasher = new DaemonBasedTaskHasher(daemonClient, {}); - } else { - const { fileMap, allWorkspaceFiles, rustReferences } = getFileMap(); - hasher = new InProcessTaskHasher( - fileMap?.projectFileMap, - allWorkspaceFiles, - projectGraph, - nxJson, - rustReferences, - {} - ); - } - - const execCommand = getPackageManagerCommand().exec; - const tasks = Object.values(taskGraph.tasks); - - await Promise.all( - tasks.map((t) => - hashTask( - hasher, - projectGraph, - taskGraph, - t, - // This loads dotenv files for the task - getTaskSpecificEnv(t) - ) - ) - ); - - return tasks.map((task) => ({ - id: task.id, - overrides, - target: task.target, - hash: task.hash, - command: getCommandAsString(execCommand, task), - outputs: task.outputs, - })); -} - -function serializeProjectGraph(projectGraph: ProjectGraph) { - const nodes = Object.values(projectGraph.nodes).map((n) => n.name); - const dependencies = {}; - // we don't need external dependencies' dependencies for print-affected - // having them included makes the output unreadable - Object.keys(projectGraph.dependencies).forEach((key) => { - if (!key.startsWith('npm:')) { - dependencies[key] = projectGraph.dependencies[key]; - } - }); - return { nodes, dependencies }; -} - -export function selectPrintAffected(wholeJson: any, wholeSelect: string) { - if (!wholeSelect) return wholeJson; - return _select(wholeJson, wholeSelect); - - function _select(json: any, select: string) { - if (select.indexOf('.') > -1) { - const [firstKey, ...restKeys] = select.split('.'); - const first = json[firstKey]; - throwIfEmpty(wholeSelect, first); - const rest = restKeys.join('.'); - - if (Array.isArray(first)) { - return first.map((q) => _select(q, rest)).join(', '); - } else { - return _select(first, rest); - } - } else { - const res = json[select]; - throwIfEmpty(wholeSelect, res); - if (Array.isArray(res)) { - return res.join(', '); - } else { - return res; - } - } - } -} - -function throwIfEmpty(select: string, value: any) { - if (value === undefined) { - throw new Error( - `Cannot select '${select}' in the results of print-affected.` - ); - } -} diff --git a/packages/nx/src/command-line/graph/graph.ts b/packages/nx/src/command-line/graph/graph.ts index fa440bb05dda8..78762c27340ac 100644 --- a/packages/nx/src/command-line/graph/graph.ts +++ b/packages/nx/src/command-line/graph/graph.ts @@ -463,21 +463,9 @@ export async function generateGraph( args.projects, args.targets ); - json.affectedProjects = affectedProjects; - json.criticalPath = affectedProjects; writeJsonFile(fullFilePath, json); - output.warn({ - title: 'JSON output contains deprecated fields:', - bodyLines: [ - '- affectedProjects', - '- criticalPath', - '', - 'These fields will be removed in Nx 19. If you need to see which projects were affected, use `nx show projects --affected`.', - ], - }); - output.success({ title: `JSON output created in ${fileFolderPath}`, bodyLines: [fullFilePath], @@ -1135,16 +1123,6 @@ interface GraphJsonResponse { tasks?: TaskGraph; taskPlans?: Record; graph: ProjectGraph; - - /** - * @deprecated To see affected projects, use `nx show projects --affected`. This will be removed in Nx 19. - */ - affectedProjects?: string[]; - - /** - * @deprecated To see affected projects, use `nx show projects --affected`. This will be removed in Nx 19. - */ - criticalPath?: string[]; } async function createJsonOutput( diff --git a/packages/nx/src/command-line/nx-commands.ts b/packages/nx/src/command-line/nx-commands.ts index 2fec55f99b9ed..7219a1b37fc82 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -5,10 +5,8 @@ import { yargsAffectedBuildCommand, yargsAffectedCommand, yargsAffectedE2ECommand, - yargsAffectedGraphCommand, yargsAffectedLintCommand, yargsAffectedTestCommand, - yargsPrintAffectedCommand, } from './affected/command-object'; import { yargsConnectCommand, @@ -61,7 +59,6 @@ export const commandsObject = yargs .command(yargsAffectedBuildCommand) .command(yargsAffectedCommand) .command(yargsAffectedE2ECommand) - .command(yargsAffectedGraphCommand) .command(yargsAffectedLintCommand) .command(yargsAffectedTestCommand) .command(yargsConnectCommand) @@ -76,7 +73,6 @@ export const commandsObject = yargs .command(yargsListCommand) .command(yargsMigrateCommand) .command(yargsNewCommand) - .command(yargsPrintAffectedCommand) .command(yargsReleaseCommand) .command(yargsRepairCommand) .command(yargsReportCommand) diff --git a/packages/nx/src/config/project-graph.ts b/packages/nx/src/config/project-graph.ts index 6c9772a7a3988..58a8ad42388c9 100644 --- a/packages/nx/src/config/project-graph.ts +++ b/packages/nx/src/config/project-graph.ts @@ -145,7 +145,7 @@ export interface ProjectGraphDependency { /** * Additional information to be used to process a project graph - * @deprecated The {@link ProjectGraphProcessor} is deprecated. This will be removed in Nx 19. + * @deprecated The {@link ProjectGraphProcessor} is deprecated. This will be removed in Nx 20. */ export interface ProjectGraphProcessorContext { /** @@ -171,7 +171,7 @@ export interface ProjectGraphProcessorContext { /** * A function that produces an updated ProjectGraph - * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 19. + * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 20. */ export type ProjectGraphProcessor = ( currentGraph: ProjectGraph, diff --git a/packages/nx/src/native/tasks/hashers/hash_workspace_files.rs b/packages/nx/src/native/tasks/hashers/hash_workspace_files.rs index b572b34cbeb31..f32ef0b727ac0 100644 --- a/packages/nx/src/native/tasks/hashers/hash_workspace_files.rs +++ b/packages/nx/src/native/tasks/hashers/hash_workspace_files.rs @@ -16,7 +16,7 @@ pub fn hash_workspace_files( let Some(file_set) = file_set else { warn!( - "{workspace_file_set} does not start with {}. This will throw an error in Nx 19.", + "{workspace_file_set} does not start with {}. This will throw an error in Nx 20.", "{workspaceRoot}/" ); return Ok(hash(b"")); diff --git a/packages/nx/src/plugins/js/project-graph/build-dependencies/strip-source-code.ts b/packages/nx/src/plugins/js/project-graph/build-dependencies/strip-source-code.ts index 128e477362ec4..2aed1642f2c6d 100644 --- a/packages/nx/src/plugins/js/project-graph/build-dependencies/strip-source-code.ts +++ b/packages/nx/src/plugins/js/project-graph/build-dependencies/strip-source-code.ts @@ -3,7 +3,7 @@ import type { Scanner } from 'typescript'; let SyntaxKind: typeof import('typescript').SyntaxKind; /** - * @deprecated This is deprecated and will be removed in Nx 19. + * @deprecated This is deprecated and will be removed in Nx 20. * This was not intended to be exposed. * Please talk to us if you need this. */ diff --git a/packages/nx/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.ts b/packages/nx/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.ts index ed119689796c9..44333eaa0a329 100644 --- a/packages/nx/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.ts +++ b/packages/nx/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.ts @@ -14,7 +14,7 @@ import { stripSourceCode } from './strip-source-code'; let tsModule: typeof import('typescript'); /** - * @deprecated This is deprecated and will be removed in Nx 19. + * @deprecated This is deprecated and will be removed in Nx 20. * This was not intended to be exposed. * Please talk to us if you need this. */ diff --git a/packages/nx/src/project-graph/project-graph-builder.ts b/packages/nx/src/project-graph/project-graph-builder.ts index d136c4f1064ba..3c19dc95069e6 100644 --- a/packages/nx/src/project-graph/project-graph-builder.ts +++ b/packages/nx/src/project-graph/project-graph-builder.ts @@ -20,7 +20,7 @@ import { getFileMap } from './build-project-graph'; /** * A class which builds up a project graph - * @deprecated The {@link ProjectGraphProcessor} has been deprecated. Use a {@link CreateNodes} and/or a {@link CreateDependencies} instead. This will be removed in Nx 19. + * @deprecated The {@link ProjectGraphProcessor} has been deprecated. Use a {@link CreateNodes} and/or a {@link CreateDependencies} instead. This will be removed in Nx 20. */ export class ProjectGraphBuilder { // TODO(FrozenPandaz): make this private diff --git a/packages/nx/src/tasks-runner/init-tasks-runner.ts b/packages/nx/src/tasks-runner/init-tasks-runner.ts index db849980beb62..6fcdddfabc0e8 100644 --- a/packages/nx/src/tasks-runner/init-tasks-runner.ts +++ b/packages/nx/src/tasks-runner/init-tasks-runner.ts @@ -25,7 +25,7 @@ export async function initTasksRunner(nxArgs: NxArgs) { }): Promise<{ status: number; taskGraph: TaskGraph }> => { performance.mark('code-loading:end'); - // TODO: This polyfills the outputs if someone doesn't pass a task with outputs. Remove this in Nx 19 + // TODO: This polyfills the outputs if someone doesn't pass a task with outputs. Remove this in Nx 20 opts.tasks.forEach((t) => { if (!t.outputs) { t.outputs = getOutputs(projectGraph.nodes, t.target, t.overrides); diff --git a/packages/nx/src/tasks-runner/utils.ts b/packages/nx/src/tasks-runner/utils.ts index ad3a0b802b9f5..20ff14cf76167 100644 --- a/packages/nx/src/tasks-runner/utils.ts +++ b/packages/nx/src/tasks-runner/utils.ts @@ -174,7 +174,7 @@ export function transformLegacyOutputs( } /** - * @deprecated Pass the target and overrides instead. This will be removed in v19. + * @deprecated Pass the target and overrides instead. This will be removed in v20. */ export function getOutputsForTargetAndConfiguration( task: Task, diff --git a/packages/nx/src/utils/nx-plugin.deprecated.ts b/packages/nx/src/utils/nx-plugin.deprecated.ts index 4a030fc2c3bf6..c04a9ff770486 100644 --- a/packages/nx/src/utils/nx-plugin.deprecated.ts +++ b/packages/nx/src/utils/nx-plugin.deprecated.ts @@ -7,31 +7,31 @@ import * as PackageJsonWorkspacesPlugin from '../plugins/package-json-workspaces import { NxPluginV2 } from '../project-graph/plugins'; /** - * @deprecated Add targets to the projects in a {@link CreateNodes} function instead. This will be removed in Nx 19 + * @deprecated Add targets to the projects in a {@link CreateNodes} function instead. This will be removed in Nx 20 */ export type ProjectTargetConfigurator = ( file: string ) => Record; /** - * @deprecated Use {@link NxPluginV2} instead. This will be removed in Nx 19 + * @deprecated Use {@link NxPluginV2} instead. This will be removed in Nx 20 */ export type NxPluginV1 = { name: string; /** - * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 19 + * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 20 */ processProjectGraph?: ProjectGraphProcessor; /** - * @deprecated Add targets to the projects inside of {@link CreateNodes} instead. This will be removed in Nx 19 + * @deprecated Add targets to the projects inside of {@link CreateNodes} instead. This will be removed in Nx 20 */ registerProjectTargets?: ProjectTargetConfigurator; /** * A glob pattern to search for non-standard project files. * @example: ["*.csproj", "pom.xml"] - * @deprecated Use {@link CreateNodes} instead. This will be removed in Nx 19 + * @deprecated Use {@link CreateNodes} instead. This will be removed in Nx 20 */ projectFilePatterns?: string[]; }; diff --git a/packages/plugin/src/generators/executor/schema.d.ts b/packages/plugin/src/generators/executor/schema.d.ts index 51af74fe4f9ba..fe7bc095bc7c7 100644 --- a/packages/plugin/src/generators/executor/schema.d.ts +++ b/packages/plugin/src/generators/executor/schema.d.ts @@ -11,7 +11,7 @@ export interface Schema { skipFormat?: boolean; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/plugin/src/generators/executor/schema.json b/packages/plugin/src/generators/executor/schema.json index 4a598499af9e6..28429d71eadb6 100644 --- a/packages/plugin/src/generators/executor/schema.json +++ b/packages/plugin/src/generators/executor/schema.json @@ -62,7 +62,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "skipFormat": { "type": "boolean", diff --git a/packages/plugin/src/generators/generator/schema.d.ts b/packages/plugin/src/generators/generator/schema.d.ts index fc88a1906baf7..b9f9b6b39e60d 100644 --- a/packages/plugin/src/generators/generator/schema.d.ts +++ b/packages/plugin/src/generators/generator/schema.d.ts @@ -10,7 +10,7 @@ export interface Schema { nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/plugin/src/generators/generator/schema.json b/packages/plugin/src/generators/generator/schema.json index a93943342b4c3..ed8dbc2512308 100644 --- a/packages/plugin/src/generators/generator/schema.json +++ b/packages/plugin/src/generators/generator/schema.json @@ -51,7 +51,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "skipFormat": { "type": "boolean", diff --git a/packages/plugin/src/generators/migration/schema.d.ts b/packages/plugin/src/generators/migration/schema.d.ts index 60935922879f6..a762bb8df209e 100644 --- a/packages/plugin/src/generators/migration/schema.d.ts +++ b/packages/plugin/src/generators/migration/schema.d.ts @@ -10,7 +10,7 @@ export interface Schema { nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/plugin/src/generators/migration/schema.json b/packages/plugin/src/generators/migration/schema.json index 683d8e6a79951..b9ffb19605272 100644 --- a/packages/plugin/src/generators/migration/schema.json +++ b/packages/plugin/src/generators/migration/schema.json @@ -44,7 +44,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "packageJsonUpdates": { "type": "boolean", diff --git a/packages/react-native/src/executors/ensure-symlink/ensure-symlink.impl.ts b/packages/react-native/src/executors/ensure-symlink/ensure-symlink.impl.ts index c7661f0f427b3..1cfb3f168c6b7 100644 --- a/packages/react-native/src/executors/ensure-symlink/ensure-symlink.impl.ts +++ b/packages/react-native/src/executors/ensure-symlink/ensure-symlink.impl.ts @@ -6,7 +6,7 @@ export interface ReactNativeEnsureSymlinkOutput { } /** - * TODO (@xiongemi): remove this function in v19. + * TODO (@xiongemi): remove this function in v20. * @deprecated It is no longer needed for react native 73. */ export default async function* ensureSymlinkExecutor( diff --git a/packages/react-native/src/executors/storybook/storybook.impl.ts b/packages/react-native/src/executors/storybook/storybook.impl.ts index 808ae5bbe3279..1c9a7191c53fd 100644 --- a/packages/react-native/src/executors/storybook/storybook.impl.ts +++ b/packages/react-native/src/executors/storybook/storybook.impl.ts @@ -13,7 +13,7 @@ import { writeFileSync } from 'fs-extra'; import { PackageJson } from 'nx/src/utils/package-json'; /** - * TODO (@xiongemi): remove this function in v19. + * TODO (@xiongemi): remove this function in v20. * @deprecated Going to use the default react storybook target. Use @nx/react:storybook executor instead. */ export default async function* reactNativeStorybookExecutor( diff --git a/packages/react-native/src/generators/component/schema.d.ts b/packages/react-native/src/generators/component/schema.d.ts index 6fc205f6b1c33..adcf74d99c9ed 100644 --- a/packages/react-native/src/generators/component/schema.d.ts +++ b/packages/react-native/src/generators/component/schema.d.ts @@ -4,7 +4,7 @@ export interface Schema { name: string; /** - * @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. + * @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. */ project: string; skipTests?: boolean; diff --git a/packages/react-native/src/generators/component/schema.json b/packages/react-native/src/generators/component/schema.json index 6688d980d7ce3..fec5a8a2f679a 100644 --- a/packages/react-native/src/generators/component/schema.json +++ b/packages/react-native/src/generators/component/schema.json @@ -23,7 +23,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/packages/react/src/generators/component/schema.d.ts b/packages/react/src/generators/component/schema.d.ts index f13493cef3107..7eca2bbbf47a4 100644 --- a/packages/react/src/generators/component/schema.d.ts +++ b/packages/react/src/generators/component/schema.d.ts @@ -3,7 +3,7 @@ import { SupportedStyles } from '../../../typings/style'; export interface Schema { name: string; /** - * @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. + * @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. */ project?: string; style: SupportedStyles; diff --git a/packages/react/src/generators/component/schema.json b/packages/react/src/generators/component/schema.json index 11ef1ba471fc5..b507e4266123a 100644 --- a/packages/react/src/generators/component/schema.json +++ b/packages/react/src/generators/component/schema.json @@ -13,7 +13,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", diff --git a/packages/react/src/generators/hook/schema.d.ts b/packages/react/src/generators/hook/schema.d.ts index c857d6ae742ed..6be37c192f9ea 100644 --- a/packages/react/src/generators/hook/schema.d.ts +++ b/packages/react/src/generators/hook/schema.d.ts @@ -1,7 +1,7 @@ export interface Schema { name: string; /** - * @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. + * @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. */ project: string; skipTests?: boolean; diff --git a/packages/react/src/generators/hook/schema.json b/packages/react/src/generators/hook/schema.json index a0c5901aeb49c..f982642b92e29 100644 --- a/packages/react/src/generators/hook/schema.json +++ b/packages/react/src/generators/hook/schema.json @@ -19,7 +19,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", @@ -56,7 +56,7 @@ "type": "boolean", "description": "Create hook at the source root rather than its own directory.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "export": { "type": "boolean", diff --git a/packages/react/src/generators/redux/schema.d.ts b/packages/react/src/generators/redux/schema.d.ts index 7852968726bc5..fc8b149dd3adc 100644 --- a/packages/react/src/generators/redux/schema.d.ts +++ b/packages/react/src/generators/redux/schema.d.ts @@ -1,7 +1,7 @@ export interface Schema { name: string; /** - * @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. + * @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. */ project?: string; directory?: string; diff --git a/packages/react/src/generators/redux/schema.json b/packages/react/src/generators/redux/schema.json index aec773e83231f..bad7e07e9ad43 100644 --- a/packages/react/src/generators/redux/schema.json +++ b/packages/react/src/generators/redux/schema.json @@ -22,7 +22,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "directory": { "type": "string", diff --git a/packages/react/src/generators/storybook-configuration/schema.json b/packages/react/src/generators/storybook-configuration/schema.json index cb6695fc3f1bd..e9c333117bb90 100644 --- a/packages/react/src/generators/storybook-configuration/schema.json +++ b/packages/react/src/generators/storybook-configuration/schema.json @@ -29,7 +29,7 @@ "configureCypress": { "type": "boolean", "description": "Run the cypress-configure generator.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "generateStories": { "type": "boolean", @@ -41,7 +41,7 @@ "generateCypressSpecs": { "type": "boolean", "description": "Automatically generate test files in the Cypress E2E app generated by the `cypress-configure` generator.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "configureStaticServe": { "type": "boolean", @@ -53,7 +53,7 @@ "cypressDirectory": { "type": "string", "description": "A directory where the Cypress project will be placed. Placed at the root by default.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "js": { "type": "boolean", diff --git a/packages/remix/src/generators/action/schema.d.ts b/packages/remix/src/generators/action/schema.d.ts index 592d42f708d5e..509cf02cc9668 100644 --- a/packages/remix/src/generators/action/schema.d.ts +++ b/packages/remix/src/generators/action/schema.d.ts @@ -4,7 +4,7 @@ export interface LoaderSchema { path: string; nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/action/schema.json b/packages/remix/src/generators/action/schema.json index 30efa8c45ec33..80c9e406c82f0 100644 --- a/packages/remix/src/generators/action/schema.json +++ b/packages/remix/src/generators/action/schema.json @@ -22,7 +22,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"] diff --git a/packages/remix/src/generators/error-boundary/schema.d.ts b/packages/remix/src/generators/error-boundary/schema.d.ts index e9516147a5655..32b7b6215c2b2 100644 --- a/packages/remix/src/generators/error-boundary/schema.d.ts +++ b/packages/remix/src/generators/error-boundary/schema.d.ts @@ -5,7 +5,7 @@ export interface ErrorBoundarySchema { skipFormat?: false; nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/error-boundary/schema.json b/packages/remix/src/generators/error-boundary/schema.json index c0049aeae341a..ef6485c74e9b9 100644 --- a/packages/remix/src/generators/error-boundary/schema.json +++ b/packages/remix/src/generators/error-boundary/schema.json @@ -24,7 +24,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." }, "skipFormat": { "type": "boolean", diff --git a/packages/remix/src/generators/loader/schema.d.ts b/packages/remix/src/generators/loader/schema.d.ts index 592d42f708d5e..509cf02cc9668 100644 --- a/packages/remix/src/generators/loader/schema.d.ts +++ b/packages/remix/src/generators/loader/schema.d.ts @@ -4,7 +4,7 @@ export interface LoaderSchema { path: string; nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/loader/schema.json b/packages/remix/src/generators/loader/schema.json index 90de328524eaa..8f9ad6e85a500 100644 --- a/packages/remix/src/generators/loader/schema.json +++ b/packages/remix/src/generators/loader/schema.json @@ -22,7 +22,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"] diff --git a/packages/remix/src/generators/meta/schema.d.ts b/packages/remix/src/generators/meta/schema.d.ts index f1d60f0ec7562..264ceadcfa382 100644 --- a/packages/remix/src/generators/meta/schema.d.ts +++ b/packages/remix/src/generators/meta/schema.d.ts @@ -4,7 +4,7 @@ export interface MetaSchema { path: string; nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/meta/schema.json b/packages/remix/src/generators/meta/schema.json index 9e6b3e3916b25..d60855dbd20dc 100644 --- a/packages/remix/src/generators/meta/schema.json +++ b/packages/remix/src/generators/meta/schema.json @@ -22,7 +22,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"] diff --git a/packages/remix/src/generators/resource-route/schema.d.ts b/packages/remix/src/generators/resource-route/schema.d.ts index c26cc7ffa8be2..33fa9cfae7bfb 100644 --- a/packages/remix/src/generators/resource-route/schema.d.ts +++ b/packages/remix/src/generators/resource-route/schema.d.ts @@ -7,7 +7,7 @@ export interface RemixRouteSchema { loader: boolean; skipChecks: boolean; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/resource-route/schema.json b/packages/remix/src/generators/resource-route/schema.json index a9435772c1278..562035e307e2b 100644 --- a/packages/remix/src/generators/resource-route/schema.json +++ b/packages/remix/src/generators/resource-route/schema.json @@ -29,7 +29,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." }, "action": { "type": "boolean", diff --git a/packages/remix/src/generators/route/schema.d.ts b/packages/remix/src/generators/route/schema.d.ts index ca8b81dce2892..32f634a68fd5c 100644 --- a/packages/remix/src/generators/route/schema.d.ts +++ b/packages/remix/src/generators/route/schema.d.ts @@ -9,7 +9,7 @@ export interface RemixRouteSchema { loader: boolean; skipChecks: boolean; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/route/schema.json b/packages/remix/src/generators/route/schema.json index 4c967eb7db48b..6af2b5728ab79 100644 --- a/packages/remix/src/generators/route/schema.json +++ b/packages/remix/src/generators/route/schema.json @@ -29,7 +29,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." }, "style": { "type": "string", diff --git a/packages/remix/src/generators/style/schema.d.ts b/packages/remix/src/generators/style/schema.d.ts index 940f8686e14c4..af8f9d8f29c0d 100644 --- a/packages/remix/src/generators/style/schema.d.ts +++ b/packages/remix/src/generators/style/schema.d.ts @@ -4,7 +4,7 @@ export interface RemixStyleSchema { path: string; nameAndDirectoryFormat?: NameAndDirectoryFormat; /** - * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/remix/src/generators/style/schema.json b/packages/remix/src/generators/style/schema.json index fe449dce40247..3d5e1fbe4a8c5 100644 --- a/packages/remix/src/generators/style/schema.json +++ b/packages/remix/src/generators/style/schema.json @@ -29,7 +29,7 @@ "type": "string", "description": "The name of the project.", "pattern": "^[a-zA-Z].*$", - "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v19." + "x-deprecated": "Provide the `path` option instead and use the `as-provided` format. The project will be determined from the path provided. It will be removed in Nx v20." } }, "required": ["path"] diff --git a/packages/storybook/src/generators/configuration/schema.d.ts b/packages/storybook/src/generators/configuration/schema.d.ts index cc42b504cdcfa..36ee68eb2ec41 100644 --- a/packages/storybook/src/generators/configuration/schema.d.ts +++ b/packages/storybook/src/generators/configuration/schema.d.ts @@ -12,11 +12,11 @@ export interface StorybookConfigureSchema { configureStaticServe?: boolean; skipFormat?: boolean; /** - * @deprecated Use interactionTests instead. This option will be removed in v19. + * @deprecated Use interactionTests instead. This option will be removed in v20. */ configureCypress?: boolean; /** - * @deprecated Use interactionTests instead. This option will be removed in v19. + * @deprecated Use interactionTests instead. This option will be removed in v20. */ cypressDirectory?: string; addPlugin?: boolean; diff --git a/packages/storybook/src/generators/configuration/schema.json b/packages/storybook/src/generators/configuration/schema.json index d0a25baca8296..f6e8ade281405 100644 --- a/packages/storybook/src/generators/configuration/schema.json +++ b/packages/storybook/src/generators/configuration/schema.json @@ -28,12 +28,12 @@ "configureCypress": { "type": "boolean", "description": "Run the cypress-configure generator.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "cypressDirectory": { "type": "string", "description": "A directory where the Cypress project will be placed. Added at root by default.", - "x-deprecated": "Use interactionTests instead. This option will be removed in v19." + "x-deprecated": "Use interactionTests instead. This option will be removed in v20." }, "linter": { "description": "The tool to use for running lint checks.", diff --git a/packages/vue/src/generators/component/schema.d.ts b/packages/vue/src/generators/component/schema.d.ts index ff584f0f62018..15849da1ac0f3 100644 --- a/packages/vue/src/generators/component/schema.d.ts +++ b/packages/vue/src/generators/component/schema.d.ts @@ -11,19 +11,19 @@ export interface ComponentGeneratorSchema { nameAndDirectoryFormat?: 'as-provided' | 'derived'; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ flat?: boolean; /** - * @deprecated Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v20. */ pascalCaseDirectory?: boolean; /** - * @deprecated Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v19. + * @deprecated Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v20. */ pascalCaseFiles?: boolean; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20. */ project?: string; } diff --git a/packages/vue/src/generators/component/schema.json b/packages/vue/src/generators/component/schema.json index 371978a2f5e53..7b7cfc33de36d 100644 --- a/packages/vue/src/generators/component/schema.json +++ b/packages/vue/src/generators/component/schema.json @@ -19,7 +19,7 @@ "$default": { "$source": "projectName" }, - "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." + "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." }, "name": { "type": "string", @@ -57,7 +57,7 @@ "type": "boolean", "description": "Create component at the source root rather than its own directory.", "default": false, - "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "export": { "type": "boolean", @@ -71,14 +71,14 @@ "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false, - "x-deprecated": "Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." + "x-deprecated": "Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v20." }, "routing": { "type": "boolean", diff --git a/packages/webpack/src/executors/webpack/schema.json b/packages/webpack/src/executors/webpack/schema.json index dc575323f90b2..ec76624b4f2fd 100644 --- a/packages/webpack/src/executors/webpack/schema.json +++ b/packages/webpack/src/executors/webpack/schema.json @@ -235,7 +235,7 @@ "type": "boolean", "description": "Do not apply Nx webpack plugins automatically. Plugins need to be applied in the project's webpack.config.js file (e.g. withNx, withReact, etc.).", "default": true, - "x-deprecated": "Automatic configuration of Webpack is deprecated in favor of an explicit 'webpack.config.js' file. This option will be removed in Nx 19. See https://nx.dev/recipes/webpack/webpack-config-setup." + "x-deprecated": "Automatic configuration of Webpack is deprecated in favor of an explicit 'webpack.config.js' file. This option will be removed in Nx 20. See https://nx.dev/recipes/webpack/webpack-config-setup." }, "standardWebpackConfigFunction": { "type": "boolean", diff --git a/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts b/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts index 76b64b95f22ec..f1ed830c4cb05 100644 --- a/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts +++ b/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts @@ -4,7 +4,7 @@ import * as stylusLoader from 'stylus-loader'; // TOOD(v19): Remove this file and stylus support. export default function (source: string): string { logger.warn( - `Stylus is support is deprecated and will be removed in Nx 19. We recommend that you migrate to Sass by renaming \`.styl\` files to \`.scss\` and ensuring that the content is valid Sass.` + `Stylus is support is deprecated and will be removed in Nx 20. We recommend that you migrate to Sass by renaming \`.styl\` files to \`.scss\` and ensuring that the content is valid Sass.` ); return stylusLoader.call(this, source); } diff --git a/packages/workspace/src/generators/move/lib/normalize-schema.ts b/packages/workspace/src/generators/move/lib/normalize-schema.ts index 18c20749edf4a..c40c8eff03809 100644 --- a/packages/workspace/src/generators/move/lib/normalize-schema.ts +++ b/packages/workspace/src/generators/move/lib/normalize-schema.ts @@ -240,7 +240,7 @@ function logDeprecationMessage( logger.warn( stripIndents` - In Nx 19, the project name and destination will no longer be derived. + In Nx 20, the project name and destination will no longer be derived. Please provide the exact new project name and destination in the future. Example: nx g ${callingGenerator} --projectName ${options.projectName} --destination ${formats['derived'].destination}` + (options.projectName !== formats['derived'].newProjectName