Skip to content

refactor: remove @segment/action-emitters dependency#3844

Open
nick-Ag wants to merge 1 commit into
mainfrom
ACTV-000/rip-action-emitters
Open

refactor: remove @segment/action-emitters dependency#3844
nick-Ag wants to merge 1 commit into
mainfrom
ACTV-000/rip-action-emitters

Conversation

@nick-Ag

@nick-Ag nick-Ag commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the @segment/action-emitters package dependency from @segment/actions-core
  • Hardcodes the EventEmitterSlug type locally in packages/core/src/destination-kit/event-emitter-types.ts

Test plan

  • Typecheck passes (yarn typecheck in core)
  • All destination-kit tests pass (56/56)
  • Local yarn install passes
  • Local yarn build passes
  • Full CI passes

🤖 Generated with Claude Code

…ntEmitterSlug type

The action-emitters package is being deprecated. This inlines the only type
we depend on (EventEmitterSlug) into a local file to eliminate the external dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 18, 2026 22:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the deprecated @segment/action-emitters dependency from packages/core by inlining the only referenced type (EventEmitterSlug) into destination-kit.

Changes:

  • Replaced the EventEmitterSlug import from @segment/action-emitters with a local type import.
  • Added packages/core/src/destination-kit/event-emitter-types.ts containing the hardcoded EventEmitterSlug union type.
  • Removed @segment/action-emitters from packages/core/package.json dependencies.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/core/src/destination-kit/index.ts Switches EventEmitterSlug to a local type source used by exported preset types.
packages/core/src/destination-kit/event-emitter-types.ts Introduces the local EventEmitterSlug type definition.
packages/core/package.json Drops the deprecated @segment/action-emitters dependency.

@nick-Ag nick-Ag marked this pull request as ready for review June 18, 2026 23:27
@nick-Ag nick-Ag requested a review from a team as a code owner June 18, 2026 23:27
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