Skip to content

Commit 1bd4f77

Browse files
committed
docs: update minimum browser support for compiled outputs
1 parent 1accdbb commit 1bd4f77

5 files changed

Lines changed: 48 additions & 20 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"release:test": "jest && yarn lint && yarn docs:release && yarn build",
3030
"release:commit": "git commit -am \"chore(release): update documentation\"",
3131
"release:lerna": "lerna publish --preid=alpha",
32-
"browserlist": "npx browserslist \"last 2 years, not < 0.05%\"",
32+
"browserslist": "browserslist \"last 2 years, not < 0.05%\"",
3333
"size": "lerna exec size-limit"
3434
},
3535
"devDependencies": {
@@ -40,6 +40,7 @@
4040
"axios": "~0.21.0",
4141
"axios-mock-adapter": "~1.19.0",
4242
"babel-jest": "~26.6.0",
43+
"browserslist": "~4.14.0",
4344
"conventional-changelog-angular-all-2": "~5.0.1",
4445
"cross-env": "~7.0.0",
4546
"documentation": "~13.1.0",

packages/kitsu-core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<p align=center><a href=https://github.com/wopian/kitsu/blob/master/packages/kitsu-core/MIGRATING.md>Migration guide</a> for v10 & previous major releases</p>
2626

27-
#
27+
#
2828

2929
## Features
3030

@@ -38,7 +38,7 @@
3838

3939
| Package | Package<br> Size\* | ESM Size† | Node | Chrome | Firefox | Safari | Edge |
4040
| -----------: | :----------------: | :-------: | :--: | :----: | :-----: | :----: | :--: |
41-
| `kitsu-core` | ≤ 1.5 kb | ≤ 1.3 KB | 12+ | 69+ | 68+ | 12+ | 18+ |
41+
| `kitsu-core` | ≤ 1.5 kb | ≤ 1.4 KB | 12+ | 72+ | 78+ | 12.1+ | 86+ |
4242

4343
\* Minified with brotli
4444
† EcmaScript Modules package size\*
@@ -267,7 +267,7 @@ Filters includes for the specific relationship requested
267267
#### Parameters
268268

269269
- `included` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** The response included object
270-
- `relationship` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
270+
- `relationship` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
271271
- `relationship.id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The relationship ID
272272
- `relationship.type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The relationship type
273273

packages/kitsu/MIGRATING.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
## Migrating to `10.0.0`
44

5+
### Exports
6+
7+
The compiled output of `kitsu` has been changed from `lib` to `dist`.
8+
9+
```js
10+
// Legacy behaviour, any of:
11+
import Kitsu from 'kitsu'
12+
import Kitsu from 'kitsu/lib/index'
13+
14+
// New behaviour, any of:
15+
import Kitsu from 'kitsu'
16+
import Kitsu from 'kitsu/index' // Node 12+
17+
import Kitsu from 'kitsu/dist/index'
18+
```
19+
520
### Parameter Changes
621

722
1. JSON:API query parameters can be set for `PATCH`, `POST` and `DELETE` requests.
@@ -189,20 +204,6 @@ data: {
189204
```
190205

191206

192-
### Exports
193-
194-
The compiled output of `kitsu` has been changed from `lib` to `dist`.
195-
196-
```js
197-
// Legacy behaviour, any of:
198-
import Kitsu from 'kitsu'
199-
import Kitsu from 'kitsu/lib/index'
200-
201-
// New behaviour, any of:
202-
import Kitsu from 'kitsu'
203-
import Kitsu from 'kitsu/index' // Node 12+
204-
import Kitsu from 'kitsu/dist/index'
205-
```
206207
## Migrating to `9.0.0`
207208

208209
### Link objects

packages/kitsu/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<p align=center><a href=https://github.com/wopian/kitsu/blob/master/packages/kitsu/MIGRATING.md>Migration guide</a> for v10 & previous major releases</p>
2626

27-
#
27+
#
2828

2929
## Features
3030

@@ -37,7 +37,7 @@
3737

3838
| Package | Package<br> Size\* | ESM Size† | Node | Chrome | Firefox | Safari | Edge |
3939
| ------: | :----------------: | :-------: | :--: | :----: | :-----: | :----: | :--: |
40-
| `kitsu` | ≤ 8.6 kb | ≤ 8.4 KB | 12+ | 69+ | 68+ | 12+ | 18+ |
40+
| `kitsu` | ≤ 8.7 kb | ≤ 8.6 KB | 12+ | 72+ | 78+ | 12.1+ | 86+ |
4141

4242
\* Including all dependencies & minified with brotli
4343
† EcmaScript Modules package size\*

yarn.lock

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3332,6 +3332,17 @@ browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.15.0:
33323332
escalade "^3.1.1"
33333333
node-releases "^1.1.67"
33343334

3335+
browserslist@~4.14.0:
3336+
version "4.14.7"
3337+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.14.7.tgz#c071c1b3622c1c2e790799a37bb09473a4351cb6"
3338+
integrity sha512-BSVRLCeG3Xt/j/1cCGj1019Wbty0H+Yvu2AOuZSuoaUWn3RatbL33Cxk+Q4jRMRAbOm0p7SLravLjpnT6s0vzQ==
3339+
dependencies:
3340+
caniuse-lite "^1.0.30001157"
3341+
colorette "^1.2.1"
3342+
electron-to-chromium "^1.3.591"
3343+
escalade "^3.1.1"
3344+
node-releases "^1.1.66"
3345+
33353346
bser@2.1.1:
33363347
version "2.1.1"
33373348
resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"
@@ -3550,6 +3561,11 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001165:
35503561
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001171.tgz#3291e11e02699ad0a29e69b8d407666fc843eba7"
35513562
integrity sha512-5Alrh8TTYPG9IH4UkRqEBZoEToWRLvPbSQokvzSz0lii8/FOWKG4keO1HoYfPWs8IF/NH/dyNPg1cmJGvV3Zlg==
35523563

3564+
caniuse-lite@^1.0.30001157:
3565+
version "1.0.30001173"
3566+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001173.tgz#3c47bbe3cd6d7a9eda7f50ac016d158005569f56"
3567+
integrity sha512-R3aqmjrICdGCTAnSXtNyvWYMK3YtV5jwudbq0T7nN9k4kmE4CBuwPqyJ+KBzepSTh0huivV2gLbSMEzTTmfeYw==
3568+
35533569
capture-exit@^2.0.0:
35543570
version "2.0.0"
35553571
resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4"
@@ -4985,6 +5001,11 @@ ejs@^2.6.1:
49855001
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba"
49865002
integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==
49875003

5004+
electron-to-chromium@^1.3.591:
5005+
version "1.3.634"
5006+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.634.tgz#82ea400f520f739c4f6ff00c1f7524827a917d25"
5007+
integrity sha512-QPrWNYeE/A0xRvl/QP3E0nkaEvYUvH3gM04ZWYtIa6QlSpEetRlRI1xvQ7hiMIySHHEV+mwDSX8Kj4YZY6ZQAw==
5008+
49885009
electron-to-chromium@^1.3.621:
49895010
version "1.3.633"
49905011
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.633.tgz#16dd5aec9de03894e8d14a1db4cda8a369b9b7fe"
@@ -8615,6 +8636,11 @@ node-notifier@^8.0.0:
86158636
uuid "^8.3.0"
86168637
which "^2.0.2"
86178638

8639+
node-releases@^1.1.66:
8640+
version "1.1.69"
8641+
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.69.tgz#3149dbde53b781610cd8b486d62d86e26c3725f6"
8642+
integrity sha512-DGIjo79VDEyAnRlfSqYTsy+yoHd2IOjJiKUozD2MV2D85Vso6Bug56mb9tT/fY5Urt0iqk01H7x+llAruDR2zA==
8643+
86188644
node-releases@^1.1.67:
86198645
version "1.1.67"
86208646
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.67.tgz#28ebfcccd0baa6aad8e8d4d8fe4cbc49ae239c12"

0 commit comments

Comments
 (0)