Skip to content

Commit

Permalink
add changeset and default cloudinary urlAnalytics to false
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Feb 7, 2024
1 parent fe280c5 commit fe0e81d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cloudinary-new-major.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/cloudinary': patch
---

Upgrade `cloudinary` library to version 2
6 changes: 5 additions & 1 deletion packages/cloudinary/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ export function cloudinaryImage<ListTypeInfo extends BaseListTypeInfo> ({
return cloudinary.url(public_id, {
type: 'upload',
format,
secure: true,
secure: true, // the default as of version 2
url_suffix: prettyName,
transformation,
cloud_name: cloudinaryConfig.cloudName,

// SDK analytics defaults to true in version 2 (ref https://github.com/cloudinary/cloudinary_npm/commit/d2510eb677e553a45bc7e363b35d2c20b4c4b144#diff-9aa82f0ed674e050695a7422b1cd56d43ce47e6953688a16a003bf49c3481622)
// we default to false for the least surprise, keeping this upgrade as a patch
urlAnalytics: false,
})
},
...val,
Expand Down

0 comments on commit fe0e81d

Please sign in to comment.