@graphcommerce/image 3.1.6 → 3.1.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1490](https://github.com/graphcommerce-org/graphcommerce/pull/1490) [`d311ef48b`](https://github.com/graphcommerce-org/graphcommerce/commit/d311ef48bb3e97806d992af5516d6b7f183ec9cb) Thanks [@paales](https://github.com/paales)! - upgraded packages
8
+
9
+ - Updated dependencies [[`d311ef48b`](https://github.com/graphcommerce-org/graphcommerce/commit/d311ef48bb3e97806d992af5516d6b7f183ec9cb)]:
10
+ - @graphcommerce/framer-utils@3.1.4
11
+
3
12
  ## 3.1.6
4
13
 
5
14
  ### Patch Changes
@@ -530,27 +530,24 @@ const Image = React.forwardRef<HTMLImageElement, ImageProps>(
530
530
  rel='preload'
531
531
  as='image'
532
532
  media='(-webkit-min-device-pixel-ratio: 2.5)'
533
- // @ts-expect-error imagesrcset/imagesizes is not yet in the link element type.
534
- imagesrcset={srcSet3x}
535
- imagesizes={sizes}
533
+ imageSrcSet={srcSet3x}
534
+ imageSizes={sizes}
536
535
  />
537
536
  <link
538
537
  key={`img-${srcSet2x}${sizes}`}
539
538
  rel='preload'
540
539
  as='image'
541
540
  media='(-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 2.49)'
542
- // @ts-expect-error imagesrcset/imagesizes is not yet in the link element type.
543
- imagesrcset={srcSet2x}
544
- imagesizes={sizes}
541
+ imageSrcSet={srcSet2x}
542
+ imageSizes={sizes}
545
543
  />
546
544
  <link
547
545
  key={`img-${srcSet1x}${sizes}`}
548
546
  rel='preload'
549
547
  as='image'
550
548
  media='(-webkit-max-device-pixel-ratio: 1.49)'
551
- // @ts-expect-error imagesrcset/imagesizes is not yet in the link element type.
552
- imagesrcset={srcSet1x}
553
- imagesizes={sizes}
549
+ imageSrcSet={srcSet1x}
550
+ imageSizes={sizes}
554
551
  />
555
552
  </>
556
553
  )}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/image",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.1.6",
5
+ "version": "3.1.7",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -15,10 +15,10 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@graphcommerce/framer-utils": "3.1.3"
18
+ "@graphcommerce/framer-utils": "3.1.4"
19
19
  },
20
20
  "devDependencies": {
21
- "@graphcommerce/eslint-config-pwa": "^4.1.5",
21
+ "@graphcommerce/eslint-config-pwa": "^4.1.8",
22
22
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
23
23
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
24
24
  "@playwright/test": "^1.21.1",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@mui/material": "5.5.3",
29
- "next": "12.1.2",
30
- "react": "^17.0.2",
31
- "react-dom": "^17.0.2"
29
+ "next": "^12.1.2",
30
+ "react": "^18.0.0",
31
+ "react-dom": "^18.0.0"
32
32
  }
33
33
  }