-
Notifications
You must be signed in to change notification settings - Fork 1.3k
decouple gitpod-protocol from public-api #19151
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
Conversation
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: @testdeck/[email protected] |
to prevent rebuilding of components which dependent on gitpod-protocol, but not public-api on an API change
4db6e0d
to
b9d062e
Compare
"ts" | ||
], | ||
"exit": true | ||
"build:esm": "tsc --module es2015 --outDir ./lib/esm" | ||
}, | ||
"dependencies": { | ||
"@connectrpc/connect-node": "1.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is unrelated, but these dependencies are not strictly required, and not necessary in case of browser for instance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling we are better to remove it and let a client to decide which version to use in their context.
@@ -0,0 +1,36 @@ | |||
{ | |||
"name": "@gitpod/public-api-common", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosyakov Personally I would love to see a README.md next to this file, which explains the "WHY does this package exist, how it compares to gitpod-protocol, and "which package to choose for what"".
Can be a follow-up 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ to unblock
/unhold |
Description
To prevent rebuilding of components which dependent on gitpod-protocol, but not public-api on an API change, e.g. supervisor and ws-manager-bridge.
Summary generated by Copilot
🤖[deprecated] Generated by Copilot at 4db6e0d
This pull request refactors the public API code to use a new
@gitpod/public-api-common
package that contains common types and utilities for TypeScript clients. It also updates the imports and dependencies of thecomponents/dashboard
andcomponents/gitpod-protocol
packages accordingly. The goal of this refactoring is to avoid circular dependencies and duplication in the public API code.Related Issue(s)
Fixes #
How to test
Smoke test against JSON-RPC and gRPC.
Documentation
Preview status
https://ak-public-e21d393f1f.preview.gitpod-dev.com/workspaces
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold