raisenational / serverless-dynamodb

⚡🗃️ Serverless plugin to run DynamoDB local
https://www.npmjs.com/package/serverless-dynamodb
MIT License
68 stars 7 forks source link

CLI options definitions were upgraded with "type" property #50

Closed hrvacadaIM closed 6 months ago

hrvacadaIM commented 6 months ago

I am using this plugin and I am getting this warning with serverless v3.38.0:

CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple"). Below listed plugins do not predefine type for introduced options:
 - ServerlessDynamoDBPlugin for "seed"

I see that you left out type intentionally https://github.com/raisenational/serverless-dynamodb/blob/master/src/index.ts#L59, but with serverless v4.0.0, this is going to be an error:

Starting with v4.0.0 any option extensions which does not have type defined will be communicated with a thrown error

You could maybe use type multiple?

domdomegg commented 6 months ago

Whoops, thought we fixed this in #24 but ended up missing this one. Good catch, will fix this one too.

domdomegg commented 6 months ago

Fixed in v0.2.53