Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic import jsapi from running server #2259

Open
bmingles opened this issue Oct 18, 2024 · 0 comments
Open

Dynamic import jsapi from running server #2259

bmingles opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bmingles
Copy link
Contributor

bmingles commented Oct 18, 2024

Create a deephaven npm package (@deephaven/jsapi-download) that allows consuming jsapi in a non-browser context.

The jsapi code is tied to a particular running server. Non-browser clients that want to make use of the jsapi need a way to dynamically download and then import it from a running server (the vscode extension is one such consumer). Consuming the api currently requires

  • Download .js files from a server
  • Convert the module to a different format
    • Community serves ESM modules, but the vscode extension needs CJS modules.
    • Enterprise serves CJS modules, but some consumers may want to use ESM modules
  • Polyfill WebSocket + browser apis - Colin has been working on removing browser dependencies from jsapis, so this requirement will go away soon. We'll keep the polyfill implementation outside of the scope of this ticket since it may vary for different use cases. Would be worth documenting in the README of the new package.
@bmingles bmingles added enhancement New feature or request triage Issue requires triage labels Oct 18, 2024
@bmingles bmingles self-assigned this Oct 18, 2024
@bmingles bmingles removed the triage Issue requires triage label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant