expo-print
Advanced tools
Comparing version 10.2.1 to 11.0.0
@@ -1,2 +0,2 @@ | ||
declare const _default: import("@unimodules/core").ProxyNativeModule; | ||
declare const _default: import("expo-modules-core").ProxyNativeModule; | ||
export default _default; |
@@ -1,3 +0,3 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from 'expo-modules-core'; | ||
export default NativeModulesProxy.ExponentPrint; | ||
//# sourceMappingURL=ExponentPrint.js.map |
@@ -1,2 +0,2 @@ | ||
import { UnavailabilityError } from '@unimodules/core'; | ||
import { UnavailabilityError } from 'expo-modules-core'; | ||
import { Platform } from 'react-native'; | ||
@@ -28,2 +28,5 @@ import ExponentPrint from './ExponentPrint'; | ||
} | ||
if (options.markupFormatterIOS !== undefined) { | ||
console.warn('The markupFormatterIOS option is deprecated. Use useMarkupFormatter instead.'); | ||
} | ||
return await ExponentPrint.print(options); | ||
@@ -30,0 +33,0 @@ } |
@@ -27,5 +27,11 @@ export declare type PrintOptions = { | ||
/** | ||
* **Available on iOS only.** Alternative to `html` option that uses [UIMarkupTextPrintFormatter](https://developer.apple.com/documentation/uikit/uimarkuptextprintformatter) | ||
* instead of WebView. Might be removed in the future releases. | ||
* **Available on iOS only.** Alternative to default option that uses [UIMarkupTextPrintFormatter](https://developer.apple.com/documentation/uikit/uimarkuptextprintformatter) | ||
* instead of WebView, but it doesn't display images. | ||
*/ | ||
useMarkupFormatter?: boolean; | ||
/** | ||
* @deprecated | ||
* **Available on iOS only.** This argument is deprecated, use `useMarkupFormatter` instead. | ||
* Might be removed in the future releases. | ||
*/ | ||
markupFormatterIOS?: string; | ||
@@ -61,2 +67,7 @@ /** | ||
/** | ||
* **Available on iOS only.** Alternative to default option that uses [UIMarkupTextPrintFormatter](https://developer.apple.com/documentation/uikit/uimarkuptextprintformatter) | ||
* instead of WebView, but it doesn't display images. | ||
*/ | ||
useMarkupFormatter?: boolean; | ||
/** | ||
* Width of the single page in pixels. Defaults to `612` which is a width of US Letter paper | ||
@@ -63,0 +74,0 @@ * format with 72 PPI. |
@@ -13,6 +13,24 @@ # Changelog | ||
## 10.2.1 — 2021-06-22 | ||
## 11.0.0 — 2021-09-28 | ||
_This version does not introduce any user-facing changes._ | ||
### 🛠 Breaking changes | ||
- Dropped support for iOS 11.0 ([#14383](https://github.com/expo/expo/pull/14383) by [@cruzach](https://github.com/cruzach)) | ||
### 🎉 New features | ||
- Add `markupFormatterIOS` option in `printToFileAsync` on iOS (default option can't handle html page breaks). ([#13799](https://github.com/expo/expo/pull/13799) by [@mstach60161](https://github.com/mstach60161)) | ||
- Deprecate `markupFormatterIOS` (string) in favor of `useMarkupFormatter` (boolean). ([#13897](https://github.com/expo/expo/pull/13897) by [@mstach60161](https://github.com/mstach60161)) | ||
### 🐛 Bug fixes | ||
- Fix loading pdf. ([#13677](https://github.com/expo/expo/pull/13677) by [@mstach60161](https://github.com/mstach60161)) | ||
- Fix calculating the number of pages when printing HTML on iOS. ([#13633](https://github.com/expo/expo/pull/13633) by [@dsokal](https://github.com/dsokal)) | ||
- Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo)) | ||
### 💡 Others | ||
- Rewrite print module from Java to Kotlin. ([#13538](https://github.com/expo/expo/pull/13538) by [@mstach60161](https://github.com/mstach60161)) | ||
- Migrated from `@unimodules/core` to `expo-modules-core`. ([#13757](https://github.com/expo/expo/pull/13757) by [@tsapeta](https://github.com/tsapeta)) | ||
## 10.2.0 — 2021-06-16 | ||
@@ -19,0 +37,0 @@ |
{ | ||
"name": "expo-print", | ||
"version": "10.2.1", | ||
"version": "11.0.0", | ||
"description": "Provides an API for iOS (AirPrint) and Android printing functionality.", | ||
@@ -32,3 +32,3 @@ "main": "build/Print.js", | ||
"license": "MIT", | ||
"homepage": "https://docs.expo.io/versions/latest/sdk/print/", | ||
"homepage": "https://docs.expo.dev/versions/latest/sdk/print/", | ||
"jest": { | ||
@@ -38,3 +38,3 @@ "preset": "expo-module-scripts/ios" | ||
"dependencies": { | ||
"expo-modules-core": "~0.2.0" | ||
"expo-modules-core": "~0.4.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "6e8cfadff90f106d6321d0dd8c4158f12a973d30" | ||
"gitHead": "1fffde73411ee7a642b98f1506a8de921805d52b" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from 'expo-modules-core'; | ||
export default NativeModulesProxy.ExponentPrint; |
@@ -1,2 +0,2 @@ | ||
import { UnavailabilityError } from '@unimodules/core'; | ||
import { UnavailabilityError } from 'expo-modules-core'; | ||
import { Platform } from 'react-native'; | ||
@@ -40,2 +40,5 @@ | ||
} | ||
if (options.markupFormatterIOS !== undefined) { | ||
console.warn('The markupFormatterIOS option is deprecated. Use useMarkupFormatter instead.'); | ||
} | ||
return await ExponentPrint.print(options); | ||
@@ -42,0 +45,0 @@ } |
@@ -28,5 +28,11 @@ // @needsAudit | ||
/** | ||
* **Available on iOS only.** Alternative to `html` option that uses [UIMarkupTextPrintFormatter](https://developer.apple.com/documentation/uikit/uimarkuptextprintformatter) | ||
* instead of WebView. Might be removed in the future releases. | ||
* **Available on iOS only.** Alternative to default option that uses [UIMarkupTextPrintFormatter](https://developer.apple.com/documentation/uikit/uimarkuptextprintformatter) | ||
* instead of WebView, but it doesn't display images. | ||
*/ | ||
useMarkupFormatter?: boolean; | ||
/** | ||
* @deprecated | ||
* **Available on iOS only.** This argument is deprecated, use `useMarkupFormatter` instead. | ||
* Might be removed in the future releases. | ||
*/ | ||
markupFormatterIOS?: string; | ||
@@ -68,2 +74,7 @@ /** | ||
/** | ||
* **Available on iOS only.** Alternative to default option that uses [UIMarkupTextPrintFormatter](https://developer.apple.com/documentation/uikit/uimarkuptextprintformatter) | ||
* instead of WebView, but it doesn't display images. | ||
*/ | ||
useMarkupFormatter?: boolean; | ||
/** | ||
* Width of the single page in pixels. Defaults to `612` which is a width of US Letter paper | ||
@@ -70,0 +81,0 @@ * format with 72 PPI. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
427
499655
45
+ Addedcompare-versions@3.6.0(transitive)
+ Addedexpo-modules-core@0.4.10(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
- Removedexpo-modules-core@0.2.0(transitive)
Updatedexpo-modules-core@~0.4.0