Skip to content

refactor: move extension APIs to session.extensions - #45597

Merged
ckerr merged 1 commit into
mainfrom
refactor/extensions-api
Feb 21, 2025
Merged

ckerr merged 1 commit into
mainfrom
refactor/extensions-api

Conversation

@samuelmaddock

@samuelmaddock samuelmaddock commented Feb 12, 2025 •

Copy link
Copy Markdown
Member

Description of Change

Moves all extension APIs from Session to Session.extensions similar to protocol/serviceWorkers/etc. I intend to add new APIs in the future and this seems like the best way to avoid further growing the Session API. It has the added benefit of requiring less ENABLE_ELECTRON_EXTENSIONS conditionals.

Checklist

Release Notes

Notes: Moved Session extension APIs to Session.extensions.

@samuelmaddock samuelmaddock added semver/minor backwards-compatible functionality no-backport labels Feb 12, 2025
@samuelmaddock
samuelmaddock requested a review from a team as a code owner February 12, 2025 15:54

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

API LGTM.

It looks like the PR is entirely that process of moving the docs and code to session.extensions, is that correct? That all LGTM as well, just wanted to make sure there aren't any non-move changes that I missed.

@samuelmaddock

Copy link
Copy Markdown
Member Author

@ckerr that's right, no added functionality included with these changes.

@samuelmaddock
samuelmaddock force-pushed the refactor/extensions-api branch from 04a488f to da86af3 Compare February 18, 2025 19:21
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 19, 2025

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

API LGTM

@samuelmaddock
samuelmaddock force-pushed the refactor/extensions-api branch from da86af3 to deab953 Compare February 20, 2025 20:36
@ckerr
ckerr merged commit e3f61b4 into main Feb 21, 2025
@ckerr
ckerr deleted the refactor/extensions-api branch February 21, 2025 23:36
@release-clerk

release-clerk Bot commented Feb 21, 2025

Copy link
Copy Markdown

Release Notes Persisted

Moved Session extension APIs to Session.extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants