gatsby-image
Advanced tools
Comparing version 2.4.15 to 2.4.16
@@ -6,2 +6,8 @@ # Change Log | ||
## [2.4.16](https://github.com/gatsbyjs/gatsby/compare/gatsby-image@2.4.15...gatsby-image@2.4.16) (2020-08-12) | ||
### Bug Fixes | ||
- **gatsby-image:** Fix typings for fixed and fluid props ([#24767](https://github.com/gatsbyjs/gatsby/issues/24767)) ([08e0aa1](https://github.com/gatsbyjs/gatsby/commit/08e0aa1)) | ||
## [2.4.15](https://github.com/gatsbyjs/gatsby/compare/gatsby-image@2.4.14...gatsby-image@2.4.15) (2020-08-10) | ||
@@ -8,0 +14,0 @@ |
@@ -27,7 +27,11 @@ import * as React from "react" | ||
interface GatsbyImageProps { | ||
interface GatsbyImageOptionalProps { | ||
/** | ||
* @deprecated Use `fixed` | ||
*/ | ||
resolutions?: FixedObject | ||
/** | ||
* @deprecated Use `fluid` | ||
*/ | ||
sizes?: FluidObject | ||
fixed?: FixedObject | FixedObject[] | ||
fluid?: FluidObject | FluidObject[] | ||
fadeIn?: boolean | ||
@@ -53,3 +57,13 @@ durationFadeIn?: number | ||
} | ||
interface GatsbyImageFluidProps extends GatsbyImageOptionalProps { | ||
fluid: FluidObject | FluidObject[] | ||
} | ||
interface GatsbyImageFixedProps extends GatsbyImageOptionalProps { | ||
fixed: FixedObject | FixedObject[] | ||
} | ||
export type GatsbyImageProps = GatsbyImageFluidProps | GatsbyImageFixedProps | ||
export default class GatsbyImage extends React.Component< | ||
@@ -56,0 +70,0 @@ GatsbyImageProps, |
{ | ||
"name": "gatsby-image", | ||
"description": "Lazy-loading React image component with optional support for the blur-up effect.", | ||
"version": "2.4.15", | ||
"version": "2.4.16", | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
@@ -42,3 +42,3 @@ "bugs": { | ||
}, | ||
"gitHead": "d4dfec8a693e8434a7b0468a86458020d59274e9" | ||
"gitHead": "76be951eef5e95a03dc8faafe57a5888943e3f62" | ||
} |
@@ -5,3 +5,3 @@ import * as React from "react" | ||
interface GatsbyImageWithIEPolyfillProps extends GatsbyImageProps { | ||
type GatsbyImageWithIEPolyfillProps = GatsbyImageProps & { | ||
objectFit?: `fill` | `contain` | `cover` | `none` | `scale-down` | ||
@@ -8,0 +8,0 @@ objectPosition?: string |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83114
777