Skip to content

Commit

Permalink
Merge pull request #573 from studiometa/bugfix/circular-dependency
Browse files Browse the repository at this point in the history
[Bugifx] Fix a circular dependency
  • Loading branch information
titouanmathis authored Jan 15, 2025
2 parents 38fa0a8 + 3451d0d commit 6d84a1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format

## [Unreleased]

### Fixed

- Fix a circular dependency ([#573](https://github.com/studiometa/js-toolkit/pull/573), [93791018](https://github.com/studiometa/js-toolkit/commit/93791018))

## [v3.0.0-beta.3](https://github.com/studiometa/js-toolkit/compare/3.0.0-beta.2..3.0.0-beta.3) (2024-12-04)

### Added
Expand Down
3 changes: 2 additions & 1 deletion packages/js-toolkit/services/DragService.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { ServiceConfig, ServiceInterface } from './AbstractService.js';
import { AbstractService } from './AbstractService.js';
import { useRaf } from './RafService.js';
import { isDefined, inertiaFinalValue } from '../utils/index.js';
import { isDefined } from '../utils/is.js';
import { inertiaFinalValue } from '../utils/math/index.js';
import { PASSIVE_EVENT_OPTIONS, CAPTURE_EVENT_OPTIONS } from './utils.js';

type DragLifecycle = 'start' | 'drag' | 'drop' | 'inertia' | 'stop';
Expand Down
2 changes: 1 addition & 1 deletion packages/js-toolkit/utils/tween.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { cubicBezier } from '@motionone/easing';
import { lerp, map, clamp01, damp, inertiaFinalValue } from './math/index.js';
import { isDefined, isArray, isNumber } from './is.js';
import { noop, noopValue as linear } from './noop.js';
import { useRaf } from '../services/index.js';
import { useRaf } from '../services/RafService.js';
import type { EasingFunction } from './math/createEases.js';

let id = 0;
Expand Down

0 comments on commit 6d84a1e

Please sign in to comment.