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

[Snyk] Upgrade gsap from 3.9.0 to 3.11.3 #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade gsap from 3.9.0 to 3.11.3.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 10 versions ahead of your current version.
  • The recommended version was released 24 days ago, on 2022-10-04.
Release notes
Package name: gsap
  • 3.11.3 - 2022-10-04
  • 3.11.2 - 2022-09-27
  • 3.11.1 - 2022-09-03
    • IMPROVED: Draggable converts x/y back into "px" if you set it to a different unit outside of Draggable, like if you tweened to x: "100%" for example. See https://greensock.com/forums/topic/33616-need-double-click-on-draggable-to-fire-function/

    • IMPROVED: if you revert() a gsap.context(), it will kill any delayedCalls that were created in that context.

    • FIXED: a regression in 3.11.0 caused the ScrollSmoother's onUpdate method to get the Tween instance passed as the only parameter instead of the ScrollSmoother instance itself. See https://greensock.com/forums/topic/33605-gsap-3110-scrollsmoother-onupdate-returns-a-tween-instance-in-stead-of-scrollsmoother/

    • FIXED: regression in 3.11.0 could cause SVG elements with non-identity values in the "transform" property to revert to an identity matrix.

    • FIXED: if a pinned element has flex-basis of something other than "auto", it would be changed to "auto" during the pinning.

    • FIXED: the lockAxis feature of Observer might allow a small amount of movement on the opposite axis on the very first drag event.

    • FIXED: if you set a toggleAction of a ScrollTrigger to "reverse", fastScrollEnd: true would force it to its end instead of its start (only when scrolling fast of course). See https://greensock.com/forums/topic/33511-scrolltrigger-handling-fast-scrolls-pages-already-scrolled-on-load/

    • FIXED: regression in 3.11.0 could cause an SVG element's transform-origin to be calculated incorrectly in a .from() or .fromTo() tween.

    • FIXED: a regression in 3.11.0 caused the old ScrollTrigger.matchMedia({...}) syntax not to function properly. See #514

    • FIXED: if you use Flip plugin to flip between two elements that have matchin data-flip-id values and one of them is invisible (display: none), it will no longer try to flip them. Instead, it includes them in the onEnter/onLeave.

    • FIXED: function-based values inside keyframes inside tweens that also have a stagger weren't properly passing along the index and targets Array to the function-based value. See https://greensock.com/forums/topic/33717-function-based-values-in-keyframes-since-gsap-39/

  • 3.11.0 - 2022-08-17
    Read more
  • 3.10.4 - 2022-04-22
    • IMPROVED: DrawSVGPlugin only warns once now when you use vector-effect="non-scaling-stroke" and scale something non-proportionally. See https://greensock.com/forums/topic/31881-warning-drawsvgplugin-and-vector-effect-property-in-safari-chrome-and-firefox/

    • IMPROVED: a ScrollTrigger.refresh() will now force a ScrollSmoother's wrapper element's scrollTop to 0 in order to work around an edge case where the browser automatically set it due to a hash in the URL for example. See https://greensock.com/forums/topic/31897-scroll-to-different-page/#comment-159550

    • IMPROVED: forced scroll-behavior to "auto" on / to override Bootstrap's "smooth" that it adds (and breaks things).

    • IMPROVED: worked around iOS bugs that cause the frame rate to appear to drop in half while touch-scrolling on iOS with ScrollSmoother (only while finger is on screen).

    • FIXED: regression in 3.10.3 caused ScrollSmoother effects not to work properly if you scroll down on a page and then resize the viewport

    • FIXED: if you ScrollTrigger.normalizeScroll(true) and then ScrollTrigger.normalizeScroll(false), it could cause touch-scrolling not to work properly on some mobile devices.

    • FIXED: when pinning elements with ScrollTrigger using transforms rather than position: fixed, if you're animating the y position of the pinned element itself it could throw an error.

    • FIXED: on initial page load, if the page was scrolled down, ScrollSmoother may render the page at the top.

    • FIXED: when ScrollTrigger.normalizeScroll() is applied on a page that does NOT have the initial scale set to 1 like , touch-scrolling may move at the wrong speed.

    • FIXED: if you ScrollTrigger.normalizeScroll({ type: "pointer,wheel" }) and then drag on the scrollbar in the browser, it may not update ScrollSmoother's position.

  • 3.10.3 - 2022-04-12
    • NEW: ScrollSmoother now has a static .refresh() and instance-level .refresh() methods as a convenience (identical to ScrollTrigger.refresh() and smoother.scrollTrigger.refresh() but we found those weren't as intuitive).

    • IMPROVED: Observer will trigger an onMove when an onDrag occurs (rather than prioritizing the onDrag over onMove)

    • IMPROVED: if you set paused(true) on a ScrollSmoother, it'll now allow wheel scrolling on things other than the body (like modals). See https://greensock.com/forums/topic/31685-scrollsmoother-and-modal/

    • IMPROVED: if you forget to add a wrapper element for ScrollSmoother and it automatically generates one for you and then you (or your framework) call ScrollSmoother.create() AGAIN, it'll find that first wrapper that was auto-generated and reuse that instead of creating another one. See https://greensock.com/forums/topic/31790-scroll-smoother-with-swup/

    • FIXED: input elements like , , etc. will now get focus properly when you tap on them on a mobile device when normalizeScroll is enabled.

      FIXED: if you paused(true) a ScrollSmoother, buttons may not respond to clicks.

      FIXED: when a ScrollSmoother's .offset() was called, the target element would always end up with a transform (even if it was translate(0,0)). It wouldn't visually change anything, but the mere fact that it had a transform could have negative effects like creating a new container boundary.

      FIXED: ScrollSmoother.scrollTo(...) may (in one particular situation) scroll smoothly even if you set the smooth parameter to false.

      FIXED: if you disable() an Observer WHILE dragging, it didn't may continue firing onDrag events until released.

      FIXED: if you kill() a ScrollSmoother, it didn't reset the height of the to "auto". See https://greensock.com/forums/topic/31639-scrollsmoother-refresh-after-routing/

      FIXED: pinning could be thrown off if the window gets resized after scrolling (regression in 3.10.0). See https://greensock.com/forums/topic/31699-scrolltrigger-pin-breaks-on-page-rsize/

      FIXED: a regression in 3.10.0 could cause snapping not to work properly after resize in some scenarios. See https://greensock.com/forums/topic/31633-cannot-get-scrollsmoother-to-work-with-scrolltrigger-snapping/

      FIXED: if you try animating an SVG on a motion path, it would throw an error because elements don't have a way to get local bounding box coordinates like .getBBox().

      FIXED: if you enable ignoreMobileResize in ScrollTrigger/ScrollSmoother, it may not trigger a refresh when the user changes their mobile device's orientation.

  • 3.10.2 - 2022-03-31
    • IMPROVED: you can call a ScrollSmoother's .effects() method and omit the config object if you want it to just pull from the data attributes.

    • FIXED: ScrollSmoother could show a warning in the console in browsers that don't support overscroll-behavior (like Safari).

    • FIXED: if you load ScrollTrigger or Observer AFTER you load GSAP in the (all loaded BEFORE the exists), it would throw an error. See https://greensock.com/forums/topic/31624-cannot-load-register-scrolltrigger-3100-or-3101/

  • 3.10.1 - 2022-03-30
    • IMPROVED: you can add a scrollSpeed multiplier to an Observer which is very useful if you want to invert the direction (scrollSpeed: -1)

    • FIXED: TypeScript definition file fixes, like Observer and ScrollSmoother needed to be added to the index.d.ts file. See https://greensock.com/forums/topic/31596-typescript-eslint-question/

    • FIXED: if you define a function-based "momentum" in ScrollTrigger.normalizeScroll({ momentum: self => {...} }) it wouldn't work properly (only numbers worked, not function-based values).

    • FIXED: default for the "type" of Observer is "wheel,touch,pointer" ("scroll" is not included anymore by default because it's better to opt-in due to the fact that drag-srolling could cause directional confusion).

  • 3.10.0 - 2022-03-29
    Read more
  • 3.9.1 - 2021-12-24
    • FIXED: if you do a .fromTo() and the "from" part has a numeric value (no unit) that does NOT have a default unit defined in gsap.config({units:{}}), it wouldn't get added automatically. Now it uses the unit from the current value in that case.

    • IMPROVED: Flip's "absolute" feature works better now with grid. It also assigns an explicit width/height to targets that aren't included in the "absolute" ones in order to prevent collapsing.

  • 3.9.0 - 2021-12-16
from gsap GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant