Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate @imgix/js-core into react-imgix #780

Merged
merged 8 commits into from
Apr 22, 2021
Merged

Conversation

ericdeansanchez
Copy link
Contributor

@ericdeansanchez ericdeansanchez commented Apr 14, 2021

The purpose of this PR is to integrate @imgix/js-core into
react-imgix. First, targetWidths has been reimplemented in terms of
the js-core client. Second, buildSrc has been implemented in terms of
ImgixClient.buildSrcSet. Lastly, a bug fix was made for the
Background component.

Closes #763

@ericdeansanchez ericdeansanchez requested a review from a team as a code owner April 14, 2021 00:36
@commit-lint
Copy link

commit-lint bot commented Apr 14, 2021

Build System

  • add @imgix/js-core as a dependency (736e634)

Features

  • impl targetWidths in terms of ImgixClient.targetWidths() (9e853f4)
  • impl buildSrcSet in terms of @imgix/js-core (992372b)

Bug Fixes

Code Refactoring

Contributors

ericdeansanchez

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@ericdeansanchez

This comment has been minimized.

Copy link
Contributor

@frederickfogerty frederickfogerty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore, I mistakenly hit submit

Copy link
Contributor

@frederickfogerty frederickfogerty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty great! This is clean ✨ 👏

src/constructUrl.js Show resolved Hide resolved
src/constructUrl.js Show resolved Hide resolved
src/react-imgix.jsx Outdated Show resolved Hide resolved
src/react-imgix.jsx Show resolved Hide resolved
@ericdeansanchez ericdeansanchez merged commit 690e7b6 into main Apr 22, 2021
@ericdeansanchez ericdeansanchez deleted the e/integration branch April 22, 2021 23:51
imgix-git-robot pushed a commit that referenced this pull request Apr 22, 2021
## [9.1.0](v9.0.4...v9.1.0) (2021-04-22)

### Features

* integrate @imgix/js-core into react-imgix ([#780](#780)) ([690e7b6](690e7b6)), closes [#763](#763)

 [skip ci]
imgix-git-robot pushed a commit that referenced this pull request Apr 23, 2021
## [9.1.0](v9.0.4...v9.1.0) (2021-04-23)

### Features

* integrate @imgix/js-core into react-imgix ([#780](#780)) ([690e7b6](690e7b6)), closes [#763](#763)

 [skip ci]
@imgix-git-robot
Copy link

🎉 This PR is included in version 9.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ericdeansanchez added a commit that referenced this pull request Apr 23, 2021
* fix(BackgroundImpl): re-render only if a larger image is needed

* refactor: component should update if props or imgixParams change

* chore(release): 9.1.0

## [9.1.0](v9.0.4...v9.1.0) (2021-04-22)

### Features

* integrate @imgix/js-core into react-imgix ([#780](#780)) ([690e7b6](690e7b6)), closes [#763](#763)

 [skip ci]

Co-authored-by: imgix-git-robot <support@imgix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<Background> generating parameters twice for width and height
3 participants