Skip to content

Commit bd828fa

Browse files
committed
chore(changelog): update changelog
1 parent 248d0c1 commit bd828fa

File tree

3 files changed

+150
-8
lines changed

3 files changed

+150
-8
lines changed

CHANGELOG.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,135 @@
1+
<a name="2.0.0-rc.0"></a>
2+
# [2.0.0-rc.0](https://github.com/driftyco/ionic/compare/v2.0.0-beta.11...v2.0.0-rc.0) (2016-09-28)
3+
4+
5+
### Bug Fixes
6+
7+
* **action-sheet:** add icon-left to the button if an icon exists ([a731528](https://github.com/driftyco/ionic/commit/a731528))
8+
* **animation:** prevent possible raf null errors ([0e8ebe5](https://github.com/driftyco/ionic/commit/0e8ebe5))
9+
* **app:** corrected paths to theme from app.scss ([001c1c9](https://github.com/driftyco/ionic/commit/001c1c9))
10+
* **changelog:** specify version of forms ([82852fb](https://github.com/driftyco/ionic/commit/82852fb))
11+
* **checkbox:** disabled toggle should not fire events or animate ([3324e32](https://github.com/driftyco/ionic/commit/3324e32))
12+
* **di:** update dependency injection and default configs ([7c05d0c](https://github.com/driftyco/ionic/commit/7c05d0c))
13+
* **docs:** get rid of reference to [@Page](https://github.com/Page) ([6fb848c](https://github.com/driftyco/ionic/commit/6fb848c))
14+
* **exports:** update module exports ([6784f5e](https://github.com/driftyco/ionic/commit/6784f5e))
15+
* **fab:** colors in speed dial buttons ([b70614b](https://github.com/driftyco/ionic/commit/b70614b))
16+
* **gestures:** fixes scroll issue with hammer config ([174efc1](https://github.com/driftyco/ionic/commit/174efc1)), closes [#6897](https://github.com/driftyco/ionic/issues/6897)
17+
* **ion-fixed:** ion-fixed directive is not longer needed ([75d5526](https://github.com/driftyco/ionic/commit/75d5526))
18+
* **item:** regression in sliding item introduced by 52ada1c ([e0c2129](https://github.com/driftyco/ionic/commit/e0c2129))
19+
* **item:** sliding item events are zone wrapped ([47491fb](https://github.com/driftyco/ionic/commit/47491fb)), closes [#7630](https://github.com/driftyco/ionic/issues/7630)
20+
* **item:** sliding item with icon-only buttons ([1d3d5a1](https://github.com/driftyco/ionic/commit/1d3d5a1))
21+
* **menu:** open/close race condition ([8585427](https://github.com/driftyco/ionic/commit/8585427)), closes [#7629](https://github.com/driftyco/ionic/issues/7629) [#8001](https://github.com/driftyco/ionic/issues/8001)
22+
* gulp validate passes successfully ([b750e46](https://github.com/driftyco/ionic/commit/b750e46))
23+
* **nav:** move null assignment of _onWillDismiss ([35193c4](https://github.com/driftyco/ionic/commit/35193c4))
24+
* **nav:** setRoot() and setPages() should not animate ([7012734](https://github.com/driftyco/ionic/commit/7012734))
25+
* **navigation:** move onWillDismiss and onDidDismiss, add unit tests ([e26c425](https://github.com/driftyco/ionic/commit/e26c425))
26+
* **platform:** fire platform ready on app init ([963e835](https://github.com/driftyco/ionic/commit/963e835))
27+
* **reorder:** adjust reorder icon style for iOS and MD ([f3bb2dc](https://github.com/driftyco/ionic/commit/f3bb2dc))
28+
* **templates:** add template tabs [#8207](https://github.com/driftyco/ionic/issues/8207) ([#8208](https://github.com/driftyco/ionic/issues/8208)) ([0f6ce28](https://github.com/driftyco/ionic/commit/0f6ce28))
29+
* **urlSerializer:** improve findLinkByComponentData ([9d563f5](https://github.com/driftyco/ionic/commit/9d563f5))
30+
31+
32+
### Code Refactoring
33+
34+
* **button:** add ion-button attribute and icon attributes to style buttons ([938864e](https://github.com/driftyco/ionic/commit/938864e)), closes [#7466](https://github.com/driftyco/ionic/issues/7466)
35+
* **colors:** color should be added as an input instead of directly adding the color to the component ([55a0257](https://github.com/driftyco/ionic/commit/55a0257)), closes [#7087](https://github.com/driftyco/ionic/issues/7087) [#7401](https://github.com/driftyco/ionic/issues/7401) [#7523](https://github.com/driftyco/ionic/issues/7523)
36+
* **select:** rename alertOptions to selectOptions, add ability to pass them for action-sheet ([b8285b7](https://github.com/driftyco/ionic/commit/b8285b7)), closes [#7764](https://github.com/driftyco/ionic/issues/7764)
37+
38+
39+
### Features
40+
41+
* **action-sheet:** add ability to pass multiple classes to cssClass ([68ab261](https://github.com/driftyco/ionic/commit/68ab261))
42+
* **chips:** added Chip component ([421f637](https://github.com/driftyco/ionic/commit/421f637))
43+
* **chips:** finished Component ([0dece72](https://github.com/driftyco/ionic/commit/0dece72))
44+
* **fab:** update floating action buttons ([490a06d](https://github.com/driftyco/ionic/commit/490a06d))
45+
* **itemReorder:** animate reorder button ([1f78487](https://github.com/driftyco/ionic/commit/1f78487))
46+
* **loading:** add ability to pass multiple classes to cssClass ([466dea3](https://github.com/driftyco/ionic/commit/466dea3))
47+
* **loading:** add setContent function ([c750847](https://github.com/driftyco/ionic/commit/c750847))
48+
* add polyfill task ([ce78194](https://github.com/driftyco/ionic/commit/ce78194))
49+
* **nav:** component url navigation ([f477aa2](https://github.com/driftyco/ionic/commit/f477aa2))
50+
* **nav:** set default stack history on app init ([ca8cc0a](https://github.com/driftyco/ionic/commit/ca8cc0a))
51+
* **polyfills:** split up code and source polyfill task ([#8130](https://github.com/driftyco/ionic/issues/8130)) ([bcec66c](https://github.com/driftyco/ionic/commit/bcec66c))
52+
* **popover:** add ability to pass multiple classes to cssClass ([a685cdc](https://github.com/driftyco/ionic/commit/a685cdc))
53+
* **toast:** add ability to pass multiple classes to cssClass ([79e25a3](https://github.com/driftyco/ionic/commit/79e25a3))
54+
55+
56+
### Performance Improvements
57+
58+
* **item:** apply will-change only when list is active ([4bcd815](https://github.com/driftyco/ionic/commit/4bcd815))
59+
* **reorder:** reorder icon is display: none by default ([26441ec](https://github.com/driftyco/ionic/commit/26441ec))
60+
* **ripple:** md ripple effect update to not affect layout ([14a3ea2](https://github.com/driftyco/ionic/commit/14a3ea2))
61+
62+
63+
### BREAKING CHANGES
64+
65+
* select: Select’s `alertOptions` input has been renamed to `selectOptions`. It
66+
now allows you to pass options for either the alert or action-sheet
67+
interface. Refer to their documentation for the options each of them
68+
accept.
69+
70+
http://ionicframework.com/docs/v2/api/components/action-sheet/ActionShee
71+
tController/#create
72+
http://ionicframework.com/docs/v2/api/components/alert/AlertController/#
73+
create
74+
* colors: Colors should be passed in the `color` input on components, not added
75+
individually as an attribute on the component.
76+
77+
For example:
78+
79+
```
80+
<ion-tabs primary>
81+
```
82+
83+
Becomes
84+
85+
```
86+
<ion-tabs color=”primary”>
87+
```
88+
89+
Or to bind an expression to color:
90+
91+
```
92+
<ion-navbar [color]="barColor">
93+
...
94+
</ion-navbar>
95+
```
96+
97+
```ts
98+
@Component({
99+
templateUrl: 'build/pages/about/about.html'
100+
})
101+
export class AboutPage {
102+
barColor: string;
103+
104+
constructor(private nav: NavController, platform: Platform) {
105+
this.barColor = platform.is('android') ? 'primary' : 'light';
106+
}
107+
}
108+
```
109+
110+
Reason for this change:
111+
It was difficult to dynamically add colors to components, especially if
112+
the name of the color attribute was unknown in the template.
113+
This change keeps the css flat since we aren’t chaining color
114+
attributes on components and instead we assign a class to the component
115+
which includes the color’s name.
116+
This allows you to easily toggle a component between multiple colors.
117+
Speeds up performance because we are no longer reading through all of
118+
the attributes to grab the color ones.
119+
120+
references #7467
121+
* button: - `<button>` becomes `<button ion-button>`
122+
- `<a button>` becomes `<a ion-button>`
123+
- `<button ion-item>` does not get the `ion-button` attribute
124+
- Buttons inside of `<ion-item-options>` do get the `ion-button`
125+
attribute
126+
- Removed the `category` attribute, this should be passed in
127+
`ion-button` instead.
128+
- Button attributes added for icons in buttons: `icon-only`,
129+
`icon-left`, and `icon-right`
130+
131+
132+
1133
<a name="2.0.0-beta.11"></a>
2134
# [2.0.0-beta.11](https://github.com/driftyco/ionic/compare/v2.0.0-beta.10...v2.0.0-beta.11) (2016-08-05)
3135

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"gulp-autoprefixer": "3.1.1",
7070
"gulp-clean-css": "2.0.12",
7171
"gulp-concat": "2.6.0",
72+
"gulp-conventional-changelog": "^1.1.0",
7273
"gulp-git": "1.11.3",
7374
"gulp-if": "2.0.1",
7475
"gulp-remember": "0.3.1",

scripts/gulp/tasks/release.ts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { spawn, exec } from 'child_process';
1+
import { exec, spawnSync, spawn } from 'child_process';
22
import { readFileSync, writeFileSync } from 'fs';
33

44
import * as glob from 'glob';
@@ -13,12 +13,19 @@ import { compileSass, copyFonts, createTimestamp, setSassIonicVersion, writePoly
1313

1414

1515
task('nightly', (done: (err: any) => void) => {
16-
runSequence('release.prepareReleasePackage', 'release.removeDebugStatements', 'release.publishNightly', done);
16+
runSequence('release.prepareReleasePackage',
17+
'release.removeDebugStatements',
18+
'release.publishNightly',
19+
done);
1720
});
1821

1922
task('release', (done: (err: any) => void) => {
2023
// don't automatically push the button, require the user to call the publish command separately for now
21-
runSequence('release.prepareReleasePackage', 'release.copyProdVersion', 'release.removeDebugStatements', done);
24+
runSequence('release.prepareReleasePackage',
25+
'release.copyProdVersion',
26+
'release.removeDebugStatements',
27+
'release.prepareChangelog',
28+
done);
2229
});
2330

2431
task('release.removeDebugStatements', (done: Function) => {
@@ -137,14 +144,16 @@ task('release.scss', () => {
137144
});
138145

139146
task('release.pullLatest', (done: Function) => {
140-
exec('git pull origin master', (err: Error, stdout: string, stderr: string) => {
141-
console.log(stdout);
142-
console.log(stderr);
147+
exec('git status --porcelain', (err: Error, stdOut: string) =>{
143148
if (err) {
144149
done(err);
145-
} else if (stderr && stderr.length > 0) {
146-
done(new Error('There are outstanding changes. Commit changes in order to perform a release.'));
150+
} else if ( stdOut && stdOut.length > 0) {
151+
done(new Error('There are uncommited changes. Please commit or stash changes.'));
147152
} else {
153+
const gitPullResult = spawnSync('git', ['pull', 'origin', 'master']);
154+
if (gitPullResult.status !== 0) {
155+
done(new Error('Error running git pull'));
156+
}
148157
done();
149158
}
150159
});

0 commit comments

Comments
 (0)