- Eliminated unused imports from collection.js to clean up the codebase.
- Added functionality to send UI updates after executing collection-level hooks in network/index.js, improving responsiveness and user experience.
- Consolidated hook management by merging hooks from collection, folders, and requests into a single script using mergeScripts.
- Removed the HooksExecutor and HooksConsolidator, simplifying the execution flow.
- Updated runSingleRequest and network IPC to utilize the new merged hooks approach for improved performance and clarity.
- Enhanced comments for better understanding of the hook execution process.
- Eliminated the executeHooksForLevel function from run-single-request.js and network/index.js to streamline hook management.
- Updated comments for clarity and consistency in the remaining hook execution functions.
- Added HooksExecutor to centralize hook execution logic across CLI and Electron.
- Implemented HooksConsolidator to improve performance by consolidating multiple hook levels into a single execution context.
- Refactored existing hook management to utilize the new executor and consolidator, enhancing efficiency and reducing resource usage.
- Updated runSingleRequest and network IPC to leverage consolidated hook execution for better performance.
- Introduced comprehensive tests for the new hooks functionality, ensuring reliability and correctness.
add: hooks component
add support for hooks within bruno-lang
fix: hooks is not getting save
hooks implemtation
add hooks component within folders, requests
add: quick js shims for hooks
fix: garbage collected hook managers
send logs to main
rm: hook manager store
feat: introduce HOOK_EVENTS constant for improved hook management
add folder start/end events
add folder run events
rm: folder run related events
add cli support for hooks
support script:hooks instead of hooks
move hooks to script tab
make outer scope available within callback in safemode
added runner, req apis as an abstraction over event based hooks
fix: crash while editing folder hooks
rm: unused files
fix: self review changes
refactor, request specific hook manager deleted once
add: cm
rm: spaces
add prompt var
rm: indent
fix: lint
refactor: shims handling for hooks
fix: enable async calling in dev mode for gui, cli
fix: support async callbacks within safe mode
rm: vm instance
fix: review comments
fix: review comments
add cli tests for hooks
rm: client certs
fix: add hooks to oc yaml
fix: rename uid ot path name for better clarity, app crash when saving folder hooks
rm: console
rm: vm2 runtime leftover
rm: check
add: handler cleanup function
add: playwright test case for hooks
rm: review fixes
fix: review comments
add fallback hook manager
add fallback hook manager
fix: show error from hooks scripts within response pane
change: collection events name
feat: add name spaced hooks
fix: review comments
add: hooks specific collection for testing
use hooks manager as a private field
fix: tests
use collection from bruno-test within playwright
rm: databuffer test
fix: playwright test
rm: unintended changes
rm: file
add: hooks component
add support for hooks within bruno-lang
fix: hooks is not getting save
hooks implemtation
add hooks component within folders, requests
add: quick js shims for hooks
fix: garbage collected hook managers
send logs to main
rm: hook manager store
feat: introduce HOOK_EVENTS constant for improved hook management
add folder start/end events
add folder run events
rm: folder run related events
add cli support for hooks
support script:hooks instead of hooks
move hooks to script tab
make outer scope available within callback in safemode
added runner, req apis as an abstraction over event based hooks
fix: crash while editing folder hooks
rm: unused files
fix: self review changes
refactor, request specific hook manager deleted once
add: cm
rm: spaces
add prompt var
rm: indent
fix: lint
refactor: shims handling for hooks
fix: enable async calling in dev mode for gui, cli
fix: support async callbacks within safe mode
rm: vm instance
fix: review comments
fix: review comments
add cli tests for hooks
rm: client certs
fix: add hooks to oc yaml
fix: rename uid ot path name for better clarity, app crash when saving folder hooks
rm: console
rm: vm2 runtime leftover
rm: check
add: handler cleanup function
add: playwright test case for hooks
rm: review fixes
fix: review comments
add fallback hook manager
add fallback hook manager
fix: show error from hooks scripts within response pane
change: collection events name
feat: add name spaced hooks
fix: review comments
add: hooks specific collection for testing
use hooks manager as a private field
fix: tests
use collection from bruno-test within playwright
rm: databuffer test
fix: playwright test
rm: unintended changes
rm: file
* fix: preserve workspace name casing in title bar (#6522)
* fix: improve workspace display name handling in title bar
---------
Co-authored-by: Uzairkazi695 <kaziuzair695@gmail.com>
* feat: apply modified dataBuffer to the response
* fix: ensure dataBuffer regeneration only occurs when res.setBody() is called
* refactor: update dataBuffer handling in BrunoResponse
* fix: grpc import paths
* refactor: extract protobuf include directory logic into a separate function
* rm: comment
* fix: improve filtering of enabled import paths in protobuf configuration
* refactor: streamline import path handling in protobuf configuration
* fix: sse sequence in ipc layer
* fix: remove tick rate and flushing
* fix: added sequence logic for websockets
* fix: added sequence logic for websockets per request based
* fix: correct the order for how the messages are added.
`WSMessagesList` already handles a lot of the ordering for us, don't modify the order the messages are added since redirect and connection are internal states, it changes the execution trail
* chore: reduce whitespace diffs
* fix: a possible null case exception
Though we always create an empty data buffer at source so shouldn't happen unless that is modified
* fix: implement sequence logic for WebSocket messages
* fix: remove unused sequenceState property from WsClient
* fix: update message sorting logic to handle missing sequence numbers
* fix: remove unused lodash import
* fix: add clean method to sequencer for better sequence management
* fix: don't show dropdown when streaming
---------
Co-authored-by: Sid <siddharth@usebruno.com>