🔧 fix(settings.py): update COMPONENTS_PATH to accept a list of strings instead of a list of Paths to improve flexibility and compatibility
🔧 fix(settings.py): update set_components_path method to handle LANGFLOW_COMPONENTS_PATH as a list of paths or a single path string
- Added a new file `__init__.py` in the `components` directory to import the `CustomComponent` class from `langflow.interface.custom.custom_component`.
- Created a new package `chains` in the `components` directory.
The `--database-url` option has been removed from the CLI options. Instead, a local SQLite database will be used if no database URL is provided. This change simplifies the configuration process and aligns with the default behavior.
🔧 chore(__main__.py): remove unused env_file parameter and related code for simplification
🔧 chore(__main__.py): remove unused imports and variables for cleaner code
🔧 chore(__main__.py): remove unused load_params function for code cleanup
The following changes were made:
- Removed unused imports from the file
- Removed the unused `get_load_custom_component_from_path` endpoint
- Removed the unused `get_load_custom_component_from_path_test` endpoint
🐛 fix(directory_reader.py): add the output types of the custom component to the component template to ensure correct behavior
🐛 fix(types.py): add the output types of the custom component to the component template to ensure correct behavior
This fixes SQLDatabaseChain by adding langchain_experimental dep.
Fixes beta attribute not being set correctly.
Fixes env-file not loading and removes database-url option in the CLI
Fixes to word breaking in text fields.
The checkEdgesHandles function is added to the reactflowUtils.ts file. This function takes an array of edges as input and returns true if any of the handles in the edges are not a JSON string. It checks each edge in the array and verifies if the sourceHandle and targetHandle properties exist and contain a JSON string. If any of the handles are not a JSON string, the function returns true. This function is useful for validating the integrity of the handles in the edges before further processing.
fix(tabsContext.tsx): update processFlowEdges function to call updateEdgesHandleIds and update the edges in the flow data
refactor(reactflowUtils.ts): update updateEdgesHandleIds function to return the updated edges instead of using setEdges function
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent name
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent info
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent color
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent key
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent data
fix(GenericNode/index.tsx): fix indentation in map function for ParameterComponent setData
fix(GenericNode/index.tsx): fix indentation in map function for
The previous implementation used string manipulation to modify the sourceHandle property, but it has been refactored to use JSON parsing and stringifying for better readability and maintainability. The sourceHandle property is now parsed into an object, and the baseClasses property is updated by concatenating it with the values from the template's "base_classes" property. The modified sourceHandle object is then stringified and assigned back to the edge.sourceHandle property.
fix(tabsContext.tsx): import sourceHandleType and targetHandleType from flow types to fix type errors
refactor(tabsContext.tsx): update usage of Edge type in forEach loop to fix type error
refactor(tabsContext.tsx): update usage of sourceHandle and targetHandle to use JSON.parse and JSON.stringify to fix type errors
refactor(tabsContext.tsx): update className and animated properties of edges to use targetHandleObject.type instead of splitting targetHandle string
refactor(tabsContext.tsx): update updateEdges function to use Edge type and targetHandleObject to fix type errors
refactor(tabsContext.tsx): update sourceHandle in forEach loop to use JSON.stringify instead of splitting and joining the string
refactor(tabsContext.tsx): update sourceHandle in forEach loop to use JSON.stringify instead of splitting and joining the string
🔧 fix(custom-component.mdx): correct the recommended way to load custom components by setting LANGFLOW_COMPONENTS_PATH environment variable instead of using --components-path argument
💡 docs(custom-component.mdx): provide an alternative method to specify the path to custom components using --components-path argument
🔒 chore(poetry.lock): update debugpy package version from 1.6.8 to 1.6.7
🔀 chore: update dependencies
🔄 refactor: update debugpy package to version 1.6.7
🔒 chore(poetry.lock): update google-cloud-resource-manager to version 1.10.3
🔒 chore(poetry.lock): update jcloud to version 0.2.16
🔒 chore(poetry.lock): update more-itertools to version 10.1.0