Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ZeeCoder/use-resize-observer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.0.1
Choose a base ref
...
head repository: ZeeCoder/use-resize-observer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.0
Choose a head ref
  • 11 commits
  • 18 files changed
  • 2 contributors

Commits on Jul 27, 2021

  1. Configuration menu
    Copy the full SHA
    10116cc View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2021

  1. fix: Removed resize-observer-polyfill in favour of `@juggle/resize-…

    …observer`.
    
    The latter is better maintained, and does not include now-unnecessary
    ResizeObserver type definitions that also conflicts with newer Typescript versions.
    I consider this a breaking change because there may be unexpected differences between the polyfills.
    
    Also updated all dependencies.
    Removed the ResizeObserver type definition, as TS now includes it.
    ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    8afc8f6 View commit details
    Browse the repository at this point in the history
  2. feat: Added the box option

    Closes #31
    Fixes #57
    ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    0ca6c23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    69298b5 View commit details
    Browse the repository at this point in the history
  4. feat: Added the round option.

    Closes #55
    Fixes #46
    Fixes #61
    ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    aa38199 View commit details
    Browse the repository at this point in the history
  5. fix: The onResize callback is no longer incorrectly called with the…

    … same values.
    
    The same memoisation applied to the hook response's width and height
    should've applied to the onResize callback as well, but it didn't.
    
    This is now fixed, which means that even if the RO reports a change,
    the onResize callback will only be called if there's an actual change
    to report after the rounding function was applied to the reported values.
    ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    bd0f3c8 View commit details
    Browse the repository at this point in the history
  6. chore: Updated readme and contributing files.

    Resolves #66
    ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    52709fe View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c465a3f View commit details
    Browse the repository at this point in the history
  8. chore(release): 7.1.0 [skip ci]

    # [7.1.0](v7.0.1...v7.1.0) (2021-08-28)
    
    ### Bug Fixes
    
    * The `onResize` callback is no longer incorrectly called with the same values. ([29938a1](29938a1))
    
    ### Features
    
    * Added the `box` option ([f873597](f873597)), closes [#31](#31) [#57](#57)
    * Added the `round` option. ([1224bc8](1224bc8)), closes [#55](#55) [#46](#46) [#61](#61)
    semantic-release-bot authored and ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    ede37a6 View commit details
    Browse the repository at this point in the history
  9. feat: Triggering the v8 release

    BREAKING CHANGE: Triggering the v8 release, which was published as 7.1.0 by accident.
    ZeeCoder committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    4373a1f View commit details
    Browse the repository at this point in the history
  10. chore(release): 8.0.0 [skip ci]

    # [8.0.0](v7.0.1...v8.0.0) (2021-08-28)
    
    ### Bug Fixes
    
    * Removed `resize-observer-polyfill` in favour of `@juggle/resize-observer`. ([8afc8f6](8afc8f6))
    * The `onResize` callback is no longer incorrectly called with the same values. ([bd0f3c8](bd0f3c8))
    
    ### Features
    
    * Added the `box` option ([0ca6c23](0ca6c23)), closes [#31](#31) [#57](#57)
    * Added the `round` option. ([aa38199](aa38199)), closes [#55](#55) [#46](#46) [#61](#61)
    * Triggering the v8 release ([4373a1f](4373a1f))
    
    ### BREAKING CHANGES
    
    * Triggering the v8 release, which was published as 7.1.0 by accident.
    semantic-release-bot committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    5b42412 View commit details
    Browse the repository at this point in the history
Loading