From 7172d7ba0380b84155425cdf4c2a3e6223b07566 Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 29 Feb 2024 21:05:37 -0700 Subject: [PATCH 1/4] :arrow_up: deeeps --- package.json | 6 +++--- pnpm-lock.yaml | 44 ++++++++++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index ed45aa1..26f2b98 100644 --- a/package.json +++ b/package.json @@ -28,11 +28,11 @@ "test": "vitest run --dir test" }, "dependencies": { - "@kodadot1/static": "0.0.3", + "@kodadot1/static": "0.0.4", "gql-query-builder": "^3.8.0", "ofetch": "^1.3.3", - "scule": "^1.0.0", - "ufo": "^1.3.1" + "scule": "^1.3.0", + "ufo": "^1.4.0" }, "devDependencies": { "c8": "latest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44db0c8..e0449c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.1' +lockfileVersion: '6.0' settings: autoInstallPeers: true @@ -6,8 +6,8 @@ settings: dependencies: '@kodadot1/static': - specifier: 0.0.3 - version: 0.0.3 + specifier: 0.0.4 + version: 0.0.4 gql-query-builder: specifier: ^3.8.0 version: 3.8.0 @@ -15,11 +15,11 @@ dependencies: specifier: ^1.3.3 version: 1.3.3 scule: - specifier: ^1.0.0 - version: 1.0.0 + specifier: ^1.3.0 + version: 1.3.0 ufo: - specifier: ^1.3.1 - version: 1.3.1 + specifier: ^1.4.0 + version: 1.4.0 devDependencies: c8: @@ -200,6 +200,7 @@ packages: /@babel/highlight@7.22.13: resolution: {integrity: sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==} engines: {node: '>=6.9.0'} + requiresBuild: true dependencies: '@babel/helper-validator-identifier': 7.22.5 chalk: 2.4.2 @@ -784,8 +785,8 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: true - /@kodadot1/static@0.0.3: - resolution: {integrity: sha512-V9WIHN8LZMeKHRyJ86TnAya2y6Mi9bRBYXS0hX9NVfPzrmnlzSPkx/cXyDiqewduAT+OrjfscQaiFvN2iEJymw==} + /@kodadot1/static@0.0.4: + resolution: {integrity: sha512-91HlWsm1RWaQCWeeEnyQohCOJ523XaDF8njCC2xfJCsi5Ae5mW84iqt+m+MI5ZicMld07Ejuuo/YYZ8TDUUK4Q==} dev: false /@nodelib/fs.scandir@2.1.5: @@ -1159,6 +1160,7 @@ packages: /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} + requiresBuild: true dependencies: color-convert: 1.9.3 dev: true @@ -1406,6 +1408,7 @@ packages: /chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} + requiresBuild: true dependencies: ansi-styles: 3.2.1 escape-string-regexp: 1.0.5 @@ -1440,7 +1443,7 @@ packages: open: 9.1.0 pathe: 1.1.1 pkg-types: 1.0.3 - scule: 1.0.0 + scule: 1.3.0 semver: 7.5.4 std-env: 3.4.3 yaml: 2.3.1 @@ -1503,6 +1506,7 @@ packages: /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} + requiresBuild: true dependencies: color-name: 1.1.3 dev: true @@ -1516,6 +1520,7 @@ packages: /color-name@1.1.3: resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} + requiresBuild: true dev: true /color-name@1.1.4: @@ -2741,6 +2746,7 @@ packages: /has-flag@3.0.0: resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} engines: {node: '>=4'} + requiresBuild: true dev: true /has-flag@4.0.0: @@ -3085,6 +3091,7 @@ packages: /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + requiresBuild: true dev: true /js-yaml@4.1.0: @@ -3332,7 +3339,7 @@ packages: acorn: 8.10.0 pathe: 1.1.1 pkg-types: 1.0.3 - ufo: 1.3.1 + ufo: 1.4.0 dev: true /mri@1.2.0: @@ -3452,7 +3459,7 @@ packages: dependencies: destr: 2.0.1 node-fetch-native: 1.4.0 - ufo: 1.3.1 + ufo: 1.4.0 /ohash@1.1.2: resolution: {integrity: sha512-9CIOSq5945rI045GFtcO3uudyOkYVY1nyfFxVQp+9BRgslr8jPNiSSrsFGg/BNTUFOLqx0P5tng6G32brIPw0w==} @@ -3823,8 +3830,8 @@ packages: regexp-tree: 0.1.24 dev: true - /scule@1.0.0: - resolution: {integrity: sha512-4AsO/FrViE/iDNEPaAQlb77tf0csuq27EsVpy6ett584EcRTp6pTDLoGWVxCD77y5iU5FauOvhsI4o1APwPoSQ==} + /scule@1.3.0: + resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==} /semver@5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} @@ -3999,6 +4006,7 @@ packages: /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} + requiresBuild: true dependencies: has-flag: 3.0.0 dev: true @@ -4170,8 +4178,8 @@ packages: hasBin: true dev: true - /ufo@1.3.1: - resolution: {integrity: sha512-uY/99gMLIOlJPwATcMVYfqDSxUR9//AUcgZMzwfSTJPDKzA1S8mX4VLqa+fiAtveraQUBCz4FFcwVZBGbwBXIw==} + /ufo@1.4.0: + resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -4213,7 +4221,7 @@ packages: pretty-bytes: 6.1.1 rollup: 3.28.1 rollup-plugin-dts: 6.0.1(rollup@3.28.1)(typescript@5.2.2) - scule: 1.0.0 + scule: 1.3.0 typescript: 5.2.2 untyped: 1.4.0 transitivePeerDependencies: @@ -4241,7 +4249,7 @@ packages: defu: 6.1.2 jiti: 1.19.3 mri: 1.2.0 - scule: 1.0.0 + scule: 1.3.0 transitivePeerDependencies: - supports-color dev: true From 5ec94ec0e0ce05e49186259185f5ff6e2cb0d3de Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 29 Feb 2024 21:08:10 -0700 Subject: [PATCH 2/4] :zap: image is a default field --- src/clients/defaults.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/clients/defaults.ts b/src/clients/defaults.ts index e536082..8713a32 100644 --- a/src/clients/defaults.ts +++ b/src/clients/defaults.ts @@ -12,6 +12,7 @@ export const defaultField: ObjProp = [ 'id', 'createdAt', 'name', + 'image', 'metadata', 'currentOwner', 'issuer', From fe3a274ea496ad2550990649b127efcd54009a27 Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 29 Feb 2024 21:14:36 -0700 Subject: [PATCH 3/4] :test_tube: image is default --- test/index.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index 2a66369..deca57d 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -16,6 +16,7 @@ describe('UNIQUERY UTILS', () => { }) it('should throw on subquery kusama indexer', () => { + // eslint-disable-next-line unicorn/consistent-function-scoping const fn = () => getUrl('ksm', 'subquery') expect(fn).toThrow(ReferenceError) }) @@ -32,7 +33,7 @@ describe('UNIQUERY UTILS', () => { it('should return default Kusama Asset Hub indexer', () => { const url = getUrl('ahk') - expect(url).eq('https://squid.subsquid.io/stick/graphql') + expect(url).eq('https://query-stick.stellate.sh') }) it('should return default Polkadot Asset Hub indexer', () => { @@ -44,7 +45,7 @@ describe('UNIQUERY UTILS', () => { describe('getFields', () => { it('should return default fields', () => { const fields = getFields() - expect(fields).toStrictEqual(['id', 'createdAt', 'name', 'metadata', 'currentOwner', 'issuer']) + expect(fields).toStrictEqual(['id', 'createdAt', 'name', 'image', 'metadata', 'currentOwner', 'issuer']) }) it('should return only specified fields', () => { @@ -61,12 +62,12 @@ describe('UNIQUERY UTILS', () => { describe('extendFields', () => { it('should return default fields', () => { const fields = extendFields(['meta']) - expect(fields).toStrictEqual(['id', 'createdAt', 'name', 'metadata', 'currentOwner', 'issuer', 'meta']) + expect(fields).toStrictEqual(['id', 'createdAt', 'name', 'image', 'metadata', 'currentOwner', 'issuer', 'meta']) }) it('should return unique fields', () => { const fields = extendFields(['id', 'metadata', 'name', 'meta']) - expect(fields).toStrictEqual(['id', 'createdAt', 'name', 'metadata', 'currentOwner', 'issuer', 'meta']) + expect(fields).toStrictEqual(['id', 'createdAt', 'name', 'image', 'metadata', 'currentOwner', 'issuer', 'meta']) }) }) From 9c8bef1bf05cf88c4eac2f199561d22571f4f6cb Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 29 Feb 2024 21:15:33 -0700 Subject: [PATCH 4/4] :bookmark: uniquety 0.5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26f2b98..8b7f979 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kodadot1/uniquery", - "version": "0.5.1-rc.0", + "version": "0.5.1", "description": "Universal GraphQL query builder for KodaDot", "repository": "kodadot/uniquery", "license": "MIT",