UNPKG

5.84 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
5### [0.5.1](https://github.com/nuxt/http/compare/v0.5.0...v0.5.1) (2020-04-29)
6
7
8### Bug Fixes
9
10* remove leading slash when using prefixUrl ([#96](https://github.com/nuxt/http/issues/96)) ([10fbd67](https://github.com/nuxt/http/commit/10fbd679664c533e8a5fa45afb1f56ac945d8cfa))
11
12## [0.5.0](https://github.com/nuxt/http/compare/v0.4.0...v0.5.0) (2020-04-13)
13
14
15### New Features
16
17- Allow creating new instances with `$http.create(kyOptions)` (#3) (#94) ([docs](https://http.nuxtjs.org/guide/advanced.html#create-new-instance-based-on-defaults))
18- ‍Allow changing baseURL on runtime `$http.setBaseURL(baseURL)‍‍` (#82) (#94)
19
20### Docs
21
22#### Restructure sidebar (#94)
23
24- API > Hooks: https://http.nuxtjs.org/api/#hooks
25- API > HTTP methods: https://http.nuxtjs.org/api/#http-methods
26
27### Types
28
29- fix(types): update types for `HTTPError` to `ky.HTTPError` (#91)
30
31### Chore
32
33- Switch to Github Actions ([6205fdaa](https://github.com/nuxt/http/commit/6205fdaa5e1552797fc8f743952cafc44169716f))
34- Use [tib](https://github.com/nuxt/tib) for testing ([5c693a04](https://github.com/nuxt/http/commit/5c693a04b93dc7bb29f6f63c0e38c3db24c8e5a3))
35
36## [0.4.0](https://github.com/nuxt/http/compare/v0.3.9...v0.4.0) (2020-03-27)
37
38
39### ⚠ BREAKING CHANGES
40
41* **deps:** Require Node.js 10+
42
43### Bug Fixes
44
45* **module:** always set protocol to https when `https: true` is set ([50ef8e0](https://github.com/nuxt/http/commit/50ef8e05f7958a5270fdad7dc0f543f5af5bf9fd))
46
47
48* **deps:** update all non-major dependencies ([#90](https://github.com/nuxt/http/issues/90)) ([2f1411b](https://github.com/nuxt/http/commit/2f1411b64d742fbc8d1372ada5543ebc83629e1a))
49
50### [0.3.9](https://github.com/nuxt/http/compare/v0.3.8...v0.3.9) (2020-01-30)
51
52
53### Features
54
55* enable advanced retry options ([#80](https://github.com/nuxt/http/issues/80)) ([bdae0c0](https://github.com/nuxt/http/commit/bdae0c0aab93e1e402747f949045acea31613aab))
56
57
58### Bug Fixes
59
60* use json serialization for plain array ([#87](https://github.com/nuxt/http/issues/87)) ([febf265](https://github.com/nuxt/http/commit/febf2658dc605dfae8762ce0f147cce192c1c0cb))
61* **module:** read port and host from options/cli before fallback ([bc58738](https://github.com/nuxt/http/commit/bc58738c6b1158bd6e6efd45372da9765b8da577))
62
63### [0.3.8](https://github.com/nuxt/http/compare/v0.3.7...v0.3.8) (2019-11-02)
64
65
66### Features
67
68* add `onRetry` hook ([#79](https://github.com/nuxt/http/issues/79)) ([3d0aa27](https://github.com/nuxt/http/commit/3d0aa27))
69
70### [0.3.7](https://github.com/nuxt/http/compare/v0.3.6...v0.3.7) (2019-11-01)
71
72### [0.3.6](https://github.com/nuxt/http/compare/v0.3.5...v0.3.6) (2019-11-01)
73
74
75### Features
76
77* **types:** provide nuxt 2.9 compatible types ([#78](https://github.com/nuxt/http/issues/78)) ([a6bab0f](https://github.com/nuxt/http/commit/a6bab0f))
78
79### [0.3.5](https://github.com/nuxt/http/compare/v0.3.4...v0.3.5) (2019-09-05)
80
81
82### Bug Fixes
83
84* **types:** fix argument of onError ([#67](https://github.com/nuxt/http/issues/67)) ([be10314](https://github.com/nuxt/http/commit/be10314))
85
86## [0.3.4](https://github.com/nuxt/http/compare/v0.3.3...v0.3.4) (2019-08-12)
87
88
89### Bug Fixes
90
91* **types:** replace `JSONValue import from ky to `unknown` ([#63](https://github.com/nuxt/http/issues/63)) ([aff7a35](https://github.com/nuxt/http/commit/aff7a35))
92
93
94
95## [0.3.3](https://github.com/nuxt/http/compare/v0.3.2...v0.3.3) (2019-07-24)
96
97
98### Bug Fixes
99
100* transpile ky ([#61](https://github.com/nuxt/http/issues/61)) ([2ce08de](https://github.com/nuxt/http/commit/2ce08de))
101
102
103
104## [0.3.2](https://github.com/nuxt/http/compare/v0.3.1...v0.3.2) (2019-06-05)
105
106
107### Bug Fixes
108
109* ignore content-length header ([185dabb](https://github.com/nuxt/http/commit/185dabb))
110
111
112
113## [0.3.1](https://github.com/nuxt/http/compare/v0.3.0...v0.3.1) (2019-05-30)
114
115
116### Bug Fixes
117
118* handle false timeout ([d965efa](https://github.com/nuxt/http/commit/d965efa))
119
120
121
122# [0.3.0](https://github.com/nuxt/http/compare/v0.2.0...v0.3.0) (2019-05-29)
123
124
125### Features
126
127* support setting timeout and disable by default ([#51](https://github.com/nuxt/http/issues/51)) ([53287dd](https://github.com/nuxt/http/commit/53287dd))
128
129
130### Reverts
131
132* revert converting header names to lowercase ([2b0f463](https://github.com/nuxt/http/commit/2b0f463))
133
134
135
136# [0.2.0](https://github.com/nuxt/http/compare/v0.1.2...v0.2.0) (2019-05-22)
137
138
139### Bug Fixes
140
141* lowercase `accept-encoding` header ([#43](https://github.com/nuxt/http/issues/43)) ([454807c](https://github.com/nuxt/http/commit/454807c))
142
143
144### Features
145
146* convert header names to lowercase ([#45](https://github.com/nuxt/http/issues/45)) ([7ad6645](https://github.com/nuxt/http/commit/7ad6645))
147
148
149
150## [0.1.2](https://github.com/nuxt/http/compare/v0.1.1...v0.1.2) (2019-04-28)
151
152
153### Bug Fixes
154
155* **types:** add missing `JSONValue` import ([#28](https://github.com/nuxt/http/issues/28)) ([60e3370](https://github.com/nuxt/http/commit/60e3370))
156
157
158
159## [0.1.1](https://github.com/nuxt/http/compare/v0.1.0...v0.1.1) (2019-04-18)
160
161
162### Bug Fixes
163
164* correctly handle `proxyHeaders: false` ([#17](https://github.com/nuxt/http/issues/17)) ([15274cb](https://github.com/nuxt/http/commit/15274cb))
165
166
167
168# [0.1.0](https://github.com/nuxt/http/compare/v5.4.1...v0.1.0) (2019-04-09)
169
170
171### Bug Fixes
172
173* default retry to 1 ([7bc50f8](https://github.com/nuxt/http/commit/7bc50f8))
174* prefixUrl ([09a5382](https://github.com/nuxt/http/commit/09a5382))
175
176
177### Features
178
179* allow passing body as argument ([57b8a8b](https://github.com/nuxt/http/commit/57b8a8b))
180* http class ([61fb627](https://github.com/nuxt/http/commit/61fb627))
181* migrate to http and ky-universal ([d3e2c08](https://github.com/nuxt/http/commit/d3e2c08))