diff --git a/CHANGELOG.md b/CHANGELOG.md index aa1e8f795..842dbf50c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,127 +1,3 @@ - -# [2.0.0-beta.5](https://github.com/angular/flex-layout/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2017-02-09) - -### Bug Fixes - -* **breakpoints:** resolve 1px hole between lg -> xl breakpoints ([#159](https://github.com/angular/flex-layout/issues/159)) ([d78527c](https://github.com/angular/flex-layout/commit/d78527c)), closes [#149](https://github.com/angular/flex-layout/issues/149) -* **FlexLayoutModule:** remove use of static ngModule.forRoot() ([#167](https://github.com/angular/flex-layout/issues/167)) ([86010bf](https://github.com/angular/flex-layout/commit/86010bf)) -* **FlexLayoutModule:** add observable-media-service to exported barrel ([#139](https://github.com/angular/flex-layout/issues/139)) ([b7dffaa](https://github.com/angular/flex-layout/commit/b7dffaa)) -* **fxFlex:** fix use of values with 'auto' ([#122](https://github.com/angular/flex-layout/issues/122)) ([04d24d5](https://github.com/angular/flex-layout/commit/04d24d5)), closes [#120](https://github.com/angular/flex-layout/issues/120) -* **fxFlex:** prevent setting min/max-size when grow/shrink is zero ([#160](https://github.com/angular/flex-layout/issues/160)) ([942939e](https://github.com/angular/flex-layout/commit/942939e)), closes [#153](https://github.com/angular/flex-layout/issues/153) -* **fxHide,fxShow:** restore orig display mode and more... ([#143](https://github.com/angular/flex-layout/issues/143)) ([d269d73](https://github.com/angular/flex-layout/commit/d269d73)), closes [#140](https://github.com/angular/flex-layout/issues/140) [#141](https://github.com/angular/flex-layout/issues/141) -* **fxHide,fxShow:** fix standalone breakpoint selectors ([#121](https://github.com/angular/flex-layout/issues/121)) ([0ca7d07](https://github.com/angular/flex-layout/commit/0ca7d07)), closes [#62](https://github.com/angular/flex-layout/issues/62) [#59](https://github.com/angular/flex-layout/issues/59) [#105](https://github.com/angular/flex-layout/issues/105) -* **fxLayoutGap:** add gaps to dynamic content ([#124](https://github.com/angular/flex-layout/issues/124)) ([6482c12](https://github.com/angular/flex-layout/commit/6482c12)), closes [#95](https://github.com/angular/flex-layout/issues/95) -* **fxLayoutGap:** fxLayoutWrap to apply gap logic for reverse directions ([#148](https://github.com/angular/flex-layout/issues/148)) ([9f7137e](https://github.com/angular/flex-layout/commit/9f7137e)), closes [#108](https://github.com/angular/flex-layout/issues/108) -* **fxLayoutGap:** skip hidden element nodes ([#145](https://github.com/angular/flex-layout/issues/145)) ([6c45b35](https://github.com/angular/flex-layout/commit/6c45b35)), closes [#136](https://github.com/angular/flex-layout/issues/136) -* **fxClass,fxStyle:** enable raw input caching ([#173](https://github.com/angular/flex-layout/issues/173)) ([d5b283c](https://github.com/angular/flex-layout/commit/d5b283c)) -* **ObservableMedia:** expose `asObservable()` for rxjs operators ([#133](https://github.com/angular/flex-layout/issues/133)) ([6e46561](https://github.com/angular/flex-layout/commit/6e46561)), closes [#125](https://github.com/angular/flex-layout/issues/125) - -### Features - -* **API:** use protected access to allow API directives to be easily extended ([#163](https://github.com/angular/flex-layout/issues/163)) ([e6bc451](https://github.com/angular/flex-layout/commit/e6bc451)) -* **fxClass,fxStyle:** add responsive support for ngClass and ngStyle ([#170](https://github.com/angular/flex-layout/issues/170)) ([f57a63d](https://github.com/angular/flex-layout/commit/f57a63d)) -* **ObservableMedia:** use ObservableMedia class as provider token ([#158](https://github.com/angular/flex-layout/issues/158)) ([dad69fe](https://github.com/angular/flex-layout/commit/dad69fe)) - -### BREAKING CHANGES - -* ObservableMedia: Deprecated use of `ObservableMediaService` opaque token. Developers now simply use the ObservableMedia class to inject the service. -* FlexLayoutModule: Previously releases used FlexLayoutModule.forRoot(); This has been deprecated. - -*before* - -```js -constructor( @Inject(ObserverableMediaService) media:any ) { ... } -``` - -**after** -```js -constructor(private media:ObservableMedia) { ... } -``` -* ObservableMedia: use class `ObservableMedia` to inject instance of service -* use `MediaService::asObservable()` to get instance of observable - -```js -// RxJS -import 'rxjs/add/operator/map'; -import {ObservableMedia} from '@angular/flex-layout'; - -@Component({ ... }) -export class MyComponent { - constructor( media:ObservableMedia ) { - media.asObservable() - .map( (change:MediaChange) => change.mqAlias == 'md' ) - .subscribe((change:MediaChange) => { - let state = change ? `'${change.mqAlias}' = (${change.mediaQuery})` : ""; - console.log( state ); - }); - } -} -``` - -Previously releases used FlexLayoutModule.forRoot(). -This has been deprecated and will output a `console.warn()` if used. - --*before*- - -```js -@NgModule({ - declarations : [...], - imports : [ - CommonModule, - FlexLayoutModule.forRoot() - ] -}) -export class DemosResponsiveLayoutsModule { } -``` - --*after*- - -```js -@NgModule({ - declarations : [...], - imports : [ CommonModule, FlexLayoutModule ] -}) -export class DemosResponsiveLayoutsModule { } -``` - - -# [2.0.0-beta.4](https://github.com/angular/flex-layout/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2017-01-27) - - -### Bug Fixes - -* **flex:** fix use of values with 'auto' ([#122](https://github.com/angular/flex-layout/issues/122)) ([04d24d5](https://github.com/angular/flex-layout/commit/04d24d5)), closes [#120](https://github.com/angular/flex-layout/issues/120) -* **fxHide,fxShow:** fix standalone breakpoint selectors ([#121](https://github.com/angular/flex-layout/issues/121)) ([0ca7d07](https://github.com/angular/flex-layout/commit/0ca7d07)), closes [#62](https://github.com/angular/flex-layout/issues/62) [#59](https://github.com/angular/flex-layout/issues/59) [#105](https://github.com/angular/flex-layout/issues/105) -* **fxLayoutGap:** add gaps to dynamic content ([#124](https://github.com/angular/flex-layout/issues/124)) ([6482c12](https://github.com/angular/flex-layout/commit/6482c12)), closes [#95](https://github.com/angular/flex-layout/issues/95) -* **matchMediaObservable:** expose observable for rxjs operators ([#133](https://github.com/angular/flex-layout/issues/133)) ([6e46561](https://github.com/angular/flex-layout/commit/6e46561)), closes [#125](https://github.com/angular/flex-layout/issues/125) - - -### BREAKING CHANGES - -* matchMediaObservable: * use opaque token `ObservableMediateService` to inject instance of `MediaService` -* use `MediaService::asObservable()` to get instance of observable - -```js -// RxJS -import 'rxjs/add/operator/map'; - -@Component({ ... }) -export class MyComponent { - constructor( @Inject(ObservableMediaService) media) { - media.asObservable() - .map( (change:MediaChange) => change.mqAlias == 'md' ) - .subscribe((change:MediaChange) => { - let state = change ? `'${change.mqAlias}' = (${change.mediaQuery})` : "" - console.log( state ); - }); - } -} -``` - - -# [2.0.0-beta.3](https://github.com/angular/flex-layout/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2017-01-17) - - # [2.0.0-beta.2](https://github.com/angular/flex-layout/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2017-01-13) diff --git a/package.json b/package.json index 59b5ce994..5dc1df098 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flex-layout-srcs", - "version": "2.0.0-beta.5", + "version": "2.0.0-rc.1", "description": "Angular Flex Layout Sources", "main": "index.js", "repository": { @@ -138,4 +138,4 @@ "webpack-dev-server": "^2.2.0-rc.0", "webpack-livereload-plugin": "^0.9.0" } -} +} \ No newline at end of file diff --git a/tools/releases.json b/tools/releases.json index 7b171c1e8..d9cac2725 100644 --- a/tools/releases.json +++ b/tools/releases.json @@ -1,10 +1,11 @@ { "versions": [ + "2.0.0-rc.1", "2.0.0-beta.5", "2.0.0-beta.4", "2.0.0-beta.3", "2.0.0-beta.2", "2.0.0-beta.1" ], - "latest": "2.0.0-beta.5" -} + "latest": "2.0.0-rc.1" +} \ No newline at end of file diff --git a/tools/scripts/release/npm_assets/package.json b/tools/scripts/release/npm_assets/package.json index be928268a..f04551f15 100644 --- a/tools/scripts/release/npm_assets/package.json +++ b/tools/scripts/release/npm_assets/package.json @@ -1,6 +1,6 @@ { "name": "@angular/flex-layout", - "version": "2.0.0-beta.4", + "version": "2.0.0-rc.1", "description": "Angular 2 Flexbox Layout", "main": "./bundles/flex-layout.umd.js", "module": "./index.js", @@ -27,4 +27,4 @@ "rxjs": "^5.0.1", "zone.js": "^0.7.2" } -} +} \ No newline at end of file