From 18cc31b515d50ce8e0adfcc2296700a89cd46fe0 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 5 Mar 2024 17:02:58 +0000 Subject: [PATCH] chore(release): 3.2.0 ## [3.2.0](https://github.com/NibiruChain/ts-sdk/compare/v3.1.1...v3.2.0) (2024-03-05) ### Features * deepPartial ([#329](https://github.com/NibiruChain/ts-sdk/issues/329)) ([#330](https://github.com/NibiruChain/ts-sdk/issues/330)) ([f2bb64d](https://github.com/NibiruChain/ts-sdk/commit/f2bb64dc2dbfd2af356778a01b806db8bbcfa923)) [skip ci] --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/gql/query/index.ts | 4 ++-- src/gql/utils/consts.ts | 18 +++++++++--------- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 218963b3..94c79dc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [3.2.0](https://github.com/NibiruChain/ts-sdk/compare/v3.1.1...v3.2.0) (2024-03-05) + +### Features + +- deepPartial ([#329](https://github.com/NibiruChain/ts-sdk/issues/329)) ([#330](https://github.com/NibiruChain/ts-sdk/issues/330)) ([f2bb64d](https://github.com/NibiruChain/ts-sdk/commit/f2bb64dc2dbfd2af356778a01b806db8bbcfa923)) + ### [3.1.1](https://github.com/NibiruChain/ts-sdk/compare/v3.1.0...v3.1.1) (2024-02-29) ### Bug Fixes diff --git a/package.json b/package.json index 885b8f64..278fcbfc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nibiruchain/nibijs", "description": "The TypeScript SDK for the Nibiru blockchain.", - "version": "3.1.1", + "version": "3.2.0", "license": "MIT", "repository": { "type": "git", diff --git a/src/gql/query/index.ts b/src/gql/query/index.ts index c1fe4cb9..fd5d833e 100644 --- a/src/gql/query/index.ts +++ b/src/gql/query/index.ts @@ -9,8 +9,8 @@ export * from "./featureFlags" export * from "./governance" export * from "./ibc" export * from "./inflation" -export * from "./marketing" export * from "./markPriceCandles" +export * from "./marketing" export * from "./oracle" export * from "./perp" export * from "./redelegations" @@ -18,8 +18,8 @@ export * from "./spotLpPositions" export * from "./spotPoolCreated" export * from "./spotPoolExited" export * from "./spotPoolJoined" -export * from "./spotPools" export * from "./spotPoolSwap" +export * from "./spotPools" export * from "./stats" export * from "./unbondings" export * from "./users" diff --git a/src/gql/utils/consts.ts b/src/gql/utils/consts.ts index dd29f0c2..264101d2 100644 --- a/src/gql/utils/consts.ts +++ b/src/gql/utils/consts.ts @@ -60,13 +60,13 @@ export const checkFields = (objects: T[], fields: string[]) => { export const queryBatchHandler = async ( queryQueryStrings: string[], - endpt: string, + endpt: string ) => doGqlQuery(`{ ${queryQueryStrings.join("\n")} }`, endpt) export const arg = ( name: string, value: unknown, - ignoreQuotes?: boolean, + ignoreQuotes?: boolean ) => { const isString = typeof value === "string" && !ignoreQuotes ? `"` : "" @@ -101,7 +101,7 @@ export const getWhereArgArr = (whereArgs: IterableDictionary) => `where: ${objToGql(whereArgs)}` export const convertObjectToPropertiesString = ( - obj: IterableDictionary, + obj: IterableDictionary ) => { let result = "" @@ -115,14 +115,14 @@ export const convertObjectToPropertiesString = ( ${Object.keys(item) .map((k) => `${k}`) .join("\n")} - }`, + }` ) .join("\n") result += `${innerString}\n` } else if (typeof value === "object" && value !== null) { result += `${key} { ${convertObjectToPropertiesString( - value as IterableDictionary, + value as IterableDictionary )} }\n` } else { @@ -151,20 +151,20 @@ export const gqlQuery = ( name: string, typedQueryArgs: IterableDictionary, properties: string, - excludeParentObject?: boolean, + excludeParentObject?: boolean ) => { const queryArgList = [] if (typedQueryArgs.where !== undefined) { queryArgList.push( - getWhereArgArr(typedQueryArgs.where as IterableDictionary), + getWhereArgArr(typedQueryArgs.where as IterableDictionary) ) } delete typedQueryArgs.where Object.keys(typedQueryArgs).forEach((key) => - queryArgList.push(arg(key, typedQueryArgs[key], true)), + queryArgList.push(arg(key, typedQueryArgs[key], true)) ) const hasQueryList = (char: string) => (queryArgList.length > 0 ? char : "") @@ -179,7 +179,7 @@ export const gqlQuery = ( export const doGqlQuery = async ( gqlQuery: string, gqlEndpt: string, - headers?: HeadersInit, + headers?: HeadersInit ) => { const rawResp = await fetch(gqlEndpt, { method: "POST",