@@ -13,6 +13,114 @@ Please follow the instructions for your specific version to ensure a smooth upgr
1313
1414The Meilisearch adapter has been removed from Flow PHP. If you were using it, please migrate to Elasticsearch adapter.
1515
16+ ### 2) Removed deprecated DSL functions
17+
18+ All type-related DSL functions have been moved from ` Flow\ETL\DSL ` to ` Flow\Types\DSL ` . Update your imports accordingly.
19+
20+ | Removed Function | Replacement |
21+ | ---------------------------| -------------------------------------------|
22+ | ` chunks_from() ` | ` batches() ` |
23+ | ` type_structure() ` | ` \Flow\Types\DSL\type_structure() ` |
24+ | ` type_union() ` | ` \Flow\Types\DSL\type_union() ` |
25+ | ` type_optional() ` | ` \Flow\Types\DSL\type_optional() ` |
26+ | ` type_from_array() ` | ` \Flow\Types\DSL\type_from_array() ` |
27+ | ` is_nullable() ` | ` \Flow\Types\DSL\type_is_nullable() ` |
28+ | ` type_equals() ` | ` \Flow\Types\DSL\type_equals() ` |
29+ | ` types() ` | ` \Flow\Types\DSL\types() ` |
30+ | ` type_list() ` | ` \Flow\Types\DSL\type_list() ` |
31+ | ` type_map() ` | ` \Flow\Types\DSL\type_map() ` |
32+ | ` type_json() ` | ` \Flow\Types\DSL\type_json() ` |
33+ | ` type_datetime() ` | ` \Flow\Types\DSL\type_datetime() ` |
34+ | ` type_date() ` | ` \Flow\Types\DSL\type_date() ` |
35+ | ` type_time() ` | ` \Flow\Types\DSL\type_time() ` |
36+ | ` type_xml() ` | ` \Flow\Types\DSL\type_xml() ` |
37+ | ` type_xml_element() ` | ` \Flow\Types\DSL\type_xml_element() ` |
38+ | ` type_uuid() ` | ` \Flow\Types\DSL\type_uuid() ` |
39+ | ` type_int() ` | ` \Flow\Types\DSL\type_integer() ` |
40+ | ` type_integer() ` | ` \Flow\Types\DSL\type_integer() ` |
41+ | ` type_string() ` | ` \Flow\Types\DSL\type_string() ` |
42+ | ` type_float() ` | ` \Flow\Types\DSL\type_float() ` |
43+ | ` type_boolean() ` | ` \Flow\Types\DSL\type_boolean() ` |
44+ | ` type_instance_of() ` | ` \Flow\Types\DSL\type_instance_of() ` |
45+ | ` type_resource() ` | ` \Flow\Types\DSL\type_resource() ` |
46+ | ` type_array() ` | ` \Flow\Types\DSL\type_array() ` |
47+ | ` type_callable() ` | ` \Flow\Types\DSL\type_callable() ` |
48+ | ` type_null() ` | ` \Flow\Types\DSL\type_null() ` |
49+ | ` type_enum() ` | ` \Flow\Types\DSL\type_enum() ` |
50+ | ` struct_schema() ` | ` structure_schema() ` |
51+ | ` get_type() ` | ` \Flow\Types\DSL\get_type() ` |
52+ | ` print_schema() ` | ` schema_to_ascii() ` |
53+ | ` type_is() ` | ` \Flow\Types\DSL\type_is() ` |
54+ | ` type_is_any() ` | ` \Flow\Types\DSL\type_is_any() ` |
55+ | ` dom_element_to_string() ` | ` \Flow\Types\DSL\dom_element_to_string() ` |
56+
57+ ### 3) Removed deprecated DataFrame methods
58+
59+ | Removed Method | Replacement |
60+ | ----------------------------------------| --------------------------------------------------------------|
61+ | ` DataFrame::validate() ` | ` DataFrame::match() ` |
62+ | ` DataFrame::renameAll() ` | ` DataFrame::renameEach(rename_replace(...)) ` |
63+ | ` DataFrame::renameAllLowerCase() ` | ` DataFrame::renameEach(rename_style(StringStyles::LOWER)) ` |
64+ | ` DataFrame::renameAllUpperCase() ` | ` DataFrame::renameEach(rename_style(StringStyles::UPPER)) ` |
65+ | ` DataFrame::renameAllUpperCaseFirst() ` | ` DataFrame::renameEach(rename_style(StringStyles::UCFIRST)) ` |
66+ | ` DataFrame::renameAllUpperCaseWord() ` | ` DataFrame::renameEach(rename_style(StringStyles::UCWORDS)) ` |
67+ | ` DataFrame::renameAllStyle() ` | ` DataFrame::renameEach(rename_style(...)) ` |
68+
69+ ### 4) Removed deprecated Schema methods
70+
71+ | Removed Method | Replacement |
72+ | ---------------------------| -------------------------------|
73+ | ` Schema::entries() ` | ` Schema::references()->all() ` |
74+ | ` Schema::getDefinition() ` | ` Schema::get() ` |
75+ | ` Schema::nullable() ` | ` Schema::makeNullable() ` |
76+
77+ ### 5) Removed deprecated Definition methods
78+
79+ | Removed Method | Replacement |
80+ | --------------------------| ------------------------------|
81+ | ` Definition::nullable() ` | ` Definition::makeNullable() ` |
82+
83+ This applies to all Definition implementations: ` BooleanDefinition ` , ` DateDefinition ` , ` DateTimeDefinition ` ,
84+ ` EnumDefinition ` , ` FloatDefinition ` , ` HTMLDefinition ` , ` HTMLElementDefinition ` , ` IntegerDefinition ` , ` JsonDefinition ` ,
85+ ` ListDefinition ` , ` MapDefinition ` , ` StringDefinition ` , ` StructureDefinition ` , ` TimeDefinition ` , ` UuidDefinition ` ,
86+ ` XMLDefinition ` , ` XMLElementDefinition ` .
87+
88+ ### 6) Removed deprecated FileExtractor and PathFiltering methods
89+
90+ | Removed Method | Replacement |
91+ | ------------------------------| -----------------------------------|
92+ | ` FileExtractor::addFilter() ` | ` FileExtractor::withPathFilter() ` |
93+ | ` PathFiltering::addFilter() ` | ` PathFiltering::withPathFilter() ` |
94+
95+ ### 7) Removed deprecated ScalarFunctionChain methods
96+
97+ | Removed Method | Replacement |
98+ | ----------------------------------------------| ---------------------------------------------------|
99+ | ` ScalarFunctionChain::domElementAttribute() ` | ` ScalarFunctionChain::domElementAttributeValue() ` |
100+
101+ ### 8) Removed deprecated Config constants
102+
103+ | Removed Constant | Replacement |
104+ | -------------------------------| -----------------------------------|
105+ | ` Config::CACHE_DIR_ENV ` | ` CacheConfig::CACHE_DIR_ENV ` |
106+ | ` Config::SORT_MAX_MEMORY_ENV ` | ` SortConfig::SORT_MAX_MEMORY_ENV ` |
107+
108+ ### 9) Removed deprecated Transformers
109+
110+ | Removed Transformer | Replacement |
111+ | -----------------------------------------| --------------------------------------------------|
112+ | ` EntryNameStyleConverterTransformer ` | Use ` DataFrame::renameEach(rename_style(...)) ` |
113+ | ` RenameAllCaseTransformer ` | Use ` DataFrame::renameEach(rename_style(...)) ` |
114+ | ` RenameStrReplaceAllEntriesTransformer ` | Use ` DataFrame::renameEach(rename_replace(...)) ` |
115+
116+ ### 10) Removed deprecated classes
117+
118+ | Removed Class | Replacement |
119+ | -------------------------------------------------| --------------------------------|
120+ | ` Flow\ETL\Function\StyleConverter\StringStyles ` | ` Flow\ETL\String\StringStyles ` |
121+
122+ ---
123+
16124## Upgrading from 0.28.x to 0.29.x
17125
18126### 1) JsonType now uses Json value object instead of string
@@ -48,7 +156,7 @@ $jsonString = $json->toString(); // get the string
48156$jsonArray = $json->toArray(); // get as array
49157```
50158
51- If you were using ` JsonEntry::value() ` and edxpected an array:
159+ If you were using ` JsonEntry::value() ` and expected an array:
52160
53161Before:
54162
@@ -224,6 +332,7 @@ This means all classes related to Schema now live under `Flow\ETL\Schema` namesp
224332The old method is now deprecated and will be removed in the next release.
225333
226334### 2) Replaced ` Flow\ETL\Function\ScalarFunction\TypedScalarFunction ` with
335+
227336` Flow\ETL\Function\ScalarFunction\ScalarResult ` .
228337
229338The old interface was used to allow defining the return type of the ScalarFunctions.
0 commit comments