Skip to content

Commit c7ca10d

Browse files
committed
chore: min
1 parent b87f28a commit c7ca10d

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

.lgtm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
queries:
2+
- exclude: js/conditional-comment

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## [Unreleased][4]
3+
## [1.10.0][4] - 2019-06-10
44

55
### Fixed
66
* Firefox 3.5–7 support in the context of a web worker
@@ -13,14 +13,15 @@
1313
### Added
1414
* TypeScript declaration file
1515
* Flow library definition
16-
* Bower metadata
16+
* Bower manifest
1717
* fetch
1818
* `timeout` callback
1919
* `timeout` option
2020

2121
### Changed
2222
* verb methods accept paths as argument
2323
* the query method appends
24+
* [optimized][103] `index.min.js` parsing
2425
* plain object parameters serialization
2526
* array support
2627
* `undefined` properties get skipped
@@ -99,5 +100,6 @@
99100

100101
[1]: https://github.com/Mouvedia/cb-fetch/compare/b15a26f...d5c09ea
101102
[2]: https://github.com/Mouvedia/cb-fetch/compare/d5c09ea...1.0.0?w=true
102-
[3]: https://github.com/Mouvedia/cb-fetch/releases/tag/1.5.0
103-
[4]: https://github.com/Mouvedia/cb-fetch/compare/1.5.0...HEAD
103+
[3]: https://github.com/Mouvedia/cb-fetch/compare/1.0.0...1.5.0
104+
[4]: https://github.com/Mouvedia/cb-fetch/releases/tag/1.10.0
105+
[103]: https://github.com/nolanlawson/optimize-js

README.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -127,24 +127,21 @@ request()
127127
.done(onSuccessCallback, onErrorCallback);
128128

129129
// passing an object offers options not available otherwise
130-
let json = request({
130+
let abort = request({
131131
url: new URL('http://www.example.com'),
132132
parameters: new URLSearchParams('_csrf=TOKEN'),
133133
mode: 'cors',
134134
credentials: 'include',
135135
responseType: 'json',
136136
headers: { 'Content-Type': 'application/json' }
137-
});
138-
139-
// let's put that base config to good use
140-
let abort = json.get('/segment')
141-
.query({ foo: ['bar', 'qux'] })
142-
.hook('download', e => { /**/ })
143-
.done({
144-
success: onSuccessCallback,
145-
error: onErrorCallback,
146-
abort: onAbortCallback
147-
});
137+
}).get('/segment')
138+
.query({ foo: ['bar', 'qux'] })
139+
.hook('download', e => { /**/ })
140+
.done({
141+
success: onSuccessCallback,
142+
error: onErrorCallback,
143+
abort: onAbortCallback
144+
});
148145

149146
// forcefully aborts the request
150147
abort();
@@ -183,19 +180,19 @@ abort();
183180
#### HTTP verbs
184181

185182
~~~
186-
(Options.url) => Object
183+
(Options.url?) => Object
187184
~~~
188185

189186
#### query
190187

191188
~~~
192-
(Options.parameters) => Object
189+
(Options.parameters?) => Object
193190
~~~
194191

195192
#### send
196193

197194
~~~
198-
(Options.body) => Object
195+
(Options.body?) => Object
199196
~~~
200197

201198
#### hook
@@ -278,10 +275,10 @@ url | String
278275

279276
<sub><sup>¹ fetch only<br/>
280277
² XHR only<br/>
281-
³ except Firefox 34–43<br/>
278+
³ except Gecko 34–43<br/>
282279
⁴ MSXML 3.0 only<br/>
283280
⁵ method override<br/>
284-
⁶ fetch, Firefox 16+, Presto/2.10.232–2.12.423<br/>
281+
⁶ fetch, Gecko 16+, Presto/2.10.232–2.12.423<br/>
285282
⁷ Gecko 1.7β–22</sup></sub>
286283

287284
## Gotchas
@@ -292,7 +289,7 @@ In pre-ES5 environments, the delete method requires the use of the bracket notat
292289

293290
### Gecko
294291

295-
For the browsers powered by Gecko 20 to have the exposed response headers
292+
For the browsers powered by Gecko 1.9.1–20 to have the exposed response headers
296293
populated into the `headers` property, the following conditions must be met:
297294

298295
- `Access-Control-Expose-Headers` response header exposes itself
@@ -309,7 +306,7 @@ populated into the `headers` property, the following conditions must be met:
309306
- same scheme restriction
310307
- the informational and redirection status code classes are considered errors
311308
- the response's status code and status text are not supplied
312-
- same-origin requests _also_ requires the server to respond with an `Access-Control-Allow-Origin` header of either `*`
309+
- same-origin requests _also_ require the server to respond with an `Access-Control-Allow-Origin` header of either `*`
313310
or the exact URL of the requesting document
314311

315312
#### Platform for Privacy Preferences

0 commit comments

Comments
 (0)