Git Product home page Git Product logo

Comments (16)

etienne-martin avatar etienne-martin commented on May 26, 2024

I found the issue. There's a missing double quote at line 1067 in a fixture file coming from matomo. We'll need to fix it upstream in their repo.

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

matomo-org/device-detector#6162

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

That's great!! Looks like we need to wait for things to get patched upstream.

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

@etienne-martin So how do you propose to fix it on our end?

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

Since, the issue is in oss.yml file, do you suggest manual download, conversion and editing?

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

Yes exactly

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

Ok I managed to pull the latest fixtures in this branch https://github.com/etienne-martin/device-detector-js/tree/3.12.3

You can use my branch to work on the latest version.

There are a couple of tests that needs to be fixed before we can merge that into master.

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

Great! I will check on the tests today.

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

First 2 tests were failing. Currently 1 fixed. 1 remaining.

Annotation 2020-01-25 115636

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

What would you advice for these errors?

Annotation 2020-01-25 133123

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

Great, the other ones might be a little bit tricky to fix. They seem to be related to this change: matomo-org/device-detector@ce932a4#diff-3376e152ac4d378cf0bbf8d569e5213cR691

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

Hmm..So it looks like they have changed the way of detection. 🤔

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

@etienne-martin So do you think we need to change our core?

from device-detector-js.

etienne-martin avatar etienne-martin commented on May 26, 2024

Yeah they are using some kind of getBrowserFamily method that we don't have in the js version.

It's mapping certain browsers to a parent "Browser Family": https://github.com/matomo-org/device-detector/blob/ce932a4c6a0de4587e293c08abafebc7db1e02bd/Parser/Client/Browser.php#L274

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

Hmm. So we need to modify our https://github.com/etienne-martin/device-detector-js/blob/master/src/parsers/client/browser.ts

from device-detector-js.

whimsicaldreamer avatar whimsicaldreamer commented on May 26, 2024

@etienne-martin https://github.com/whimsicaldreamer/device-detector-js/tree/core-update
Trying my luck with it.

Please review the changes being made into the above branch and let me know whether we are going in the correct path.

from device-detector-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.