|
2 | 2 | <PropertyGroup> |
3 | 3 | <TargetFramework>netstandard2.0</TargetFramework> |
4 | 4 | <PackOnBuild>true</PackOnBuild> |
5 | | - <PackageVersion>1.8.0</PackageVersion> |
| 5 | + <PackageVersion>1.9.0</PackageVersion> |
6 | 6 | <Authors>Darío Kondratiuk</Authors> |
7 | 7 | <Owners>Darío Kondratiuk</Owners> |
8 | 8 | <PackageProjectUrl>https://github.com/kblok/puppeteer-sharp</PackageProjectUrl> |
|
13 | 13 | <PackageId>PuppeteerSharp</PackageId> |
14 | 14 | <PackageReleaseNotes><![CDATA[# New Features |
15 | 15 |
|
16 | | - * Roll Chromium to r588429. |
| 16 | + * Introducing Burst mode. |
| 17 | +
|
| 18 | +var screenShotOptions = new ScreenshotOptions |
| 19 | +{ |
| 20 | + FullPage = true, |
| 21 | + BurstMode = true |
| 22 | +}; |
| 23 | +await page.GoToAsync("https://www.google.com"); |
| 24 | +for(var x = 0; x < 100; x++) |
| 25 | +{ |
| 26 | + await page.ScreenshotBase64Async(screenShotOptions); |
| 27 | +} |
| 28 | +await page.SetBurstModeOffAsync(); |
| 29 | +
|
17 | 30 |
|
18 | 31 | # New APIs |
19 | 32 |
|
20 | | - * Task<ElementHandle>EvaluateFunctionAsync and Task<JSHandle>EvaluateFunctionAsync. |
21 | | - * BrowserContext.OverridePermissionsAsync. |
22 | | - * BrowserContext. ClearPermissionOverridesAsync. |
23 | | - * Page. SetGeolocationAsync. |
24 | | - * NavigationOptions.Referer. |
25 | | - * Response.RemoteAddress. |
26 | | - * Response.StatusText |
| 33 | + * ScreenshotOptions.BurstMode and Page.SetBurstModeOff. |
| 34 | + * Browser.Target. |
| 35 | + * ConnectOptions/LaunchOptions.Transport and ConnectionOptions/LaunchOptions.EnqueueTransportMessages. |
| 36 | + * Frame.GoToAsync |
27 | 37 |
|
28 | | -# Changelog |
| 38 | +# Breaking Changes |
| 39 | +
|
| 40 | +## Evaluate changes |
| 41 | +
|
| 42 | +`EvaluateFunctionAsync` and `EvaluateExpressionAsync` won't try to infer the output type when used without generics. It will return a ** JToken** instead. |
| 43 | +
|
| 44 | +A piece of code like this: |
29 | 45 |
|
30 | | - * Fix null-type bugs. |
31 | | - * Improve PdfOptions documentation. |
32 | | - * Create Request class right away from payload. |
33 | | - * Drop object factory from execution context. |
34 | | - * Page.goto should properly handle historyAPI in beforeunload. |
35 | | - * New ResourceType.Ping. |
36 | | - * Launch with Environment Variables. |
37 | | -]]> |
38 | | - </PackageReleaseNotes> |
39 | | - <ReleaseVersion>1.8.0</ReleaseVersion> |
| 46 | +int x = page.EvaluateExpressionAsync("1"); |
| 47 | +
|
| 48 | +
|
| 49 | +Will need to be replaced by one of these two options: |
| 50 | +
|
| 51 | +int x = page.EvaluateExpressionAsync<int>("1"); |
| 52 | +int x = page.EvaluateExpressionAsync("1").ToObject<int>(); |
| 53 | +
|
| 54 | +# Changelog |
| 55 | + |
| 56 | + * Bump the version of chromium to 594312. |
| 57 | + * Add failing test for page.select. |
| 58 | + * Fixed windows fetching. |
| 59 | + * Fix description of SecurityDetails class. |
| 60 | + * Add zero width element test. |
| 61 | + * Add missing configure awaits. |
| 62 | + * Fix full page screenshot when defaultViewport is null. |
| 63 | + * Unify response tracking in page.goto and waitForNavigation. |
| 64 | + * Don't wait for Runtime.Evaluate. |
| 65 | + * Browser closing/disconnecting should abort navigations. |
| 66 | + * Expect Network.responseReceived event is never dispatched. |
| 67 | + * Set JPG background to white when omitBackground option is used. |
| 68 | + * Concurrency improvements. |
| 69 | + * Check if frame exists before creating a Request. |
| 70 | + ]]></PackageReleaseNotes> |
| 71 | + <ReleaseVersion>1.9.0</ReleaseVersion> |
40 | 72 | <SynchReleaseVersion>false</SynchReleaseVersion> |
41 | 73 | </PropertyGroup> |
42 | 74 | <PropertyGroup> |
|
0 commit comments