Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hopinc/js
Browse files Browse the repository at this point in the history
  • Loading branch information
Phineas committed Feb 4, 2023
2 parents e118440 + 25dec47 commit e19f0ec
Show file tree
Hide file tree
Showing 11 changed files with 924 additions and 805 deletions.
5 changes: 0 additions & 5 deletions .changeset/nine-ants-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-peas-buy.md

This file was deleted.

783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.3.cjs

This file was deleted.

873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'

yarnPath: .yarn/releases/yarn-3.2.3.cjs
yarnPath: .yarn/releases/yarn-3.4.1.cjs
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @onehop/js

## 1.26.0

### Minor Changes

- c82036c: add created_at and change started_at for build types

## 1.25.0

### Minor Changes

- 1530a06: Adds BuildState, DomainState, and BuildMethod to be exported

## 1.24.0

### Minor Changes

- 67d2aeb: Fixes cmd to be undefined or string array

## 1.23.0

### Minor Changes

- b7b1f90: Fix deployment config type

## 1.22.7

### Patch Changes

- 3eb75f5: validation_failure is nullable, but not optional
- 8238fa5: updates to build environment

## 1.22.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onehop/js",
"version": "1.22.6",
"version": "1.26.0",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
Expand Down Expand Up @@ -28,7 +28,7 @@
"author": "Hop <[email protected]>",
"license": "MIT",
"sideEffects": false,
"packageManager": "yarn@3.2.3",
"packageManager": "yarn@3.4.1",
"publishConfig": {
"access": "public"
},
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export {
RestartPolicy,
RolloutState,
RuntimeType,
BuildState,
DomainState,
BuildMethod,
type BuildEnvironment,
} from './rest/types/ignite.js';
export * from './util/index.js';
13 changes: 9 additions & 4 deletions src/rest/types/ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export interface Deployment {
/**
* The config for this deployment
*/
config: Omit<DeploymentConfig, 'volume' | 'name'>;
config: Omit<DeploymentConfig, 'name'>;

/**
* Current active rollout for deployment
Expand Down Expand Up @@ -392,10 +392,15 @@ export interface Build {
*/
method: BuildMethod;

/**
* Timestamp of when the build was created/queued
*/
created_at?: Timestamp;

/**
* Timestamp of when the build has started
*/
started_at: Timestamp;
started_at: Timestamp | null;

/**
* Timestamp of when the build has finished
Expand Down Expand Up @@ -540,7 +545,7 @@ export interface DeploymentConfig {
/**
* Entrypoint command for the image
*/
cmd: string[];
cmd?: string[];

/**
* The docker image config for this deployment
Expand Down Expand Up @@ -907,7 +912,7 @@ export type IgniteEndpoints =
'PATCH',
'/v1/ignite/deployments/:deployment_id',
{deployment: Deployment},
DeploymentConfig
Partial<DeploymentConfig>
>
| Endpoint<
'PATCH',
Expand Down
2 changes: 1 addition & 1 deletion src/sdks/ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export const ignite = sdk(client => {
});
},

async update(deploymentId: Id<'deployment'>, config: DeploymentConfig) {
async update(deploymentId: Id<'deployment'>, config: Partial<DeploymentConfig>) {
const {deployment} = await client.patch(
'/v1/ignite/deployments/:deployment_id',
config,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@ __metadata:

"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=df0bf1"
dependencies:
node-gyp: latest
conditions: os=darwin
Expand Down Expand Up @@ -3373,7 +3373,7 @@ __metadata:

"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>":
version: 1.22.1
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b"
resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=c3c19d"
dependencies:
is-core-module: ^2.9.0
path-parse: ^1.0.7
Expand Down Expand Up @@ -4031,11 +4031,11 @@ __metadata:

"typescript@patch:typescript@^4.9.4#~builtin<compat/typescript>":
version: 4.9.4
resolution: "typescript@patch:typescript@npm%3A4.9.4#~builtin<compat/typescript>::version=4.9.4&hash=a1c5e5"
resolution: "typescript@patch:typescript@npm%3A4.9.4#~builtin<compat/typescript>::version=4.9.4&hash=23ec76"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 37f6e2c3c5e2aa5934b85b0fddbf32eeac8b1bacf3a5b51d01946936d03f5377fe86255d4e5a4ae628fd0cd553386355ad362c57f13b4635064400f3e8e05b9d
checksum: 3e2ab0772908676d9b9cb83398c70003a3b08e1c6b3b122409df9f4b520f2fdaefa20c3d7d57dce283fed760ac94b3ce94d4a7fa875127b67852904425a1f0dc
languageName: node
linkType: hard

Expand Down

1 comment on commit e19f0ec

@vercel
Copy link

@vercel vercel bot commented on e19f0ec Feb 4, 2023

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-git-master-onehop.vercel.app
hop-js-onehop.vercel.app
hop-js.vercel.app
js.hop.io

Please sign in to comment.