mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4009] [MERGED] refactor: update to dioc v3 #4634
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4634
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4009
Author: @AndrewBastin
Created: 4/25/2024
Status: ✅ Merged
Merged: 4/29/2024
Merged by: @AndrewBastin
Base:
release/2024.3.2← Head:refactor/dioc-v3📝 Commits (5)
3786119refactor: initial move to dioc v3ec225farefactor: move remaining platform bits into dioc v3 style6dd8dbarefactor: update static spotlight searcher tests4553510chore: bump dioc to v3.0.17bb0706refactor: move service init logic to theonServiceInitmethod📊 Changes
46 files changed (+173 additions, -170 deletions)
View changed files
📝
packages/hoppscotch-common/package.json(+1 -1)📝
packages/hoppscotch-common/src/components.d.ts(+1 -0)📝
packages/hoppscotch-common/src/helpers/teams/TeamsSearch.service.ts(+1 -1)📝
packages/hoppscotch-common/src/modules/dioc.ts(+3 -4)📝
packages/hoppscotch-common/src/platform/index.ts(+2 -2)📝
packages/hoppscotch-common/src/platform/inspectors.ts(+4 -3)📝
packages/hoppscotch-common/src/platform/interceptors.ts(+4 -3)📝
packages/hoppscotch-common/src/platform/spotlight.ts(+3 -3)📝
packages/hoppscotch-common/src/platform/std/inspections/extension.inspector.ts(+1 -3)📝
packages/hoppscotch-common/src/platform/std/interceptors/extension.ts(+1 -3)📝
packages/hoppscotch-common/src/services/context-menu/menu/environment.menu.ts(+1 -3)📝
packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts(+1 -3)📝
packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts(+1 -3)📝
packages/hoppscotch-common/src/services/cookie-jar.service.ts(+0 -4)📝
packages/hoppscotch-common/src/services/debug.service.ts(+1 -3)📝
packages/hoppscotch-common/src/services/inspection/index.ts(+1 -3)📝
packages/hoppscotch-common/src/services/inspection/inspectors/environment.inspector.ts(+1 -3)📝
packages/hoppscotch-common/src/services/inspection/inspectors/header.inspector.ts(+1 -3)📝
packages/hoppscotch-common/src/services/inspection/inspectors/response.inspector.ts(+1 -3)📝
packages/hoppscotch-common/src/services/interceptor.service.ts(+1 -3)...and 26 more files
📄 Description
This PR introduces changes to keep the Hoppscotch codebase mostly in line with the changes introduces in
diocversion3.0.1which tries to update certain bits of how aContainercontext is passed down to services.What's changed
diocto3.0.1on all packages.onServiceInitmethod overridable by services to implement their initialisation logic. The constructor after moving the logic is removed.StaticSpotlightSearcherService, an abstract Service that is implemented that standardized static search logic has a constructor which takes arguments, since there are many implementations of this class, for the time being, the constructor is kept on the inherited services but logic is mostly moved tononServiceInit. TODOs are kept to notify that this a thing we will have to refactor down the line.This PR shouldn't introduce any new end-user functionality of changes in behaviour.
Notes to the reviewer
onServiceInit(except forStaticSpotlightSearcherServiceand its children).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
cross-spawn#4881