Skip to content

Commit 573e6a9

Browse files
authored
[release] 20250911 (#24)
1 parent d81546f commit 573e6a9

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

.yarn/versions/b24a6417.yml

Whitespace-only changes.

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [0.2.3] - 2025-09-11
810
### Changed
911
- Update postgraphile dependencies to beta.48 (#23)
1012

@@ -45,7 +47,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4547
### Added
4648
- Support GraphQL query style similar to subgraph.
4749

48-
[Unreleased]: https://github.com/subquery/query-subgraph/compare/v0.2.2...HEAD
50+
[Unreleased]: https://github.com/subquery/query-subgraph/compare/v0.2.3...HEAD
51+
[0.2.3]: https://github.com/subquery/query-subgraph/compare/v0.2.2...v0.2.3
4952
[0.2.2]: https://github.com/subquery/query-subgraph/compare/v0.2.1...v0.2.2
5053
[0.2.1]: https://github.com/subquery/query-subgraph/compare/v0.2.0...v0.2.1
5154
[0.2.0]: https://github.com/subquery/query-subgraph/compare/v0.1.0...v0.2.0

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@subql/query-subgraph",
3-
"version": "0.2.3-0",
3+
"version": "0.2.3",
44
"main": "index.js",
55
"bin": {
66
"subql-query-subgraph": "./bin/run"
@@ -65,6 +65,5 @@
6565
"/dist",
6666
"/bin"
6767
],
68-
"packageManager": "[email protected]",
69-
"stableVersion": "0.2.2"
68+
"packageManager": "[email protected]"
7069
}

src/plugins/filter/ArgFilterAttributesPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const ArgFilterAttributesPlugin: GraphileConfig.Plugin = {
2626
return build;
2727
},
2828
GraphQLInputObjectType_fields(args, build, context) {
29-
const { EXPORTABLE, escapeLikeWildcards, sql } = build;
29+
const { EXPORTABLE, sql } = build;
3030
const {
3131
fieldWithHooks,
3232
scope: { isPgConnectionFilter, pgCodec },
@@ -67,7 +67,7 @@ export const ArgFilterAttributesPlugin: GraphileConfig.Plugin = {
6767
apply: EXPORTABLE(
6868
() =>
6969
/* eslint-disable complexity */
70-
function ($where: PgCondition<any>, inputValue: any) {
70+
function ($where: PgCondition, inputValue: string) {
7171
if (isEmpty(inputValue)) {
7272
return;
7373
}

src/plugins/filter/ArgFilterPlugin.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
// SPDX-License-Identifier: GPL-3.0
33

44
// refer https://github.com/graphile-contrib/postgraphile-plugin-connection-filter/blob/375f125/src/PgConnectionArgFilterPlugin.ts
5-
import {
6-
type PgSelectStep,
7-
type PgCodec,
8-
type PgSelectQueryBuilder,
9-
// PgCondition,
10-
} from '@dataplan/pg';
11-
import type { ConnectionStep, FieldArg } from 'grafast';
5+
import { type PgSelectStep, type PgCodec, type PgSelectQueryBuilder } from '@dataplan/pg';
6+
import type { ConnectionStep, FieldArg, Step } from 'grafast';
127
import { GraphQLInputType, GraphQLOutputType, GraphQLNamedType } from 'graphql';
138
import { makeAssertAllowed } from './utils';
149

@@ -28,7 +23,7 @@ export const ArgFilterPlugin: GraphileConfig.Plugin = {
2823
init: {
2924
after: ['PgCodecs'],
3025
callback(_, build) {
31-
const { EXPORTABLE, inflection, sql } = build;
26+
const { inflection } = build;
3227

3328
// Create filter type for all column-having codecs
3429
for (const pgCodec of build.allPgCodecs) {
@@ -115,7 +110,7 @@ export const ArgFilterPlugin: GraphileConfig.Plugin = {
115110
applyPlan: EXPORTABLE(
116111
(PgCondition, assertAllowed, attributeCodec) =>
117112
function (
118-
_: any,
113+
_: Step,
119114
$connection: ConnectionStep<any, any, any, any /*PgSelectStep*/>,
120115
fieldArg: FieldArg
121116
) {
@@ -141,10 +136,10 @@ export const ArgFilterPlugin: GraphileConfig.Plugin = {
141136
: {
142137
applyPlan: EXPORTABLE(
143138
(PgCondition, assertAllowed, attributeCodec) =>
144-
function (_: any, $pgSelect: PgSelectStep, fieldArg: FieldArg) {
139+
function (_: Step, $pgSelect: PgSelectStep, fieldArg: FieldArg) {
145140
fieldArg.apply(
146141
$pgSelect,
147-
(queryBuilder: PgSelectQueryBuilder, value: any /*object | null*/) => {
142+
(queryBuilder: PgSelectQueryBuilder, value: object | null) => {
148143
assertAllowed(value, 'object');
149144
if (value === null) return;
150145
const condition = new PgCondition(queryBuilder);

0 commit comments

Comments
 (0)