Skip to content

Commit

Permalink
feat: migrate to angular 10
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCloud9527 authored and CodingCloud9527 committed Oct 25, 2020
1 parent 7f59f49 commit 6e65e1c
Show file tree
Hide file tree
Showing 6 changed files with 2,133 additions and 1,411 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~8.2.14",
"@angular/common": "~8.2.14",
"@angular/compiler": "~8.2.14",
"@angular/core": "~8.2.14",
"@angular/forms": "~8.2.14",
"@angular/platform-browser": "~8.2.14",
"@angular/platform-browser-dynamic": "~8.2.14",
"@angular/router": "~8.2.14",
"@angular/animations": "~10.2.0",
"@angular/common": "~10.2.0",
"@angular/compiler": "~10.2.0",
"@angular/core": "~10.2.0",
"@angular/forms": "~10.2.0",
"@angular/platform-browser": "~10.2.0",
"@angular/platform-browser-dynamic": "~10.2.0",
"@angular/router": "~10.2.0",
"bootstrap": "^4.4.1",
"ngx-bootstrap": "^4.3.0",
"rxjs": "~6.5.4",
"sortablejs": "^1.10.2",
"tslib": "^1.10.0",
"zone.js": "~0.9.1"
"tslib": "^2.0.3",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.803.23",
"@angular-devkit/build-ng-packagr": "~0.803.23",
"@angular/cli": "~8.3.23",
"@angular/compiler-cli": "~8.2.14",
"@angular/language-service": "~8.2.14",
"@angular-devkit/build-angular": "~0.1002.0",
"@angular-devkit/build-ng-packagr": "~0.1002.0",
"@angular/cli": "~10.2.0",
"@angular/compiler-cli": "~10.2.0",
"@angular/language-service": "~10.2.0",
"@semantic-release/changelog": "^3.0.6",
"@semantic-release/git": "^7.0.18",
"@types/jasmine": "^3.3.16",
Expand All @@ -59,13 +59,13 @@
"karma-coverage-istanbul-reporter": "^2.0.6",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.1",
"ng-packagr": "^5.7.1",
"ng-packagr": "^10.1.2",
"ngx-spec": "^2.1.4",
"protractor": "~5.4.0",
"semantic-release": "^15.14.0",
"ts-node": "~7.0.0",
"tsickle": "^0.35.0",
"tsickle": "^0.39.1",
"tslint": "~5.15.0",
"typescript": "~3.5.3"
"typescript": "~4.0.3"
}
}
4 changes: 2 additions & 2 deletions projects/ngx-sortablejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"access": "public"
},
"peerDependencies": {
"@angular/common": "^8.0.0",
"@angular/core": "^8.0.0",
"@angular/common": "~10.2.0",
"@angular/core": "~10.2.0",
"sortablejs": ">=1.7.0"
},
"main": "src/public-api.ts"
Expand Down
3 changes: 1 addition & 2 deletions projects/ngx-sortablejs/src/lib/sortablejs.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ import Sortable, {Options} from 'sortablejs';
import {GLOBALS} from './globals';
import {SortablejsBindings} from './sortablejs-bindings';
import {SortablejsService} from './sortablejs.service';
import {FormArray} from '@angular/forms';

export type SortableData = FormArray | any[];
export type SortableData = any | any[];

const getIndexesFromEvent = (event: SortableEvent) => {
if (event.hasOwnProperty('newDraggableIndex') && event.hasOwnProperty('oldDraggableIndex')) {
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-sortablejs/src/lib/sortablejs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Options} from 'sortablejs';
})
export class SortablejsModule {

public static forRoot(globalOptions: Options): ModuleWithProviders {
public static forRoot(globalOptions: Options): ModuleWithProviders<SortablejsModule> {
return {
ngModule: SortablejsModule,
providers: [
Expand Down
4 changes: 3 additions & 1 deletion projects/ngx-sortablejs/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
"enableResourceInlining": true,
"enableIvy": false

},
"exclude": [
"src/test.ts",
Expand Down
Loading

0 comments on commit 6e65e1c

Please sign in to comment.