Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 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.1",
"version": "6.4.2",
"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,32 +34,32 @@
"url": "https://github.com/hapinessjs/ng-elements-loader/issues"
},
"dependencies": {
"@angular/common": "6.1.7",
"@angular/core": "6.1.7",
"@angular/compiler": "6.1.7",
"@angular/animations": "6.1.7",
"@angular/elements": "6.1.7",
"@angular/platform-browser": "6.1.7",
"@angular/platform-browser-dynamic": "6.1.7",
"@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",
"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.7",
"@angular-devkit/build-ng-packagr": "~0.8.3",
"@angular-devkit/build-angular": "~0.8.3",
"ng-packagr": "^4.2.0",
"@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",
"tslib": "^1.9.3",
"typescript": "~2.9.2",
"@angular/cli": "^6.2.3",
"@angular/language-service": "6.1.7",
"@angular/cli": "^6.2.5",
"@angular/language-service": "^6.1.10",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~10.11.0",
"codelyzer": "~4.4.4",
"@types/node": "~10.12.0",
"codelyzer": "~4.5.0",
"jasmine-core": "~3.2.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
Expand Down
21 changes: 18 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.0"
"@hapiness/custom-elements-loader": "^6.4.2"
}
}
```
Expand Down Expand Up @@ -235,6 +235,8 @@ 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';
import { MadeWithLoveModule } from 'made-with-love';
Expand Down Expand Up @@ -262,6 +264,8 @@ 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';
```

- Additional **polyfills** can be added if needed:
Expand All @@ -286,8 +290,12 @@ import 'document-register-element';
/** 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.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
```


Expand Down Expand Up @@ -391,6 +399,8 @@ We set a **listener** to catch `sayHello` event and do what we want:
// 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';
import { HelloWorldModule } from 'hello-world';
Expand All @@ -408,6 +418,11 @@ document.querySelector('hello-world').addEventListener('sayHello', (event: any)
[Back to top](#installation)

## Change History
* 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)
* Provide `ElementsLoaderService` in `ElementsLoaderModule` to solve bug reported in this [issue](https://github.com/angular/angular/issues/25813)
* Documentation
* v6.4.1 (2018-09-26)
* Fix version to `Angular v6.1.7` to avoid the bug reported in this [issue](https://github.com/angular/angular/issues/26128)
* Documentation
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.1",
"version": "6.4.2",
"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.7",
"@angular/common": "6.1.7",
"@angular/core": "6.1.7",
"@angular/compiler": "6.1.7",
"@angular/elements": "6.1.7",
"@angular/platform-browser": "6.1.7",
"@angular/platform-browser-dynamic": "6.1.7",
"@hapiness/ng-elements-loader": "^6.4.1",
"@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",
"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
Expand Up @@ -4,11 +4,10 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ElementsLoaderService } from '@hapiness/ng-elements-loader';

@NgModule({
imports: [
BrowserAnimationsModule
]
imports: [ BrowserAnimationsModule ],
providers: [ ElementsLoaderService ]
})
export class ElementsLoaderModule {
constructor(private _elementsLoaderService: ElementsLoaderService) {}
ngDoBootstrap() {}
ngDoBootstrap() {
}
}
3 changes: 3 additions & 0 deletions projects/ng-elements-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ this._rd.listen(element, 'sayHello', (event: any) => this.alertHello(event.detai
[Back to top](#installation)

## Change History
* v6.4.2 (2018-10-18)
* `Angular v6.1.10+`
* Documentation
* v6.4.1 (2018-09-26)
* Fix version to `Angular v6.1.7` to avoid the bug reported in this [issue](https://github.com/angular/angular/issues/26128)
* 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.1",
"version": "6.4.2",
"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.7",
"@angular/core": "6.1.7",
"@angular/compiler": "6.1.7",
"@angular/elements": "6.1.7",
"@angular/platform-browser": "6.1.7",
"@angular/platform-browser-dynamic": "6.1.7",
"@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",
"core-js": "^2.5.7",
"document-register-element": "~1.8.1",
"rxjs": "^6.3.3",
Expand Down
Loading