-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to system.text.json #2713
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
7164166
Some progress
kblok 6976636
Merge branch 'master' into migrate-to-system.text.json
kblok 8bb62ca
More progress
kblok 115bffb
more progress
kblok 7f48edc
More progress
kblok f926b9e
Docs changes
actions-user d428622
Library builds
kblok c7bc834
More progress
kblok 4b40e5a
Solution builds
kblok 9a54fdb
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok 2dcb752
Docs changes
actions-user 7962731
format
kblok 4fe37e7
It seems that the demo runs
kblok 6a378d4
Fix expectation loading
kblok d73a998
Fix accessibility tests
kblok 7a2e4b8
Fix tests using json
kblok 45e689b
Docs changes
actions-user a2b1e36
Fix aria tests and RemoteObject type checks
kblok 4e17a45
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok 011a164
Fix more accessibility steps and chrome version checker
kblok e036455
more json fixes
kblok 4be124a
Fix enum parser
kblok a51a60a
Fix page event test
kblok eb719d6
fix bounding box
kblok a00bbfa
Fix CSS Coverage Test
kblok 6ba4aca
Fix console tests
kblok 1eaa99f
Docs changes
actions-user 52e9cd8
Add enum member to MouseButton
kblok d8093e7
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok 9c44c84
Improve enums
kblok 4411ed3
Fix tracing tests
kblok 8b414c9
Fix JS coverage tests
kblok 6e47663
Fix json tests
kblok 36ca237
Fix SetUserAgentTests
kblok 1848dff
Fix QueryAllTests
kblok 89da6bb
Fix security details
kblok ed51ac8
Fix keyboard tests
kblok abfe4c4
Fix ResponseJsonTests
kblok f41e7ae
Fix ElementHandleScreenshotTests
kblok ba1187a
Some early review
kblok 7aaadad
Internal sealed converters
kblok 52634bb
fix condition
kblok 7213fa0
Make visible to the Nunit project
kblok b70ae25
Fix touch tests
kblok 0173028
Fix JS Coverage tests
kblok 866fce7
Fix screenshot rounding
kblok 8c9b807
Fix evaluate with nulls
kblok 36e0333
Fix evaluation exceptions
kblok aafe340
Fix complex objects test
kblok ba689fd
Fix JS Handle validation
kblok 93f23ae
Fix complex object tests
kblok b06b83f
Remove Mock verbosity
kblok 4f38819
Fix wait for frame
kblok 8b51b63
Fix console logs
kblok 6b8d6e1
Fix PageWorkerTests
kblok fc1cffd
Convert context id in Firefox
kblok 9d42986
Flag beta version
kblok 9e84aef
Restore some json config
kblok 16fc6f2
undo a change
kblok 68bb704
We don't need this
kblok 4c6b0d7
AOT Support!
kblok 77e39db
Remove extra types
kblok f7803f7
Small .NET framework test
kblok 247063d
Test AOT
kblok aef54b3
AOT only on net8.0
kblok ff5bc1e
.NET Framework does not like generic attributes
kblok c4a9dc8
remove remaining newtonsoft
kblok 8ba4523
remove unused imports
kblok 5cf6258
Docs changes
actions-user 551d5dc
some styles
kblok f83fba1
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok b81ca22
internal sealed
kblok 2fb6280
Include System.Text.Json only for net standard
kblok f38e5ea
remove extra constructor
kblok 763de7d
Merge remote-tracking branch 'origin/master' into migrate-to-system.t…
kblok b8f777a
Update lib/PuppeteerSharp/Helpers/Json/AnyTypeToStringConverter.cs
kblok 79512f4
cr
kblok 8cddf3d
cr
kblok d843362
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok 3d013ac
Way too generic serializing attribute
kblok 1d4ec92
Update lib/PuppeteerSharp.Nunit/PuppeteerTestAttribute.cs
kblok 28c19b9
Improve serialization
kblok 93a390c
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok df49cba
Add more types
kblok c739f74
rollback AOT by default
kblok 0d94b1b
AOT tests
kblok 94d49de
Docs changes
actions-user 97d8700
beta2
kblok 98d2cfd
Revert "AOT tests"
kblok 0e2e642
You can't AOT a test
kblok 356bfd3
Docs changes
actions-user 147b62d
Add AOT demo
kblok 320b3ef
Merge branch 'migrate-to-system.text.json' of https://github.com/hard…
kblok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
8 changes: 5 additions & 3 deletions
8
demos/PuppeteerSharpPdfDemo/PuppeteerSharpPdfDemo-Local.csproj
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
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
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace PuppeteerSharp.DevicesFetcher | ||
{ | ||
public class Device | ||
{ | ||
[JsonProperty("userAgent")] | ||
[JsonPropertyName("userAgent")] | ||
public string UserAgent { get; set; } | ||
[JsonProperty("name")] | ||
[JsonPropertyName("name")] | ||
public string Name { get; set; } | ||
[JsonProperty("viewport")] | ||
[JsonPropertyName("viewport")] | ||
public ViewPort Viewport { get; set; } | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace PuppeteerSharp.DevicesFetcher | ||
{ | ||
public class ViewPort | ||
{ | ||
[JsonProperty("width")] | ||
[JsonPropertyName("width")] | ||
public int Width { get; set; } | ||
[JsonProperty("height")] | ||
[JsonPropertyName("height")] | ||
public int Height { get; set; } | ||
|
||
[JsonProperty("deviceScaleFactor")] | ||
[JsonPropertyName("deviceScaleFactor")] | ||
public double DeviceScaleFactor { get; set; } | ||
|
||
[JsonProperty("isMobile")] | ||
[JsonPropertyName("isMobile")] | ||
public bool IsMobile { get; set; } | ||
[JsonProperty("hasTouch")] | ||
[JsonPropertyName("hasTouch")] | ||
public bool HasTouch { get; set; } | ||
[JsonProperty("isLandscape")] | ||
[JsonPropertyName("isLandscape")] | ||
public bool IsLandscape { get; set; } | ||
} | ||
} |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to exclude CA1865 because if generates invalid code on netstandard2.0