Skip to content

Latest commit

 

History

History
139 lines (87 loc) · 3.2 KB

CHANGELOG.md

File metadata and controls

139 lines (87 loc) · 3.2 KB

19.0.0

Feature

  • angular: update angular to angular 19

18.0.0

Feature

  • angular: update angular to angular 18, from now on, the main version will follow angular/core version.
  • angular migrate to standalone component

⚠ BREAKING CHANGES

  • angular: NgxfUploaderModule be removed, use standalone component NgxfSelectDirective directly instead.
  • ngxf-validate: validate from FileOption(min, max) structure become FileValidateOptions
    export interface FileValidateOptions {
      /**
       * check upload file size
       * unit: `Byte`
       */
      size?: {
        /** the smallest bytes */
        min?: number;
        /** the biggest bytes */
        max?: number;
      }; // unit: Byte,
      /**
       * when you upload some files in once, but not throw error when have some file not in the range
       * you can set it to true, let will skip the Invalid file
       *
       * @default false
       */
      skipInvalid?: boolean;
    }

2.0.0

  • Angular version: upgrade angular version to v13 with Ivy.

1.9.0

Feature

  • Directory structure support: (ngxf-select) (ngxf-drop) support directory structure.
/**
 * the structure of output result
 * @default 'files'
 */
structure: 'directory' | 'files';

1.8.0

Feature

  • Folder support: (ngxf-select) support select folder mode.
  • Folder support: (ngxf-drop) support drag folder into (not work in IE).

This folder upload feature, thanks for SHANG-TING, more detail about file upload with folder, can view his blog

1.7.1

Bug fix

  • console.log: remove console.log in mistake.

1.7.0

Feature

  • Parse: Support new parse directive for parse files.

Fix

  • All code upgrade to angular 11: upgrade package way with angular 11.2

1.6.0

But Fix

  • Support Blob with file: Add Blob file type check
  • Field order change: Change field order before the file

1.5.3

  • Bug fix fix bug with ng-packgr issue cb9f471.

1.5.2

  • Add upload options add responseType and withCredentials with upload options.

  • Code optimization Optimizate functions with check file size and type, make code more readable.

1.5.1

Fix problem with IE

  • Append upload input elm on body: IE need actual element on document, that can occur upload change event.

  • Change peerDependencies to more than 6.0.0: Change peerDependencies to more than 6.0.0

1.5.0

Refactory upload with Renderer

  • Refactory upload with Renderer2 to add class and style
  • add skipInvalid to FileOption: now you can use skipInvalid to ignore invalid file.

1.4.0

Upgrade to Angular 6+ Rxjs 6+

  • Upgrade to Angular 6+ Rxjs 6+

1.3.0

Upgrade

  • Beacuse big change with package way, so direct jump to 1.3.0,
  • API don't has BREAK CHANGE, just only add UploadEvent type to NgxfUploaderService. :)

1.2.7

Bug fix

  • NgxfUploaderService fix type to Observable<UploadEvent>

1.2.6

Upgrade

  • upgrade to rxjs 5.5.7
  • deprecated previous version