Commit graph

2487 commits

Author SHA1 Message Date
Eve
98aa0368fb
fix(common): correctly resolve secret environment variables in basic auth header (#5879)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-02-16 18:21:11 +05:30
Kanhaiya Pandey
2ad2f46e6a
feat(common): URL encode/decode context menu actions (#5782)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-02-16 16:55:47 +05:30
Anwarul Islam
ff906b7c96
fix(common): correctly load mock servers on initialization and workspace change (#5832)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-02-05 15:39:47 +05:30
James George
20bfac04fe chore: bump CLI version 2026-02-05 12:56:11 +05:30
James George
5310b9fb40
fix(cli): strip module prefix before script execution (#5835) 2026-02-05 10:39:04 +05:30
James George
32114fc8ef chore: bump version to 2026.1.1 2026-02-04 22:54:23 +05:30
Nivedin
809c07e84c
fix(common): correctly populate OpenAPI response examples (#5831) 2026-02-04 22:53:17 +05:30
Mir Arif Hasan
bf11e7ee22
chore(backend): upgrade nodemailer dependency to v8 (#5833) 2026-02-04 18:40:13 +05:30
Mir Arif Hasan
37e9207b43
fix(backend): resolve database connection leak in infra-config operations (#5825) 2026-02-04 17:25:00 +05:30
No jae gun
2dc3463b69
fix(backend): use duration instead of timestamp for auth cookie maxAge (#5821)
The maxAge option in Express's res.cookie() expects a duration in milliseconds, not an absolute timestamp. The previous code was adding `Date.now()` to the validity period, causing cookies to expire decades in the future instead of the intended 1 day / 7 days.

This was particularly problematic on macOS due to stricter cookie handling by Safari/WebKit.

Addresses #5818

Co-authored-by: njg7194 <njg7194@users.noreply.github.com>
2026-02-04 11:08:07 +05:30
Leonic
3c0938da9d
fix(common): prevent support menu from triggering in editors (#5811) 2026-02-03 23:46:08 +05:30
Mayank Jain
fcf31a4fd8
fix: broken scroll on latest chrome versions (#5816)
Co-authored-by: nivedin <nivedinp@gmail.com>
2026-02-03 12:07:54 +05:30
Leonic
fbe0b8fd10
fix(common): handle null request ref in InspectionService for test-runner tabs (#5814)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-01-29 23:09:34 +05:30
James George
645ecb55d8 fix: prevent memory leaks in experimental scripting sandbox (#5800)
- Cache and reuse a single `FaradayCage` WASM instance to avoid repeated allocations.
- Dispose `InspectionService` watchers via `effectScope` to prevent accumulation on tab switch.
- Use `Set` for environment variable key lookups in validation.
- Dispose Monaco editor models on component unmount.
2026-01-28 11:47:31 +05:30
James George
913863bd09 chore: bump CLI version 2026-01-23 21:20:36 +05:30
James George
8991f2a490 chore: bump version to 2026.1.0 2026-01-23 21:18:39 +05:30
Leonic
dcc36d2a35
feat(common): display user roles in member stack tooltips (#5793) 2026-01-23 20:44:10 +05:30
abhibarkade
fb09afbd71
feat(common): show full request path in tab tooltip (#5750)
Co-authored-by: Code3B <97300790+code3b@users.noreply.github.com>
2026-01-23 20:30:35 +05:30
Shreyas
6348d17955
fix(desktop): use store dir for unified store path (#5799)
The desktop shell was reading from `instance/hoppscotch-unified.store` while the webapp writes to `store/hoppscotch-unified.store`. This caused the app to lose track of the last connected instance on restart.

Closes FE-1121
2026-01-23 18:20:00 +05:30
Shreyas
c64928885f
feat(desktop): host mapping infra for cloud orgs (#5795) 2026-01-23 15:07:44 +05:30
Leonic
65046526f0
fix(common): ignore shift keybindings in CodeMirror editors (#5794) 2026-01-23 14:35:02 +05:30
Swanand Keskar
05875cc65b
docs(desktop): add installation instruction using Homebrew (#5790)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-01-23 11:45:58 +05:30
shaezard
1824990980
fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647)
* fix: add teamID/userUid filter to updateMany queries

Prevents cross-user/cross-team orderIndex corruption

* fix: fix orderIndex of existing collections

* feat(backend): add cascade delete for collections

- Add onDelete: Cascade to TeamCollection parent relationship
- Add onDelete: Cascade to UserRequest → UserCollection relationship
- Remove manual recursive deleteCollectionData methods
- Simplify deleteUserCollection and deleteTeamCollection services
- Add Prisma migration for cascade delete foreign keys

Resolves #5654

* refactor(team-collection): remove manual deleteCollectionData method

Resolves #5654

* fix(backend): fixed locking mechanisms for collections and requests

- User/Team Collection/Requests

Resolves #5666

---------

Co-authored-by: Abdur Rahman Daanish <abdurrahman_daanish@intuit.com>
2026-01-23 00:32:48 +06:00
James George
a998d6c493
feat(js-sandbox): add extensive Web Crypto API support (#5791) 2026-01-22 17:30:06 +05:30
Jorge Alexander Taberoa Jimenez
4e717d79a5
chore(common): complete missing Spanish translations (#5761)
Co-authored-by: Jorge Alexander Taberoa Jimenez <taberoajorge@users.noreply.github.com>
2026-01-22 17:07:12 +05:30
Mir Arif Hasan
4f13549ed2
chore: security patch for the dependency chain v2026.1.0 (#5786)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-01-21 23:25:40 +05:30
Nivedin
69c7c2d9ad
fix(common): restore scrolling on response panel (#5783) 2026-01-20 19:26:01 +05:30
James George
27b817f627
feat: migrate ESLint to v9 across packages (#5773)
Co-authored-by: curiouscorrelation <curiouscorrelation@gmail.com>
2026-01-20 14:48:55 +05:30
Mir Arif Hasan
992579e285
fix: improve endpoint parsing in parseExample method (#5762) 2026-01-20 12:46:13 +06:00
Anwarul Islam
194c9496aa
fix(common): prevent duplication of request ID when duplicating requests (#5781) 2026-01-19 14:27:58 +05:30
NoobFullStack
4d862c2f4b
feat(common): update and complete Dutch translations for Hoppscotch UI (#5734)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-01-16 22:12:48 +05:30
NoobFullStack
823d9055a2
fix(common): correct typo in repo French locale (#5733) 2026-01-16 19:37:46 +05:30
NarekCodes
818f9ab0ca
feat(common): add armenian translation (#5740) 2026-01-16 19:35:28 +05:30
Gerard Balaoro
bdc2d33f50
feat(common): use jq for JSON response filtering (#5703)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-01-15 15:02:56 +05:30
Chhavi Goyal
bbb7fdf819
fix(common): prevent hang when highlighting large responses (#5714)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-01-15 13:52:17 +05:30
James George
dfe3d05c5a
fix(cli): inherit collection variables in folders without own variables (#5771) 2026-01-14 19:54:36 +05:30
James George
d3144f99fb
fix: strip comments from JSON request bodies in CLI (#5769)
Fixes collections with JSON comments failing in the CLI with `SerializationException` while working fine in the app, where comments are stripped before sending requests, but the CLI was sending them as-is, breaking APIs like AWS Cognito that expect valid JSON.
2026-01-14 17:06:30 +05:30
Aaron Fort Garcia
254eb3c958
fix(common): environment variable mapping when referencing other variables (#5704) 2026-01-14 13:12:16 +05:30
aparna-bhatt
6c2128fbed
feat(common): add copy functionality to console output entries (#5743)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2026-01-12 13:24:52 +05:30
James George
84c3e8642c fix: enable scrolling for console tab in response section
Adds `overflow-auto` to `HttpResponse` component to create a scroll container
that enables console entries to scroll when content exceeds viewport.
Removes unnecessary `overflow-y-auto` from `ConsolePanel` component since scrolling
is now handled at the `HttpResponse` level.

Fixes the console tab scrolling issue by following the same component-level
approach as PR #5695 (Settings/Profile scroll fix).
2026-01-09 17:11:29 +05:30
Shreyas
b3b609d0b4
perf(desktop): cache store path resolution (#5747) 2026-01-06 14:08:29 +05:30
James George
9693a82a87 chore: bump version to 2025.12.1 2026-01-05 16:15:09 +05:30
James George
f34e06b7d1 fix: remove redundant label on the Desktop App
Follow up of 67dff5f.
2026-01-05 16:13:34 +05:30
Mir Arif Hasan
212b15890e
chore: apply ThrottlerBehindProxyGuard across controllers (#5746) 2026-01-05 14:02:56 +06:00
James George
67dff5fe0f refactor: backport cloud for orgs related foundational changes
- Remove organization branding updates.
- Update `Hoppscotch Cloud` organization sidebar item.
- Ensure organization switcher sidebar isn't displayed on the central cloud instance.
2025-12-22 13:06:59 +05:30
Stanislav Horáček
29d8b6cc77
chore(common): Czech translation updates (#5672)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-21 20:06:14 +05:30
Denny Jiang
7092e77fe0
chore(common): Chinese translation improvements (#5699) 2025-12-21 20:04:49 +05:30
Yun Juhwan
24eb33707c
chore(common): update product name in Korean translation for consistency (#5660)
Replaces phonetic Korean translations with the original product name, matching the approach used in other Asian locales (ja, cn).
2025-12-21 19:53:16 +05:30
Anwarul Islam
3c2bc6caf3
feat(common): create and manage example responses in collections (#5652)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-19 23:14:21 +05:30
James George
d91c554fca chore: cleanup organization sidebar i18n strings
- Remove unused i18n keys (organizations, no_orgs, expand, collapse, status badges).
- Consolidate inactive org tooltips into single key.
- Simplify `multi_account_notice` text for clarity.
2025-12-19 23:09:23 +05:30
Mir Arif Hasan
442242c8ca
chore: security patch for the quic-go vulnerability (#5710)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
Co-authored-by: Nahid Hasan <52489202+nahidhasan94@users.noreply.github.com>
2025-12-19 21:00:22 +05:30
James George
440868d635 chore: bump version to 2025.12.0 2025-12-19 17:19:24 +05:30
James George
c9d0ea78bb chore: i18n string addition
Informational message indicating each organization instance maintains its own authentication state.
2025-12-19 17:18:23 +05:30
Aaron Fort Garcia
c7e453455b
fix(common): resolve Postman API key authorization header import mapping (#5701) 2025-12-19 17:11:22 +05:30
James George
a0bc22968d docs(common): clarify desktop organization switching behavior 2025-12-19 12:48:48 +05:30
James George
3d8810ec74
feat(common): add platform support for organization switcher (#5708)
Extends the organization platform definition to support switching between multiple organizations and displaying custom branding (logo and name) in the application header. Adds shared utilities for file uploads and avatar generation, including deterministic colour support.

These changes enable the Cloud for Organizations tier to offer:
- Multi-organization switching via sidebar UI.
- Custom logo uploads for organization branding.
- Seamless navigation between different organization instances.
2025-12-19 12:39:50 +05:30
Shreyas
824dce79d0
feat(desktop): url focus and mru tab shortcuts (#5683)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-16 17:25:56 +05:30
James George
745fc9d1f6 fix: resolve CodeMirror editor syntax highlighting issues
Revert `@codemirror/view` dependency bump.
2025-12-15 13:34:52 +05:30
Anwarul Islam
c55fbda1f6
fix(common): restore scrolling on settings and profile pages (#5695) 2025-12-15 13:23:42 +05:30
Shreyas
e025b8c8e1
perf(webapp-server): opt for build over run time (#5644)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-15 11:54:37 +05:30
Mir Arif Hasan
05927f3d4d
chore: security patch for the dependency chain v2025.12.0 (#5678)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-12 16:58:35 +05:30
Chhavi Goyal
973572d060
fix: improve keyboard shortcuts (#5601)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-12 14:23:59 +05:30
Shreyas
65ee147681
fix(desktop): align vendored instance version (#5687)
This fixes the stale vendored display version.

 `VENDORED_INSTANCE_CONFIG` currently stores old instance version
 `25.9.0` and while other components do override this correctly, it'd be
 better to keep this consistent per release.

 Closes FE-1102
2025-12-11 14:23:09 +05:30
James George
3527f217c9 chore: bump version to 2025.11.2 2025-12-10 18:58:30 +05:30
Mir Arif Hasan
92e3f52b47
chore: add sslmode support to PrismaService database URL parser (#5671) 2025-12-10 12:19:17 +06:00
preeyaX
d67a85b128
fix(common): remove double scrollbar in response pane (#5665)
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-12-09 19:28:28 +05:30
Chhavi Goyal
e51676eea0
fix(common): environment variables not detected in request body editors (#5616)
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-12-09 18:53:14 +05:30
Nilanshu-Ankit
420aa7eda0
fix(common): increase modal dialog width for bigger screen (#5631)
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-12-08 17:50:07 +05:30
Shreyas
87d1cccb82
feat(desktop): atomic write for registry persistence (#5658)
This implements atomic writes for registry.json using a temporary file and renaming to prevent file corruption on Windows 11.
2025-12-04 14:34:22 +05:30
James George
f88c81fccc test(cli): prevent flaky CLI E2E tests by detecting generic REQUEST_ERROR patterns 2025-12-04 12:57:47 +05:30
Anwarul Islam
f232886717
feat(common): adjust layout for created server info display in mock server (#5655) 2025-12-04 11:50:06 +05:30
Mir Arif Hasan
52735a166d
fix: add database URL parsing to PrismaService (#5656)
* fix: add database URL parsing to PrismaService

* fix: feedback

* chore: add pool connectivity check to PrismaService
2025-12-04 11:55:22 +06:00
James George
77d0956180 chore: bump version to 2025.11.1 2025-12-03 23:02:12 +05:30
Mir Arif Hasan
008335c715
feat: add auto-create collection option to mock server creation (#5637)
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
2025-12-03 23:01:06 +05:30
Nivedin
cd82eb212d
fix: remove ref_id field before collection exports and address race conditions (#5626)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-03 23:00:25 +05:30
hyunbikim
4efe86f2e0
fix: support dots/dashes in environment variable autocomplete (#5630)
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
2025-12-02 23:12:15 +05:30
jaeyonglee-int
aed032391f
fix: ensure correct parser for xml and plaintext (#5597)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-12-02 17:23:51 +05:30
Mir Arif Hasan
88c7e189cf
hotfix: clean up published docs with deleted collections (#5624) 2025-12-02 14:07:08 +06:00
Nivedin
217563e7dd
fix: prevent clear response action in response examples and test runner (#5641) 2025-12-02 13:28:53 +05:30
Nivedin
ab52efc075
feat: improve documentation UI and add published docs indicators (#5620)
Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
2025-11-27 12:29:29 +05:30
Nima Akbarzadeh
1e8edd2c9c
docs(cli): add workspace dependency build requirements to README (#5440) 2025-11-26 20:22:40 +05:30
James George
c6c86e8db2 fix(cli): prevent false test skips for intentional error scenarios
Refined network retry logic to distinguish between transient infrastructure
failures and intentional test errors, preventing incorrect test skips in
JUnit validation scenarios.

1. Network Error Detection (utils.ts)
   - Renamed `hasNetworkError` → `hasLowLevelNetworkError` for clarity
   - Removed REQUEST_ERROR from retry patterns (too generic, matches intentional bad URLs)
   - Now only retries on unambiguous TCP/DNS errors: ECONNRESET, EAI_AGAIN,
     ENOTFOUND, ETIMEDOUT, ECONNREFUSED
   - Preserved TEST_SCRIPT_ERROR detection when concurrent with REQUEST_ERROR
     (the actual CI failure mode from undefined response objects)
   - Added comprehensive JSDoc explaining when to use vs plain runCLI

2. JUnit XML Validation (test.spec.ts, 4 locations)
   - Removed REQUEST_ERROR and TEST_SCRIPT_ERROR from XML retry patterns
   - Only retry when low-level errors corrupt XML structure
   - Prevents skipping tests with intentional errors in collections
     (test-junit-report-export-coll.json has intentional invalid-url and
     script reference errors for validation)

3. Test Corrections
   - Fixed: "Fails to display console logs..." test now uses plain runCLI
     (test expects errors from legacy sandbox, shouldn't use retry)
   - Added: Environment version tests (v0, v1, v2) now use runCLIWithNetworkRetry
     (use echo.hoppscotch.io, expect success, benefit from retry)
   - Removed: Obsolete SKIP_EXTERNAL_TESTS env var check (retry logic handles this)
2025-11-26 19:39:38 +05:30
KvS
9f703c9b5b
fix(common): GraphQL argument addition and click event propagation (#5448)
Co-authored-by: Viraj <kunwar.suryavanshi@sapiens.com>

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
2025-11-26 14:34:03 +05:30
Fahed Khan
4c1911c007
feat(common): add erase response functionality with keybindings (#5435)
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-26 14:24:16 +05:30
Shreyas
fdbec04703
fix: guard tauri calls with kernel check (#5619) 2025-11-26 11:34:47 +05:30
James George
c50076ef2e chore: bump dependencies
Follow up to #5590.
2025-11-26 11:06:57 +05:30
James George
0bf8e08874 chore: formatting updates 2025-11-26 10:40:39 +05:30
James George
62aa4440c6 chore: bump CLI version 2025-11-26 10:39:54 +05:30
James George
7bcd268725 chore: bump version to 2025.11.0 2025-11-26 10:39:09 +05:30
James George
f2f015c1c8
feat(scripting-revamp): add support for sending requests in scripting context (#5596) 2025-11-26 09:52:00 +05:30
Anwarul Islam
16f08e2a50
feat(common): add better ux to profile page by enabling routing for each tab (#5544)
Co-authored-by: Nivedin <53208152+nivedin@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-11-25 23:06:56 +05:30
Nivedin
a5fb7cb0d2
fix: API documentation UI flow improvements (#5618) 2025-11-25 23:06:02 +05:30
Anwarul Islam
03212386fb
feat: add platform-specific import support for personal collections (#5570)
Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-25 22:03:21 +05:30
Anwarul Islam
77af577778
feat: mock server feature enhancements (#5609)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-25 19:34:54 +05:30
Shreyas
f834cc87d3
feat(desktop): portable phase-3: instance manager (#5421)
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-25 18:09:18 +05:30
Shreyas
017341928c
fix(common): agent interceptor dependency compat (#5613)
Fixes agent interceptor registration broken by dependency update

---------

Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-25 14:44:41 +05:30
Nivedin
e63bfe3723
feat: API Documentation (#5499)
Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-25 11:26:57 +05:30
Shreyas
ce026d5cef
chore(desktop): bump desktop shell dependencies (#5612)
This updates Hoppscotch Desktop (Shell) dependencies to align with
 `v2025.11.0` security patch and other dependency chain.

---------

Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-24 21:09:50 +05:30
Shreyas
f62405088d
chore(agent): bump agent and dependency chain (#5607)
This updates Hoppscotch Agent dependencies to align with
 `v2025.11.0` security patch and other dependency chain.
2025-11-24 19:59:57 +05:30
Mir Arif Hasan
92031c84c1
fix: filter undefined values in config and update build files (#5610) 2025-11-24 19:55:08 +06:00
Mir Arif Hasan
904a1b0405
chore: security patch for the dependency chain v2025.11.0 (#5590)
Bump dependencies and account for breaking changes.

---------

Co-authored-by: James George <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-24 14:21:29 +05:30
Chhavi Goyal
b438e1d813
fix: prevent duplicate requests from showing active indicator simultaneously (#5605)
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-11-24 14:18:21 +05:30
Nivedin
4bfd1c4453
fix: resolve collection variable referencing issues (#5584) 2025-11-24 14:02:07 +05:30
Nivedin
51840cb5e5
fix(common): preserve team environment name during collection runs (#5578) 2025-11-13 14:02:55 +05:30
James George
8b164f9e31 chore: bump version to 2025.10.1 2025-11-13 00:11:21 +05:30
Nivedin
c1e684e655
fix: team collection not loading on route change (#5533)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-12 14:43:35 +05:30
jamesgeorge007
98f07f8a4c test(js-sandbox): expand unsupported API coverage and sync error messages
Add comprehensive test coverage for unsupported Postman APIs and ensure
consistent error messages across pre-request and post-request contexts.

Test improvements:
- Expand coverage from 13 to 25 unsupported APIs (50 tests total)
- Add missing APIs: collectionVariables.set/unset/has/clear/toObject,
  vault.set/unset, iterationData.set/unset/has/toJSON
- Fix assertions to match actual error format with prefix
- Add pre-request context test for pm.execution.location

Implementation fixes:
- Add missing pm.iterationData.toJSON() in pre-request.js
- Sync post-request.js collectionVariables error messages to match
  pre-request.js ("use environment or request variables instead")
2025-11-12 14:35:16 +05:30
Nivedin
fc985771ea
fix: capture environment before request run (#5560)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-11-11 20:25:44 +05:30
Shreyas
eee92bbeeb
fix(desktop): token validation and cookie parsing (#5569)
This fixes desktop app auth failures where users encounter
 "Session expired" errors when creating environments or
 saving requests despite being logged in.

 The issue occurred because token verify/validation works on web
 (cookie-based auth) but fails on desktop (bearer token auth). The
 desktop implementation had flaky response parsing in
 `verifyAuthTokens()`.

 Includes some future proofing work around cookie parsing
 in `setAuthCookies()`, for Set-Cookie headers contain commas
 or are concatenated with newlines (see #5394).
2025-11-10 23:10:43 +05:30
James George
f8cb75895f
fix(common): resolve script errors when switching sandbox modes (#5555)
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-04 15:13:21 +05:30
jamesgeorge007
69fb8ac63f chore: resolve lint errors 2025-10-31 11:22:22 +05:30
jamesgeorge007
c939c4f0c8 fix(common): update request headers/params setter method types to accept partial objects
The runtime schema uses .catch() fallbacks for all fields (`key`, `value`, `active`, `description`), making them effectively optional at runtime. Updated type definitions to use Partial<> to match actual runtime behavior and prevent type errors in usage.

This allows valid usage patterns like:

``
hopp.request.setHeaders([{ key: "X-Custom", value: "foo" }])
```

Without requiring all fields (`active`, `description`) to be explicitly provided.
2025-10-31 11:17:16 +05:30
James George
dae02c839f
fix: prevent log injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-10-30 23:06:42 +05:30
Anwarul Islam
a573db5937
fix(common): use fallback ref ID for mock server creation with legacy collections (#5536)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-30 22:58:14 +05:30
Anwarul Islam
e607f9db24
feat(common): mock server ui improvements (#5532)
- Update active state styles for better visibility in the mock server.
- BE updates catered to improving content type handling in the mock server.
- Introduced a `disableMockServerInPersonalWorkspace` platform-level feature flag.
- Remove inactive keyboard shorthand nudges from the Mock server dashboard context menu.

---

Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-30 15:17:16 +05:30
Shreyas
95a8be6f94
chore(agent): bump version to v0.1.15 (#5531)
Regenerated lock file due to conflicting dependencies.
2025-10-30 11:42:09 +05:30
jamesgeorge007
6729d7c7fd refactor(common): remove redundant logs 2025-10-29 23:11:20 +05:30
Anwarul Islam
bb4f4aca54
feat(common): handle null collection and add private access hint for mock servers (#5527)
* fix(mock-server): handle null collection case in dashboard display

* feat(mock-server): add private access hint for non-public mock servers

* fix(mock-server): update private access hint for clarity

* refactor(mock-server): remove console logs from mock server creation and update
2025-10-29 23:21:05 +06:00
jamesgeorge007
ae3d73bb32 fix(js-sandbox): improve scripting value handling and serialization
- Fix null/undefined environment variable handling across namespaces
- Fix pm.request console.log output to display properly
- Add pm.request.id and pm.request.name type definitions
- Fix assertion error messages to show actual values
- Strip `export {};` from collection exports and legacy sandbox editor display
2025-10-29 20:55:07 +05:30
Anwarul Islam
c0e3ff49b3
fix (common): address mock server issues and improve the UI (#5517)
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
2025-10-29 16:25:02 +05:30
Mir Arif Hasan
213c5436bc
chore: mock server name validation and prevent duplicates (#5524) 2025-10-29 14:41:52 +06:00
Chhavi Goyal
9a4e5a7f7e
fix(js-sandbox): resolve environment variable fallback behavior (#5439)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-28 23:08:55 +05:30
Harshit Chandra
453b5fc088
feat: add configurable session cookie name (#5425)
Added support for overriding the default session cookie name using the `INFRA.SESSION_COOKIE_NAME` config or the `SESSION_COOKIE_NAME` environment variable. This helps compatibility with proxies or load balancers that cannot handle cookie names containing dots.

---

Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-28 13:45:08 +05:30
jamesgeorge007
8f7146bd57 chore: bump CLI version 2025-10-27 23:06:27 +05:30
jamesgeorge007
457ca12be9 chore: bump version to 2025.10.0 2025-10-27 23:04:50 +05:30
Mir Arif Hasan
3acc0ec9b6
feat: mock server (#5482)
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-27 23:03:22 +05:30
Abhishek3880
dd8744f292 chore(backend): cleanup code quality issues (#5466)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-27 21:13:43 +05:30
Eman Fateen
1b0a21a3b2
feat: add $randomCompanyName predefined variable (#5479)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-27 20:59:39 +05:30
Prajjwol
76e6c3ae2f fix: add missing token checks to request save workflow (#5436)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-27 19:45:23 +05:30
James George
9cd6c7d6cf
feat(scripting-revamp): chai powered assertions and postman compatibility layer (#5417)
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-10-27 17:49:58 +05:30
Shreyas
ecf7d2507a
feat(relay): control redirect follow (#5508)
Add per-domain toggle to disable automatic HTTP redirect following in
 the Native and Agent interceptors. When disabled, requests return the
 redirect response (status code, headers, body) without following the
 Location header.

 Previously HTTP redirects were always followed (on browser, can't do
 much about that, see
 https://fetch.spec.whatwg.org/#atomic-http-redirect-handling) without
 option to inspect the redirect response itself. This prevented
 developers from accessing redirect metadata needed when testing OAuth
 flows (PKCE where intermediate responses contain authorization tokens),
 authentication endpoints that return codes in Location headers with 302
 status, and debugging API redirect chains. But on the desktop app,
 redirects were just never followed, creating the opposite effect.

 The browser's fetch API applies atomic HTTP redirect handling per spec,
 making it impossible to intercept redirects and inspect their responses.
 The Native and Agent interceptors use curl and native HTTP clients
 respectively, both supporting redirect control, making this feature
 viable for these specific interceptors. (Proxyscotch tbd).
2025-10-27 17:41:58 +05:30
James George
567344a9e3
fix(common): preserve file uploads in experimental scripting sandbox (#5512) 2025-10-26 23:34:43 +05:30
Nivedin
68d1db7e74
feat: add auth refresh token flow if token expires (#5490) 2025-10-26 22:24:59 +05:30
Anwarul Islam
795cc820db
fix: preserve PKCE and client secret in postman collection imports (#5480) 2025-10-22 19:45:39 +05:30
Nivedin
aa1583763a
fix: avoid rapid polling while fetching teams in selector (#5485) 2025-10-22 19:06:29 +05:30
Mir Arif Hasan
53e8b28459
chore: security patch for the dependency chain (#5487)
v2025.10.0

---------

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-22 18:48:20 +05:30
Mir Arif Hasan
cd084ebbb3
fix: ensure graceful shutdown and container stop when stopApp is called (#5494)
* fix: graceful shutdown handling for backend app

* chore: add startup delay to health check script
2025-10-21 19:39:39 +06:00
Mir Arif Hasan
6064186d30
fix: reset ONBOARDING_COMPLETED to false during infra config reset (#5496)
fix: reset ONBOARDING_COMPLETED config to false on reset
2025-10-20 19:57:59 +06:00
Prit Rojivadiya
c31f74829d
refactor: cleanup sync logic and imports (#5428) 2025-10-08 13:31:29 +05:30
jamesgeorge007
bb8b9cec8f chore: merge hoppscotch/main into hoppscotch/next 2025-10-08 11:59:09 +05:30
Abhijeet Singh
743aaa145e chore: replace all instances of twitter.com with x.com (#5455) 2025-10-08 11:59:02 +05:30
jamesgeorge007
d80ea5d214 chore: bump version to 2025.9.2 2025-10-07 17:22:25 +05:30
Nivedin
a5e9f83066
fix: focus existing request tab instead of duplicating (#5452)
Addresses an issue where multiple tabs would open even when a request tab was already active. It now correctly switches to the active tab instead.
2025-10-07 17:21:00 +05:30
Nivedin
2b9b45ea76
fix: prevent syncing secret variable initial values (#5434)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-10-07 17:15:06 +05:30
James George
11b07db12c
fix(js-sandbox): resolve errors with pw.env namespace in legacy sandbox (#5433) 2025-10-06 16:45:35 +05:30
jamesgeorge007
6bbfb9b8b7 chore: bump version to 2025.9.1 2025-10-01 11:18:38 +05:30
Nivedin
711d249a4d
fix: correctly resolve inherited properties before request runs (#5418)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-30 17:43:13 +05:30
Sourav Agrawal
5039a14985
fix: highlight environment on string containing dot (#5409)
Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: Nivedin <53208152+nivedin@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-29 13:29:57 +05:30
Nivedin
35e01e1280
chore: accept single character length name and trim white spaces (#5412)
Co-authored-by: mirarifhasan <arif.ishan05@gmail.com>
2025-09-29 13:25:40 +05:30
Mayank Jain
2498ee7b08
fix: race condition in active team collection tab inheritance (#5184)
Co-authored-by: Mayank <mayank@Mayanks-MacBook-Pro.local>
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-09-26 17:53:19 +05:30