Socket
Socket
Sign inDemoInstall

gatsby-image

Package Overview
Dependencies
Maintainers
22
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-image - npm Package Compare versions

Comparing version 2.4.15 to 2.4.16

6

CHANGELOG.md

@@ -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 @@

20

index.d.ts

@@ -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,

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc