|
2 | 2 | <PropertyGroup>
|
3 | 3 | <TargetFramework>netstandard2.0</TargetFramework>
|
4 | 4 | <PackOnBuild>true</PackOnBuild>
|
5 |
| - <PackageVersion>1.0.2</PackageVersion> |
| 5 | + <PackageVersion>1.1.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>
|
|
12 | 12 | <Description>Headless Chrome .NET API</Description>
|
13 | 13 | <PackageId>PuppeteerSharp</PackageId>
|
14 | 14 | <PackageReleaseNotes>
|
15 |
| -1.0.2 |
16 |
| -============== |
17 |
| -* Fix Dispose deadlocks on ASP.NET MVC |
18 |
| -1.0.1 |
19 |
| -============== |
20 |
| -* Fix Chromium downloader on 32bits apps runnning on a x64 platform |
21 |
| -1.0.0 |
22 |
| -============== |
23 |
| -* New Features |
24 |
| - * Request.RespondAsync support. |
25 |
| - * CSS and JS Coverage. |
26 |
| - * Request Interception. |
27 |
| - |
28 |
| -* New APIs |
29 |
| - * Request.RespondAsync |
30 |
| - * Page.Coverage.StartJSCoverageAsync |
31 |
| - * Page.Coverage.StopJSCoverageAsync |
32 |
| - * Page.Coverage.StartCSSCoverageAsync |
33 |
| - * Page.Coverage.StopCSSCoverageAsync |
34 |
| - * Page.ScreenshotDataAsync |
35 |
| - * Page.PdfDataAsync |
36 |
| - * Page.SetRequestInterceptionAsync |
37 |
| - * Page.GoBackAsync |
38 |
| - * Page.GoForwardAsync |
39 |
| - * Page.QueryObjectsAsync |
40 |
| - * ElementHandle.ScreenshotDataAsync |
41 |
| - * ElementHandle.PdfDataAsync |
42 |
| - * Browser.WebSocketEndpoint |
43 |
| - * Browser.Process |
44 |
| - |
45 |
| -* Namespace Changes |
46 |
| - * PuppeteerSharp.ClickOptions PuppeteerSharp.Input.ClickOptions |
47 |
| - * PuppeteerSharp.Key => PuppeteerSharp.Input.Key |
48 |
| - * PuppeteerSharp.Keyboard => PuppeteerSharp.Input.Keyboard |
49 |
| - * PuppeteerSharp.KeyDefinition => PuppeteerSharp.Input.KeyDefinition |
50 |
| - * PuppeteerSharp.KeyDefinitions => PuppeteerSharp.Input.KeyDefinitions |
51 |
| - * PuppeteerSharp.Mouse => PuppeteerSharp.Input.Mouse |
52 |
| - * PuppeteerSharp.MouseButton => PuppeteerSharp.Input.MouseButton |
53 |
| - * PuppeteerSharp.MoveOptions => PuppeteerSharp.Input.MoveOptions |
54 |
| - * PuppeteerSharp.PressOption => PuppeteerSharp.Input.PresspPtions |
55 |
| - * PuppeteerSharp.Touchscreen => PuppeteerSharp.Input.TouchScreen |
56 |
| - * PuppeteerSharp.Clip => PuppeteerSharp.Media.Clip |
57 |
| - * PuppeteerSharp.MarginOptions => PuppeteerSharp.Media.MarginOptions |
58 |
| - * PuppeteerSharp.MediaType => PuppeteerSharp.Media.MediaType |
59 |
| - * PuppeteerSharp.PaperFormat => PuppeteerSharp.Media.PaperFormat |
60 |
| - * PuppeteerSharp.ScreenOrientation => PuppeteerSharp.Media.ScreenOrientation |
61 |
| - * PuppeteerSharp.ScreenOrientationType => PuppeteerSharp.Media.ScreenOrientationType |
62 |
| - * PuppeteerSharp.DeviceDescriptor => PuppeteerSharp.Mobile.DeviceDescriptor |
63 |
| - * PuppeteerSharp.DeviceDescriptors => PuppeteerSharp.Mobile.DeviceDescriptors |
64 |
| - * PuppeteerSharp.DeviceDescriptorName => PuppeteerSharp.Mobile.DeviceDescriptorName |
| 15 | +New Features |
| 16 | + * New Chromium version r536395 |
| 17 | + * Service workers support |
| 18 | + * Cache Support |
| 19 | + * New WaitFor options |
| 20 | + * New BrowserFetcher utility |
| 21 | + * Dump IO implementation |
| 22 | + |
| 23 | +New APIs |
| 24 | + |
| 25 | + * Page.SetCacheEnabledAsync |
| 26 | + * Page.DOMContentLoaded |
| 27 | + * Page.WaitForXPathAsync |
| 28 | + * ResponseData.FromServiceWorker |
| 29 | + * ExecutionContext.Frame |
| 30 | + * Frame.EvaluateExpressionHandleAsync |
| 31 | + * Frame.EvaluateFunctionHandleAsync |
| 32 | + * Frame.WaitForSelectorAsync |
| 33 | + * Frame.WaitForXPathAsync |
| 34 | + * Frame.WaitForSelectorOrXPathAsync |
| 35 | + |
| 36 | +Breaking Changes |
| 37 | + |
| 38 | +Downloader changes |
| 39 | + |
| 40 | +The Downloader class was renamed to BrowserFetcher. BrowserFetcher has the following API: |
| 41 | + |
| 42 | + * DefaultRevision |
| 43 | + * DownloadsFolder |
| 44 | + * DownloadHost |
| 45 | + * Platform |
| 46 | + * DownloadProgressChanged |
| 47 | + * CanDownloadAsync(int revision) |
| 48 | + * LocalRevisions() |
| 49 | + * Remove(int revision) |
| 50 | + * RevisionInfo(int revision) |
| 51 | + * DownloadAsync(int revision) |
| 52 | + * GetExecutablePath(int revision) |
| 53 | + * GetExecutablePath(Platform platform, string folderPath) |
| 54 | + |
| 55 | +If you were using Downloader like this: |
| 56 | + |
| 57 | +await Downloader.CreateDefault().DownloadRevisionAsync(chromiumRevision); |
| 58 | + |
| 59 | +It should be changed to : |
| 60 | + |
| 61 | +await new BrowserFetcher().DownloadAsync(BrowserFetcher.DefaultRevision); |
| 62 | + |
| 63 | + |
| 64 | +Puppeteer.LaunchAsync breaking change |
| 65 | + |
| 66 | +In order to simplify the API, the revision argument was removed from the `LaunchAsync` method. So this piece of code: |
| 67 | + |
| 68 | +Puppeteer.LaunchAsync(launcherOptions, Downloader.DefaultRevision); |
| 69 | + |
| 70 | + |
| 71 | +Should be changed to: |
| 72 | + |
| 73 | +Puppeteer.LaunchAsync(launcherOptions); |
| 74 | + |
| 75 | + |
| 76 | +If you need to launch Puppeteer using another revision you should handle that using the `ExecutablePath` option: |
| 77 | + |
| 78 | +var myRevisionInfo = await new BrowserFetcher().DownloadAsync(myRevision); |
| 79 | +var browser = Puppeteer.LaunchAsync(new LaunchOptions |
| 80 | +{ |
| 81 | + Headless = true, |
| 82 | + ExecutablePath = myRevisionInfo.ExecutablePath |
| 83 | +}); |
65 | 84 | </PackageReleaseNotes>
|
66 |
| - <ReleaseVersion>1.0.2</ReleaseVersion> |
| 85 | + <ReleaseVersion>1.1.0</ReleaseVersion> |
67 | 86 | <SynchReleaseVersion>false</SynchReleaseVersion>
|
68 | 87 | </PropertyGroup>
|
69 | 88 | <PropertyGroup>
|
|
0 commit comments