Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 14c56f0

Browse files
authored
Merge pull request #15 from hapinessjs/next
release(version): v7.0.0
2 parents a361847 + 601016f commit 14c56f0

File tree

13 files changed

+1186
-1094
lines changed

13 files changed

+1186
-1094
lines changed

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hapiness/ng-elements-loader-cli",
3-
"version": "6.4.2",
3+
"version": "7.0.0",
44
"description": "Angular CLI project to manage @hapiness/ng-elements-loader and @hapiness/custom-elements-loader projects",
55
"scripts": {
66
"build:ng": "ng build 'ng-elements-loader' --prod",
@@ -34,39 +34,39 @@
3434
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
3535
},
3636
"dependencies": {
37-
"@angular/common": "^6.1.10",
38-
"@angular/core": "^6.1.10",
39-
"@angular/compiler": "^6.1.10",
40-
"@angular/animations": "^6.1.10",
41-
"@angular/elements": "^6.1.10",
42-
"@angular/platform-browser": "^6.1.10",
43-
"@angular/platform-browser-dynamic": "^6.1.10",
37+
"@angular/common": "^7.0.2",
38+
"@angular/core": "^7.0.2",
39+
"@angular/compiler": "^7.0.2",
40+
"@angular/animations": "^7.0.2",
41+
"@angular/elements": "^7.0.2",
42+
"@angular/platform-browser": "^7.0.2",
43+
"@angular/platform-browser-dynamic": "^7.0.2",
4444
"core-js": "^2.5.7",
4545
"document-register-element": "~1.8.1",
4646
"rxjs": "^6.3.3",
4747
"zone.js": "^0.8.26"
4848
},
4949
"devDependencies": {
50-
"@angular/compiler-cli": "^6.1.10",
51-
"@angular-devkit/build-ng-packagr": "~0.8.5",
52-
"@angular-devkit/build-angular": "~0.8.5",
53-
"ng-packagr": "^4.3.1",
54-
"tsickle": "^0.33.0",
50+
"@angular/compiler-cli": "^7.0.2",
51+
"@angular-devkit/build-ng-packagr": "~0.10.4",
52+
"@angular-devkit/build-angular": "~0.10.4",
53+
"ng-packagr": "^4.4.0",
54+
"tsickle": "^0.33.1",
5555
"tslib": "^1.9.3",
56-
"typescript": "~2.9.2",
57-
"@angular/cli": "^6.2.5",
58-
"@angular/language-service": "^6.1.10",
59-
"@types/jasmine": "~2.8.8",
60-
"@types/jasminewd2": "~2.0.3",
61-
"@types/node": "~10.12.0",
56+
"typescript": "~3.1.6",
57+
"@angular/cli": "^7.0.4",
58+
"@angular/language-service": "^7.0.2",
59+
"@types/jasmine": "~2.8.9",
60+
"@types/jasminewd2": "~2.0.5",
61+
"@types/node": "~10.12.2",
6262
"codelyzer": "~4.5.0",
63-
"jasmine-core": "~3.2.1",
63+
"jasmine-core": "~3.3.0",
6464
"jasmine-spec-reporter": "~4.2.1",
65-
"karma": "~3.0.0",
65+
"karma": "~3.1.1",
6666
"karma-chrome-launcher": "~2.2.0",
6767
"karma-coverage-istanbul-reporter": "~2.0.4",
6868
"karma-jasmine": "~1.1.2",
69-
"karma-jasmine-html-reporter": "^1.3.1",
69+
"karma-jasmine-html-reporter": "^1.4.0",
7070
"protractor": "~5.4.1",
7171
"ts-node": "~7.0.1",
7272
"tslint": "~5.11.0"

projects/custom-elements-loader/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The minimum `package.json` file for your module is described below:
183183
"name": "made-with-love",
184184
"version": "1.0.0",
185185
"peerDependencies": {
186-
"@hapiness/custom-elements-loader": "^6.4.2"
186+
"@hapiness/custom-elements-loader": "^7.0.0"
187187
}
188188
}
189189
```
@@ -235,7 +235,6 @@ We create a `HTML`file with our `custom element` inside.
235235
// POLYFILLS
236236
import 'zone.js/dist/zone';
237237
import 'document-register-element';
238-
import 'core-js/es6/reflect';
239238
import 'core-js/es7/reflect';
240239

241240
import { ElementsLoader } from '@hapiness/custom-elements-loader';
@@ -264,7 +263,6 @@ Loading of the component happens inside `main.ts` file.
264263
```typescript
265264
import 'zone.js/dist/zone';
266265
import 'document-register-element';
267-
import 'core-js/es6/reflect';
268266
import 'core-js/es7/reflect';
269267
```
270268

@@ -290,6 +288,9 @@ import 'core-js/es7/reflect';
290288
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
291289
// import 'classlist.js'; // Run `npm install --save classlist.js`.
292290

291+
/** IE10 and IE11 requires the following for the Reflect API. */
292+
// import 'core-js/es6/reflect';
293+
293294
/**
294295
* Web Animations `@angular/platform-browser/animations`
295296
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
@@ -418,6 +419,9 @@ document.querySelector('hello-world').addEventListener('sayHello', (event: any)
418419
[Back to top](#installation)
419420

420421
## Change History
422+
* v7.0.0 (2018-11-02)
423+
* `Angular v7.0.2+`
424+
* Documentation
421425
* v6.4.2 (2018-10-18)
422426
* `Angular v6.1.10+`
423427
* Explain how to add new polyfills for `reflect api` to solve bug reported in this [issue](https://github.com/angular/angular/issues/26128)

projects/custom-elements-loader/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hapiness/custom-elements-loader",
3-
"version": "6.4.2",
3+
"version": "7.0.0",
44
"description": "Factory to load Angular Custom Elements inside JavaScript's applications like React.js, Vue.js or just standalone",
55
"private": false,
66
"repository": {
@@ -30,14 +30,14 @@
3030
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
3131
},
3232
"dependencies": {
33-
"@angular/animations": "^6.1.10",
34-
"@angular/common": "^6.1.10",
35-
"@angular/core": "^6.1.10",
36-
"@angular/compiler": "^6.1.10",
37-
"@angular/elements": "^6.1.10",
38-
"@angular/platform-browser": "^6.1.10",
39-
"@angular/platform-browser-dynamic": "^6.1.10",
40-
"@hapiness/ng-elements-loader": "^6.4.2",
33+
"@angular/animations": "^7.0.2",
34+
"@angular/common": "^7.0.2",
35+
"@angular/core": "^7.0.2",
36+
"@angular/compiler": "^7.0.2",
37+
"@angular/elements": "^7.0.2",
38+
"@angular/platform-browser": "^7.0.2",
39+
"@angular/platform-browser-dynamic": "^7.0.2",
40+
"@hapiness/ng-elements-loader": "^7.0.0",
4141
"core-js": "^2.5.7",
4242
"document-register-element": "~1.8.1",
4343
"rxjs": "^6.3.3",
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { NgModule } from '@angular/core';
1+
import { ApplicationRef, DoBootstrap, NgModule } from '@angular/core';
22
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
33

44
import { ElementsLoaderService } from '@hapiness/ng-elements-loader';
55

66
@NgModule({
7-
imports: [ BrowserAnimationsModule ],
8-
providers: [ ElementsLoaderService ]
7+
imports: [ BrowserAnimationsModule ]
98
})
10-
export class ElementsLoaderModule {
11-
ngDoBootstrap() {
9+
export class ElementsLoaderModule implements DoBootstrap {
10+
constructor(private _elementsLoaderService: ElementsLoaderService) {}
11+
ngDoBootstrap(appRef: ApplicationRef): void {
1212
}
1313
}
Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "../../out-tsc/lib",
5-
"target": "es2015",
6-
"module": "es2015",
7-
"moduleResolution": "node",
8-
"declaration": true,
9-
"sourceMap": true,
10-
"inlineSources": true,
11-
"emitDecoratorMetadata": true,
12-
"experimentalDecorators": true,
13-
"importHelpers": true,
14-
"types": [],
15-
"lib": [
16-
"dom",
17-
"es2015"
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../out-tsc/lib",
5+
"target": "es2015",
6+
"module": "es2015",
7+
"moduleResolution": "node",
8+
"declaration": true,
9+
"sourceMap": true,
10+
"inlineSources": true,
11+
"emitDecoratorMetadata": true,
12+
"experimentalDecorators": true,
13+
"importHelpers": true,
14+
"types": [],
15+
"lib": [
16+
"dom",
17+
"es2018"
18+
]
19+
},
20+
"angularCompilerOptions": {
21+
"annotateForClosureCompiler": true,
22+
"skipTemplateCodegen": true,
23+
"strictMetadataEmit": true,
24+
"fullTemplateTypeCheck": true,
25+
"strictInjectionParameters": true,
26+
"enableResourceInlining": true
27+
},
28+
"exclude": [
29+
"src/test.ts",
30+
"**/*.spec.ts"
1831
]
19-
},
20-
"angularCompilerOptions": {
21-
"annotateForClosureCompiler": true,
22-
"skipTemplateCodegen": true,
23-
"strictMetadataEmit": true,
24-
"fullTemplateTypeCheck": true,
25-
"strictInjectionParameters": true,
26-
"flatModuleId": "AUTOGENERATED",
27-
"flatModuleOutFile": "AUTOGENERATED"
28-
},
29-
"exclude": [
30-
"src/test.ts",
31-
"**/*.spec.ts"
32-
]
3332
}

projects/ng-elements-loader/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
This module exposes an `Angular's` service to load easily [custom elements](https://angular.io/guide/elements) in your `Angular` application.
3434

35-
We support `Angular` version `6.1.7-`.
35+
We support `Angular` version `7.0.2+`.
3636

3737
## Installation
3838

@@ -183,9 +183,9 @@ The minimum `package.json` file for your module is described below:
183183
"name": "made-with-love",
184184
"version": "1.0.0",
185185
"peerDependencies": {
186-
"@angular/common": "^6.1.0",
187-
"@angular/core": "^6.1.0",
188-
"@hapiness/ng-elements-loader": "^6.4.0"
186+
"@angular/common": "^7.0.2",
187+
"@angular/core": "^7.0.2",
188+
"@hapiness/ng-elements-loader": "^7.0.0"
189189
}
190190
}
191191
```
@@ -406,6 +406,9 @@ this._rd.listen(element, 'sayHello', (event: any) => this.alertHello(event.detai
406406
[Back to top](#installation)
407407

408408
## Change History
409+
* v7.0.0 (2018-11-02)
410+
* `Angular v7.0.2+`
411+
* Documentation
409412
* v6.4.2 (2018-10-18)
410413
* `Angular v6.1.10+`
411414
* Documentation

projects/ng-elements-loader/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hapiness/ng-elements-loader",
3-
"version": "6.4.2",
3+
"version": "7.0.0",
44
"description": "Service to load Angular Custom Elements inside Angular's applications",
55
"private": false,
66
"repository": {
@@ -27,12 +27,12 @@
2727
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
2828
},
2929
"peerDependencies": {
30-
"@angular/common": "^6.1.10",
31-
"@angular/core": "^6.1.10",
32-
"@angular/compiler": "^6.1.10",
33-
"@angular/elements": "^6.1.10",
34-
"@angular/platform-browser": "^6.1.10",
35-
"@angular/platform-browser-dynamic": "^6.1.10",
30+
"@angular/common": "^7.0.2",
31+
"@angular/core": "^7.0.2",
32+
"@angular/compiler": "^7.0.2",
33+
"@angular/elements": "^7.0.2",
34+
"@angular/platform-browser": "^7.0.2",
35+
"@angular/platform-browser-dynamic": "^7.0.2",
3636
"core-js": "^2.5.7",
3737
"document-register-element": "~1.8.1",
3838
"rxjs": "^6.3.3",

projects/ng-elements-loader/src/lib/elements-loader.service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import {
2-
Compiler, Inject,
3-
Injectable, Injector,
4-
Type
5-
} from '@angular/core';
61
import { DOCUMENT } from '@angular/common';
2+
import { Compiler, Inject, Injectable, Injector, Type } from '@angular/core';
73
import { createCustomElement } from '@angular/elements';
84
import { forkJoin, from, merge, Observable, of, throwError } from 'rxjs';
9-
import { flatMap, filter, map, tap, toArray } from 'rxjs/operators';
5+
import { filter, flatMap, map, tap, toArray } from 'rxjs/operators';
106
import { CustomElementModuleSelector } from './elements-registry';
117

128
@Injectable({
Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "../../out-tsc/lib",
5-
"target": "es2015",
6-
"module": "es2015",
7-
"moduleResolution": "node",
8-
"declaration": true,
9-
"sourceMap": true,
10-
"inlineSources": true,
11-
"emitDecoratorMetadata": true,
12-
"experimentalDecorators": true,
13-
"importHelpers": true,
14-
"types": [],
15-
"lib": [
16-
"dom",
17-
"es2015"
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../out-tsc/lib",
5+
"target": "es2015",
6+
"module": "es2015",
7+
"moduleResolution": "node",
8+
"declaration": true,
9+
"sourceMap": true,
10+
"inlineSources": true,
11+
"emitDecoratorMetadata": true,
12+
"experimentalDecorators": true,
13+
"importHelpers": true,
14+
"types": [],
15+
"lib": [
16+
"dom",
17+
"es2018"
18+
]
19+
},
20+
"angularCompilerOptions": {
21+
"annotateForClosureCompiler": true,
22+
"skipTemplateCodegen": true,
23+
"strictMetadataEmit": true,
24+
"fullTemplateTypeCheck": true,
25+
"strictInjectionParameters": true,
26+
"enableResourceInlining": true
27+
},
28+
"exclude": [
29+
"src/test.ts",
30+
"**/*.spec.ts"
1831
]
19-
},
20-
"angularCompilerOptions": {
21-
"annotateForClosureCompiler": true,
22-
"skipTemplateCodegen": true,
23-
"strictMetadataEmit": true,
24-
"fullTemplateTypeCheck": true,
25-
"strictInjectionParameters": true,
26-
"flatModuleId": "AUTOGENERATED",
27-
"flatModuleOutFile": "AUTOGENERATED"
28-
}
2932
}

0 commit comments

Comments
 (0)