Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit cab4dc1

Browse files
committed
Merge pull request #10 from NathanWalker/beta.12-update
chore: beta.12, zone 0.6.6
2 parents fcd2cb5 + 37d2ac8 commit cab4dc1

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed

demo/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'reflect-metadata';
2-
import 'zone.js/dist/zone-microtask'
2+
import 'zone.js/dist/zone';
33
import {bootstrap} from '../dist/main';
44

55
import {App} from './component';

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"clean": "rimraf dist",
88
"typings-install": "typings install",
99
"setup": "npm install --no-optional && npm run typings-install",
10-
"setup-demo": "npm install --no-optional angular2@2.0.0-beta.6 es6-promise@^3.0.2 es6-shim@^0.33.3 reflect-metadata@0.1.2 rxjs@5.0.0-beta.0 zone.js@0.5.14",
10+
"setup-demo": "npm install --no-optional angular2@2.0.0-beta.12 es6-promise@^3.1.2 es6-shim@0.35.0 reflect-metadata@0.1.2 rxjs@5.0.0-beta.2 zone.js@^0.6.6",
1111
"build": "npm run clean && tsc",
1212
"build_demo": "tsc typings/browser.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata",
1313
"test": "echo Not supported yet",
@@ -29,12 +29,12 @@
2929
},
3030
"homepage": "https://github.com/angular/angular-electron#readme",
3131
"devDependencies": {
32-
"electron-prebuilt": "^0.36.7",
33-
"typescript": "^1.7.5",
32+
"electron-prebuilt": "^0.37.2",
33+
"typescript": "^1.8.9",
3434
"rimraf": "^2.5.2"
3535
},
3636
"peerDependencies": {
37-
"angular2": "2.0.0-beta.6"
37+
"angular2": "2.0.0-beta.12"
3838
},
3939
"dependencies": {
4040
"parse5": "^1.5.1"

src/platform/electron_app.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import * as electron from 'electron';
22
import {ElectronMessageBus, ElectronMessageBusSink, ElectronMessageBusSource, ELECTRON_READY} from './electron_message_bus';
33
import {ELECTRON_APP_APPLICATION_COMMON, ELECTRON_APP_PLATFORM} from './electron_app_common';
4-
import {NgZone} from 'angular2/src/core/zone/ng_zone';
54
import {Type, CONST_EXPR, isPresent} from 'angular2/src/facade/lang';
6-
import {Provider} from 'angular2/src/core/di';
75
import {Parse5DomAdapter} from 'angular2/src/platform/server/parse5_adapter';
8-
import {APP_INITIALIZER, platform, ComponentRef} from 'angular2/core';
6+
import {APP_INITIALIZER, platform, ComponentRef, NgZone, Provider} from 'angular2/core';
97
import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
10-
import {COMPILER_PROVIDERS} from 'angular2/src/compiler/compiler';
8+
import {COMPILER_PROVIDERS} from 'angular2/compiler';
119

1210
export const ELECTRON_APP_APPLICATION: Array<any /*Type | Provider | any[]*/> = [
1311
ELECTRON_APP_APPLICATION_COMMON,

src/platform/electron_message_bus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ElectronMessageBusSink implements MessageBusSink {
4747

4848
attachToZone(zone: NgZone): void {
4949
this._zone = zone;
50-
this._zone.onTurnDone.subscribe(() => {this._handleOnEventDone()});
50+
this._zone.onMicrotaskEmpty.subscribe(() => {this._handleOnEventDone()});
5151
}
5252

5353
initChannel(channel: string, runInZone: boolean = true): void {

src/platform/electron_renderer_common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {CONST_EXPR, IS_DART} from 'angular2/src/facade/lang';
22
import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
3-
import {NgZone} from 'angular2/src/core/zone/ng_zone';
43
import {
54
PLATFORM_DIRECTIVES,
65
PLATFORM_PIPES,
@@ -13,7 +12,8 @@ import {
1312
PLATFORM_COMMON_PROVIDERS,
1413
RootRenderer,
1514
PLATFORM_INITIALIZER,
16-
APP_INITIALIZER
15+
APP_INITIALIZER,
16+
NgZone
1717
} from 'angular2/core';
1818
import {EVENT_MANAGER_PLUGINS, EventManager} from 'angular2/platform/common_dom';
1919
import {provide, Provider, Injector, OpaqueToken} from 'angular2/src/core/di';
@@ -36,7 +36,7 @@ import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
3636
import {wtfInit} from 'angular2/src/core/profile/wtf_init';
3737
import {MessageBasedRenderer} from 'angular2/src/web_workers/ui/renderer';
3838
import {MessageBasedXHRImpl} from 'angular2/src/web_workers/ui/xhr_impl';
39-
import {BrowserPlatformLocation} from 'angular2/src/router/browser_platform_location';
39+
import {BrowserPlatformLocation} from 'angular2/src/router/location/browser_platform_location';
4040
import {
4141
ServiceMessageBrokerFactory,
4242
ServiceMessageBrokerFactory_

typings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
22
"name": "@angular2/electron",
3-
"dependencies": {
4-
"es6-promise": "github:typed-typings/npm-es6-promise#fb04188767acfec1defd054fc8024fafa5cd4de7"
5-
},
63
"devDependencies": {},
74
"ambientDependencies": {
85
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2",
9-
"github-electron": "github:DefinitelyTyped/DefinitelyTyped/github-electron/github-electron.d.ts#ecf4bb33465b2a3f6f3a719ebd028575261137a8",
10-
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#aee0039a2d6686ec78352125010ebb38a7a7d743"
6+
"github-electron": "github:DefinitelyTyped/DefinitelyTyped/github-electron/github-electron.d.ts#f16c4922a7dd6d359a197e4cc5103463ba68cf9e",
7+
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#138ad74b9e8e6c08af7633964962835add4c91e2"
118
}
129
}

0 commit comments

Comments
 (0)