forked from ua-parser/uap-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
190 lines (164 loc) · 8.6 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
SUPER MINOR REVISION NUMBERS WON'T SHOW UP IN GITHUB BUT IT'LL HELP
ME ORGANIZE WHEN I MADE A SET OF FIXES
UAP-3.4.0
- ADD: device Parsing with brand model and case insensitive testing
UAP-3.3.1
- PSR-4 ready
- Self repository, less useless files
UAP-3.3.0
- Use composer for dependency management
- Introduce namespaces
- Removing legacy library dependencies
- Use PHPUnit for testing
- Make all tests pass, fix all the remaining bugs
- Introduce specific result objects
- Comply with PSR-X coding standards
- Use Travis for CI
- Update README
- Port command line tool to Symfony CLI
- Secure updating: SSL certificate verification, hashing, try to do atomic updates
- Restore fetching YAML file only (without generating JSON)
UAP-2.1.1
- FIX: making sure patch minor is being populated correctly when showing a mismatch
UAP-2.1.0
- ADD: support for custom regexes.json files (via @pravindahal)
- FIX: formerly private vars/functions are now protected (via @pravindahal)
- FIX: command line tool gets 'pretty' option for PHP 5.4 users (via @skyzyx)
- FIX: refactored the regexes.yaml test suite
- FIX: now check to see if allow_url_fopen is set to 'On' before trying to download the YAML file from the command line
- THX: thanks to @pravindahal and @skyzyx for the pull requests
UAP-2.0.1
- FIX: renamed uaParser, osParser, & deviceParser to uaParse, osParse, & deviceParse to address a bug with uaParser being recognized as the contruct function for the overall lib
- FIX: updated the test lib so that device failures are properly formatted
UAP-2.0.0
- ADD: toString() converts the version bits and family into a simple string
- ADD: toVersionString() converts the version bits into a simple string
- ADD: toFullString() combines the UA and OS family and version bits
- ADD: "convert" flag for uaparser-cli.php
- ADD: "pull & save just regexes.yaml" flag for uaparser-cli.php
- FIX: library is now a dynamic class
- FIX: attributes are now nested & populated like the other ua-parser libraries (e.g. $result->family is now $result->ua->family)
- FIX: uaParser(), osParser(), and deviceParser() are now public functions
- FIX: saves regexes.yaml as JSON for better performance
- FIX: removed the __DIR__ "fix"
- FIX: Apache log parsing now returns results when UA or OS families are set to "Other" and the device is listed as a smartphone or generic feature phone
- FIX: all tabs are now spaces
- FIX: a UA is now run against all three parsers
- FIX: renamed $debug var to $log to better reflect what it does
- DEL: is* boolean attributes (e.g. isMobile) have been removed
- DEL: will no longer auto-parse $_SERVER['HTTP_USER_AGENT'] if available
- DEL: tests no longer run against pgts_browser_list.yaml
- THX: thanks to @rjd22 for the dynamic class code/fix
UAP-1.5.0
- ADD: command line interface is now in its own file (via @Synchro)
- ADD: command line utility now supports parsing an Apache log file & recording the results
- ADD: command line utility can now parse a supplied user-agent string and push out a simple list or JSON
- ADD: test suite that uses the ua-parser project's test resources
- FIX: numerous comment & spacing fixes (via @Synchro & @Krinkle)
- FIX: remove PHP4 version of spyc (via @Synchro)
- FIX: remove .svn dirs in spyc (via @lopezdonaque)
- FIX: notes that the PHP 5.2 fix really was for 5.1 (via @Synchro) (knew this, i was lazy)
- FIX: lib now returns an object no matter what. now matches other ua-parser libs (via @Krinkle)
- FIX: checks that $_SERVER attr is set before including it. should be better for command line use.
- FIX: family attr now properly set in an edge case
- FIX: if regexes.yaml picks up bad slashes the PHP lib will account for it (e.g. GoogleTV regex)
- THX: thanks to @Krinkle and @Synchro for the numerous fixes
UAP-1.4.5
- FIX: an embarrassing debug print survived the last edit
- THX: thanks to @memakeit for dropping the bug report
UAP-1.4.4
- FIX: made sure that the regex file is only loaded once if running the library multiple times. performance boost.
- FIX: added support for identifying various game devices as mobile devices
- THX: thanks to @rjd22 for pointing out the perf issue
UAP-1.4.3
- FIX: added support for patch & family attributes to sort of match the other libraries
UAP-1.4.2
- FIX: notice if regexes.yaml is missing parens (e.g. match $1) for device & os names
UAP-1.4.1
- FIX: notice when using UAParser from the command line
UAP-1.4.0
- ADD: silent mode for the UA::get() method
- ADD: nobackup mode for the UA::get() method
- ADD: example of how to do a redirect with ua-parser-php
- The following were changes to regexes.yaml:
---- ADD: support for Google Earth browser
---- ADD: another regex for Firefox Mobile
---- ADD: support for Firefox Alpha builds
---- ADD: support for Sogou Explorer
---- ADD: support for the Raven for Mac browser
---- ADD: support for WebKit Nightly builds (though slightly pointless)
---- FIX: better pattern matching for the Pale Moon browser
UAP-v1.3.2
- FIX: addressed false "tablet" classification for opera mobile & mini on android
- The following were changes to regexes.yaml:
---- ADD: support for Tizen Browser (aka SLP Browser) from Samsung
---- FIX: support for a new look Polaris 8.0 user agent string
---- FIX: modified where the Epiphany Browser check happens
UAP-v1.3.1
- FIX: now doing some sanity cleaning on the user agent strings
- FIX: added a smarter default if the user agent isn't recognized at all
UAP-v1.3.0
- FIX: now points to Tobie's ua-parser project for the latest greatest YAML file
- FIX: YAML file is now standardized as regexes.yaml instead of user_agents_regex.yaml
- FIX: minor NOTICE issues resolved for very select UAs
UAP-v1.2.2
- The following were changes to user_agents_regex.yaml:
---- ADD: support for UC Browser
UAP-v1.2.1
- The following were changes to user_agents_regex.yaml:
---- ADD: support for android 4 user agents that have a dash in them
UAP-v1.2.0
- FIX: should be compatible with PHP 5.2
- FIX: addressed STRICT mode errors
- FIX: addressed NOTICE for a missing variable
- FIX: if isTablet is set to true then isMobile is set to false (mobile to me means phone)
- THX: Thanks to Mike Bond of WVU Libraries for pointing out the 5.2 incompatibility
UAP-v1.1.0
- FIX: a number of fixes from bryan shelton
- The following were changes to user_agents_regex.yaml:
---- ADD: support for Chrome Mobile
UAP-v1.0.0
- just because i don't expect to update this anytime soon and ppl report it's working
UAP-v0.3.1
- FIX: swapped nil for null in parse()
- FIX: smarter/saner defaults
- FIX: now using isset() for family_replacement
- THX: thanks to bryan shelton for these fixes
UAP-v0.3.0
- ADD: can now supply a specific UA to be checked
- ADD: if the UA contains 'tablet' isTablet is marked true
- ADD: for certain mobile OSs they report a desktop browser. marking them mobile now.
- FIX: tablet listing should now be better
- FIX: the list of mobile browsers was updated
- FIX: made sure that certain checks won't fail as "false" if a version number was a 0
- FIX: for the device check, if it returns spider as a result it no longer marks it as mobile
- FIX: added more mobile browsers to that specific check
- The following were changes to user_agents_regex.yaml:
---- ADD: symphony, minimo, teleca, semc, up.browser, bunjaloo, jasmine, & brew browsers supported
---- ADD: windows mobile 6.5 os support
---- ADD: amoi, asus, bird, dell, docomo, huawei, i-mate, kyocera, lenovo, lg, microsoft kind,
motorola, philips, samsung, softbank, & sony ericsson device checks
---- FIX: mobile firefox, opera mobile & mini, obigo, polaris, nokiabrowser, ie mobile,
android, & mobile safari browser checks
---- FIX: iOS support
---- FIX: htc, android, palm/hp, kindle, ios, generic feature phones & spider device checks
UAP-v0.2.0
- ADD: added isMobile support
- ADD: added isTablet support
- ADD: added isComputer support
- ADD: added isSpider support
UAP-v0.1.0
- The following were changes to user_agents_regex.yaml:
---- expanded support for Symbia & Nokia Devices,
---- cleaned up some slashies,
---- added Mobile Safari as the family replacement for iOS devices,
---- better support for longer HTC device names
---- added feature phones to the device check
---- added generic smartphones to the device check
---- added AvantGo to the ua check
---- tweaked a lot of the nokia checks
---- added kindle support to the device section
---- added a generic catch for android devices.
---- added support for blackberry devices
---- changed the blackberry family to 'blackberry webkit' when it's a webkit browser