diff --git a/docs/generated/cli/affected-graph.md b/docs/generated/cli/affected-graph.md index d2990a0d66..2a2dd1afc6 100644 --- a/docs/generated/cli/affected-graph.md +++ b/docs/generated/cli/affected-graph.md @@ -5,7 +5,7 @@ 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 18. +**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 diff --git a/docs/generated/cli/print-affected.md b/docs/generated/cli/print-affected.md index d92c41ec16..934bcea45f 100644 --- a/docs/generated/cli/print-affected.md +++ b/docs/generated/cli/print-affected.md @@ -5,7 +5,7 @@ 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 18. +**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 diff --git a/docs/generated/devkit/NxPluginV1.md b/docs/generated/devkit/NxPluginV1.md index 4f51627012..f760023c45 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 18 +Use [NxPluginV2](../../devkit/documents/NxPluginV2) instead. This will be removed in Nx 19 #### 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 18 | -| `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 18 | -| `registerProjectTargets?` | [`ProjectTargetConfigurator`](../../devkit/documents/ProjectTargetConfigurator) | **`Deprecated`** Add targets to the projects inside of [CreateNodes](../../devkit/documents/CreateNodes) instead. This will be removed in Nx 18 | +| `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 | diff --git a/docs/generated/devkit/ProjectGraphBuilder.md b/docs/generated/devkit/ProjectGraphBuilder.md index 057ec256de..617952c4fb 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 18. +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. ## Table of contents diff --git a/docs/generated/devkit/ProjectGraphProcessorContext.md b/docs/generated/devkit/ProjectGraphProcessorContext.md index e4473720eb..243963c48a 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 18. +The ProjectGraphProcessor is deprecated. This will be removed in Nx 19. ## Table of contents diff --git a/docs/generated/devkit/ProjectTargetConfigurator.md b/docs/generated/devkit/ProjectTargetConfigurator.md index 93e94c14b0..434422163b 100644 --- a/docs/generated/devkit/ProjectTargetConfigurator.md +++ b/docs/generated/devkit/ProjectTargetConfigurator.md @@ -18,4 +18,4 @@ **`Deprecated`** -Add targets to the projects in a [CreateNodes](../../devkit/documents/CreateNodes) function instead. This will be removed in Nx 18 +Add targets to the projects in a [CreateNodes](../../devkit/documents/CreateNodes) function instead. This will be removed in Nx 19 diff --git a/docs/generated/devkit/TaskHasher.md b/docs/generated/devkit/TaskHasher.md index fe4d494152..3d928bc1b2 100644 --- a/docs/generated/devkit/TaskHasher.md +++ b/docs/generated/devkit/TaskHasher.md @@ -25,7 +25,7 @@ **`Deprecated`** -use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 +use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 ▸ **hashTask**(`task`, `taskGraph`): `Promise`\<[`Hash`](../../devkit/documents/Hash)\> @@ -42,7 +42,7 @@ use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. T **`Deprecated`** -use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 +use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 ▸ **hashTask**(`task`, `taskGraph`, `env`): `Promise`\<[`Hash`](../../devkit/documents/Hash)\> @@ -76,7 +76,7 @@ use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. T **`Deprecated`** -use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 +use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 ▸ **hashTasks**(`tasks`, `taskGraph`): `Promise`\<[`Hash`](../../devkit/documents/Hash)[]\> @@ -93,7 +93,7 @@ use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instea **`Deprecated`** -use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 +use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 ▸ **hashTasks**(`tasks`, `taskGraph`, `env`): `Promise`\<[`Hash`](../../devkit/documents/Hash)[]\> diff --git a/docs/generated/devkit/Workspaces.md b/docs/generated/devkit/Workspaces.md index 2a439ef03b..949d923514 100644 --- a/docs/generated/devkit/Workspaces.md +++ b/docs/generated/devkit/Workspaces.md @@ -2,7 +2,7 @@ **`Deprecated`** -This will be removed in v18. Use [readProjectsConfigurationFromProjectGraph](../../devkit/documents/readProjectsConfigurationFromProjectGraph) instead. +This will be removed in v19. Use [readProjectsConfigurationFromProjectGraph](../../devkit/documents/readProjectsConfigurationFromProjectGraph) instead. ## Table of contents diff --git a/docs/generated/devkit/getOutputsForTargetAndConfiguration.md b/docs/generated/devkit/getOutputsForTargetAndConfiguration.md index efcd11b9ac..61ff511c26 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 v18. +Pass the target and overrides instead. This will be removed in v19. ▸ **getOutputsForTargetAndConfiguration**(`target`, `overrides`, `node`): `string`[] diff --git a/docs/generated/packages/angular/executors/dev-server.json b/docs/generated/packages/angular/executors/dev-server.json index f3178390d9..416037746a 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 v18." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." }, "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 fd9fabfe5c..14cb2e3ea9 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 v18." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." }, "buildTarget": { "type": "string", diff --git a/docs/generated/packages/angular/generators/component.json b/docs/generated/packages/angular/generators/component.json index 5f492d1644..fd3f9f376d 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "skipImport": { "type": "boolean", diff --git a/docs/generated/packages/angular/generators/directive.json b/docs/generated/packages/angular/generators/directive.json index f28658b10b..234d9330de 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "module": { "type": "string", diff --git a/docs/generated/packages/angular/generators/move.json b/docs/generated/packages/angular/generators/move.json index bbf8679c2e..73c57a3b85 100644 --- a/docs/generated/packages/angular/generators/move.json +++ b/docs/generated/packages/angular/generators/move.json @@ -62,7 +62,7 @@ }, "aliases": ["mv"], "description": "Moves an Angular application or library to another folder within the workspace and updates the project configuration.", - "x-deprecated": "Use the `@nx/workspace:move` generator instead. This generator will be removed in Nx v18.", + "x-deprecated": "Use the `@nx/workspace:move` generator instead. This generator will be removed in Nx v19.", "implementation": "/packages/angular/src/generators/move/move#angularMoveGeneratorInternal.ts", "hidden": false, "path": "/packages/angular/src/generators/move/schema.json", diff --git a/docs/generated/packages/angular/generators/pipe.json b/docs/generated/packages/angular/generators/pipe.json index 09566384fb..2fe55e13a3 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "skipTests": { "type": "boolean", diff --git a/docs/generated/packages/angular/generators/scam-directive.json b/docs/generated/packages/angular/generators/scam-directive.json index 727844c896..2e29de5b39 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "selector": { "type": "string", diff --git a/docs/generated/packages/angular/generators/scam-pipe.json b/docs/generated/packages/angular/generators/scam-pipe.json index 73697564f7..eb01bddbef 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "export": { "type": "boolean", diff --git a/docs/generated/packages/angular/generators/scam.json b/docs/generated/packages/angular/generators/scam.json index addc481433..5e810c9c32 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "selector": { "type": "string", diff --git a/docs/generated/packages/angular/generators/storybook-configuration.json b/docs/generated/packages/angular/generators/storybook-configuration.json index 38f8d46a2f..46b3b0c423 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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 00db257f16..f5579ec90e 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 v18." + "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." }, "name": { "type": "string", @@ -61,7 +61,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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "export": { "type": "boolean", @@ -75,7 +75,7 @@ "description": "Use pascal case component file name (e.g. App.tsx).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "classComponent": { "type": "boolean", diff --git a/docs/generated/packages/nest/generators/class.json b/docs/generated/packages/nest/generators/class.json index 55aaa55412..54794b04e5 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/controller.json b/docs/generated/packages/nest/generators/controller.json index 0725f1f480..2f2de5ae7f 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/decorator.json b/docs/generated/packages/nest/generators/decorator.json index 812c1006cf..2b8a41af54 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/filter.json b/docs/generated/packages/nest/generators/filter.json index 53d74d9697..cd4bb4d3fc 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/gateway.json b/docs/generated/packages/nest/generators/gateway.json index a68a8cb4f3..2bfc26fb70 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/guard.json b/docs/generated/packages/nest/generators/guard.json index 35f5846a43..de1b34351e 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/interceptor.json b/docs/generated/packages/nest/generators/interceptor.json index cce769cb74..7c1283c450 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/interface.json b/docs/generated/packages/nest/generators/interface.json index 35116c901d..77ff955953 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true } diff --git a/docs/generated/packages/nest/generators/middleware.json b/docs/generated/packages/nest/generators/middleware.json index 278d2e7d08..62cd735ec5 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/module.json b/docs/generated/packages/nest/generators/module.json index 4b9bd8de99..058349d487 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/pipe.json b/docs/generated/packages/nest/generators/pipe.json index 08f8953fde..985d377cd9 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/provider.json b/docs/generated/packages/nest/generators/provider.json index 675df6e394..7d7f7e17e9 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/docs/generated/packages/nest/generators/resolver.json b/docs/generated/packages/nest/generators/resolver.json index 72e06519ed..6b534e100f 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/resource.json b/docs/generated/packages/nest/generators/resource.json index 0a93486ffa..c41094f06e 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/nest/generators/service.json b/docs/generated/packages/nest/generators/service.json index 678a03dd17..7a9152fb5c 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/docs/generated/packages/next/generators/component.json b/docs/generated/packages/next/generators/component.json index 6196caef2b..b2a5636b05 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 v18." + "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." }, "name": { "type": "string", @@ -89,21 +89,21 @@ "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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseFiles": { "type": "boolean", "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false, - "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "skipFormat": { "description": "Skip formatting files.", diff --git a/docs/generated/packages/next/generators/cypress-component-configuration.json b/docs/generated/packages/next/generators/cypress-component-configuration.json index d19de24908..5f982889dd 100644 --- a/docs/generated/packages/next/generators/cypress-component-configuration.json +++ b/docs/generated/packages/next/generators/cypress-component-configuration.json @@ -41,7 +41,7 @@ } }, "required": ["project"], - "examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nNext component testing with Nx requires **Cypress version 10.7.0** and up.\n\nYou can migrate with to v10 via the [migrate-to-cypress-11 generator](/packages/cypress/generators/migrate-to-cypress-11).\n\nThis generator is for Cypress based component testing.\n\nIf you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 18.\n{% /callout %}\n\nThis generator is designed to get your Next project up and running with Cypress Component Testing.\n\n```shell\nnx g @nx/next:cypress-component-configuration --project=my-cool-next-project\n```\n\nRunning this generator, adds the required files to the specified project with a preconfigured `cypress.config.ts` designed for Nx workspaces.\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/next/plugins/component-testing';\n\nexport default defineConfig({\n component: nxComponentTestingPreset(__filename),\n});\n```\n\nHere is an example on how to add custom options to the configuration\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/next/plugins/component-testing';\n\nexport default defineConfig({\n component: {\n ...nxComponentTestingPreset(__filename),\n // extra options here\n },\n});\n```\n\n```shell\nnx g @nx/next:cypress-component-project --project=my-cool-next-project\n```\n\n## Auto Generating Tests\n\nYou can optionally use the `--generate-tests` flag to generate a test file for each component in your project.\n\n```shell\nnx g @nx/next:cypress-component-configuration --project=my-cool-next-project --generate-tests\n```\n\n## Running Component Tests\n\nA new `component-test` target will be added to the specified project to run your component tests.\n\n```shell\nnx g component-test my-cool-next-project\n```\n\nHere is an example of the project configuration that is generated.\n\n```json {% fileName=\"project.json\" %}\n{\n \"targets\" {\n \"component-test\": {\n \"executor\": \"@nx/cypress:cypress\",\n \"options\": {\n \"cypressConfig\": \"/cypress.config.ts\",\n \"testingType\": \"component\",\n \"skipServe\": true\n }\n }\n }\n}\n```\n\nNx also supports [Angular component testing](/packages/angular/generators/cypress-component-configuration).\n", + "examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nNext component testing with Nx requires **Cypress version 10.7.0** and up.\n\nYou can migrate with to v10 via the [migrate-to-cypress-11 generator](/packages/cypress/generators/migrate-to-cypress-11).\n\nThis generator is for Cypress based component testing.\n\nIf you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 19.\n{% /callout %}\n\nThis generator is designed to get your Next project up and running with Cypress Component Testing.\n\n```shell\nnx g @nx/next:cypress-component-configuration --project=my-cool-next-project\n```\n\nRunning this generator, adds the required files to the specified project with a preconfigured `cypress.config.ts` designed for Nx workspaces.\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/next/plugins/component-testing';\n\nexport default defineConfig({\n component: nxComponentTestingPreset(__filename),\n});\n```\n\nHere is an example on how to add custom options to the configuration\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/next/plugins/component-testing';\n\nexport default defineConfig({\n component: {\n ...nxComponentTestingPreset(__filename),\n // extra options here\n },\n});\n```\n\n```shell\nnx g @nx/next:cypress-component-project --project=my-cool-next-project\n```\n\n## Auto Generating Tests\n\nYou can optionally use the `--generate-tests` flag to generate a test file for each component in your project.\n\n```shell\nnx g @nx/next:cypress-component-configuration --project=my-cool-next-project --generate-tests\n```\n\n## Running Component Tests\n\nA new `component-test` target will be added to the specified project to run your component tests.\n\n```shell\nnx g component-test my-cool-next-project\n```\n\nHere is an example of the project configuration that is generated.\n\n```json {% fileName=\"project.json\" %}\n{\n \"targets\" {\n \"component-test\": {\n \"executor\": \"@nx/cypress:cypress\",\n \"options\": {\n \"cypressConfig\": \"/cypress.config.ts\",\n \"testingType\": \"component\",\n \"skipServe\": true\n }\n }\n }\n}\n```\n\nNx also supports [Angular component testing](/packages/angular/generators/cypress-component-configuration).\n", "presets": [] }, "description": "cypress-component-configuration generator", diff --git a/docs/generated/packages/next/generators/page.json b/docs/generated/packages/next/generators/page.json index 7c7b237978..9f0eab986a 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 index d2990a0d66..2a2dd1afc6 100644 --- a/docs/generated/packages/nx/documents/affected-dep-graph.md +++ b/docs/generated/packages/nx/documents/affected-dep-graph.md @@ -5,7 +5,7 @@ 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 18. +**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 diff --git a/docs/generated/packages/nx/documents/print-affected.md b/docs/generated/packages/nx/documents/print-affected.md index d92c41ec16..934bcea45f 100644 --- a/docs/generated/packages/nx/documents/print-affected.md +++ b/docs/generated/packages/nx/documents/print-affected.md @@ -5,7 +5,7 @@ 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 18. +**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 diff --git a/docs/generated/packages/plugin/executors/e2e.json b/docs/generated/packages/plugin/executors/e2e.json index 0a47565130..e6c2f25dc2 100644 --- a/docs/generated/packages/plugin/executors/e2e.json +++ b/docs/generated/packages/plugin/executors/e2e.json @@ -201,7 +201,7 @@ "presets": [] }, "description": "Creates and runs the E2E tests for an Nx Plugin.", - "x-deprecated": "@nx/plugin:e2e is deprecated and will be removed in Nx 18. Use @nx/jest:jest instead.", + "x-deprecated": "@nx/plugin:e2e is deprecated and will be removed in Nx v19. Use @nx/jest:jest instead.", "aliases": [], "hidden": false, "path": "/packages/plugin/src/executors/e2e/schema.json", diff --git a/docs/generated/packages/plugin/generators/executor.json b/docs/generated/packages/plugin/generators/executor.json index 4007e5c8a1..326befb2d2 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 v18." + "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." }, "skipFormat": { "type": "boolean", diff --git a/docs/generated/packages/plugin/generators/generator.json b/docs/generated/packages/plugin/generators/generator.json index 3364d681ca..acb0f6e932 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 v18." + "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." }, "skipFormat": { "type": "boolean", diff --git a/docs/generated/packages/plugin/generators/migration.json b/docs/generated/packages/plugin/generators/migration.json index 8c43c74629..748604daa4 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 v18." + "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." }, "packageJsonUpdates": { "type": "boolean", diff --git a/docs/generated/packages/react-native/generators/component.json b/docs/generated/packages/react-native/generators/component.json index 13d0fdd3aa..46c67785ff 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 v18." + "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." }, "name": { "type": "string", @@ -56,7 +56,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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "export": { "type": "boolean", @@ -70,7 +70,7 @@ "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "classComponent": { "type": "boolean", diff --git a/docs/generated/packages/react/generators/component.json b/docs/generated/packages/react/generators/component.json index 04821be1c2..7b8aafb0c8 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 v18." + "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." }, "name": { "type": "string", @@ -83,7 +83,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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "export": { "type": "boolean", @@ -97,14 +97,14 @@ "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false, - "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "classComponent": { "type": "boolean", diff --git a/docs/generated/packages/react/generators/cypress-component-configuration.json b/docs/generated/packages/react/generators/cypress-component-configuration.json index 1dfd46c04d..92318551bd 100644 --- a/docs/generated/packages/react/generators/cypress-component-configuration.json +++ b/docs/generated/packages/react/generators/cypress-component-configuration.json @@ -53,7 +53,7 @@ } }, "required": ["project"], - "examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nReact component testing with Nx requires **Cypress version 10.7.0** and up.\n\nYou can migrate with to v10 via the [migrate-to-cypress-10 generator](/packages/cypress/generators/migrate-to-cypress-10).\n\nThis generator is for Cypress based component testing.\n\nIf you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 18.\n{% /callout %}\n\nThis generator is designed to get your React project up and running with Cypress Component Testing.\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project\n```\n\nRunning this generator, adds the required files to the specified project with a preconfigured `cypress.config.ts` designed for Nx workspaces.\n\nThe following file will be added to projects where the Component Testing build target is using `webpack` for bundling:\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/react/plugins/component-testing';\n\nexport default defineConfig({\n component: nxComponentTestingPreset(__filename, {\n bundler: 'webpack',\n }),\n});\n```\n\nThe following file will be added to projects where the Component Testing build target is using `vite` for bundling:\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/react/plugins/component-testing';\n\nexport default defineConfig({\n component: nxComponentTestingPreset(__filename, {\n bundler: 'vite',\n }),\n});\n```\n\nHere is an example on how to add custom options to the configuration\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/react/plugins/component-testing';\n\nexport default defineConfig({\n component: {\n ...nxComponentTestingPreset(__filename, {\n bundler: 'webpack',\n }),\n // extra options here\n },\n});\n```\n\n## The `bundler` option\n\nComponent testing supports two different bundlers: `webpack` and `vite`. The Nx generator will pick up the bundler used in the specified project's build target. If the build target is using `@nx/webpack:webpack`, then the generator will use `webpack` as the bundler. If the build target is using `@nx/vite:build`, then the generator will use `vite` as the bundler.\n\nYou can manually set the bundler by passing `--bundler=webpack` or `--bundler=vite` to the generator, but that is not needed since the generator will pick up the correct bundler for you. However, if you want to use a different bundler than the one that is used in the build target, then you can manually set it using that flag.\n\n## Specifying a Build Target\n\nComponent testing requires a _build target_ to correctly run the component test dev server. This option can be manually specified with `--build-target=some-react-app:build`, but Nx will infer this usage from the [project graph](/concepts/mental-model#the-project-graph) if one isn't provided.\n\nFor React projects, the build target needs to be using the `@nx/webpack:webpack` executor.\nThe generator will throw an error if a build target can't be found and suggest passing one in manually.\n\nLetting Nx infer the build target by default\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project\n```\n\nManually specifying the build target\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project --build-target:some-react-app:build --generate-tests\n```\n\n{% callout type=\"note\" title=\"Build Target with Configuration\" %}\nIf you're wanting to use a build target with a specific configuration. i.e. `my-app:build:production`,\nthen manually providing `--build-target=my-app:build:production` is the best way to do that.\n{% /callout %}\n\n## Auto Generating Tests\n\nYou can optionally use the `--generate-tests` flag to generate a test file for each component in your project.\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project --generate-tests\n```\n\n## Running Component Tests\n\nA new `component-test` target will be added to the specified project to run your component tests.\n\n```shell\nnx g component-test my-cool-react-project\n```\n\nHere is an example of the project configuration that is generated. The `--build-target` option is added as the `devServerTarget` which can be changed as needed.\n\n```json {% fileName=\"project.json\" %}\n{\n \"targets\" {\n \"component-test\": {\n \"executor\": \"@nx/cypress:cypress\",\n \"options\": {\n \"cypressConfig\": \"/cypress.config.ts\",\n \"testingType\": \"component\",\n \"devServerTarget\": \"some-react-app:build\",\n \"skipServe\": true\n }\n }\n }\n}\n```\n\nNx also supports [Angular component testing](/packages/angular/generators/cypress-component-configuration).\n", + "examplesFile": "{% callout type=\"caution\" title=\"Can I use component testing?\" %}\nReact component testing with Nx requires **Cypress version 10.7.0** and up.\n\nYou can migrate with to v10 via the [migrate-to-cypress-10 generator](/packages/cypress/generators/migrate-to-cypress-10).\n\nThis generator is for Cypress based component testing.\n\nIf you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 19.\n{% /callout %}\n\nThis generator is designed to get your React project up and running with Cypress Component Testing.\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project\n```\n\nRunning this generator, adds the required files to the specified project with a preconfigured `cypress.config.ts` designed for Nx workspaces.\n\nThe following file will be added to projects where the Component Testing build target is using `webpack` for bundling:\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/react/plugins/component-testing';\n\nexport default defineConfig({\n component: nxComponentTestingPreset(__filename, {\n bundler: 'webpack',\n }),\n});\n```\n\nThe following file will be added to projects where the Component Testing build target is using `vite` for bundling:\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/react/plugins/component-testing';\n\nexport default defineConfig({\n component: nxComponentTestingPreset(__filename, {\n bundler: 'vite',\n }),\n});\n```\n\nHere is an example on how to add custom options to the configuration\n\n```ts {% fileName=\"cypress.config.ts\" %}\nimport { defineConfig } from 'cypress';\nimport { nxComponentTestingPreset } from '@nx/react/plugins/component-testing';\n\nexport default defineConfig({\n component: {\n ...nxComponentTestingPreset(__filename, {\n bundler: 'webpack',\n }),\n // extra options here\n },\n});\n```\n\n## The `bundler` option\n\nComponent testing supports two different bundlers: `webpack` and `vite`. The Nx generator will pick up the bundler used in the specified project's build target. If the build target is using `@nx/webpack:webpack`, then the generator will use `webpack` as the bundler. If the build target is using `@nx/vite:build`, then the generator will use `vite` as the bundler.\n\nYou can manually set the bundler by passing `--bundler=webpack` or `--bundler=vite` to the generator, but that is not needed since the generator will pick up the correct bundler for you. However, if you want to use a different bundler than the one that is used in the build target, then you can manually set it using that flag.\n\n## Specifying a Build Target\n\nComponent testing requires a _build target_ to correctly run the component test dev server. This option can be manually specified with `--build-target=some-react-app:build`, but Nx will infer this usage from the [project graph](/concepts/mental-model#the-project-graph) if one isn't provided.\n\nFor React projects, the build target needs to be using the `@nx/webpack:webpack` executor.\nThe generator will throw an error if a build target can't be found and suggest passing one in manually.\n\nLetting Nx infer the build target by default\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project\n```\n\nManually specifying the build target\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project --build-target:some-react-app:build --generate-tests\n```\n\n{% callout type=\"note\" title=\"Build Target with Configuration\" %}\nIf you're wanting to use a build target with a specific configuration. i.e. `my-app:build:production`,\nthen manually providing `--build-target=my-app:build:production` is the best way to do that.\n{% /callout %}\n\n## Auto Generating Tests\n\nYou can optionally use the `--generate-tests` flag to generate a test file for each component in your project.\n\n```shell\nnx g @nx/react:cypress-component-configuration --project=my-cool-react-project --generate-tests\n```\n\n## Running Component Tests\n\nA new `component-test` target will be added to the specified project to run your component tests.\n\n```shell\nnx g component-test my-cool-react-project\n```\n\nHere is an example of the project configuration that is generated. The `--build-target` option is added as the `devServerTarget` which can be changed as needed.\n\n```json {% fileName=\"project.json\" %}\n{\n \"targets\" {\n \"component-test\": {\n \"executor\": \"@nx/cypress:cypress\",\n \"options\": {\n \"cypressConfig\": \"/cypress.config.ts\",\n \"testingType\": \"component\",\n \"devServerTarget\": \"some-react-app:build\",\n \"skipServe\": true\n }\n }\n }\n}\n```\n\nNx also supports [Angular component testing](/packages/angular/generators/cypress-component-configuration).\n", "presets": [] }, "description": "Setup Cypress component testing for a React project", diff --git a/docs/generated/packages/react/generators/hook.json b/docs/generated/packages/react/generators/hook.json index 8e13f31162..ef84c39c76 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "export": { "type": "boolean", @@ -68,14 +68,14 @@ "description": "Use pascal case hook file name (e.g. `useHook.ts`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `useHook/useHook.ts`).", "alias": "R", "default": false, - "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." } }, "required": ["name"], diff --git a/docs/generated/packages/react/generators/redux.json b/docs/generated/packages/react/generators/redux.json index 48c43cb21f..c62324fef9 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 v18." + "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." }, "directory": { "type": "string", diff --git a/docs/generated/packages/react/generators/storybook-configuration.json b/docs/generated/packages/react/generators/storybook-configuration.json index 001ca23221..a66d9d7260 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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "js": { "type": "boolean", diff --git a/docs/generated/packages/remix/generators/action.json b/docs/generated/packages/remix/generators/action.json index 54d437c7e9..06c1215499 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 v18." + "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." } }, "required": ["path"], diff --git a/docs/generated/packages/remix/generators/error-boundary.json b/docs/generated/packages/remix/generators/error-boundary.json index fdbde873d2..b5834694ec 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 v18." + "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." }, "skipFormat": { "type": "boolean", diff --git a/docs/generated/packages/remix/generators/loader.json b/docs/generated/packages/remix/generators/loader.json index ecd81145a2..b6a366ab11 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 v18." + "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." } }, "required": ["path"], diff --git a/docs/generated/packages/remix/generators/meta.json b/docs/generated/packages/remix/generators/meta.json index e3efd44915..85399646bd 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 v18." + "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." } }, "required": ["path"], diff --git a/docs/generated/packages/remix/generators/resource-route.json b/docs/generated/packages/remix/generators/resource-route.json index 4ef4b4612f..f57b7f1d0a 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 v18." + "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." }, "action": { "type": "boolean", diff --git a/docs/generated/packages/remix/generators/route.json b/docs/generated/packages/remix/generators/route.json index 5a24d53495..e9bc0ee09d 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 v18." + "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." }, "style": { "type": "string", diff --git a/docs/generated/packages/remix/generators/style.json b/docs/generated/packages/remix/generators/style.json index 2ff674a150..d298b13073 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 v18." + "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." } }, "required": ["path"], diff --git a/docs/generated/packages/storybook/generators/configuration.json b/docs/generated/packages/storybook/generators/configuration.json index 30be79b17d..a7ef1a5354 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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 35ccaf6a0b..1103adece4 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 v18." + "x-deprecated": "Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 v18." + "x-deprecated": "Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "routing": { "type": "boolean", diff --git a/docs/generated/packages/webpack/executors/webpack.json b/docs/generated/packages/webpack/executors/webpack.json index 5f56c5a8d5..5ca86abced 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 18. 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 19. See https://nx.dev/recipes/webpack/webpack-config-setup." }, "standardWebpackConfigFunction": { "type": "boolean", diff --git a/docs/shared/deprecated/as-provided-vs-derived.md b/docs/shared/deprecated/as-provided-vs-derived.md index 458db3d2b5..19990ef077 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 18. 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 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. 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](/core-features/integrate-with-editors) for an intuitive ## Prompting -To mitigate the impact of this change of direction, Nx will prompt you when running most generators until Nx 18. 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 19. 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 18. 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 19. 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 18, Nx will take the generator options as provided. The following flags are deprecated and will be removed in Nx 18: `--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 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`. ### 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 18. +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. This makes generators behave in the following way: diff --git a/docs/shared/deprecated/v1-nx-plugin-api.md b/docs/shared/deprecated/v1-nx-plugin-api.md index c9014bf3cf..3bf0c86514 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 18. 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 19. 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/recipes/rescope.md b/docs/shared/recipes/rescope.md index 58702b3555..a1702fd0ad 100644 --- a/docs/shared/recipes/rescope.md +++ b/docs/shared/recipes/rescope.md @@ -65,4 +65,4 @@ All other packages keep the same name, but change scope from `@nrwl` to `@nx`. ## @nrwl Scope End of Life -Starting in version 18, the `@nrwl` scoped packages will no longer be published to npm. Only the `@nx` scoped packages will be available on the npm registry. +Starting in version 19, the `@nrwl` scoped packages will no longer be published to npm. Only the `@nx` scoped packages will be available on the npm registry. diff --git a/packages/angular/executors.ts b/packages/angular/executors.ts index 7160a154c3..8149bc6e1f 100644 --- a/packages/angular/executors.ts +++ b/packages/angular/executors.ts @@ -11,9 +11,9 @@ export * from './src/executors/application/application.impl'; import { executeDevServerBuilder } from './src/builders/dev-server/dev-server.impl'; export { - // TODO(v18): remove this alias + // TODO(v19): remove this alias /** - * @deprecated Use executeDevServerBuilder instead. It will be removed in Nx v18. + * @deprecated Use executeDevServerBuilder instead. It will be removed in Nx v19. */ executeDevServerBuilder as executeWebpackDevServerBuilder, executeDevServerBuilder, diff --git a/packages/angular/generators.json b/packages/angular/generators.json index 64ceff7416..7946ed4b2a 100644 --- a/packages/angular/generators.json +++ b/packages/angular/generators.json @@ -86,7 +86,7 @@ "schema": "./src/generators/move/schema.json", "aliases": ["mv"], "description": "Moves an Angular application or library to another folder within the workspace and updates the project configuration.", - "x-deprecated": "Use the `@nx/workspace:move` generator instead. This generator will be removed in Nx v18." + "x-deprecated": "Use the `@nx/workspace:move` generator instead. This generator will be removed in Nx v19." }, "convert-to-with-mf": { "factory": "./src/generators/convert-to-with-mf/convert-to-with-mf", diff --git a/packages/angular/src/builders/dev-server/schema.json b/packages/angular/src/builders/dev-server/schema.json index ab5142d7e5..b45dc7c659 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 v18." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." }, "buildTarget": { "type": "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 9b9c99312c..ce44d249b1 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 v18." + "x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v19." }, "buildTarget": { "type": "string", diff --git a/packages/angular/src/generators/component/schema.d.ts b/packages/angular/src/generators/component/schema.d.ts index 7b233baff3..41caeb1dc2 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/angular/src/generators/component/schema.json b/packages/angular/src/generators/component/schema.json index a67189761c..113b306631 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "skipImport": { "type": "boolean", diff --git a/packages/angular/src/generators/directive/schema.d.ts b/packages/angular/src/generators/directive/schema.d.ts index 3e7ff08845..09459e0082 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/angular/src/generators/directive/schema.json b/packages/angular/src/generators/directive/schema.json index d09ad646fe..c9c6b78079 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "module": { "type": "string", diff --git a/packages/angular/src/generators/pipe/schema.d.ts b/packages/angular/src/generators/pipe/schema.d.ts index 9e76d20519..2194494951 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/angular/src/generators/pipe/schema.json b/packages/angular/src/generators/pipe/schema.json index bdee60e7d2..5300c9a361 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 0ce5d2bb5d..f61c3da69c 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/angular/src/generators/scam-directive/schema.json b/packages/angular/src/generators/scam-directive/schema.json index 63ea015a39..455e3cd978 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 6cde78c48c..31ec4dcfdc 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/angular/src/generators/scam-pipe/schema.json b/packages/angular/src/generators/scam-pipe/schema.json index b324b432c4..7a0b9f653c 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "export": { "type": "boolean", diff --git a/packages/angular/src/generators/scam/schema.d.ts b/packages/angular/src/generators/scam/schema.d.ts index 2fa2c6e123..a38470cff0 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `directory` option instead. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. It will be removed in Nx v19. */ path?: string; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/angular/src/generators/scam/schema.json b/packages/angular/src/generators/scam/schema.json index f284327745..a669d72a62 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "selector": { "type": "string", diff --git a/packages/angular/src/generators/stories/stories-app.spec.ts b/packages/angular/src/generators/stories/stories-app.spec.ts index 7c8f8612eb..fb924e816b 100644 --- a/packages/angular/src/generators/stories/stories-app.spec.ts +++ b/packages/angular/src/generators/stories/stories-app.spec.ts @@ -11,7 +11,7 @@ import { stripIndents } from '@nx/devkit'; // which is v9 while we are testing for the new v10 version jest.mock('@nx/cypress/src/utils/cypress-version'); -// TODO(katerina): Nx 18 -> remove Cypress +// TODO(katerina): Nx 19 -> remove Cypress describe('angularStories generator: applications', () => { let tree: Tree; diff --git a/packages/angular/src/generators/stories/stories-lib.spec.ts b/packages/angular/src/generators/stories/stories-lib.spec.ts index dbdfffc78d..77b6831003 100644 --- a/packages/angular/src/generators/stories/stories-lib.spec.ts +++ b/packages/angular/src/generators/stories/stories-lib.spec.ts @@ -14,7 +14,7 @@ import { angularStoriesGenerator } from './stories'; // need to mock cypress otherwise it'll use the nx installed version from package.json // which is v9 while we are testing for the new v10 version jest.mock('@nx/cypress/src/utils/cypress-version'); -// TODO(katerina): Nx 18 -> remove Cypress +// TODO(katerina): Nx 19 -> remove Cypress describe('angularStories generator: libraries', () => { const libName = 'test-ui-lib'; diff --git a/packages/angular/src/generators/storybook-configuration/schema.json b/packages/angular/src/generators/storybook-configuration/schema.json index 2df5881431..2871ece213 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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "linter": { "description": "The tool to use for running lint checks.", diff --git a/packages/angular/src/generators/storybook-configuration/storybook-configuration.ts b/packages/angular/src/generators/storybook-configuration/storybook-configuration.ts index 6a87257f18..47ccf08be6 100644 --- a/packages/angular/src/generators/storybook-configuration/storybook-configuration.ts +++ b/packages/angular/src/generators/storybook-configuration/storybook-configuration.ts @@ -5,7 +5,7 @@ import { generateStorybookConfiguration } from './lib/generate-storybook-configu import { validateOptions } from './lib/validate-options'; import type { StorybookConfigurationOptions } from './schema'; -// TODO(katerina): Nx 18 -> remove Cypress +// TODO(katerina): Nx 19 -> remove Cypress export async function storybookConfigurationGenerator( tree: Tree, options: StorybookConfigurationOptions diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index 6bc3f034fd..1906444a66 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -194,7 +194,7 @@ export const commandsObject: yargs.Argv = yargs [ normalizeArgsMiddleware, normalizeAndWarnOnDeprecatedPreset({ - // TODO(v18): Remove Empty and Core presets + // TODO(v19): Remove Empty and Core presets [Preset.Core]: Preset.NPM, [Preset.Empty]: Preset.Apps, }), diff --git a/packages/cypress/index.ts b/packages/cypress/index.ts index 25e308c012..5b1043e1c9 100644 --- a/packages/cypress/index.ts +++ b/packages/cypress/index.ts @@ -5,13 +5,13 @@ import { cypressProjectGenerator as _cypressProjectGenerator } from './src/gener export { configurationGenerator, componentConfigurationGenerator }; // Maintain backwards compatibility with the old names in case community plugins used them. -// TODO(v18): Remove old name -/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 18. */ +// TODO(v19): Remove old name +/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 19. */ export const cypressComponentConfiguration = componentConfigurationGenerator; export { configurationGenerator as cypressE2EConfigurationGenerator }; -// TODO(v18): Remove project generator -/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 18. */ +// TODO(v19): Remove project generator +/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 19. */ export const cypressProjectGenerator = _cypressProjectGenerator; export { cypressInitGenerator } from './src/generators/init/init'; export { migrateCypressProject } from './src/generators/migrate-to-cypress-11/migrate-to-cypress-11'; diff --git a/packages/devkit/nx.ts b/packages/devkit/nx.ts index fd978a398b..88089dd494 100644 --- a/packages/devkit/nx.ts +++ b/packages/devkit/nx.ts @@ -1,4 +1,4 @@ -// After Nx v18, this can be removed and replaced with either: +// After Nx v19, this can be removed and replaced with either: // - import {} from 'nx/src/devkit-exports' // - import {} from 'nx/src/devkit-internals' export function requireNx(): typeof import('nx/src/devkit-exports') & @@ -7,7 +7,7 @@ export function requireNx(): typeof import('nx/src/devkit-exports') & try { result = { ...result, - // Remove in Nx v18, devkit should not support Nx v16.0.2 at that point. + // Remove in Nx v19, devkit should not support Nx v16.0.2 at that point. ...require('nx/src/devkit-internals'), }; } catch {} diff --git a/packages/devkit/src/executors/parse-target-string.ts b/packages/devkit/src/executors/parse-target-string.ts index ff63c39348..0bbc33278f 100644 --- a/packages/devkit/src/executors/parse-target-string.ts +++ b/packages/devkit/src/executors/parse-target-string.ts @@ -6,7 +6,7 @@ import { requireNx } from '../../nx'; let { readCachedProjectGraph, splitTarget, splitByColons } = requireNx(); -// TODO: Remove this in Nx 18 when Nx 16.7.0 is no longer supported +// TODO: Remove this in Nx 19 when Nx 16.7.0 is no longer supported splitTarget = splitTarget ?? require('nx/src/utils/split-target').splitTarget; splitByColons = splitByColons ?? ((s: string) => s.split(':') as [string, ...string[]]); diff --git a/packages/devkit/src/executors/read-target-options.ts b/packages/devkit/src/executors/read-target-options.ts index 8590b3a8a5..b0180bf471 100644 --- a/packages/devkit/src/executors/read-target-options.ts +++ b/packages/devkit/src/executors/read-target-options.ts @@ -10,7 +10,7 @@ let { combineOptionsForExecutor, } = requireNx(); -// TODO: Remove this in Nx 18 when Nx 16.7.0 is no longer supported +// TODO: Remove this in Nx 19 when Nx 16.7.0 is no longer supported combineOptionsForExecutor = combineOptionsForExecutor ?? require('nx/src/utils/params').combineOptionsForExecutor; @@ -38,7 +38,7 @@ export function readTargetOptions( throw new Error(`Unable to find target ${target} for project ${project}`); } - // TODO(v18): remove Workspaces. + // TODO(v19): remove Workspaces. const ws = new Workspaces(context.root); const [nodeModule, executorName] = targetConfiguration.executor.split(':'); const { schema } = getExecutorInformation @@ -48,7 +48,7 @@ export function readTargetOptions( context.root, context.projectsConfigurations?.projects ?? context.workspace.projects ) - : // TODO(v18): remove readExecutor. This is to be backwards compatible with Nx 16.5 and below. + : // TODO(v19): remove readExecutor. This is to be backwards compatible with Nx 16.5 and below. (ws as any).readExecutor(nodeModule, executorName); const defaultProject = calculateDefaultProjectName @@ -58,7 +58,7 @@ export function readTargetOptions( { version: 2, projects: context.projectsConfigurations.projects }, context.nxJsonConfiguration ) - : // TODO(v18): remove calculateDefaultProjectName. This is to be backwards compatible with Nx 16.5 and below. + : // TODO(v19): remove calculateDefaultProjectName. This is to be backwards compatible with Nx 16.5 and below. (ws as any).calculateDefaultProjectName( context.cwd, { version: 2, projects: context.projectsConfigurations.projects }, diff --git a/packages/devkit/src/generators/artifact-name-and-directory-utils.ts b/packages/devkit/src/generators/artifact-name-and-directory-utils.ts index d6ad31446a..68796b086d 100644 --- a/packages/devkit/src/generators/artifact-name-and-directory-utils.ts +++ b/packages/devkit/src/generators/artifact-name-and-directory-utils.ts @@ -142,7 +142,7 @@ function logDeprecationMessage( formats: NameAndDirectoryFormats ) { logger.warn(` -In Nx 18, generating a ${options.artifactType} will no longer support providing a project and deriving the directory. +In Nx 19, generating a ${options.artifactType} will no longer support providing a project and deriving the directory. Please provide the exact directory in the future. Example: nx g ${options.callingGenerator} ${formats['derived'].artifactName} --directory ${formats['derived'].directory} NOTE: The example above assumes the command is being run from the workspace root. If the command is being run from a subdirectory, the directory option should be adjusted accordingly. diff --git a/packages/devkit/src/generators/format-files.ts b/packages/devkit/src/generators/format-files.ts index 55b0fd642d..e4d616b1dd 100644 --- a/packages/devkit/src/generators/format-files.ts +++ b/packages/devkit/src/generators/format-files.ts @@ -5,7 +5,7 @@ import { requireNx } from '../../nx'; let { updateJson, readJson, sortObjectByKeys } = requireNx(); -// TODO: Remove this in Nx 18 when Nx 16.7.0 is no longer supported +// TODO: Remove this in Nx 19 when Nx 16.7.0 is no longer supported sortObjectByKeys = sortObjectByKeys ?? require('nx/src/utils/object-sort').sortObjectByKeys; diff --git a/packages/devkit/src/generators/project-name-and-root-utils.ts b/packages/devkit/src/generators/project-name-and-root-utils.ts index c397999c91..cd4959f2b6 100644 --- a/packages/devkit/src/generators/project-name-and-root-utils.ts +++ b/packages/devkit/src/generators/project-name-and-root-utils.ts @@ -130,7 +130,7 @@ function logDeprecationMessage( formats: ProjectNameAndRootFormats ) { logger.warn(stripIndents` - In Nx 18, generating projects will no longer derive the name and root. + In Nx 19, generating projects will no longer derive the name and root. Please provide the exact project name and root in the future. Example: nx g ${callingGenerator} ${formats['derived'].projectName} --directory ${formats['derived'].projectRoot} `); diff --git a/packages/devkit/src/utils/convert-nx-executor.ts b/packages/devkit/src/utils/convert-nx-executor.ts index fee060ba3c..3fcfd6bdc8 100644 --- a/packages/devkit/src/utils/convert-nx-executor.ts +++ b/packages/devkit/src/utils/convert-nx-executor.ts @@ -21,7 +21,7 @@ export function convertNxExecutor(executor: Executor) { const workspaces = new Workspaces(builderContext.workspaceRoot); const nxJsonConfiguration = readNxJsonFromDisk ? readNxJsonFromDisk(builderContext.workspaceRoot) - : // TODO(v18): remove readNxJson. This is to be backwards compatible with Nx 16.5 and below. + : // TODO(v19): remove readNxJson. This is to be backwards compatible with Nx 16.5 and below. (workspaces as any).readNxJson(); const promise = async () => { @@ -34,7 +34,7 @@ export function convertNxExecutor(executor: Executor) { nxJsonConfiguration ).then((p) => (p as any).projectNodes ?? p.projects), } - : // TODO(v18): remove retrieveProjectConfigurations. This is to be backwards compatible with Nx 16.5 and below. + : // TODO(v19): remove retrieveProjectConfigurations. This is to be backwards compatible with Nx 16.5 and below. (workspaces as any).readProjectsConfigurations({ _includeProjectsFromAngularJson: true, }); diff --git a/packages/devkit/src/utils/invoke-nx-generator.ts b/packages/devkit/src/utils/invoke-nx-generator.ts index 2b69226118..c158a71c87 100644 --- a/packages/devkit/src/utils/invoke-nx-generator.ts +++ b/packages/devkit/src/utils/invoke-nx-generator.ts @@ -13,7 +13,7 @@ import { requireNx } from '../../nx'; let { logger, stripIndent } = requireNx(); -// TODO: Remove this in Nx 18 when Nx 16.7.0 is no longer supported +// TODO: Remove this in Nx 19 when Nx 16.7.0 is no longer supported stripIndent = stripIndent ?? require('nx/src/utils/logger').stripIndent; class RunCallbackTask { diff --git a/packages/expo/src/generators/component/schema.d.ts b/packages/expo/src/generators/component/schema.d.ts index 9b7bd3cb0d..e3a3408119 100644 --- a/packages/expo/src/generators/component/schema.d.ts +++ b/packages/expo/src/generators/component/schema.d.ts @@ -4,21 +4,21 @@ 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 v18. + * @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. */ project: string; directory?: string; skipFormat: boolean; // default is false skipTests: boolean; // default is false /** - * @deprecated Provide the name in pascal-case and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the name in pascal-case and use the `as-provided` format. This option will be removed in Nx v19. */ export: boolean; // default is false pascalCaseFiles: boolean; // default is false classComponent: boolean; // default is false js: boolean; // default is false /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ flat: boolean; // default is false nameAndDirectoryFormat?: 'as-provided' | 'derived'; diff --git a/packages/expo/src/generators/component/schema.json b/packages/expo/src/generators/component/schema.json index c1620fae79..59f223e29e 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 v18." + "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." }, "name": { "type": "string", @@ -63,7 +63,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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "export": { "type": "boolean", @@ -77,7 +77,7 @@ "description": "Use pascal case component file name (e.g. App.tsx).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "classComponent": { "type": "boolean", diff --git a/packages/js/babel.ts b/packages/js/babel.ts index 246f6e6359..4841bd04e5 100644 --- a/packages/js/babel.ts +++ b/packages/js/babel.ts @@ -36,11 +36,11 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) { // Determine settings for `@babel//babel-plugin-transform-class-properties`, // so that we can sync the `loose` option with `@babel/preset-env`. - // TODO(v18): Remove classProperties since it's no longer needed, now that the class props transform is in preset-env. + // TODO(v19): Remove classProperties since it's no longer needed, now that the class props transform is in preset-env. 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 18` + `Use =\`loose\` option instead of \`classProperties.loose\`. The \`classProperties\` option will be removed in Nx 19` ); } diff --git a/packages/nest/src/generators/class/schema.json b/packages/nest/src/generators/class/schema.json index fe7c7daa3c..2a17b1fd15 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/controller/schema.json b/packages/nest/src/generators/controller/schema.json index 5c940e550d..93163618b3 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/decorator/schema.json b/packages/nest/src/generators/decorator/schema.json index 1ed7680fc5..d682c49936 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/filter/schema.json b/packages/nest/src/generators/filter/schema.json index 1dacd973ba..c53b0a99ff 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/gateway/schema.json b/packages/nest/src/generators/gateway/schema.json index efca29ccc8..c098767288 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/guard/schema.json b/packages/nest/src/generators/guard/schema.json index ff3cbb2bab..bfdfc9a531 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/interceptor/schema.json b/packages/nest/src/generators/interceptor/schema.json index d63c5b43f8..50e52787c0 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/interface/schema.json b/packages/nest/src/generators/interface/schema.json index 02f2cc474c..fa9ced3658 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true } diff --git a/packages/nest/src/generators/middleware/schema.json b/packages/nest/src/generators/middleware/schema.json index 0df2777891..96bd8293e8 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/module/schema.json b/packages/nest/src/generators/module/schema.json index 10b29823ce..bb344b275f 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/pipe/schema.json b/packages/nest/src/generators/pipe/schema.json index 50de457abf..25ff965bc3 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/provider/schema.json b/packages/nest/src/generators/provider/schema.json index 47e120bfbb..43d2ea8d11 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": true }, diff --git a/packages/nest/src/generators/resolver/schema.json b/packages/nest/src/generators/resolver/schema.json index a5ce60e0fb..0ad68e4b47 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/resource/schema.json b/packages/nest/src/generators/resource/schema.json index 17a96e9c7e..3d887ae856 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/service/schema.json b/packages/nest/src/generators/service/schema.json index 4567371042..e49e8ef8be 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 v18." + "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." }, "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 v18.", + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19.", "type": "boolean", "default": false }, diff --git a/packages/nest/src/generators/utils/types.ts b/packages/nest/src/generators/utils/types.ts index 9ea7184752..95165cb89a 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ 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 v18. + * @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. */ project?: string; }; diff --git a/packages/next/docs/cypress-component-configuration-examples.md b/packages/next/docs/cypress-component-configuration-examples.md index 633f405f73..1a5f18e507 100644 --- a/packages/next/docs/cypress-component-configuration-examples.md +++ b/packages/next/docs/cypress-component-configuration-examples.md @@ -5,7 +5,7 @@ You can migrate with to v10 via the [migrate-to-cypress-11 generator](/packages/ This generator is for Cypress based component testing. -If you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 18. +If you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 19. {% /callout %} This generator is designed to get your Next project up and running with Cypress Component Testing. diff --git a/packages/next/plugins/with-nx.ts b/packages/next/plugins/with-nx.ts index cd2556282b..f55667b34e 100644 --- a/packages/next/plugins/with-nx.ts +++ b/packages/next/plugins/with-nx.ts @@ -384,7 +384,7 @@ function getNxEnvironmentVariables() { } /** - * TODO(v18) + * TODO(v19) * @deprecated Use Next.js 9.4+ built-in support for environment variables. Reference https://nextjs.org/docs/pages/api-reference/next-config-js/env */ function addNxEnvVariables(config: any) { diff --git a/packages/next/plugins/with-stylus.ts b/packages/next/plugins/with-stylus.ts index f892705971..35ff041bb2 100644 --- a/packages/next/plugins/with-stylus.ts +++ b/packages/next/plugins/with-stylus.ts @@ -1,7 +1,7 @@ import { NextConfigFn } from '../src/utils/config'; import { WithNxOptions } from './with-nx'; -// TODO(v18): Remove file, it is here until users migrate over to SASS manually. +// TODO(v19): Remove file, it is here until users migrate over to SASS manually. export function withStylus( configOrFn: WithNxOptions | NextConfigFn ): NextConfigFn { diff --git a/packages/next/src/generators/component/component.ts b/packages/next/src/generators/component/component.ts index f757d74255..a416b5dc9d 100644 --- a/packages/next/src/generators/component/component.ts +++ b/packages/next/src/generators/component/component.ts @@ -15,28 +15,28 @@ 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 v18. + * @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. */ project?: string; style: SupportedStyles; directory?: string; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseFiles?: boolean; /** - * @deprecated Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseDirectory?: boolean; nameAndDirectoryFormat?: 'as-provided' | 'derived'; skipFormat?: boolean; } -// TODO(v18): Remove this logic once we no longer derive directory. +// TODO(v19): Remove this logic once we no longer derive directory. function maybeGetDerivedDirectory(host: Tree, options: Schema): string { if (!options.project) return options.directory; const workspace = getProjects(host); diff --git a/packages/next/src/generators/component/schema.json b/packages/next/src/generators/component/schema.json index fe7eb5557f..ee57d51dbf 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 v18." + "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." }, "name": { "type": "string", @@ -97,21 +97,21 @@ "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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseFiles": { "type": "boolean", "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false, - "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "skipFormat": { "description": "Skip formatting files.", diff --git a/packages/next/src/generators/page/page.ts b/packages/next/src/generators/page/page.ts index 8e407c92c7..a5bb0b3778 100644 --- a/packages/next/src/generators/page/page.ts +++ b/packages/next/src/generators/page/page.ts @@ -56,7 +56,7 @@ async function normalizeOptions(host: Tree, options: Schema) { if (options.project) { // Legacy behavior, detect app vs page router from specified project. - // TODO(v18): remove this logic + // TODO(v19): remove this logic const project = readProjectConfiguration(host, options.project); // app/ is a reserved folder in nextjs so it is safe to check it's existence isAppRouter = diff --git a/packages/next/src/generators/page/schema.d.ts b/packages/next/src/generators/page/schema.d.ts index 687c6c30f7..577a3cb4ae 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 v18. + * @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. */ project?: string; style: SupportedStyles; @@ -12,7 +12,7 @@ export interface Schema { withTests?: boolean; js?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ flat?: boolean; skipFormat?: boolean; diff --git a/packages/next/src/generators/page/schema.json b/packages/next/src/generators/page/schema.json index 1c0d079c07..5162011a09 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "skipFormat": { "description": "Skip formatting files.", diff --git a/packages/nx/src/command-line/affected/command-object.ts b/packages/nx/src/command-line/affected/command-object.ts index b989a3ca8f..8cf5757790 100644 --- a/packages/nx/src/command-line/affected/command-object.ts +++ b/packages/nx/src/command-line/affected/command-object.ts @@ -109,9 +109,9 @@ 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 18.'; + '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 18.' + * @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', @@ -132,9 +132,9 @@ export const yargsAffectedGraphCommand: CommandModule = { }; 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 18.'; + '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 18.' + * @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', diff --git a/packages/nx/src/command-line/graph/graph.ts b/packages/nx/src/command-line/graph/graph.ts index 8b415d0455..9cfe18d136 100644 --- a/packages/nx/src/command-line/graph/graph.ts +++ b/packages/nx/src/command-line/graph/graph.ts @@ -427,7 +427,7 @@ export async function generateGraph( '- affectedProjects', '- criticalPath', '', - 'These fields will be removed in Nx 18. If you need to see which projects were affected, use `nx show projects --affected`.', + 'These fields will be removed in Nx 19. If you need to see which projects were affected, use `nx show projects --affected`.', ], }); @@ -1034,12 +1034,12 @@ interface GraphJsonResponse { graph: ProjectGraph; /** - * @deprecated To see affected projects, use `nx show projects --affected`. This will be removed in Nx 18. + * @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 18. + * @deprecated To see affected projects, use `nx show projects --affected`. This will be removed in Nx 19. */ criticalPath?: string[]; } diff --git a/packages/nx/src/command-line/report/report.ts b/packages/nx/src/command-line/report/report.ts index 311ae546f2..ec8d24346a 100644 --- a/packages/nx/src/command-line/report/report.ts +++ b/packages/nx/src/command-line/report/report.ts @@ -270,7 +270,7 @@ export function findInstalledCommunityPlugins(): PackageJson[] { } export function findInstalledPackagesWeCareAbout() { const packagesWeMayCareAbout: Record = {}; - // TODO (v18): Remove workaround for hiding @nrwl packages when matching @nx package is found. + // TODO (v19): Remove workaround for hiding @nrwl packages when matching @nx package is found. const packageChangeMap: Record = { '@nrwl/nx-plugin': '@nx/plugin', '@nx/plugin': '@nrwl/nx-plugin', diff --git a/packages/nx/src/config/project-graph.ts b/packages/nx/src/config/project-graph.ts index 8b5f7dd4ee..6c9772a7a3 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 18. + * @deprecated The {@link ProjectGraphProcessor} is deprecated. This will be removed in Nx 19. */ 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 18. + * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 19. */ export type ProjectGraphProcessor = ( currentGraph: ProjectGraph, diff --git a/packages/nx/src/config/workspaces.ts b/packages/nx/src/config/workspaces.ts index 6885bd136b..1401ff5c1f 100644 --- a/packages/nx/src/config/workspaces.ts +++ b/packages/nx/src/config/workspaces.ts @@ -8,9 +8,9 @@ import type { NxJsonConfiguration } from './nx-json'; import { readNxJson } from './nx-json'; import { ProjectsConfigurations } from './workspace-json-project-json'; -// TODO(v18): remove this class +// TODO(v19): remove this class /** - * @deprecated This will be removed in v18. Use {@link readProjectsConfigurationFromProjectGraph} instead. + * @deprecated This will be removed in v19. Use {@link readProjectsConfigurationFromProjectGraph} instead. */ export class Workspaces { constructor(private root: string) {} diff --git a/packages/nx/src/daemon/client/client.ts b/packages/nx/src/daemon/client/client.ts index b9dde79589..a52a9cfd4e 100644 --- a/packages/nx/src/daemon/client/client.ts +++ b/packages/nx/src/daemon/client/client.ts @@ -65,7 +65,7 @@ export class DaemonClient { enabled() { if (this._enabled === undefined) { - // TODO(v18): Add migration to move it out of existing configs and remove the ?? here. + // TODO(v19): Add migration to move it out of existing configs and remove the ?? here. const useDaemonProcessOption = this.nxJson.useDaemonProcess ?? this.nxJson.tasksRunnerOptions?.['default']?.options?.useDaemonProcess; diff --git a/packages/nx/src/devkit-exports.ts b/packages/nx/src/devkit-exports.ts index b7da714177..be21b376ce 100644 --- a/packages/nx/src/devkit-exports.ts +++ b/packages/nx/src/devkit-exports.ts @@ -37,7 +37,7 @@ export type { HasherContext, } from './config/misc-interfaces'; -// TODO(v18): Remove this export +// TODO(v19): Remove this export /** * @category Workspace */ diff --git a/packages/nx/src/hasher/hash-task.ts b/packages/nx/src/hasher/hash-task.ts index 086c8a60fc..08ce18b05b 100644 --- a/packages/nx/src/hasher/hash-task.ts +++ b/packages/nx/src/hasher/hash-task.ts @@ -64,7 +64,7 @@ export async function hashTask( hasher, projectGraph, taskGraph, - workspaceConfig: projectsConfigurations, // to make the change non-breaking. Remove after v18 + workspaceConfig: projectsConfigurations, // to make the change non-breaking. Remove after v19 projectsConfigurations, nxJsonConfiguration: readNxJson(), env, diff --git a/packages/nx/src/hasher/task-hasher.ts b/packages/nx/src/hasher/task-hasher.ts index 4e9ff22aea..e8d528d281 100644 --- a/packages/nx/src/hasher/task-hasher.ts +++ b/packages/nx/src/hasher/task-hasher.ts @@ -40,13 +40,13 @@ export interface Hash { export interface TaskHasher { /** - * @deprecated use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 + * @deprecated use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 * @param task */ hashTask(task: Task): Promise; /** - * @deprecated use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 + * @deprecated use hashTask(task:Task, taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 */ hashTask(task: Task, taskGraph: TaskGraph): Promise; @@ -57,13 +57,13 @@ export interface TaskHasher { ): Promise; /** - * @deprecated use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 + * @deprecated use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 * @param tasks */ hashTasks(tasks: Task[]): Promise; /** - * @deprecated use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v18 + * @deprecated use hashTasks(tasks:Task[], taskGraph: TaskGraph, env: NodeJS.ProcessEnv) instead. This will be removed in v19 */ hashTasks(tasks: Task[], taskGraph: TaskGraph): Promise; 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 e92ea6e4a9..b572b34cbe 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 18.", + "{workspace_file_set} does not start with {}. This will throw an error in Nx 19.", "{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 02c3de6781..128e477362 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 18. + * @deprecated This is deprecated and will be removed in Nx 19. * 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 92fc063a0e..ed11968979 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 18. + * @deprecated This is deprecated and will be removed in Nx 19. * This was not intended to be exposed. * Please talk to us if you need this. */ diff --git a/packages/nx/src/plugins/js/utils/register.ts b/packages/nx/src/plugins/js/utils/register.ts index 21a06f2448..0a8cfb764d 100644 --- a/packages/nx/src/plugins/js/utils/register.ts +++ b/packages/nx/src/plugins/js/utils/register.ts @@ -28,7 +28,7 @@ export function registerTsProject(tsConfigPath: string): () => void; * workspace path mapping will not, for example). * * @returns cleanup function - * @deprecated This signature will be removed in Nx v18. You should pass the full path to the tsconfig in the first argument. + * @deprecated This signature will be removed in Nx v19. You should pass the full path to the tsconfig in the first argument. */ export function registerTsProject(path: string, configFilename: string); export function registerTsProject( diff --git a/packages/nx/src/project-graph/file-utils.ts b/packages/nx/src/project-graph/file-utils.ts index 1760fdf383..c07c9edfe8 100644 --- a/packages/nx/src/project-graph/file-utils.ts +++ b/packages/nx/src/project-graph/file-utils.ts @@ -133,7 +133,7 @@ function defaultReadFileAtRevision( } /** - * TODO(v18): Remove this function + * TODO(v19): Remove this function * @deprecated To get projects use {@link retrieveProjectConfigurations} instead */ export function readWorkspaceConfig(opts: { @@ -179,7 +179,7 @@ export { FileData }; export { readNxJson, workspaceLayout } from '../config/configuration'; /** - * TODO(v18): Remove this function. + * TODO(v19): Remove this function. */ function getProjectsSyncNoInference(root: string, nxJson: NxJsonConfiguration) { const projectFiles = retrieveProjectConfigurationPaths( diff --git a/packages/nx/src/project-graph/nx-deps-cache.ts b/packages/nx/src/project-graph/nx-deps-cache.ts index b5cfc9a7ff..f9fb5801a3 100644 --- a/packages/nx/src/project-graph/nx-deps-cache.ts +++ b/packages/nx/src/project-graph/nx-deps-cache.ts @@ -116,7 +116,7 @@ export function createProjectFileMapCache( const newValue: FileMapCache = { version: '6.0', nxVersion: nxVersion, - deps: packageJsonDeps, // TODO(v18): We can remove this in favor of nxVersion + deps: packageJsonDeps, // TODO(v19): We can remove this in favor of nxVersion // compilerOptions may not exist, especially for package-based repos pathMappings: tsConfig?.compilerOptions?.paths || {}, nxJsonPlugins, diff --git a/packages/nx/src/project-graph/project-graph-builder.ts b/packages/nx/src/project-graph/project-graph-builder.ts index aa09bfb5fd..39978d05ce 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 18. + * @deprecated The {@link ProjectGraphProcessor} has been deprecated. Use a {@link CreateNodes} and/or a {@link CreateDependencies} instead. This will be removed in Nx 19. */ export class ProjectGraphBuilder { // TODO(FrozenPandaz): make this private diff --git a/packages/nx/src/tasks-runner/create-task-graph.ts b/packages/nx/src/tasks-runner/create-task-graph.ts index 8ed4e75c34..41ac9c9b48 100644 --- a/packages/nx/src/tasks-runner/create-task-graph.ts +++ b/packages/nx/src/tasks-runner/create-task-graph.ts @@ -345,7 +345,7 @@ export class ProcessTasks { qualifiedTarget, interpolatedOverrides ), - // TODO(v18): Remove cast here after typing is moved back onto TargetConfiguration + // TODO(v19): Remove cast here after typing is moved back onto TargetConfiguration cache: (project.data.targets[target] as any).cache, }; } diff --git a/packages/nx/src/tasks-runner/init-tasks-runner.ts b/packages/nx/src/tasks-runner/init-tasks-runner.ts index 26e9bb956e..68e7653ae2 100644 --- a/packages/nx/src/tasks-runner/init-tasks-runner.ts +++ b/packages/nx/src/tasks-runner/init-tasks-runner.ts @@ -23,7 +23,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 18 + // TODO: This polyfills the outputs if someone doesn't pass a task with outputs. Remove this in Nx 19 opts.tasks.forEach((t) => { if (!t.outputs) { t.outputs = getOutputs(projectGraph.nodes, t.target, t.overrides); diff --git a/packages/nx/src/tasks-runner/run-command.ts b/packages/nx/src/tasks-runner/run-command.ts index a2c2205a64..d4968037dd 100644 --- a/packages/nx/src/tasks-runner/run-command.ts +++ b/packages/nx/src/tasks-runner/run-command.ts @@ -260,7 +260,7 @@ export async function invokeTasksRunner({ title: `TaskGraph is now required as an argument to hashTask`, bodyLines: [ `The TaskGraph object can be retrieved from the context`, - 'This will result in an error in Nx 18', + 'This will result in an error in Nx 19', ], }); taskGraph_ = taskGraph; @@ -270,7 +270,7 @@ export async function invokeTasksRunner({ title: `The environment variables are now required as an argument to hashTask`, bodyLines: [ `Please pass the environment variables used when running the task`, - 'This will result in an error in Nx 18', + 'This will result in an error in Nx 19', ], }); env = process.env; @@ -287,7 +287,7 @@ export async function invokeTasksRunner({ title: `TaskGraph is now required as an argument to hashTasks`, bodyLines: [ `The TaskGraph object can be retrieved from the context`, - 'This will result in an error in Nx 18', + 'This will result in an error in Nx 19', ], }); taskGraph_ = taskGraph; @@ -297,7 +297,7 @@ export async function invokeTasksRunner({ title: `The environment variables are now required as an argument to hashTasks`, bodyLines: [ `Please pass the environment variables used when running the tasks`, - 'This will result in an error in Nx 18', + 'This will result in an error in Nx 19', ], }); env = process.env; diff --git a/packages/nx/src/tasks-runner/utils.ts b/packages/nx/src/tasks-runner/utils.ts index 955dfee1cb..8b53f76598 100644 --- a/packages/nx/src/tasks-runner/utils.ts +++ b/packages/nx/src/tasks-runner/utils.ts @@ -146,7 +146,7 @@ export function transformLegacyOutputs( } /** - * @deprecated Pass the target and overrides instead. This will be removed in v18. + * @deprecated Pass the target and overrides instead. This will be removed in v19. */ 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 d28a5022a4..c5c24129b9 100644 --- a/packages/nx/src/utils/nx-plugin.deprecated.ts +++ b/packages/nx/src/utils/nx-plugin.deprecated.ts @@ -7,37 +7,37 @@ import { getNxPackageJsonWorkspacesPlugin } from '../plugins/package-json-worksp import { LoadedNxPlugin, NxPluginV2 } from './nx-plugin'; /** - * @deprecated Add targets to the projects in a {@link CreateNodes} function instead. This will be removed in Nx 18 + * @deprecated Add targets to the projects in a {@link CreateNodes} function instead. This will be removed in Nx 19 */ export type ProjectTargetConfigurator = ( file: string ) => Record; /** - * @deprecated Use {@link NxPluginV2} instead. This will be removed in Nx 18 + * @deprecated Use {@link NxPluginV2} instead. This will be removed in Nx 19 */ export type NxPluginV1 = { name: string; /** - * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 18 + * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 19 */ processProjectGraph?: ProjectGraphProcessor; /** - * @deprecated Add targets to the projects inside of {@link CreateNodes} instead. This will be removed in Nx 18 + * @deprecated Add targets to the projects inside of {@link CreateNodes} instead. This will be removed in Nx 19 */ 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 18 + * @deprecated Use {@link CreateNodes} instead. This will be removed in Nx 19 */ projectFilePatterns?: string[]; }; /** - * @todo(@agentender) v18: Remove this fn when we remove readWorkspaceConfig + * @todo(@agentender) v19: Remove this fn when we remove readWorkspaceConfig */ export function getDefaultPluginsSync(root: string): LoadedNxPlugin[] { const plugins: NxPluginV2[] = [ diff --git a/packages/nx/src/utils/typescript.ts b/packages/nx/src/utils/typescript.ts index 3f76f24ccb..e22673d5cf 100644 --- a/packages/nx/src/utils/typescript.ts +++ b/packages/nx/src/utils/typescript.ts @@ -1,3 +1,3 @@ -// TODO(v18): Nx Devkit 15 depends on this file. Remove this when we no longer support Nx Devkit 15 +// TODO(v19): Nx Devkit 15 depends on this file. Remove this when we no longer support Nx Devkit 15 export * from '../plugins/js/utils/typescript'; diff --git a/packages/nx/src/utils/workspace-configuration-check.ts b/packages/nx/src/utils/workspace-configuration-check.ts index 8899ea8de0..e8c01dd96a 100644 --- a/packages/nx/src/utils/workspace-configuration-check.ts +++ b/packages/nx/src/utils/workspace-configuration-check.ts @@ -4,7 +4,7 @@ import { join } from 'path'; import { output } from './output'; import { readJsonFile } from '../utils/fileutils'; -//TODO: vsavkin remove after Nx 18 +//TODO: vsavkin remove after Nx 19 export function workspaceConfigurationCheck() { if (existsSync(join(workspaceRoot, 'workspace.json'))) { output.warn({ diff --git a/packages/plugin/executors.json b/packages/plugin/executors.json index 91bdd162fe..cc20d4f086 100644 --- a/packages/plugin/executors.json +++ b/packages/plugin/executors.json @@ -4,7 +4,7 @@ "implementation": "./src/executors/e2e/e2e.impl", "schema": "./src/executors/e2e/schema.json", "description": "Creates and runs the E2E tests for an Nx Plugin.", - "x-deprecated": "@nx/plugin:e2e is deprecated and will be removed in Nx 18. Use @nx/jest:jest instead." + "x-deprecated": "@nx/plugin:e2e is deprecated and will be removed in Nx v19. Use @nx/jest:jest instead." } } } diff --git a/packages/plugin/src/executors/e2e/e2e.impl.ts b/packages/plugin/src/executors/e2e/e2e.impl.ts index 4428e3b968..27f8f95b7a 100644 --- a/packages/plugin/src/executors/e2e/e2e.impl.ts +++ b/packages/plugin/src/executors/e2e/e2e.impl.ts @@ -11,7 +11,7 @@ import { JestExecutorOptions } from '@nx/jest/src/executors/jest/schema'; import { jestExecutor } from '@nx/jest/src/executors/jest/jest.impl'; import type { NxPluginE2EExecutorOptions } from './schema'; -// TODO(v18): remove this +// TODO(v19): remove this export async function* nxPluginE2EExecutor( options: NxPluginE2EExecutorOptions, context: ExecutorContext @@ -19,7 +19,7 @@ export async function* nxPluginE2EExecutor( const { target, ...jestOptions } = options; output.warn({ - title: `"@nx/plugin:e2e" is deprecated and will be removed in Nx 18`, + title: `"@nx/plugin:e2e" is deprecated and will be removed in Nx 19`, bodyLines: [ 'Use the "@nx/jest:jest" executor instead and set the following:', `"dependsOn": ["${target}"]`, diff --git a/packages/plugin/src/generators/executor/schema.d.ts b/packages/plugin/src/generators/executor/schema.d.ts index 3fea6251a9..51af74fe4f 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 v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/plugin/src/generators/executor/schema.json b/packages/plugin/src/generators/executor/schema.json index 336416253b..4a598499af 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 v18." + "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." }, "skipFormat": { "type": "boolean", diff --git a/packages/plugin/src/generators/generator/schema.d.ts b/packages/plugin/src/generators/generator/schema.d.ts index cf72cc7754..fc88a1906b 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 v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/plugin/src/generators/generator/schema.json b/packages/plugin/src/generators/generator/schema.json index 0a898b5b4a..a93943342b 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 v18." + "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." }, "skipFormat": { "type": "boolean", diff --git a/packages/plugin/src/generators/migration/schema.d.ts b/packages/plugin/src/generators/migration/schema.d.ts index e878fef87d..6093592287 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 v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/plugin/src/generators/migration/schema.json b/packages/plugin/src/generators/migration/schema.json index 29c4141086..683d8e6a79 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 v18." + "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." }, "packageJsonUpdates": { "type": "boolean", diff --git a/packages/react-native/src/generators/component/schema.d.ts b/packages/react-native/src/generators/component/schema.d.ts index 857e5505c4..6fc205f6b1 100644 --- a/packages/react-native/src/generators/component/schema.d.ts +++ b/packages/react-native/src/generators/component/schema.d.ts @@ -4,20 +4,20 @@ 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 v18. + * @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. */ project: string; skipTests?: boolean; directory?: string; export?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseFiles?: boolean; classComponent?: boolean; js?: boolean; /** - * @deprecated Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19. */ flat?: boolean; nameAndDirectoryFormat?: 'as-provided' | 'derived'; diff --git a/packages/react-native/src/generators/component/schema.json b/packages/react-native/src/generators/component/schema.json index 9b33f071af..6688d980d7 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 v18." + "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." }, "name": { "type": "string", @@ -58,7 +58,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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "export": { "type": "boolean", @@ -72,7 +72,7 @@ "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "classComponent": { "type": "boolean", diff --git a/packages/react/docs/cypress-component-configuration-examples.md b/packages/react/docs/cypress-component-configuration-examples.md index 29445395d9..7e8672bda2 100644 --- a/packages/react/docs/cypress-component-configuration-examples.md +++ b/packages/react/docs/cypress-component-configuration-examples.md @@ -5,7 +5,7 @@ You can migrate with to v10 via the [migrate-to-cypress-10 generator](/packages/ This generator is for Cypress based component testing. -If you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 18. +If you want to test components via Storybook with Cypress, then check out the [storybook-configuration generator docs](/nx-api/react/generators/storybook-configuration). However, this functionality is deprecated, and will be removed on Nx version 19. {% /callout %} This generator is designed to get your React project up and running with Cypress Component Testing. diff --git a/packages/react/plugins/component-testing/index.ts b/packages/react/plugins/component-testing/index.ts index 4dc7c45b3f..d8664b5f62 100644 --- a/packages/react/plugins/component-testing/index.ts +++ b/packages/react/plugins/component-testing/index.ts @@ -259,7 +259,7 @@ function buildTargetWebpack( return async () => { customWebpack = await customWebpack; - // TODO(v18): Once webpackConfig is always set in @nx/webpack:webpack and isolatedConfig is removed, we no longer need this default. + // TODO(v19): Once webpackConfig is always set in @nx/webpack:webpack and isolatedConfig is removed, we no longer need this default. const configure = composePluginsSync(withNx(), withWeb()); const defaultWebpack = configure( {}, diff --git a/packages/react/src/generators/component/schema.d.ts b/packages/react/src/generators/component/schema.d.ts index 9c7ba27ed7..f13493cef3 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 v18. + * @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. */ project?: string; style: SupportedStyles; @@ -11,18 +11,18 @@ export interface Schema { directory?: string; export?: boolean; /** - * @deprecated Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseFiles?: boolean; /** - * @deprecated Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseDirectory?: boolean; classComponent?: boolean; routing?: boolean; js?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ flat?: boolean; globalCss?: boolean; diff --git a/packages/react/src/generators/component/schema.json b/packages/react/src/generators/component/schema.json index 2c7f981fcc..11ef1ba471 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 v18." + "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." }, "name": { "type": "string", @@ -91,7 +91,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. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19." }, "export": { "type": "boolean", @@ -105,14 +105,14 @@ "description": "Use pascal case component file name (e.g. `App.tsx`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `App/App.tsx`).", "alias": "R", "default": false, - "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "classComponent": { "type": "boolean", diff --git a/packages/react/src/generators/hook/schema.d.ts b/packages/react/src/generators/hook/schema.d.ts index 07bda20c4e..c857d6ae74 100644 --- a/packages/react/src/generators/hook/schema.d.ts +++ b/packages/react/src/generators/hook/schema.d.ts @@ -1,22 +1,22 @@ 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 v18. + * @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. */ project: string; skipTests?: boolean; directory?: string; export?: boolean; /** - * @deprecated Provide the `name` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `name` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseFiles?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ pascalCaseDirectory?: boolean; /** - * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. This option will be removed in Nx v19. */ flat?: boolean; js?: boolean; diff --git a/packages/react/src/generators/hook/schema.json b/packages/react/src/generators/hook/schema.json index 47c5008b5e..a0c5901aeb 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "export": { "type": "boolean", @@ -70,14 +70,14 @@ "description": "Use pascal case hook file name (e.g. `useHook.ts`).", "alias": "P", "default": false, - "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `name` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." }, "pascalCaseDirectory": { "type": "boolean", "description": "Use pascal case directory name (e.g. `useHook/useHook.ts`).", "alias": "R", "default": false, - "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v18." + "x-deprecated": "Provide the `directory` in pascal-case and use the `as-provided` format. This option will be removed in Nx v19." } }, "required": ["name"] diff --git a/packages/react/src/generators/redux/schema.d.ts b/packages/react/src/generators/redux/schema.d.ts index 789812a2e5..7852968726 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 v18. + * @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. */ project?: string; directory?: string; diff --git a/packages/react/src/generators/redux/schema.json b/packages/react/src/generators/redux/schema.json index 19b1ebe643..aec773e832 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 v18." + "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." }, "directory": { "type": "string", diff --git a/packages/react/src/generators/storybook-configuration/configuration.spec.ts b/packages/react/src/generators/storybook-configuration/configuration.spec.ts index 4981a6cd65..a09afbdbec 100644 --- a/packages/react/src/generators/storybook-configuration/configuration.spec.ts +++ b/packages/react/src/generators/storybook-configuration/configuration.spec.ts @@ -1,4 +1,4 @@ -// TODO(katerina): Nx 18 -> remove Cypress +// TODO(katerina): Nx 19 -> remove Cypress import { installedCypressVersion } from '@nx/cypress/src/utils/cypress-version'; import { logger, Tree } from '@nx/devkit'; import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; diff --git a/packages/react/src/generators/storybook-configuration/configuration.ts b/packages/react/src/generators/storybook-configuration/configuration.ts index de5dd7f3d8..8cd6727977 100644 --- a/packages/react/src/generators/storybook-configuration/configuration.ts +++ b/packages/react/src/generators/storybook-configuration/configuration.ts @@ -10,7 +10,7 @@ import { import { nxVersion } from '../../utils/versions'; async function generateStories(host: Tree, schema: StorybookConfigureSchema) { - // TODO(katerina): Nx 18 -> remove Cypress + // TODO(katerina): Nx 19 -> remove Cypress ensurePackage('@nx/cypress', nxVersion); const { getE2eProjectName } = await import( '@nx/cypress/src/utils/project-name' diff --git a/packages/react/src/generators/storybook-configuration/schema.json b/packages/react/src/generators/storybook-configuration/schema.json index babe4c8434..cb6695fc3f 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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "js": { "type": "boolean", diff --git a/packages/remix/src/generators/action/schema.d.ts b/packages/remix/src/generators/action/schema.d.ts index 9315409e92..592d42f708 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/action/schema.json b/packages/remix/src/generators/action/schema.json index 331d364ea9..30efa8c45e 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 v18." + "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." } }, "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 9c4893aa62..e9516147a5 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/error-boundary/schema.json b/packages/remix/src/generators/error-boundary/schema.json index 1208ac0841..c0049aeae3 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 v18." + "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." }, "skipFormat": { "type": "boolean", diff --git a/packages/remix/src/generators/loader/schema.d.ts b/packages/remix/src/generators/loader/schema.d.ts index 9315409e92..592d42f708 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/loader/schema.json b/packages/remix/src/generators/loader/schema.json index 4601dac18d..90de328524 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 v18." + "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." } }, "required": ["path"] diff --git a/packages/remix/src/generators/meta/schema.d.ts b/packages/remix/src/generators/meta/schema.d.ts index c81caf4076..f1d60f0ec7 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/meta/schema.json b/packages/remix/src/generators/meta/schema.json index 20184852ee..9e6b3e3916 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 v18." + "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." } }, "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 2512f88757..c26cc7ffa8 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/resource-route/schema.json b/packages/remix/src/generators/resource-route/schema.json index 218fb69f39..a9435772c1 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 v18." + "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." }, "action": { "type": "boolean", diff --git a/packages/remix/src/generators/route/schema.d.ts b/packages/remix/src/generators/route/schema.d.ts index b94691c6bd..ca8b81dce2 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/route/schema.json b/packages/remix/src/generators/route/schema.json index 351a4a7c6a..4c967eb7db 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 v18." + "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." }, "style": { "type": "string", diff --git a/packages/remix/src/generators/style/schema.d.ts b/packages/remix/src/generators/style/schema.d.ts index b0bb7d20a8..940f8686e1 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 v18. + * @deprecated Provide the `path` option instead. The project will be determined from the path provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/remix/src/generators/style/schema.json b/packages/remix/src/generators/style/schema.json index 91ddf118f1..fe449dce40 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 v18." + "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." } }, "required": ["path"] diff --git a/packages/storybook/src/generators/configuration/configuration.ts b/packages/storybook/src/generators/configuration/configuration.ts index dd39566a10..3ef8e28d5a 100644 --- a/packages/storybook/src/generators/configuration/configuration.ts +++ b/packages/storybook/src/generators/configuration/configuration.ts @@ -178,7 +178,7 @@ export async function configurationGenerator( devDeps['storybook'] = storybookVersion; } - // TODO(katerina): Nx 18 -> remove Cypress + // TODO(katerina): Nx 19 -> remove Cypress if (schema.configureCypress) { const e2eProject = await getE2EProjectName(tree, schema.project); if (!e2eProject) { diff --git a/packages/storybook/src/generators/configuration/schema.d.ts b/packages/storybook/src/generators/configuration/schema.d.ts index 13b3264b0e..f263b7debe 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 v18. + * @deprecated Use interactionTests instead. This option will be removed in v19. */ configureCypress?: boolean; /** - * @deprecated Use interactionTests instead. This option will be removed in v18. + * @deprecated Use interactionTests instead. This option will be removed in v19. */ cypressDirectory?: string; } diff --git a/packages/storybook/src/generators/configuration/schema.json b/packages/storybook/src/generators/configuration/schema.json index 1480eb83f9..350bc293ba 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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "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 v18." + "x-deprecated": "Use interactionTests instead. This option will be removed in v19." }, "linter": { "description": "The tool to use for running lint checks.", diff --git a/packages/tao/README.md b/packages/tao/README.md index 8979e55bac..0141d13517 100644 --- a/packages/tao/README.md +++ b/packages/tao/README.md @@ -4,7 +4,7 @@ [Read more here](https://nx.dev/recipes/other/rescope) -@nrwl/tao will no longer be published in Nx v18. +@nrwl/tao will no longer be published in Nx v19.

diff --git a/packages/vite/src/executors/preview-server/preview-server.impl.ts b/packages/vite/src/executors/preview-server/preview-server.impl.ts index c6957cf471..5ff7a56a80 100644 --- a/packages/vite/src/executors/preview-server/preview-server.impl.ts +++ b/packages/vite/src/executors/preview-server/preview-server.impl.ts @@ -183,7 +183,7 @@ function closeServer(server?: Record): Promise { const { httpServer } = server; if (httpServer['closeAllConnections']) { // https://github.com/vitejs/vite/pull/14834 - // closeAllConnections was added in Node v18.2.0 + // closeAllConnections was added in Node v19.2.0 // typically is "as http.Server" but no reason // to import http just for this (httpServer as any).closeAllConnections(); diff --git a/packages/vue/src/generators/component/schema.d.ts b/packages/vue/src/generators/component/schema.d.ts index 03438e235b..ff584f0f62 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 v18. + * @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ flat?: boolean; /** - * @deprecated Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v18. + * @deprecated Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v19. */ pascalCaseDirectory?: boolean; /** - * @deprecated Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v18. + * @deprecated Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v19. */ pascalCaseFiles?: boolean; /** - * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v18. + * @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v19. */ project?: string; } diff --git a/packages/vue/src/generators/component/schema.json b/packages/vue/src/generators/component/schema.json index 6285f57ced..371978a2f5 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 v18." + "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." }, "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 v18." + "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 v18." + "x-deprecated": "Provide the desired `name` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "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 v18." + "x-deprecated": "Provide the desired `directory` option instead and use the `as-provided` format. It will be removed in Nx v19." }, "routing": { "type": "boolean", diff --git a/packages/webpack/src/executors/webpack/schema.d.ts b/packages/webpack/src/executors/webpack/schema.d.ts index 1bed74dd8a..4f9bbb390d 100644 --- a/packages/webpack/src/executors/webpack/schema.d.ts +++ b/packages/webpack/src/executors/webpack/schema.d.ts @@ -47,7 +47,7 @@ export interface WebpackExecutorOptions { extractLicenses?: boolean; fileReplacements?: FileReplacement[]; generatePackageJson?: boolean; - // TODO(v18): Remove this option + // TODO(v19): Remove this option /** @deprecated set webpackConfig and provide an explicit webpack.config.js file (See: https://nx.dev/recipes/webpack/webpack-config-setup) */ isolatedConfig?: boolean; standardWebpackConfigFunction?: boolean; diff --git a/packages/webpack/src/executors/webpack/schema.json b/packages/webpack/src/executors/webpack/schema.json index 9182d4e5b0..dc575323f9 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 18. 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 19. See https://nx.dev/recipes/webpack/webpack-config-setup." }, "standardWebpackConfigFunction": { "type": "boolean", diff --git a/packages/webpack/src/utils/module-federation/secondary-entry-points.ts b/packages/webpack/src/utils/module-federation/secondary-entry-points.ts index 0cb16e24f2..9f22f09e18 100644 --- a/packages/webpack/src/utils/module-federation/secondary-entry-points.ts +++ b/packages/webpack/src/utils/module-federation/secondary-entry-points.ts @@ -8,7 +8,7 @@ import { requireNx } from '@nx/devkit/nx'; let { readModulePackageJson } = requireNx(); -// TODO: Remove this in Nx 18 when Nx 16.7.0 is no longer supported +// TODO: Remove this in Nx 19 when Nx 16.7.0 is no longer supported readModulePackageJson = readModulePackageJson ?? require('nx/src/utils/package-json').readModulePackageJson; diff --git a/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts b/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts index 7804c8de1e..76b64b95f2 100644 --- a/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts +++ b/packages/webpack/src/utils/webpack/deprecated-stylus-loader.ts @@ -1,10 +1,10 @@ import { logger } from '@nx/devkit'; // @ts-ignore import * as stylusLoader from 'stylus-loader'; -// TOOD(v18): Remove this file and stylus support. +// 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 18. 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 19. 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 b843a765e9..18c20749ed 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 18, the project name and destination will no longer be derived. + In Nx 19, 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 diff --git a/packages/workspace/src/generators/utils/presets.ts b/packages/workspace/src/generators/utils/presets.ts index af482e900a..be82ad7a1d 100644 --- a/packages/workspace/src/generators/utils/presets.ts +++ b/packages/workspace/src/generators/utils/presets.ts @@ -1,6 +1,6 @@ export enum Preset { Apps = 'apps', - // TODO(v18): Remove Empty and Core presets + // TODO(v19): Remove Empty and Core presets /** @deprecated Use Apps instead */ Empty = 'empty',