diff --git a/packages/connect-react/CHANGELOG.md b/packages/connect-react/CHANGELOG.md index dd7cc6f26bd54..38e1803094e71 100644 --- a/packages/connect-react/CHANGELOG.md +++ b/packages/connect-react/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog +# [1.0.0-preview.29] - 2025-02-10 + +- Fix enableDebugging state update bug + # [1.0.0-preview.28] - 2025-02-05 - Surface SDK errors in the form diff --git a/packages/connect-react/examples/nextjs/package-lock.json b/packages/connect-react/examples/nextjs/package-lock.json index 70ee75eb7ff46..8a7b60f0525d3 100644 --- a/packages/connect-react/examples/nextjs/package-lock.json +++ b/packages/connect-react/examples/nextjs/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "dependencies": { "@pipedream/connect-react": "file:../..", - "@pipedream/sdk": "^1.3.2", + "@pipedream/sdk": "^1.3.3", "next": "15.0.3", "react": "19.0.0-rc-66855b96-20241106", "react-dom": "19.0.0-rc-66855b96-20241106" @@ -525,9 +525,9 @@ "link": true }, "node_modules/@pipedream/sdk": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@pipedream/sdk/-/sdk-1.3.2.tgz", - "integrity": "sha512-50/eSDsR5fV2pyScgbAmfMiZ4kGxxvN2Zrg9RZa/Dt11VsQAcRNza1Vy8cGD6rc3luPeXwlGk+Diu0ynAtAKlA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@pipedream/sdk/-/sdk-1.3.3.tgz", + "integrity": "sha512-sh0dZWdQlh7IprVs1Ka04+jMmpwTKf5SlyvaAJFmSbcvJ7So1fj/YLuU3BMXU91ehA1R6DGb66Yr+QzBsANcSA==", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@rails/actioncable": "^8.0.0", diff --git a/packages/connect-react/examples/nextjs/package.json b/packages/connect-react/examples/nextjs/package.json index c520feccd93dd..2521af8a12d4d 100644 --- a/packages/connect-react/examples/nextjs/package.json +++ b/packages/connect-react/examples/nextjs/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "@pipedream/connect-react": "file:../..", - "@pipedream/sdk": "^1.3.2", + "@pipedream/sdk": "^1.3.3", "next": "15.0.3", "react": "19.0.0-rc-66855b96-20241106", "react-dom": "19.0.0-rc-66855b96-20241106" diff --git a/packages/connect-react/package.json b/packages/connect-react/package.json index 22638596162b7..171975abc31c8 100644 --- a/packages/connect-react/package.json +++ b/packages/connect-react/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/connect-react", - "version": "1.0.0-preview.28", + "version": "1.0.0-preview.29", "description": "Pipedream Connect library for React", "files": [ "dist" diff --git a/packages/connect-react/src/hooks/form-context.tsx b/packages/connect-react/src/hooks/form-context.tsx index 0c9ed391c6927..5942edaf30bc3 100644 --- a/packages/connect-react/src/hooks/form-context.tsx +++ b/packages/connect-react/src/hooks/form-context.tsx @@ -41,7 +41,7 @@ export type FormContext = { setSubmitting: (submitting: boolean) => void; submitting: boolean; userId: string; - enableDebugging: boolean; + enableDebugging?: boolean; }; export const skippablePropTypes = [ @@ -78,7 +78,7 @@ export const FormContextProvider = ({ const id = useId(); const { - component, configuredProps: __configuredProps, propNames, userId, sdkResponse, enableDebugging: __enableDebugging, + component, configuredProps: __configuredProps, propNames, userId, sdkResponse, enableDebugging, } = formProps; const componentId = component.key; @@ -104,11 +104,6 @@ export const FormContextProvider = ({ setSdkErrors, ] = useState([]) - const [ - enableDebugging - , - ] = useState(__enableDebugging === true) - const [ enabledOptionalProps, setEnabledOptionalProps, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index deff9cd507ab0..10a02ce4e2ecc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12816,8 +12816,8 @@ importers: specifier: file:../.. version: file:packages/connect-react(@types/react@18.3.12)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) '@pipedream/sdk': - specifier: ^1.3.2 - version: 1.3.2 + specifier: ^1.3.3 + version: 1.3.3 next: specifier: 15.0.3 version: 15.0.3(@babel/core@8.0.0-alpha.13)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) @@ -15705,8 +15705,8 @@ packages: resolution: {integrity: sha512-f8FXEaoBqIOQpI4vVOO8OrHRAjwQYO4pKIwMUcGRkzS5KJ6cZ/7JYYGyXEu7NcS+y1VfyegtbJWu4tWacDjQZg==} engines: {node: '>=18.0.0'} - '@pipedream/sdk@1.3.2': - resolution: {integrity: sha512-50/eSDsR5fV2pyScgbAmfMiZ4kGxxvN2Zrg9RZa/Dt11VsQAcRNza1Vy8cGD6rc3luPeXwlGk+Diu0ynAtAKlA==} + '@pipedream/sdk@1.3.3': + resolution: {integrity: sha512-sh0dZWdQlh7IprVs1Ka04+jMmpwTKf5SlyvaAJFmSbcvJ7So1fj/YLuU3BMXU91ehA1R6DGb66Yr+QzBsANcSA==} engines: {node: '>=18.0.0'} '@pipedream/sftp@0.4.1': @@ -31866,7 +31866,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@pipedream/sdk@1.3.2': + '@pipedream/sdk@1.3.3': dependencies: '@rails/actioncable': 8.0.0 commander: 12.1.0