Skip to content

Commit 7c3674a

Browse files
Changelog, versions, and linting
1 parent fd5de80 commit 7c3674a

File tree

7 files changed

+27
-9
lines changed

7 files changed

+27
-9
lines changed

packages/connect-react/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Changelog
44

5+
# [1.2.0] - 2025-06-05
6+
7+
- Adding basic support for 'sql' prop types
8+
59
# [1.1.0] - 2025-06-04
610

711
- Adding support for 'object' prop types

packages/connect-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/connect-react",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Pipedream Connect library for React",
55
"files": [
66
"dist"

packages/connect-react/src/components/ControlSql.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import type { CSSProperties } from "react";
44
import type { ConfigurablePropSql } from "@pipedream/sdk";
55

66
// Type guard to check if value is a structured SQL object
7-
const isSqlStructuredValue = (value: unknown): value is { app: string; query: string; params: any[] } => {
7+
const isSqlStructuredValue = (value: unknown): value is { app: string; query: string; params: unknown[] } => {
88
return (
99
typeof value === "object" &&
1010
value !== null &&
1111
"query" in value &&
12-
typeof (value as any).query === "string"
12+
typeof (value as Record<string, unknown>).query === "string"
1313
);
1414
};
1515

@@ -21,13 +21,13 @@ export function ControlSql() {
2121
const {
2222
getProps, theme,
2323
} = useCustomize();
24-
24+
2525
// Cast prop to SQL prop type (this component is only used for SQL props)
2626
const sqlProp = prop as ConfigurablePropSql;
27-
27+
2828
// Get the app name from the SQL prop's auth configuration
2929
const appName = sqlProp.auth?.app || "postgresql"; // Default to postgresql
30-
30+
3131
// Extract the query string from the structured value or use empty string
3232
let queryValue = "";
3333
if (isSqlStructuredValue(value)) {
@@ -45,7 +45,7 @@ export function ControlSql() {
4545
};
4646
onChange(sqlObject);
4747
};
48-
48+
4949
const baseStyles: CSSProperties = {
5050
color: theme.colors.neutral60,
5151
display: "block",

packages/sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Changelog
44

5+
## [1.6.6] - 2025-06-05
6+
7+
### Added
8+
9+
- Added support for `sql` prop type for `connect-react` package
10+
511
## [1.6.5] - 2025-06-02
612

713
### Changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pipedream/sdk",
33
"type": "module",
4-
"version": "1.6.5",
4+
"version": "1.6.6",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export type PropValue<T extends ConfigurableProp["type"]> = T extends "alert"
128128
: T extends "string[]"
129129
? string[] // XXX support arrays differently?
130130
: T extends "sql"
131-
? { app: string; query: string; params: any[]; }
131+
? { app: string; query: string; params: unknown[]; }
132132
: never;
133133

134134
export type ConfiguredProps<T extends ConfigurableProps> = {

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)