Skip to content

Commit

Permalink
v4.0.2 (#506)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency @ngx-file-upload/core to v4 (#488)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency eslint to v7.32.0 (#489)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency @types/node to v14.17.9 (#490)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency highlight.js to v11.2.0 (#491)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency ng-packagr to v12.2.0 (#495)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update angularcli monorepo to v12.2.1 (#497)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency @angular/cdk to v12.2.1 (#498)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency ts-node to v10.2.0 (#499)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency bootstrap-scss to v5.1.0 (#500)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update dependency path-parse to 1.0.7 [security] (#501)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency tslib to v2.3.1 (#503)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update angular monorepo to v12.2.1 (#496)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix(deps): update dependency igniteui-angular to v12.1.1 (#493)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update typescript-eslint monorepo to v4.29.1 (#492)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* bugfixing

* update deps

* update package.json

* update unit tests and version

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
  • Loading branch information
3 people committed Aug 17, 2021
1 parent f1274d9 commit a8bc539
Show file tree
Hide file tree
Showing 8 changed files with 938 additions and 719 deletions.
1,577 changes: 895 additions & 682 deletions src/package-lock.json

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions src/package.json
@@ -1,6 +1,6 @@
{
"name": "ngx-fileupload",
"version": "7.0.1",
"version": "7.0.2",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -14,6 +14,7 @@
"deploy:demo": "npx ngh --dir=dist\\ngx-fileupload-example",
"build:core": "ng build core",
"package:core": "tar -cvf ./dist/core.tar.gz -C dist/core .",
"package:ui": "tar -cvf ./dist/ui.tar.gz -C dist/ui .",
"install:core": "npm i --save ./dist/core.tar.gz",
"github-actions:unit-tests-core": "ng test core --watch=false --code-coverage",
"github-actions:unit-tests-ui": "ng test ui --watch=false --code-coverage",
Expand All @@ -24,47 +25,46 @@
},
"private": true,
"dependencies": {
"@angular-devkit/core": "12.1.4",
"@angular/animations": "12.1.4",
"@angular/cdk": "12.1.4",
"@angular/common": "12.1.4",
"@angular/compiler": "12.1.4",
"@angular/core": "12.1.4",
"@angular/forms": "12.1.4",
"@angular/platform-browser": "12.1.4",
"@angular/platform-browser-dynamic": "12.1.4",
"@angular/router": "12.1.4",
"highlight.js": "11.1.0",
"igniteui-angular": "12.0.10",
"ngx-customscrollbar": "2.0.2",
"@angular-devkit/core": "12.2.1",
"@angular/animations": "12.2.1",
"@angular/cdk": "12.2.1",
"@angular/common": "12.2.1",
"@angular/compiler": "12.2.1",
"@angular/core": "12.2.1",
"@angular/forms": "12.2.1",
"@angular/platform-browser": "12.2.1",
"@angular/platform-browser-dynamic": "12.2.1",
"@angular/router": "12.2.1",
"highlight.js": "11.2.0",
"ngx-dropzone": "3.0.0",
"ngx-file-drop": "11.1.0",
"ngx-highlightjs": "4.1.4",
"rxjs": "6.6.7",
"tslib": "2.3.0",
"web-animations-js": "2.3.2"
"tslib": "2.3.1",
"web-animations-js": "2.3.2",
"igniteui-angular": "12.1.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "12.1.4",
"@angular-devkit/build-angular": "12.2.1",
"@angular-eslint/builder": "12.3.1",
"@angular-eslint/eslint-plugin": "12.3.1",
"@angular-eslint/eslint-plugin-template": "12.3.1",
"@angular-eslint/schematics": "12.3.1",
"@angular-eslint/template-parser": "12.3.1",
"@angular/cli": "12.1.4",
"@angular/compiler-cli": "12.1.4",
"@angular/language-service": "12.1.4",
"@angular/cli": "12.2.1",
"@angular/compiler-cli": "12.2.1",
"@angular/language-service": "12.2.1",
"@compodoc/compodoc": "1.1.14",
"@types/jasmine": "3.8.2",
"@types/jasminewd2": "2.0.10",
"@types/node": "14.17.6",
"@typescript-eslint/eslint-plugin": "4.28.5",
"@typescript-eslint/parser": "4.28.5",
"@types/node": "14.17.9",
"@typescript-eslint/eslint-plugin": "4.29.2",
"@typescript-eslint/parser": "4.29.2",
"angular-cli-ghpages": "0.6.2",
"bootstrap-scss": "5.0.2",
"bootstrap-scss": "5.1.0",
"codelyzer": "6.0.2",
"cors": "2.8.5",
"eslint": "7.31.0",
"eslint": "7.32.0",
"express": "4.17.1",
"express-fileupload": "1.2.1",
"https-proxy-agent": "5.0.0",
Expand All @@ -77,9 +77,9 @@
"karma-jasmine-html-reporter": "1.7.0",
"karma-mocha-reporter": "2.2.5",
"letslog": "1.0.12",
"ng-packagr": "12.1.2",
"ng-packagr": "12.2.0",
"protractor": "7.0.0",
"ts-node": "10.1.0",
"ts-node": "10.2.0",
"tsickle": "0.43.0",
"tslint": "6.1.3",
"typescript": "^4.2.3",
Expand Down
4 changes: 2 additions & 2 deletions src/projects/core/package.json
@@ -1,6 +1,6 @@
{
"name": "@ngx-file-upload/core",
"version": "4.0.1",
"version": "4.0.2",
"description": "Angular 12 file upload core package for async file uploads in angular containing validation, upload queue and async uploading.",
"repository": {
"url": "https://github.com/r-hannuschka/ngx-fileupload/tree/master/src/projects/core",
Expand Down Expand Up @@ -28,7 +28,7 @@
"url": "https://github.com/r-hannuschka/ngx-fileupload/issues"
},
"dependencies": {
"tslib": "2.3.0"
"tslib": "2.3.1"
},
"homepage": "https://r-hannuschka.github.io/ngx-fileupload"
}
2 changes: 2 additions & 0 deletions src/projects/core/src/lib/api/src/upload.ts
Expand Up @@ -114,6 +114,8 @@ export interface INgxFileUploadRequest {

isCanceled(): boolean;

removeInvalidFiles(): void;

retry(): void;

start(): void;
Expand Down
4 changes: 4 additions & 0 deletions src/projects/testing/mockup/src/upload-request.mock.ts
Expand Up @@ -27,6 +27,10 @@ export class UploadRequestMock implements INgxFileUploadRequest {
this.destroyed = this.destroy$.asObservable();
}

removeInvalidFiles(): void {
throw new Error("Method not implemented.");
}

set state(state: NgxFileUploadState) {
this.data.state = state;
}
Expand Down
6 changes: 3 additions & 3 deletions src/projects/ui/package.json
@@ -1,6 +1,6 @@
{
"name": "@ngx-file-upload/ui",
"version": "4.0.1",
"version": "4.0.2",
"description": "Angular 12 file upload components for @ngx-file-upload/core",
"repository": {
"url": "https://github.com/r-hannuschka/ngx-fileupload/tree/master/src/projects/ui",
Expand All @@ -21,7 +21,7 @@
"queue"
],
"peerDependencies": {
"@ngx-file-upload/core": "^3.0.0",
"@ngx-file-upload/core": "^3.0.0 || ^4.0.0",
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0"
},
Expand All @@ -30,7 +30,7 @@
"url": "https://github.com/r-hannuschka/ngx-fileupload/issues"
},
"dependencies": {
"tslib": "2.3.0"
"tslib": "2.3.1"
},
"homepage": "https://r-hannuschka.github.io/ngx-fileupload"
}
6 changes: 3 additions & 3 deletions src/projects/ui/src/lib/upload-item/src/upload-item.ts
@@ -1,6 +1,6 @@

import { Component, Input, ViewChild, TemplateRef, HostListener, OnDestroy, AfterViewInit, OnInit } from "@angular/core";
import { NgxFileUploadRequest, NgxFileUploadState, NgxFileUploadControl, INgxFileUploadRequestData } from "@ngx-file-upload/core";
import { NgxFileUploadState, NgxFileUploadControl, INgxFileUploadRequestData, INgxFileUploadRequest } from "@ngx-file-upload/core";
import { Subject } from "rxjs";
import { takeUntil } from "rxjs/operators";
import { Control } from "./upload.control";
Expand Down Expand Up @@ -31,7 +31,7 @@ export class UploadItemComponent implements AfterViewInit, OnInit, OnDestroy {
/**
* file upload which should bound to this view
*/
private fileUpload: NgxFileUploadRequest | undefined;
private fileUpload: INgxFileUploadRequest | undefined;

/**
* save subscription here, since we have only 1 sub
Expand Down Expand Up @@ -60,7 +60,7 @@ export class UploadItemComponent implements AfterViewInit, OnInit, OnDestroy {
* sets upload we want to bind with current view
*/
@Input()
public set upload(request: NgxFileUploadRequest) {
public set upload(request: INgxFileUploadRequest) {
this.fileUpload = request;
this.context = {
data: request.data,
Expand Down
4 changes: 2 additions & 2 deletions src/projects/ui/src/lib/upload-item/src/upload.control.ts
@@ -1,4 +1,4 @@
import { NgxFileUploadRequest, NgxFileUploadControl } from "@ngx-file-upload/core";
import { INgxFileUploadRequest, NgxFileUploadControl } from "@ngx-file-upload/core";

/**
* remote control for a single upload, will passed
Expand All @@ -17,7 +17,7 @@ import { NgxFileUploadRequest, NgxFileUploadControl } from "@ngx-file-upload/cor
*/
export class Control implements NgxFileUploadControl {

public constructor(private upload: NgxFileUploadRequest) {}
public constructor(private upload: INgxFileUploadRequest) {}

/**
* if upload has been failed (http error) it has not completed
Expand Down

0 comments on commit a8bc539

Please sign in to comment.