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

Update ndc-sdk-typescript to v1.2.6 to address SERVICE_TOKEN issue #87

Merged
merged 2 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ This changelog documents the changes between release versions.

Changes to be included in the next upcoming release.

## v0.22

Update TS SDK Dependency to v1.2.6.

* Fixes issue with SERVICE_TOKEN check
* Support for query variables AKA "ForEach"

## v0.21
Expand Down
3 changes: 1 addition & 2 deletions src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { resolve } from "https://deno.land/[email protected]/path/mod.ts";
import { JSONSchemaObject } from "npm:@json-schema-tools/meta-schema";
import { isArray, unreachable } from "./util.ts";

import * as sdk from 'npm:@hasura/[email protected]';
export * as sdk from 'npm:@hasura/[email protected]';
import { sdk } from './sdk.ts';

export type State = {
functions: RuntimeFunctions
Expand Down
2 changes: 1 addition & 1 deletion src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import * as commander from 'npm:[email protected]';
import { inferProgramSchema } from './infer.ts'
import { connector } from './connector.ts'
import sdk from 'npm:@hasura/ndc-sdk[email protected]';
import { sdk } from './sdk.ts';

const inferCommand = new commander.Command("infer")
.argument('<path>', 'TypeScript source entrypoint')
Expand Down
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as sdk from 'npm:@hasura/ndc-sdk[email protected]';
import { sdk } from './sdk.ts';
import { mapObjectValues, unreachable } from "./util.ts";

export type ProgramSchema = {
Expand Down
4 changes: 4 additions & 0 deletions src/sdk.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

// Have this dependency defined in one place

export * as sdk from 'npm:@hasura/[email protected]';