Skip to content

Conversation

@Sultan-Q
Copy link

@Sultan-Q Sultan-Q commented Dec 4, 2025

The intersection-observer polyfill is no longer needed as the Intersection Observer API has been supported by all major browsers since 2019 (Baseline). This change removes the polyfill dependency and its import.

Changes:

  • Removed intersection-observer from packages/hooks/package.json dependencies.
  • Removed import 'intersection-observer' from packages/hooks/src/useInViewport/index.ts

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

The `intersection-observer` polyfill is no longer needed as the Intersection Observer API has been supported by all major browsers since 2019 (Baseline). This change removes the polyfill dependency and its import.

Changes:
- Removed `intersection-observer` from `packages/hooks/package.json` dependencies.
- Removed `import 'intersection-observer'` from `packages/hooks/src/useInViewport/index.ts`
@CLAassistant
Copy link

CLAassistant commented Dec 4, 2025

CLA assistant check
All committers have signed the CLA.

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.

2 participants