Skip to content

Commit

Permalink
feat(library): 1.0.0 release to Angular 2.0.0 final
Browse files Browse the repository at this point in the history
The library has been updated to Angular `2.0.0` and the version has been
bumped to `1.0.0` as a result. Closes
#63.
The library has been updated from tsd to typings.  Typings have been
updated and wired into the build and are now re-installed on `npm
install`. In addition, typings are no longer checked into source.
Closes #60.
The main entrance has been updated to `angular2-toaster.js`.  Addresses
#60.
The `bodyOutputType` property is public to enable AoT compilation on the
template. Closes #62.
The `TestComponent` module was improperly defined, causing errors in the
corresponding `ngFactory` file.  This has been corrected, closing
#64.
  • Loading branch information
Stabzs committed Sep 16, 2016
1 parent ccb8479 commit 1c6a792
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 1,206 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ npm-debug.log
coverage
lib
build
typings
src/*.js
src/*.map
src/*.d.ts
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm install zone.js@0.6.21 rxjs@5.0.0-beta.12 @angular/common@2.0.0-rc.7 @angular/compiler@2.0.0-rc.7 @angular/core@2.0.0-rc.7 @angular/platform-browser@2.0.0-rc.7 @angular/platform-browser-dynamic@2.0.0-rc.7
- npm install zone.js@0.6.21 rxjs@5.0.0-beta.12 @angular/common@2.0.0 @angular/compiler@2.0.0 @angular/core@2.0.0 @angular/platform-browser@2.0.0 @angular/platform-browser-dynamic@2.0.0
- npm install
script:
- npm run build
Expand Down
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# 1.0.0 (2016-09-15)
### Features
* **Angular: Final Version:** The library has been updated to Angular `2.0.0` and the version has
been bumped to `1.0.0` as a result. Closes [#63](https://github.com/Stabzs/Angular2-Toaster/issues/63).
* **typings:** The library has been updated from tsd to typings. Typings have been updated and
wired into the build and are now re-installed on `npm install`. In addition, typings are no
longer checked into source. Closes [#60](https://github.com/Stabzs/Angular2-Toaster/issues/60).

### Bug Fixes
* **package.json:** The main entrance has been updated to `angular2-toaster.js`. Addresses
[#60](https://github.com/Stabzs/Angular2-Toaster/issues/60).
* **toast.component:** The `bodyOutputType` property is public to enable AoT compilation on the
template. Closes [#62](https://github.com/Stabzs/Angular2-Toaster/issues/62).
* **toaster.container.spec:** The `TestComponent` module was improperly defined, causing errors in
the corresponding `ngFactory` file. This has been corrected, closing
[#64](https://github.com/Stabzs/Angular2-Toaster/issues/64).


# 0.5.2-rc.7 (2016-09-14)
### Features
* **Angular: RC7:** The library has been updated to Angular RC7.
Closes [#59](https://github.com/Stabzs/Angular2-Toaster/issues/59).

* **toaster.service:** A `removeToast` observable has been added to toasterService. This allows the
consumer to be notified when any toast is removed. This was added in
[#58](https://github.com/Stabzs/Angular2-Toaster/pull/58).
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
largely based off of [AngularJS-Toaster](https://github.com/jirikavi/AngularJS-Toaster).

[![Build Status](https://travis-ci.org/Stabzs/Angular2-Toaster.svg?branch=master)](https://travis-ci.org/Stabzs/Angular2-Toaster)
[![Coverage Status](https://coveralls.io/repos/github/Stabzs/Angular2-Toaster/badge.svg?branch=master&bumped=0.5.2-rc.7)](https://coveralls.io/github/Stabzs/Angular2-Toaster?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/Stabzs/Angular2-Toaster/badge.svg?branch=master&bump=1.0.0)](https://coveralls.io/github/Stabzs/Angular2-Toaster?branch=master)

### Current Version 0.5.2-rc.7
### Current Version 1.0.0

## Installation:

Expand All @@ -21,7 +21,8 @@ npm install angular2-toaster

## Building the Source
In order to build Angular2-Toaster, you will need to have Git and Node.js installed.
In addition, the library assumes that you will install all peer dependencies.
In addition, the library assumes that you will install all peer dependencies before running
`npm install`.

Clone a copy of the repo:

Expand Down Expand Up @@ -427,7 +428,7 @@ this.toasterService.pop(toast);
## Animations
Animations are currently not released in Angular 2 beta and are not yet included in angular2-toaster.
Animations will be included at a later point in time.
## Author
[Stabzs](stabzssoftware@gmail.com)
Expand Down
1 change: 0 additions & 1 deletion angular2-toaster.js.map

This file was deleted.

25 changes: 15 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "angular2-toaster",
"version": "0.5.2-rc.7",
"version": "1.0.0",
"description": "An Angular 2 Toaster Notification library based on AngularJS-Toaster",
"main": "angular2-toaster.ts",
"main": "angular2-toaster.js",
"scripts": {
"postinstall": "typings install",
"clean": "rimraf ./lib",
"watch": "tsc -p src -w",
"start": "npm run test && http-server -c-1 -o -p 8875 .",
"prebuild": "npm run clean",
"build": "node_modules/.bin/ngc -p src && cpx src/toaster.css lib",
"pretest": "npm run build",
"test": "karma start karma.conf.js",
Expand Down Expand Up @@ -34,18 +37,18 @@
},
"typings": "./angular2-toaster.d.ts",
"peerDependencies": {
"@angular/common": "^2.0.0-rc.7",
"@angular/compiler": "^2.0.0-rc.7",
"@angular/core": "^2.0.0-rc.7",
"@angular/platform-browser": "^2.0.0-rc.7",
"@angular/platform-browser-dynamic": "^2.0.0-rc.7",
"@angular/common": "^2.0.0",
"@angular/compiler": "^2.0.0",
"@angular/core": "^2.0.0",
"@angular/platform-browser": "^2.0.0",
"@angular/platform-browser-dynamic": "^2.0.0",
"rxjs": "5.0.0-beta.12"
},
"devDependencies": {
"@angular/compiler-cli": "^0.6.1",
"@angular/platform-server": "^2.0.0-rc.7",
"@angular/compiler-cli": "^0.6.2",
"@angular/platform-server": "^2.0.0",
"core-js": "^2.4.1",
"coveralls": "^2.11.12",
"coveralls": "^2.11.13",
"cpx": "^1.5.0",
"http-server": "^0.9.0",
"jasmine-core": "2.5.1",
Expand All @@ -55,8 +58,10 @@
"karma-jasmine": "1.0.2",
"reflect-metadata": "0.1.8",
"remap-istanbul": "^0.6.4",
"rimraf": "^2.5.4",
"systemjs": "^0.19.38",
"typescript": "2.0.2",
"typings": "^1.3.3",
"zone.js": "0.6.21"
}
}
2 changes: 1 addition & 1 deletion src/toast.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ToastComponent {

safeCloseHtml: SafeHtml;

private bodyOutputType = BodyOutputType;
public bodyOutputType = BodyOutputType;
public clickEvent = new EventEmitter();

constructor(
Expand Down
6 changes: 1 addition & 5 deletions src/toaster-container.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class TestComponent {
imports: [ToasterModule],
declarations: [TestComponent]
})
export class TestComponentModule {}


// Mock component for testing bodyOutputType Component rendering
Expand All @@ -37,13 +38,10 @@ export class TestComponent {
template: `<div>loaded via component</div>`
})
export class TestDynamicComponent { }

@NgModule({
imports: [BrowserModule],
bootstrap: [TestDynamicComponent],
declarations: [TestDynamicComponent]
})
export class TestDynamicModule { }


describe('ToasterContainerComponent with sync ToasterService', () => {
Expand Down Expand Up @@ -638,7 +636,6 @@ describe('ToasterContainerComponent when included as a component', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TestComponent],
imports: [ToasterModule, TestDynamicModule]
});

fixture = TestBed.createComponent<TestComponent>(TestComponent);
Expand Down Expand Up @@ -884,7 +881,6 @@ describe('Multiple ToasterContainerComponent components', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [TestComponent],
imports: [ToasterModule, TestDynamicModule]
});
TestBed.overrideComponent(TestComponent,
{
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"toaster.service.ts",
"toaster.module.ts",
"../node_modules/typescript/lib/lib.es6.d.ts",
"../typings/jasmine/jasmine.d.ts"
"../typings/globals/jasmine/index.d.ts"
]
}
15 changes: 0 additions & 15 deletions tsd.json

This file was deleted.

7 changes: 7 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "angular2-toaster",
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160914114559",
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#ab2462147a313f69e7118625cfcce21c005fa4af"
}
}
Loading

0 comments on commit 1c6a792

Please sign in to comment.