Commit graph

5905 commits

Author SHA1 Message Date
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
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
jamesgeorge007
881c71560b ci: pin Node.js to v22 to avoid isolated-vm incompatibility
Node.js `v24` became LTS recently, causing CI failures due to `V8` API
incompatibilities with isolated-vm `v5.x`. Pinning to `v22` aligns with our
production environment (Alpine `v3.22.1` ships Node.js `v22.16.0`) and ensures
build stability.

`isolated-vm v6+` will be required for Node.js `v24` support and will be
addressed in a future dependency update cycle.
2025-10-29 12:35:33 +05:30
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
Shreyas
a3ca9cab81
feat(ci): agent workflow with platform jobs (#5514)
This replaces the matrix-based Agent build strategy with dedicated
 platform-specific jobs, synchronizing with the Desktop workflow
 patterns and preparing for the broader CI/CD updation cycle.
2025-10-27 18:35:20 +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
Shreyas
9cb98f619d
chore(agent): bump version to 0.1.14 (#5405)
Bump agent to version `v0.1.14` with `relay` dependency changes as per
 #5394, and direct dependency change according to #5402.
2025-09-26 14:20:48 +05:30
jamesgeorge007
5eb9fec21c docs: document CLI versioning scheme 2025-09-26 14:19:08 +05:30
jamesgeorge007
c26b8f7729 chore: bump vite-plugin-inspect under hoppscotch-selfhost-web 2025-09-26 13:46:48 +05:30
jamesgeorge007
58b0736c5b chore: bump non-major dependencies 2025-09-26 13:26:42 +05:30
Anandakrishnan CV
fc87526fbc
fix: close modal on clicking overlay for non input modals (#5403)
Co-authored-by: nivedin <nivedinp@gmail.com>
2025-09-26 12:22:11 +05:30
Anwarul Islam
f9a1d65ad9
refactor: streamline duplicated advanced param type definitions for oauth grant types (#5401)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
2025-09-25 21:03:13 +05:30
Shreyas
6beca5c787
fix(native): bump tauri-plugin-shell to v2.2.1 (#5402)
Updates `tauri-plugin-shell` from vulnerable version to `v2.2.1` to
 address `CVE-2025-31477` in `open` around scope validation.

 Affects both `hoppscotch-agent` and `hoppscotch-desktop`.

 Closes FE-1022
2025-09-24 21:48:06 +05:30