Skip to main content

Replace deprecated util.types.isWebAssemblyCompiledModule()

org.openrewrite.node.migrate.util.replace-is-webassembly-compiled-module

Replace util.types.isWebAssemblyCompiledModule(value) with value instanceof WebAssembly.Module.

Tags

Recipe source

GitHub: rewrite+org.openrewrite.node.migrate.util.replace-is-webassembly-compiled-module, Issue Tracker, Maven Central

This recipe is available under the Moderne Source Available License.

Used by

This recipe is used as part of the following composite recipes:

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.util.replace-is-webassembly-compiled-module

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.