2.0.0-rc.5
2.0.0-rc.5 (2017-01-11)
Updating to 2.0.0-rc.5
- Update to the latest version of the Ionic CLI:
npm uninstall -g ionic
npm install -g ionic
- Update your
package.json
to match the following dependencies, remove existingnode_modules
directory, and then runnpm install
:
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"ionic-angular": "2.0.0-rc.5",
"ionic-native": "2.2.11",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.26",
"sw-toolbox": "3.4.0"
},
"devDependencies": {
"@ionic/app-scripts": "1.0.0",
"typescript": "2.0.9"
}
Note: please ensure you are using the exact TypeScript and Angular versions listed above. There have been issues with the latest versions.
What’s changed?
Internal refactor completed in order to improve tree shaking and dead code removal. The public API, with the exception of the slides component, has stayed the same. However, internally many changes were required so bundlers could better exclude modules which should not be bundled. Ultimately most changes resorted to removing references to window
or document
, or a module that referenced one of those.
What’s new?
Service Worker Toolbox (sw-toolbox) is now built in to the starters and conference app. This allows you to customize your service worker using a high level API instead of using the raw service worker API. Our out of the box configuration will give your app a good, network independent experience but you can easily customize this to fit your app’s unique use cases.
BREAKING CHANGES
Inputs
As part of the refactor to improve tree shaking the TextArea
has been merged into the TextInput
class. This means that if you are importing the TextArea
class you will need to change this to be TextInput
.
Slides
ion-slides was refactored to remove the external dependencies, and rewritten in TypeScript/ES6 modules to again improve tree shaking abilities. In order to work with tree shaking, the options
attribute had to be removed. See the Slides API Documentation for usage information.
Bug Fixes
- clickblock: add NavOptions.minClickBlockDuration (8ca9797)
- datetime: enable custom day values (#9708) (acba3c0), closes #7190 #7190
- input: fix the text jumping for stacked/floating inputs on iOS (877fcf1), closes #9605
- input: only add padding right if it has clear input (717cada), closes #9865
- input: remove click events from disabled inputs (#9676) (22ba043), closes #9070
- list: add border to last item in MD list (#9679) (64346bd), closes #9619
- overlay: don't call to dismiss pages if the view is an overlay (8b25798)
- platform: only set isPortrait when the width/height is set (e9adab0)
- scroll: handle low duration in scrollTo (14eb2fd)
- show-hide-when: remove whitespaces from conditions before check phase (#9573) (cd342c2)
- tabs: current tab still active if selected tab does not have a root (f09c300), closes #9392 #9811 #9392