@adobe/aio-cli-plugin-app-storage 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -312,5 +312,5 @@
312
312
  ]
313
313
  }
314
314
  },
315
- "version": "1.0.1"
315
+ "version": "1.0.2"
316
316
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aio-cli-plugin-app-storage",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "dependencies": {
5
5
  "@adobe/aio-lib-core-config": "^5",
6
6
  "@adobe/aio-lib-core-logging": "^3",
@@ -22,7 +22,7 @@ export class BaseCommand extends Command {
22
22
  async init () {
23
23
  await super.init()
24
24
  // eslint-disable-next-line node/no-unsupported-features/es-syntax
25
- const { readFile } = await import('fs') // dynamic import to be able to mock fs, ESM and Jest are not friends
25
+ const { readFile } = await import('fs/promises') // dynamic import to be able to mock fs, ESM and Jest are not friends
26
26
 
27
27
  // setup debug logger
28
28
  const command = this.constructor.name.toLowerCase() // hacky but convenient
@@ -52,7 +52,7 @@ export class BaseCommand extends Command {
52
52
  const aioSdkVersion = packageJson.dependencies?.['@adobe/aio-sdk']
53
53
  if ((aioLibStateVersion && semver.lt(semver.coerce(aioLibStateVersion), '4.0.0')) ||
54
54
  (aioSdkVersion && semver.lt(semver.coerce(aioSdkVersion), '6.0.0'))) {
55
- this.error('State commands are not available for legacy State, please migrate to "@adobe/aio-lib-state" > 4.0.0 (or "@adobe/aio-sdk" > 6.0.0).')
55
+ this.error('State commands are not available for legacy State, please migrate to the latest "@adobe/aio-lib-state" (or "@adobe/aio-sdk" >= 6.0.0).')
56
56
  }
57
57
  }
58
58