Release 4.3.1 (#18152) (#18154)

* fix(angular): support replaceUrl with angular <7.2 (#18106)

* fix(angular): support replaceUrl with angular <7.2

* run linter

* fix(): sanitize components using innerHTML (#18146)

* 4.3.1 (#18150)
This commit is contained in:
Liam DeBeasi
2019-04-26 15:52:30 -04:00
committed by GitHub
parent d12757f975
commit 9c2cd31b1c
6 changed files with 32 additions and 7 deletions

View File

@ -1,3 +1,13 @@
## [4.3.1](https://github.com/ionic-team/ionic/compare/v4.3.0...v4.3.1) (2019-04-26)
### Bug Fixes
* **angular:** support replaceUrl with angular <7.2 ([#18106](https://github.com/ionic-team/ionic/issues/18106)) ([eb3cbe4](https://github.com/ionic-team/ionic/commit/eb3cbe4))
* **security:** sanitize components using innerHTML ([#18146](https://github.com/ionic-team/ionic/issues/18146)) ([b839e6f](https://github.com/ionic-team/ionic/commit/b839e6f))
# [4.3.0 Lithium](https://github.com/ionic-team/ionic/compare/v4.2.0...v4.3.0) (2019-04-17)

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/angular",
"version": "4.3.0",
"version": "4.3.1",
"description": "Angular specific wrappers for @ionic/core",
"keywords": [
"ionic",
@ -45,7 +45,7 @@
"css/"
],
"dependencies": {
"@ionic/core": "4.3.0",
"@ionic/core": "4.3.1",
"tslib": "^1.9.3"
},
"peerDependencies": {

View File

@ -59,7 +59,22 @@ export class StackController {
}
const viewsSnapshot = this.views.slice();
const currentNavigation = this.router.getCurrentNavigation();
let currentNavigation;
const router = (this.router as any);
// Angular >= 7.2.0
if (router.getCurrentNavigation) {
currentNavigation = router.getCurrentNavigation();
// Angular < 7.2.0
} else if (
router.navigations &&
router.navigations.value
) {
currentNavigation = router.navigations.value;
}
/**
* If the navigation action
* sets `replaceUrl: true`

View File

@ -23,8 +23,8 @@ The Ionic Core package contains the Web Components that make up the reusable UI
Easiest way to start using Ionic Core is by adding a script tag to the CDN:
```html
<link href="https://unpkg.com/@ionic/core@4.3.0/css/ionic.bundle.css" rel="stylesheet">
<script src="https://unpkg.com/@ionic/core@4.3.0/dist/ionic.js"></script>
<link href="https://unpkg.com/@ionic/core@4.3.1/css/ionic.bundle.css" rel="stylesheet">
<script src="https://unpkg.com/@ionic/core@4.3.1/dist/ionic.js"></script>
```
Any Ionic component added to the webpage will automatically load. This includes writing the component tag directly in HTML, or using JavaScript such as `document.createElement('ion-toggle')`.

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/core",
"version": "4.3.0",
"version": "4.3.1",
"description": "Base components for Ionic",
"keywords": [
"ionic",

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/docs",
"version": "4.3.0",
"version": "4.3.1",
"description": "Pre-packaged API documentation for the Ionic docs.",
"main": "core.json",
"files": [