Commit e579113
imgix-git-robot
chore(release): 4.0.0
# [4.0.0](v3.6.1...v4.0.0) (2022-10-03)
* fix!: deprecate resizing the height param when maintaining aspect ratio ([9de24c2](9de24c2))
### BREAKING CHANGES
* removes the logic in ix-src responsible for resizing the h (height) parameter to maintain aspect ratio when building the srcset attribute. With the help of the imgix aspect ratio parameter, users can now achieve the same effect with the inclusion of the ar parameter. This should yield slightly better performance, code cleanliness, and bring the library more in line with the imgix API.
Please note, the ar parameter should also be used with fit=crop to take effect
[skip ci]1 parent 9de24c2 commit e579113
4 files changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | 543 | | |
550 | 544 | | |
551 | 545 | | |
| |||
807 | 801 | | |
808 | 802 | | |
809 | 803 | | |
810 | | - | |
| 804 | + | |
811 | 805 | | |
812 | 806 | | |
813 | 807 | | |
| |||
0 commit comments