chore(bindings): Add @deprecated to JS plugins (#8132)

This commit is contained in:
Donny/강동윤 2023-10-17 07:09:14 +09:00 committed by GitHub
parent 9b27a41b76
commit 1e9b4e027c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -175,6 +175,10 @@ import {
YieldExpression,
} from "@swc/types";
/**
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
*/
export class Visitor {
visitProgram(n: Program): Program {
switch (n.type) {

View File

@ -40,6 +40,9 @@ const bindings: typeof import('./binding') = (() => {
*/
export const version: string = require("./package.json").version;
/**
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
*/
export function plugins(ps: Plugin[]): Plugin {
return mod => {
let m = mod;