uap-ref-impl
                                
                                 uap-ref-impl copied to clipboard
                                
                                    uap-ref-impl copied to clipboard
                            
                            
                            
                        is it npm ua-parser?
is this the source of npm's ua-parser package? https://www.npmjs.com/package/ua-parser
and why is the version https://github.com/ua-parser/uap-ref-impl/blob/master/package.json#L5 is lower then https://github.com/tobie/ua-parser/blob/master/package.json#L5?
I agree, since the split of tobie/ua-parser to the uaparser project space, things became rather confusing for JavaScript users.
From what I understand:
- ua-parser/uap-core now wraps the up-to-date regexes.yaml, which contains the core definitions, shared by all language implementations.
- tobie/ua-parser is the legacy repository, which holds its own outdated regexes.yaml. Apparently, this is what is currently published as ua-parser on npm.
- ua-parser/uap-ref-impl is supposed to be the official JavaScript reference implementation, as stated here. It sounds like a replacement for the deprecated tobie/ua-parser, but it is not what happened yet (no documentation, no tests, low usage on npm, ...).
Any clarification is welcomed about this :smiley:.
I'm particularly interested on how JavaScript users are supposed to work with the up-to-date regexes.yaml now.
imo "JavaScript reference implementation" means something that is only for reference purposes, not for production use.
:+1: this is rather confusing. There's now even a third npm package: https://www.npmjs.com/package/node-uap
I will end by using the useragent package, which is widely used, and internally fetches the up-to-date regexes.yaml from ua-parser/uap-core.
so confusing, took me like 5 minutes to find this cc @tobie
Unfortunately, I don't really have the time to fix things atm. Maybe later this year?
Hi. Is there any update on this issue?
Unfortunately no. Would love to clean this mess up if someone was willing to sponsor the work. Can't afford the time away from client work otherwise. :(
@josip as a node-uap packager, I would love to see the ua-parser/uap-core package published to npm registry. That way I could be using ua-parser/uap-ref-impl directly (and contributing to it instead of rolling my wrap-up)
Spent time trying to figure out this as well 😄 very confusing...
In the end I decided to go with useragent, it works great!