Skip to content

Commit

Permalink
build: update angular & fix issues with newer ts
Browse files Browse the repository at this point in the history
close #90

BREAKING CHANGE:
Now support angular >= 7.2
  • Loading branch information
Wykks committed Jan 27, 2019
1 parent 4aa72dc commit 9fc58ca
Show file tree
Hide file tree
Showing 6 changed files with 2,097 additions and 1,393 deletions.
77 changes: 39 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,62 +21,63 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^6.1.9",
"@angular/cdk": "^6.4.7",
"@angular/common": "^6.1.9",
"@angular/compiler": "^6.1.9",
"@angular/core": "^6.1.9",
"@angular/forms": "^6.1.9",
"@angular/material": "^6.4.7",
"@angular/platform-browser": "^6.1.9",
"@angular/platform-browser-dynamic": "^6.1.9",
"@angular/router": "^6.1.9",
"@mapbox/mapbox-gl-geocoder": "^2.3.0",
"@ngrx/effects": "^6.1.0",
"@ngrx/router-store": "^6.1.0",
"@ngrx/store": "^6.1.0",
"@ngrx/store-devtools": "^6.1.0",
"@angular/animations": "^7.2.2",
"@angular/cdk": "^7.2.2",
"@angular/common": "^7.2.2",
"@angular/compiler": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/forms": "^7.2.2",
"@angular/material": "^7.2.2",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@mapbox/mapbox-gl-geocoder": "^3.0.1",
"@ngrx/effects": "^7.1.0",
"@ngrx/router-store": "^7.1.0",
"@ngrx/store": "^7.1.0",
"@ngrx/store-devtools": "^7.1.0",
"@stackblitz/sdk": "^1.2.0",
"@turf/random": "^6.0.2",
"hammerjs": "^2.0.8",
"lodash-es": "^4.17.11",
"mapbox-gl": "0.51.0",
"ngx-md": "^6.0.9",
"ngx-md": "^7.0.0",
"rxjs": "^6.3.3",
"scroll-into-view-if-needed": "^2.2.19",
"zone.js": "^0.8.26"
"scroll-into-view-if-needed": "^2.2.20",
"zone.js": "^0.8.29"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.8.4",
"@angular-devkit/build-ng-packagr": "^0.8.4",
"@angular/cli": "6.2.4",
"@angular/compiler-cli": "^6.1.9",
"@ngrx/schematics": "^6.1.0",
"@angular-devkit/build-angular": "~0.12.0",
"@angular-devkit/build-ng-packagr": "~0.12.0",
"@angular/cli": "7.2.3",
"@angular/compiler-cli": "^7.2.2",
"@ngrx/schematics": "^7.1.0",
"@turf/bbox": "^6.0.1",
"@types/jasmine": "^2.8.9",
"@types/jasminewd2": "^2.0.5",
"@types/jasmine": "^3.3.8",
"@types/jasminewd2": "^2.0.6",
"@types/lodash-es": "^4.17.1",
"@types/mapbox-gl": "^0.51.0",
"@types/node": "^10.11.6",
"@types/mapbox-gl": "^0.51.3",
"@types/node": "^10.12.18",
"@types/supercluster": "^3.0.2",
"codelyzer": "^4.5.0",
"jasmine-core": "^3.2.1",
"jasmine-core": "^3.3.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^3.0.0",
"karma": "^4.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^1.3.1",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-mocha-reporter": "^2.2.5",
"ng-packagr": "^4.3.0",
"ng-packagr": "^4.7.0",
"pixel-diff": "^1.0.1",
"protractor": "^5.4.1",
"protractor-browser-logs": "^1.0.351",
"protractor": "^5.4.2",
"protractor-browser-logs": "^1.0.352",
"standard-version": "^4.4.0",
"ts-node": "^7.0.1",
"tsickle": "^0.33.0",
"ts-node": "^8.0.2",
"tsickle": "^0.34.0",
"tslib": "^1.9.3",
"tslint": "^5.11.0",
"typescript": "2.9.2"
"tslint": "^5.12.1",
"typescript": "3.2.4",
"typescript-tslint-plugin": "^0.3.0"
}
}
11 changes: 0 additions & 11 deletions projects/ngx-mapbox-gl/src/lib/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ import {
ViewChild,
} from '@angular/core';

declare global {
namespace mapboxgl {
export interface MapboxOptions {
failIfMajorPerformanceCaveat?: boolean;
transformRequest?: Function;
localIdeographFontFamily?: string;
pitchWithRotate?: boolean;
}
}
}

@Component({
selector: 'mgl-map',
template: '<div #container></div>',
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-mapbox-gl/src/lib/marker/marker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class MarkerComponent implements OnChanges, OnDestroy, AfterViewInit, OnI
this.markerInstance!.togglePopup();
}

updateCoordinates(coordinates: [number, number]) {
this.markerInstance!.setLngLat(coordinates);
updateCoordinates(coordinates: number[]) {
this.markerInstance!.setLngLat(<[number, number]>coordinates);
}
}
2 changes: 1 addition & 1 deletion projects/showcase/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';



/**
Expand Down
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"importHelpers": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
Expand All @@ -28,6 +29,11 @@
"strict": true,
"skipLibCheck": true,
"noUnusedLocals": true,
"strictPropertyInitialization": false
"strictPropertyInitialization": false,
"plugins": [
{
"name": "typescript-tslint-plugin"
}
]
}
}
Loading

0 comments on commit 9fc58ca

Please sign in to comment.