-
Notifications
You must be signed in to change notification settings - Fork 70
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
Feature/2534 update apple platform versions #2535
Feature/2534 update apple platform versions #2535
Conversation
updating from browsecap
Revert "updating from browsecap"
Revert "Revert "updating from browsecap""
- Added 'OSX_dynamic' and 'OSX_10_16' for Mac OS - Added 'ipadOS_15_0' / 'ipadOS_15_2' - Added 'iOS_A_15_0' / 'iOS_A_15_2' - Added platform to the browsers that it runs on, also including the "generic" platforms to have better coverage for future versions (when the useragent remains the same)
- Fix unit tests
- Fix unit tests
- Fix firefox-53-on
Also, can you help determine which unit test if failing? Could it be the "dynamic" platforms that i added to the browser files? |
resources/user-agents/browsers/mobile-safari/mobile-safari-generic.json
Outdated
Show resolved
Hide resolved
- Code review comments
I fixed the comments, but i think that won't help solve the unit test issue. |
Thanks for approving @mimmi20, but since the unit tests still fail i don't think we should merge. |
"dynamic" platforms only work, if the platform version matches the browser version. |
The Build is failing since May. Idont think your changes caused this. |
- Attempt to fix unit test by reducing expectation to 1
I will try to fix the unit tests first, so we can actually see what my changes did to existing functionality. |
- Attempt to fix unit test by reducing expectation to 1
- Attempt to fix unit test by reducing expectation to 1
- Attempt to fix unit test by reverting to any
- Update status badge for CI integration
- Revert dynamic platforms, as these don't work
- Revert dynamic
- Add safari 15 as that's included with Mac OS X 15
- Updated unit tests
- Allow opera on newer mac os x
- Fix unit tests - Edge using different version numbers from 75
- Fix unit tests
- Fix unit tests
- Fix unit tests
resources/user-agents/browsers/mobile-safari/mobile-safari-15-0.json
Outdated
Show resolved
Hide resolved
resources/user-agents/browsers/mobile-safari/mobile-safari-14-0.json
Outdated
Show resolved
Hide resolved
- Code review changes
@mimmi20 I managed to get the unit tests running again, by reverting a change in https://github.com/browscap/browscap/pull/2535/files#diff-cebc14b7503943d2278cbaf4fe86c60f57707b619511f54041399054709dd28d. Now i had to fix few other unit tests that were added already, but didn't succeed.
I also added Safari 15 specifically, as that is shipped with MacOS Monterey. @mimmi20 i processed your latest comments. Can you re-review and merge if you think it's ok now? |
- Update unit test
- Updated README.md
Codecov Report
@@ Coverage Diff @@
## 6.0.x #2535 +/- ##
=============================================
- Coverage 77.40% 51.02% -26.38%
Complexity 892 892
=============================================
Files 65 1815 +1750
Lines 3124 67472 +64348
Branches 0 30611 +30611
=============================================
+ Hits 2418 34428 +32010
- Misses 706 33044 +32338
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@mimmi20 can you merge and release a new browscap version if you're ok with the changes? |
@paulrutter I may be able to merge, but not to release. |
Yep, thank you @paulrutter - appreciate the effort and fixing up those tests 🤘 |
@asgrim do we need to trigger something for http://browscap.org/ as well? |
Yes, waiting for Dependabot @mimmi20 FYI the release procedure is at https://github.com/browscap/browscap/wiki/Public-release-procedure :) I believe you should be able to do most of it now |
@paulrutter looks like it is up now 👍 |
Yes, great! |
is incorrectly detected, as does not match. Changing |
Hmm i wasn't aware of safari 15.1 was already released. We might add that as well. |
Created #2536 @willyaranda |
#2534 Update Apple platform versions
@asgrim @mimmi20
I did an attempt to add the recent Apple platform versions to browscap.
Also added a "dynamic" OSX item in platforms.json
I still don't exactly understand why those "dynamic" platforms are not added to all browsers, since that would help recognizing future versions which are not specified exactly in "platforms.json". I did that now for the Apple related platforms, but not sure if that's right. Can you help me on this logic? Maybe i'm misunderstanding and those generic ones shouldn't be added?