payload 0.14.1-beta.0 → 0.14.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [0.14.2-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.2-beta.0) (2022-01-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ensures multipart/form-data using _payload flattens field data before sending ([ae44727](https://github.com/payloadcms/payload/commit/ae44727fb9734fc3801f7249fa9e78668311c09e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* builds a way for multipart/form-data reqs to retain non-string values ([65b0ad7](https://github.com/payloadcms/payload/commit/65b0ad7f084a9c279a1e4fb799542f97c645653d))
|
|
12
|
+
|
|
1
13
|
## [0.14.1-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.1-beta.0) (2022-01-03)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -203,7 +203,7 @@ const Form = (props) => {
|
|
|
203
203
|
const getDataByPath = useCallback((path) => getDataByPathFunc(contextRef.current.fields, path), [contextRef]);
|
|
204
204
|
const getUnflattenedValues = useCallback(() => reduceFieldsToValues(contextRef.current.fields), [contextRef]);
|
|
205
205
|
const createFormData = useCallback(() => {
|
|
206
|
-
const data = reduceFieldsToValues(contextRef.current.fields);
|
|
206
|
+
const data = reduceFieldsToValues(contextRef.current.fields, true);
|
|
207
207
|
const file = data === null || data === void 0 ? void 0 : data.file;
|
|
208
208
|
if (file) {
|
|
209
209
|
delete data.file;
|