[PR #2389] [CLOSED] refactor: updated js-sandbox with new quickjs apis #3778

Closed
opened 2026-03-17 01:21:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2389
Author: @devblin
Created: 6/1/2022
Status: Closed

Base: mainHead: refactor/js-sandbox


📝 Commits (10+)

  • 8c339be refactor: updated js-sandbox with new quickjs apis
  • 49d604e feat: added artifact api
  • 12fc3b1 feat: added new api defining functions
  • 55c0730 refactor: updated and refactored apis structure
  • 1873058 chore: updated package.json
  • cf9b2bf test: added tests for artifacts api
  • 59a6912 refactor: updated pre-request & test-script runners and realted tests
  • 392f103 refactor: updated hoppscotch-app's related to type changes in pre-request and test-script runners
  • bc485d4 refactor: updated with artifact type
  • 6295afe refactor: updated clone/lodash to cloneDeep/lodash

📊 Changes

42 files changed (+3091 additions, -756 deletions)

View changed files

📝 packages/hoppscotch-app/helpers/RequestRunner.ts (+3 -3)
📝 packages/hoppscotch-app/helpers/preRequest.ts (+1 -1)
📝 packages/hoppscotch-js-sandbox/package.json (+2 -1)
📝 packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts (+25 -12)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/create.spec.ts (+91 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/delete.spec.ts (+59 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/get.spec.ts (+67 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/update.spec.ts (+71 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/debug.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/error.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/log.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/warn.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/active/get.spec.ts (+219 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/delete.spec.ts (+150 -0)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/get.spec.ts (+49 -4)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getRaw.spec.ts (+185 -0)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getResolve.spec.ts (+6 -3)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/global/get.spec.ts (+219 -0)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/resolve.spec.ts (+6 -2)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/set.spec.ts (+8 -3)

...and 22 more files

📄 Description

Description

Work in progress of revamping js-sandbox.

  • Currently, updated quickjs version from 0.15.0 to 0.20.0

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2389 **Author:** [@devblin](https://github.com/devblin) **Created:** 6/1/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `refactor/js-sandbox` --- ### 📝 Commits (10+) - [`8c339be`](https://github.com/hoppscotch/hoppscotch/commit/8c339beb9dfba3cfca7cc094e9c0475de24d72a9) refactor: updated js-sandbox with new quickjs apis - [`49d604e`](https://github.com/hoppscotch/hoppscotch/commit/49d604e0997e71e9c15311a2a7e82e80b84ead81) feat: added artifact api - [`12fc3b1`](https://github.com/hoppscotch/hoppscotch/commit/12fc3b1f10d593237a572fa5a5f3423b3bd66fb5) feat: added new api defining functions - [`55c0730`](https://github.com/hoppscotch/hoppscotch/commit/55c073026387ca6fd39cc67d5ecbeb9217d150bc) refactor: updated and refactored apis structure - [`1873058`](https://github.com/hoppscotch/hoppscotch/commit/1873058e5a3ab0c5fb5dc0bf881344dfa4634fff) chore: updated package.json - [`cf9b2bf`](https://github.com/hoppscotch/hoppscotch/commit/cf9b2bfcf86138d82a8773dd3c13a19c586c07a1) test: added tests for artifacts api - [`59a6912`](https://github.com/hoppscotch/hoppscotch/commit/59a69127c240217c8768405de53f3db42925e5e0) refactor: updated pre-request & test-script runners and realted tests - [`392f103`](https://github.com/hoppscotch/hoppscotch/commit/392f10322fc48ced395fa12e3446d576957fdcf4) refactor: updated hoppscotch-app's related to type changes in pre-request and test-script runners - [`bc485d4`](https://github.com/hoppscotch/hoppscotch/commit/bc485d43c18a83a8e7536f7ce664a3775c88dae5) refactor: updated with artifact type - [`6295afe`](https://github.com/hoppscotch/hoppscotch/commit/6295afe26aa6bae3723dfcde884df2b600827fe6) refactor: updated clone/lodash to cloneDeep/lodash ### 📊 Changes **42 files changed** (+3091 additions, -756 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/helpers/RequestRunner.ts` (+3 -3) 📝 `packages/hoppscotch-app/helpers/preRequest.ts` (+1 -1) 📝 `packages/hoppscotch-js-sandbox/package.json` (+2 -1) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts` (+25 -12) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/create.spec.ts` (+91 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/delete.spec.ts` (+59 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/get.spec.ts` (+67 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/update.spec.ts` (+71 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/debug.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/error.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/log.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/warn.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/active/get.spec.ts` (+219 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/delete.spec.ts` (+150 -0) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/get.spec.ts` (+49 -4) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getRaw.spec.ts` (+185 -0) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getResolve.spec.ts` (+6 -3) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/global/get.spec.ts` (+219 -0) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/resolve.spec.ts` (+6 -2) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/set.spec.ts` (+8 -3) _...and 22 more files_ </details> ### 📄 Description ### Description Work in progress of revamping js-sandbox. - Currently, updated quickjs version from 0.15.0 to 0.20.0 ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [x] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:21:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#3778
No description provided.