-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
announcement: cordova-plugin-file 8.1.3 (#1383)
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
layout: post | ||
author: | ||
name: Norman Breau | ||
url: https://breautek.com | ||
title: "File Plugin 8.1.3 Released!" | ||
categories: announcements | ||
tags: news releases | ||
--- | ||
|
||
We are happy to announce that we have just released an update for `cordova-plugin-file`! | ||
|
||
* [[email protected]](https://www.npmjs.com/package/cordova-plugin-file) | ||
|
||
**To upgrade:** | ||
|
||
```bash | ||
cordova plugin remove cordova-plugin-file | ||
cordova plugin add [email protected] | ||
``` | ||
|
||
## Release Highlights | ||
|
||
This patch fixes an issue with `FileEntry.toURL()` on iOS devices when the app | ||
is hosted through schemes. The intent for this API is to produce a URL that | ||
can be used in the DOM, like image tags for example. However, iOS devices always | ||
produced `file://` URIs which is not usable when the webview is configured to | ||
use schemes. | ||
|
||
Starting with 8.1.3, `FileEntry.toURL()` will produce an app-scheme URI if the | ||
iOS webview is configured to use app schemes, or a `file://` uri otherwise. | ||
|
||
This brings the behaviour closer to Android's implementation. | ||
|
||
Please report any issues you find by following the [How to File a Bug](https://github.com/apache/cordova#filing-a-bug) guide! | ||
|
||
<!--more--> | ||
# Changes include: | ||
|
||
**Fixes:** | ||
* [GH-642](https://github.com/apache/cordova-plugin-file/pull/642) fix(ios): Entry.toURL() to produce DOM-usable uri when using scheme-hosted webview (#642) | ||
|
||
**Tests:** | ||
* [GH-643](https://github.com/apache/cordova-plugin-file/pull/643) fix(test): file.spec.131 moveTo may fail due to read order assumption (#643) | ||
|
||
**Docs:** | ||
* [GH-645](https://github.com/apache/cordova-plugin-file/pull/645) docs: Added upgrade notes to `README` for v8 (#645) | ||
|