Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved FormData support; (#4448) #4528

Closed
wants to merge 1 commit into from
Closed

Commits on Mar 14, 2022

  1. Improved FormData support; (#4448)

    * Fixed isFormData predicate;
    Added support for automatic object serialization to FormData if `Content-Type` is `multipart/form-data`;
    Added support for FormData to be overloaded using `config.env.FormData` option;
    Added support for FormData in node.js environment through `form-data` package;
    
    * Added the `form-data` package as a dependency for the server build;
    Added tests for FormData payload;
    
    * Added FormData automatic serialization section;
    Refactored cancellation section;
    
    * Reworked toFormData helper;
    Expose toFormData helper as a static method;
    Refactored transform request;
    Added kindOf, kindOfTest, endsWith, isTypedArray util;
    Refactored utils.js to use kindOf for tests;
    
    * Fixed isFormData predicate; (#4413)
    
    Added support for automatic object serialization to FormData if `Content-Type` is `multipart/form-data`;
    Added support for FormData to be overloaded using `config.env.FormData` option;
    Added support for FormData in node.js environment using `form-data` package;
    
    (cherry picked from commit 73e3bdb)
    
    * Added shortcut methods `postForm`, `putForm`, `patchForm` to submit a Form;
    Added ability to submit FileList object as a FormData;
    Updated README.md;
    
    * Updated README.md;
    DigitalBrainJS committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    6b9b05b View commit details
    Browse the repository at this point in the history