Commit graph

5949 commits

Author SHA1 Message Date
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
7deaa136f4 ci: remove stale workflow 2025-11-26 11:09:42 +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
Shreyas
b269dd8656
feat(ci): desktop workflow with platform jobs (#5568)
This updates the Desktop Self Host workflow with selective platform builds,
 standardized secret naming, and artifact organization, synchronizing with
 the CI workflow patterns and completing the broader CI/CD updation cycle.
2025-11-13 11:39: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
James George
654e18fce9
chore: v2025.10.0 release 2025-10-31 11:32:37 +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
jamesgeorge007
c73e71827a chore: streamline pnpm versioning 2025-10-30 12:13:04 +05:30