Skip to main content

Remove deprecated net._setSimultaneousAccepts()

org.openrewrite.node.migrate.net.remove-set-simultaneous-accepts

Remove calls to deprecated net._setSimultaneousAccepts() which was an undocumented internal function that is no longer necessary.

Tags

Recipe source

GitHub: rewrite+org.openrewrite.node.migrate.net.remove-set-simultaneous-accepts, Issue Tracker, Maven Central

This recipe is available under the Moderne Source Available License.

Usage

In order to run JavaScript recipes, you will need to use the Moderne CLI. For JavaScript specific configuration instructions, please see our configuring JavaScript guide.

Once the CLI is installed, you can install this JavaScript recipe package by running the following command:

Install the recipe package
mod config recipes npm install @openrewrite/rewrite

Then, you can run the recipe via:

Run the recipe
mod run . --recipe org.openrewrite.node.migrate.net.remove-set-simultaneous-accepts

Data Tables

Source files that had results

org.openrewrite.table.SourcesFileResults

Source files that were modified by the recipe run.

Column NameDescription
Source path before the runThe source path of the file before the run. null when a source file was created during the run.
Source path after the runA recipe may modify the source path. This is the path after the run. null when a source file was deleted during the run.
Parent of the recipe that made changesIn a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all.
Recipe that made changesThe specific recipe that made a change.
Estimated time savingAn estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds.
CycleThe recipe cycle in which the change was made.