Skip to content

Commit 95c93dc

Browse files
committed
add breaking change to the Printer object to upgrade guide
1 parent bff848e commit 95c93dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/views/docs/desktop/2/getting-started/upgrade-guide.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ order: 1200
1313

1414
- [Serve command renamed](#renamed-codenativeservecode-command)
1515
- [Node integration disabled by default](#security-defaults)
16+
- [Changes to the Printer object](#changes-to-the-codeprintercode-object)
1617

1718
### Low Impact Changes
1819

@@ -64,6 +65,12 @@ v2 drops support for macOS **_Catalina_** and **_Big Sur_**. This change comes f
6465
The `artisan native:serve` command has been deprecated and renamed to `artisan native:run` for better symmetry with the mobile package.
6566
Please update the `composer native:dev` script to reference the new run command.
6667

68+
## Changes to the `Printer` object
69+
70+
Electron removed the `isDefault` and `status` properties from their `PrinterInfo` object. See their docs regarding this change (here)[https://www.electronjs.org/docs/latest/breaking-changes#removed-isdefault-and-status-properties-on-printerinfo].
71+
72+
To stay in step we had to remove these properties from our `\Native\Desktop\DataObjects\Printer` class as well. If you are using `System::printers()` make sure you are not referencing the `isDefault` and `status` properties.
73+
6774
## New `dist` location
6875

6976
The build output has moved to `nativephp/electron/dist`

0 commit comments

Comments
 (0)