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

Commit

Permalink
Merge pull request #15 from hapinessjs/next
Browse files Browse the repository at this point in the history
release(version): v7.0.0
  • Loading branch information
akanass authored Nov 2, 2018
2 parents a361847 + 601016f commit 14c56f0
Show file tree
Hide file tree
Showing 13 changed files with 1,186 additions and 1,094 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hapiness/ng-elements-loader-cli",
"version": "6.4.2",
"version": "7.0.0",
"description": "Angular CLI project to manage @hapiness/ng-elements-loader and @hapiness/custom-elements-loader projects",
"scripts": {
"build:ng": "ng build 'ng-elements-loader' --prod",
Expand Down Expand Up @@ -34,39 +34,39 @@
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
},
"dependencies": {
"@angular/common": "^6.1.10",
"@angular/core": "^6.1.10",
"@angular/compiler": "^6.1.10",
"@angular/animations": "^6.1.10",
"@angular/elements": "^6.1.10",
"@angular/platform-browser": "^6.1.10",
"@angular/platform-browser-dynamic": "^6.1.10",
"@angular/common": "^7.0.2",
"@angular/core": "^7.0.2",
"@angular/compiler": "^7.0.2",
"@angular/animations": "^7.0.2",
"@angular/elements": "^7.0.2",
"@angular/platform-browser": "^7.0.2",
"@angular/platform-browser-dynamic": "^7.0.2",
"core-js": "^2.5.7",
"document-register-element": "~1.8.1",
"rxjs": "^6.3.3",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "^6.1.10",
"@angular-devkit/build-ng-packagr": "~0.8.5",
"@angular-devkit/build-angular": "~0.8.5",
"ng-packagr": "^4.3.1",
"tsickle": "^0.33.0",
"@angular/compiler-cli": "^7.0.2",
"@angular-devkit/build-ng-packagr": "~0.10.4",
"@angular-devkit/build-angular": "~0.10.4",
"ng-packagr": "^4.4.0",
"tsickle": "^0.33.1",
"tslib": "^1.9.3",
"typescript": "~2.9.2",
"@angular/cli": "^6.2.5",
"@angular/language-service": "^6.1.10",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~10.12.0",
"typescript": "~3.1.6",
"@angular/cli": "^7.0.4",
"@angular/language-service": "^7.0.2",
"@types/jasmine": "~2.8.9",
"@types/jasminewd2": "~2.0.5",
"@types/node": "~10.12.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": "~3.1.1",
"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-html-reporter": "^1.4.0",
"protractor": "~5.4.1",
"ts-node": "~7.0.1",
"tslint": "~5.11.0"
Expand Down
10 changes: 7 additions & 3 deletions projects/custom-elements-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ The minimum `package.json` file for your module is described below:
"name": "made-with-love",
"version": "1.0.0",
"peerDependencies": {
"@hapiness/custom-elements-loader": "^6.4.2"
"@hapiness/custom-elements-loader": "^7.0.0"
}
}
```
Expand Down Expand Up @@ -235,7 +235,6 @@ We create a `HTML`file with our `custom element` inside.
// POLYFILLS
import 'zone.js/dist/zone';
import 'document-register-element';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';

import { ElementsLoader } from '@hapiness/custom-elements-loader';
Expand Down Expand Up @@ -264,7 +263,6 @@ Loading of the component happens inside `main.ts` file.
```typescript
import 'zone.js/dist/zone';
import 'document-register-element';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
```

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

/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
Expand Down Expand Up @@ -418,6 +419,9 @@ document.querySelector('hello-world').addEventListener('sayHello', (event: any)
[Back to top](#installation)

## Change History
* v7.0.0 (2018-11-02)
* `Angular v7.0.2+`
* Documentation
* v6.4.2 (2018-10-18)
* `Angular v6.1.10+`
* Explain how to add new polyfills for `reflect api` to solve bug reported in this [issue](https://github.com/angular/angular/issues/26128)
Expand Down
18 changes: 9 additions & 9 deletions projects/custom-elements-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hapiness/custom-elements-loader",
"version": "6.4.2",
"version": "7.0.0",
"description": "Factory to load Angular Custom Elements inside JavaScript's applications like React.js, Vue.js or just standalone",
"private": false,
"repository": {
Expand Down Expand Up @@ -30,14 +30,14 @@
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
},
"dependencies": {
"@angular/animations": "^6.1.10",
"@angular/common": "^6.1.10",
"@angular/core": "^6.1.10",
"@angular/compiler": "^6.1.10",
"@angular/elements": "^6.1.10",
"@angular/platform-browser": "^6.1.10",
"@angular/platform-browser-dynamic": "^6.1.10",
"@hapiness/ng-elements-loader": "^6.4.2",
"@angular/animations": "^7.0.2",
"@angular/common": "^7.0.2",
"@angular/core": "^7.0.2",
"@angular/compiler": "^7.0.2",
"@angular/elements": "^7.0.2",
"@angular/platform-browser": "^7.0.2",
"@angular/platform-browser-dynamic": "^7.0.2",
"@hapiness/ng-elements-loader": "^7.0.0",
"core-js": "^2.5.7",
"document-register-element": "~1.8.1",
"rxjs": "^6.3.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { NgModule } from '@angular/core';
import { ApplicationRef, DoBootstrap, NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

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

@NgModule({
imports: [ BrowserAnimationsModule ],
providers: [ ElementsLoaderService ]
imports: [ BrowserAnimationsModule ]
})
export class ElementsLoaderModule {
ngDoBootstrap() {
export class ElementsLoaderModule implements DoBootstrap {
constructor(private _elementsLoaderService: ElementsLoaderService) {}
ngDoBootstrap(appRef: ApplicationRef): void {
}
}
59 changes: 29 additions & 30 deletions projects/custom-elements-loader/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"types": [],
"lib": [
"dom",
"es2015"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"flatModuleId": "AUTOGENERATED",
"flatModuleOutFile": "AUTOGENERATED"
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
}
11 changes: 7 additions & 4 deletions projects/ng-elements-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

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

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

## Installation

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

## Change History
* v7.0.0 (2018-11-02)
* `Angular v7.0.2+`
* Documentation
* v6.4.2 (2018-10-18)
* `Angular v6.1.10+`
* Documentation
Expand Down
14 changes: 7 additions & 7 deletions projects/ng-elements-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hapiness/ng-elements-loader",
"version": "6.4.2",
"version": "7.0.0",
"description": "Service to load Angular Custom Elements inside Angular's applications",
"private": false,
"repository": {
Expand All @@ -27,12 +27,12 @@
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
},
"peerDependencies": {
"@angular/common": "^6.1.10",
"@angular/core": "^6.1.10",
"@angular/compiler": "^6.1.10",
"@angular/elements": "^6.1.10",
"@angular/platform-browser": "^6.1.10",
"@angular/platform-browser-dynamic": "^6.1.10",
"@angular/common": "^7.0.2",
"@angular/core": "^7.0.2",
"@angular/compiler": "^7.0.2",
"@angular/elements": "^7.0.2",
"@angular/platform-browser": "^7.0.2",
"@angular/platform-browser-dynamic": "^7.0.2",
"core-js": "^2.5.7",
"document-register-element": "~1.8.1",
"rxjs": "^6.3.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import {
Compiler, Inject,
Injectable, Injector,
Type
} from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { Compiler, Inject, Injectable, Injector, Type } from '@angular/core';
import { createCustomElement } from '@angular/elements';
import { forkJoin, from, merge, Observable, of, throwError } from 'rxjs';
import { flatMap, filter, map, tap, toArray } from 'rxjs/operators';
import { filter, flatMap, map, tap, toArray } from 'rxjs/operators';
import { CustomElementModuleSelector } from './elements-registry';

@Injectable({
Expand Down
55 changes: 29 additions & 26 deletions projects/ng-elements-loader/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"types": [],
"lib": [
"dom",
"es2015"
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"types": [],
"lib": [
"dom",
"es2018"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"flatModuleId": "AUTOGENERATED",
"flatModuleOutFile": "AUTOGENERATED"
}
}
Loading

0 comments on commit 14c56f0

Please sign in to comment.