Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit dbddee1

Browse files
committed
Bump to v1.3.4.
1 parent 035105a commit dbddee1

File tree

3 files changed

+51
-29
lines changed

3 files changed

+51
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Platform.js v1.3.3
1+
# Platform.js v1.3.4
22

33
A platform detection library that works on nearly all JavaScript platforms.
44

doc/README.md

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Platform.js <sup>v1.3.3</sup>
1+
# Platform.js <sup>v1.3.4</sup>
22

33
<!-- div class="toc-container" -->
44

@@ -41,7 +41,7 @@
4141
<!-- div -->
4242

4343
<h3 id="platform"><code>platform</code></h3>
44-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L996 "View in source") [&#x24C9;][1]
44+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1038 "View in source") [&#x24C9;][1]
4545

4646
The platform object.
4747

@@ -52,7 +52,7 @@ The platform object.
5252
<!-- div -->
5353

5454
<h3 id="platformdescription"><code>platform.description</code></h3>
55-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1004 "View in source") [&#x24C9;][1]
55+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1046 "View in source") [&#x24C9;][1]
5656

5757
The platform description.
5858

@@ -63,9 +63,13 @@ The platform description.
6363
<!-- div -->
6464

6565
<h3 id="platformlayout"><code>platform.layout</code></h3>
66-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1012 "View in source") [&#x24C9;][1]
66+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1057 "View in source") [&#x24C9;][1]
6767

6868
The name of the browser's layout engine.
69+
<br>
70+
<br>
71+
The list of common layout engines include:<br>
72+
"Blink", "EdgeHTML", "Gecko", "Trident" and "WebKit"
6973

7074
---
7175

@@ -74,9 +78,15 @@ The name of the browser's layout engine.
7478
<!-- div -->
7579

7680
<h3 id="platformmanufacturer"><code>platform.manufacturer</code></h3>
77-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1020 "View in source") [&#x24C9;][1]
81+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1070 "View in source") [&#x24C9;][1]
7882

7983
The name of the product's manufacturer.
84+
<br>
85+
<br>
86+
The list of manufacturers include:<br>
87+
"Apple", "Archos", "Amazon", "Asus", "Barnes & Noble", "BlackBerry",
88+
"Google", "HP", "HTC", "LG", "Microsoft", "Motorola", "Nintendo",
89+
"Nokia", "Samsung" and "Sony"
8090

8191
---
8292

@@ -85,9 +95,19 @@ The name of the product's manufacturer.
8595
<!-- div -->
8696

8797
<h3 id="platformname"><code>platform.name</code></h3>
88-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1028 "View in source") [&#x24C9;][1]
98+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1086 "View in source") [&#x24C9;][1]
8999

90100
The name of the browser/environment.
101+
<br>
102+
<br>
103+
The list of common browser names include:<br>
104+
"Chrome", "Electron", "Firefox", "Firefox for iOS", "IE",
105+
"Microsoft Edge", "PhantomJS", "Safari", "SeaMonkey", "Silk",
106+
"Opera Mini" and "Opera"
107+
<br>
108+
<br>
109+
Mobile versions of some browsers have "Mobile" appended to their name:<br>
110+
eg. "Chrome Mobile", "Firefox Mobile", "IE Mobile" and "Opera Mobile"
91111

92112
---
93113

@@ -96,7 +116,7 @@ The name of the browser/environment.
96116
<!-- div -->
97117

98118
<h3 id="platformos"><code>platform.os</code></h3>
99-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1068 "View in source") [&#x24C9;][1]
119+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1131 "View in source") [&#x24C9;][1]
100120

101121
The name of the operating system.
102122

@@ -107,13 +127,12 @@ The name of the operating system.
107127
<!-- div -->
108128

109129
<h3 id="platformparseuanavigatoruseragent"><code>platform.parse([ua=navigator.userAgent])</code></h3>
110-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L253 "View in source") [&#x24C9;][1]
130+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L253 "View in source") [&#x24C9;][1]
111131

112132
Creates a new platform object.
113133

114134
#### Arguments
115-
1. `[ua=navigator.userAgent]` *(Object|string)*: The user agent string or<br>
116-
<br> context object.
135+
1. `[ua=navigator.userAgent]` *(Object|string)*: The user agent string or context object.
117136

118137
#### Returns
119138
*(Object)*: A platform object.
@@ -125,7 +144,7 @@ Creates a new platform object.
125144
<!-- div -->
126145

127146
<h3 id="platformprerelease"><code>platform.prerelease</code></h3>
128-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1036 "View in source") [&#x24C9;][1]
147+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1094 "View in source") [&#x24C9;][1]
129148

130149
The alpha/beta release indicator.
131150

@@ -136,9 +155,16 @@ The alpha/beta release indicator.
136155
<!-- div -->
137156

138157
<h3 id="platformproduct"><code>platform.product</code></h3>
139-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1044 "View in source") [&#x24C9;][1]
158+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1107 "View in source") [&#x24C9;][1]
140159

141160
The name of the product hosting the browser.
161+
<br>
162+
<br>
163+
The list of common products include:
164+
<br>
165+
<br>
166+
"BlackBerry", "Galaxy S4", "Lumia", "iPad", "iPod", "iPhone", "Kindle",
167+
"Kindle Fire", "Nexus", "Nook", "PlayBook", "TouchPad" and "Transformer"
142168

143169
---
144170

@@ -147,7 +173,7 @@ The name of the product hosting the browser.
147173
<!-- div -->
148174

149175
<h3 id="platformtostring"><code>platform.toString()</code></h3>
150-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L601 "View in source") [&#x24C9;][1]
176+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L610 "View in source") [&#x24C9;][1]
151177

152178
Returns `platform.description` when the platform object is coerced to a string.
153179

@@ -161,7 +187,7 @@ Returns `platform.description` when the platform object is coerced to a string.
161187
<!-- div -->
162188

163189
<h3 id="platformua"><code>platform.ua</code></h3>
164-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1052 "View in source") [&#x24C9;][1]
190+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1115 "View in source") [&#x24C9;][1]
165191

166192
The browser's user agent string.
167193

@@ -172,7 +198,7 @@ The browser's user agent string.
172198
<!-- div -->
173199

174200
<h3 id="platformversion"><code>platform.version</code></h3>
175-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1060 "View in source") [&#x24C9;][1]
201+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1123 "View in source") [&#x24C9;][1]
176202

177203
The browser/environment version.
178204

@@ -189,7 +215,7 @@ The browser/environment version.
189215
<!-- div -->
190216

191217
<h3 id="platformosarchitecture"><code>platform.os.architecture</code></h3>
192-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1076 "View in source") [&#x24C9;][1]
218+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1139 "View in source") [&#x24C9;][1]
193219

194220
The CPU architecture the OS is built for.
195221

@@ -200,18 +226,14 @@ The CPU architecture the OS is built for.
200226
<!-- div -->
201227

202228
<h3 id="platformosfamily"><code>platform.os.family</code></h3>
203-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1089 "View in source") [&#x24C9;][1]
229+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1152 "View in source") [&#x24C9;][1]
204230

205-
The family of the OS.<br>
206-
<br>
207-
<br>
208-
<br>
209-
Common values include:<br>
210-
<br>
211-
"Windows", "Windows Server `2008` R2 / `7`", "Windows Server `2008` / Vista",<br>
231+
The family of the OS.
212232
<br>
213-
"Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE",<br>
214233
<br>
234+
Common values include:<br>
235+
"Windows", "Windows Server `2008` R2 / `7`", "Windows Server `2008` / Vista",
236+
"Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE",
215237
"Android", "iOS" and "Windows Phone"
216238

217239
---
@@ -221,7 +243,7 @@ Common values include:<br>
221243
<!-- div -->
222244

223245
<h3 id="platformostostring"><code>platform.os.toString()</code></h3>
224-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1105 "View in source") [&#x24C9;][1]
246+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1168 "View in source") [&#x24C9;][1]
225247

226248
Returns the OS string.
227249

@@ -235,7 +257,7 @@ Returns the OS string.
235257
<!-- div -->
236258

237259
<h3 id="platformosversion"><code>platform.os.version</code></h3>
238-
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.3/platform.js#L1097 "View in source") [&#x24C9;][1]
260+
[&#x24C8;](https://github.com/bestiejs/platform.js/blob/1.3.4/platform.js#L1160 "View in source") [&#x24C9;][1]
239261

240262
The version of the OS.
241263

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "platform",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "A platform detection library that works on nearly all JavaScript platforms.",
55
"license": "MIT",
66
"main": "platform.js",

0 commit comments

Comments
 (0)