Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 44fba48

Browse files
committed
feat(*): support angular 6
This enables Angular version 6 support for all @agm packages: * @agm/core * @agm/snazzy-info-window * @agm/js-marker-clusterer BREAKING CHANGES Angular 4 is not supported anymore. Please update to Angular 5/6 or use the previous version of AGM beta.2.
1 parent 6006617 commit 44fba48

29 files changed

Lines changed: 3332 additions & 5979 deletions

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- '7'
4+
- '10'
55

66
env:
77
global:
@@ -32,8 +32,7 @@ before_install:
3232
# - time npm i -g yarn --cache-min 999999999
3333

3434
install:
35-
- time npm prune
36-
- time npm install
35+
- time yarn
3736

3837
script:
3938
- npm run ci

package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@agm/_dev",
33
"private": true,
44
"version": "1.0.0-beta.2",
5-
"description": "Angular 2+ components for Google Maps",
5+
"description": "Angular components for Google Maps",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/SebastianM/angular-google-maps.git"
@@ -14,7 +14,6 @@
1414
"maps",
1515
"google",
1616
"gmaps",
17-
"ng2",
1817
"angular2"
1918
],
2019
"scripts": {
@@ -50,62 +49,63 @@
5049
},
5150
"homepage": "https://angular-maps.com",
5251
"peerDependencies": {
53-
"@angular/common": "^4.0.0 || ^5.0.0",
54-
"@angular/core": "^4.0.0 || ^5.0.0"
52+
"@angular/common": "^5.0.0 || ^6.0.0",
53+
"@angular/core": "^5.0.0 || ^6.0.0"
5554
},
5655
"devDependencies": {
57-
"@angular/animations": "^4.0.0",
58-
"@angular/common": "^4.0.0",
59-
"@angular/compiler": "^4.0.0",
60-
"@angular/compiler-cli": "^4.0.0",
61-
"@angular/core": "^4.0.0",
62-
"@angular/platform-browser": "^4.0.0",
63-
"@angular/platform-browser-dynamic": "^4.0.0",
64-
"@angular/platform-server": "^4.0.0",
65-
"@angular/tsc-wrapped": "4.0.0",
56+
"@angular/animations": "^6.0.0",
57+
"@angular/common": "^6.0.0",
58+
"@angular/compiler": "^6.0.0",
59+
"@angular/compiler-cli": "^6.0.0",
60+
"@angular/core": "^6.0.0",
61+
"@angular/platform-browser": "^6.0.0",
62+
"@angular/platform-browser-dynamic": "^6.0.0",
63+
"@angular/platform-server": "^6.0.0",
64+
"@angular/tsc-wrapped": "4.4.6",
6665
"@compodoc/compodoc": "^1.0.0-beta.9",
67-
"@ngtools/webpack": "1.3.0",
68-
"@types/jasmine": "2.5.46",
66+
"@ngtools/webpack": "6.0.0",
67+
"@types/jasmine": "2.8.7",
6968
"angular2-template-loader": "^0.6.2",
70-
"awesome-typescript-loader": "3.1.2",
71-
"clang-format": "1.0.46",
72-
"codelyzer": "^3.2.2",
69+
"awesome-typescript-loader": "^5.0.0",
70+
"clang-format": "1.2.3",
71+
"codelyzer": "^4.3.0",
7372
"conventional-changelog": "^1.1.0",
7473
"copy-webpack-plugin": "^4.0.1",
75-
"copyfiles": "^1.0.0",
76-
"extract-text-webpack-plugin": "^2.0.0-beta.4",
74+
"copyfiles": "^2.0.0",
7775
"glob": "^7.1.2",
78-
"html-webpack-plugin": "^2.8.1",
79-
"istanbul-instrumenter-loader": "^2.0.0",
80-
"jasmine-core": "2.5.0",
76+
"html-webpack-plugin": "^3.2.0",
77+
"istanbul-instrumenter-loader": "^3.0.1",
78+
"jasmine-core": "3.1.0",
8179
"js-marker-clusterer": "^1.0.0",
82-
"karma": "^1.3.0",
83-
"karma-chrome-launcher": "2.0.0",
80+
"karma": "^2.0.2",
81+
"karma-chrome-launcher": "2.2.0",
8482
"karma-coverage": "^1.1.1",
8583
"karma-jasmine": "^1.0.2",
8684
"karma-mocha-reporter": "^2.2.0",
87-
"karma-remap-istanbul": "^0.5.0",
85+
"karma-remap-istanbul": "^0.6.0",
8886
"karma-sourcemap-loader": "^0.3.7",
89-
"karma-webpack": "^1.8.0",
87+
"karma-webpack": "^3.0.0",
9088
"mkdirp": "^0.5.1",
9189
"ncp": "^2.0.0",
9290
"reflect-metadata": "^0.1.8",
93-
"remap-istanbul": "^0.9.1",
94-
"rimraf": "2.6.1",
95-
"rollup": "0.41.6",
96-
"rxjs": "^5.2.0",
91+
"remap-istanbul": "^0.11.1",
92+
"rimraf": "2.6.2",
93+
"rollup": "0.58.2",
94+
"rxjs": "^6.1.0",
95+
"snazzy-info-window": "^1.1.1",
9796
"ts-helpers": "^1.1.2",
97+
"ts-loader": "^4.3.0",
9898
"tslint": "^5.8.0",
9999
"tslint-loader": "^3.4.3",
100-
"typescript": "~2.5.0",
101-
"webpack": "2.3.3",
100+
"typescript": "~2.7.2",
101+
"webpack": "4.8.0",
102102
"zone.js": "^0.8.4"
103103
},
104104
"jspm": {
105105
"jspmNodeConversion": false,
106106
"dependencies": {
107-
"@angular/common": "^4.0.0 || ^5.0.0",
108-
"@angular/core": "^4.0.0 || ^5.0.0"
107+
"@angular/common": "^5.0.0 || ^6.0.0",
108+
"@angular/core": "^5.0.0 || ^6.0.0"
109109
}
110110
}
111111
}

packages/core/directives/circle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Directive, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChange, Input, Output} from '@angular/core';
2-
import {Subscription} from 'rxjs/Subscription';
2+
import {Subscription} from 'rxjs';
33

44
import {MouseEvent} from '../map-types';
55
import {LatLng, LatLngBounds, LatLngLiteral} from '../services/google-maps-types';

packages/core/directives/data-layer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Directive, EventEmitter, OnDestroy, OnInit, OnChanges, SimpleChanges, Input, Output } from '@angular/core';
2-
import { Subscription } from 'rxjs/Subscription';
2+
import { Subscription } from 'rxjs';
33

44
import { DataMouseEvent, DataOptions } from './../services/google-maps-types';
55
import { DataLayerManager } from './../services/managers/data-layer-manager';

packages/core/directives/kml-layer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Directive, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, Input, Output } from '@angular/core';
2-
import {Subscription} from 'rxjs/Subscription';
2+
import {Subscription} from 'rxjs';
33

44
import {KmlMouseEvent} from './../services/google-maps-types';
55
import {KmlLayerManager} from './../services/managers/kml-layer-manager';

packages/core/directives/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, Input, Output } from '@angular/core';
2-
import {Subscription} from 'rxjs/Subscription';
2+
import {Subscription} from 'rxjs';
33

44
import {MouseEvent} from '../map-types';
55
import {GoogleMapsAPIWrapper} from '../services/google-maps-api-wrapper';

packages/core/directives/marker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Directive, EventEmitter, OnChanges, OnDestroy, SimpleChange,
22
AfterContentInit, ContentChildren, QueryList, Input, Output
33
} from '@angular/core';
4-
import {Subscription} from 'rxjs/Subscription';
4+
import {Subscription} from 'rxjs';
55

66
import {MouseEvent} from '../map-types';
77
import * as mapTypes from '../services/google-maps-types';

packages/core/directives/polygon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AfterContentInit, Directive, EventEmitter, OnChanges, OnDestroy, SimpleChanges, Input, Output } from '@angular/core';
2-
import { Subscription } from 'rxjs/Subscription';
2+
import { Subscription } from 'rxjs';
33

44
import { LatLng, LatLngLiteral, PolyMouseEvent, PolygonOptions } from '../services/google-maps-types';
55
import { PolygonManager } from '../services/managers/polygon-manager';

packages/core/directives/polyline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AfterContentInit, ContentChildren, Directive, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges, Input, Output } from '@angular/core';
2-
import { Subscription } from 'rxjs/Subscription';
2+
import { Subscription } from 'rxjs';
33

44
import { PolyMouseEvent } from '../services/google-maps-types';
55
import { PolylineManager } from '../services/managers/polyline-manager';

packages/core/services/google-maps-api-wrapper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {Injectable, NgZone} from '@angular/core';
2-
import {Observable} from 'rxjs/Observable';
3-
import {Observer} from 'rxjs/Observer';
2+
import {Observable, Observer} from 'rxjs';
43

54
import * as mapTypes from './google-maps-types';
65
import {Polyline} from './google-maps-types';
@@ -100,7 +99,7 @@ export class GoogleMapsAPIWrapper {
10099
}
101100

102101
subscribeToMapEvent<E>(eventName: string): Observable<E> {
103-
return Observable.create((observer: Observer<E>) => {
102+
return new Observable((observer: Observer<E>) => {
104103
this._map.then((m: mapTypes.GoogleMap) => {
105104
m.addListener(eventName, (arg: E) => { this._zone.run(() => observer.next(arg)); });
106105
});

0 commit comments

Comments
 (0)