Skip to content

Commit

Permalink
Merge pull request #62 from hopinc/fix/update-deployment-build-rollou…
Browse files Browse the repository at this point in the history
…t-types
  • Loading branch information
alii authored Nov 30, 2022
2 parents 1c864ef + 491ddfa commit 94cdb74
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-gorillas-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@onehop/js': patch
---

Deprecate Deployment.active\_{build,rollout}
19 changes: 17 additions & 2 deletions src/rest/types/ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,34 @@ export interface Deployment {
config: Omit<DeploymentConfig, 'volume' | 'name'>;

/**
* Current active rollout for deployment
* @deprecated Use latest_rollout
*/
active_rollout: DeploymentRollout | null;

/**
* Current active build for deployment
* @deprecated Use latest_build instead
*/
active_build: Build | null;

/**
* The active build ID to use. This can differ from .latest_build.id
* because if we promote an older build to production, then the latest_build
* will *not* be the active build.
*/
build_id: Build['id'] | null;

/**
* Current active rollout for deployment
*/
latest_rollout: DeploymentRollout | null;

/**
* Current active build for deployment
* Current active build for deployment.
* Is nullable if the deployment has no builds yet.
*/
active_build: Build | null;
latest_build: Build | null;

/**
* The amount of containers in the running state
Expand Down

1 comment on commit 94cdb74

@vercel
Copy link

@vercel vercel bot commented on 94cdb74 Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hop-js – ./

hop-js.vercel.app
hop-js-git-master-onehop.vercel.app
js.hop.io
hop-js-onehop.vercel.app

Please sign in to comment.