koa-shopify-auth icon indicating copy to clipboard operation
koa-shopify-auth copied to clipboard

API Deprecation Notice from metafields API call

Open unreact-kohiki opened this issue 3 years ago • 3 comments

Issue summary

Hello! I am getting the following warning in my logs even though my app is not using the deprecated API "metafields.valueType". I'm not sure where to find the code that causes this warning.

log:

API Deprecation Notice: {
 message: 'https://shopify.dev/changelog/online-store-2-0-new-metafields-type-system-and-dynamic-sources',
 path: 'https://shop-name.myshopify.com/admin/api/2021-10/metafields.json?limit=1'
}

Expected behavior

My app is not using the deprecated API, so we shouldn't see this notification in the log.

Actual behavior

Notifications about deprecated APIs will be displayed in the log.

log:

API Deprecation Notice: {
 message: 'https://shopify.dev/changelog/online-store-2-0-new-metafields-type-system-and-dynamic-sources',
 path: 'https://shop-name.myshopify.com/admin/api/2021-10/metafields.json?limit=1'
}

I clicked on "path" and got the following screen. I see an object with the key "metafields" and an empty array for the value.

Image from Gyazo

Additional Information

  • "@shopify/koa-shopify-auth": "^4.1.4"
  • "@shopify/shopify-api": "^1.2.1",

unreact-kohiki avatar Jan 07 '22 01:01 unreact-kohiki

This issue has been more than 6 months, but there is no news from the contributor. You can refer to this thread #118

aldoalprak avatar Jan 08 '22 03:01 aldoalprak

I've just created a simpler version of this library (that fixes this and other issues), which you can find at https://www.npmjs.com/package/simple-koa-shopify-auth

TheSecurityDev avatar Jan 09 '22 00:01 TheSecurityDev

This sounds so backwards. I am getting denied my app submission because API is outdated. I cannot upgrade the API usage without a new version of this package which is supported and maintained by Shopify.

Are we to understand that we all need to develop new libraries and support them ourselves?

agustinsacco avatar Jan 29 '22 04:01 agustinsacco

Note that this repo is no longer maintained and this issue will not be reviewed. Prefer the official JavaScript API library. If you still want to use Koa, see simple-koa-shopify-auth for a potential community solution.

github-actions[bot] avatar Jan 30 '23 20:01 github-actions[bot]