@webda/codemod

3.0.0 • Public • Published

codemod

This package provides helper to migrate from one version to another

Usage

yarn add --dev @webda/codemod
# If typescript
npx jscodeshift --parser ts -t node_modules/@webda/codemod/${script}.js src/**/*.ts
# Or
find . -name \*.ts | grep -v node_modules | grep -v \.d\.ts | xargs jscodeshift --parser ts -t node_modules/@webda/codemod/${script}.js

webda-0.11-1.0

This script will move all imports webda or webda-* to @webda/core or @webda/*

It will also update any reference of Executor from webda to Service from @webda/core

It upgrade methods checkCSRF to checkRequest

Rename all _params to parameters

webda-1.x-2.0

Warning

MemoryQueue return now a stringified version of the message, you have to parse it

Recast issue

If you see parenthesis with destructed assignement

Readme

Keywords

Package Sidebar

Install

npm i @webda/codemod

Weekly Downloads

7

Version

3.0.0

License

ISC

Unpacked Size

12.8 kB

Total Files

4

Last publish

Collaborators

  • loopingz
  • 8llouch