@simbo/browserslist-config 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE.md +20 -0
- package/README.md +83 -2
- package/browserslist-config.json +1 -0
- package/package.json +55 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @simbo/browserslist-config
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 94c9e9a: Document how to update the Browserslist data and list the resolved
|
|
8
|
+
browsers.
|
|
9
|
+
|
|
10
|
+
## 1.0.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- ccf5e65: Add package `@simbo/browserslist-config` with a shared Browserslist
|
|
15
|
+
configuration.
|
|
16
|
+
|
|
17
|
+
- The configuration is the query `baseline widely available with downstream`.
|
|
18
|
+
- Projects extend it with `extends @simbo/browserslist-config` and may widen
|
|
19
|
+
or narrow it with additional queries.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2026 Simon Lepel <simbo@simbo.de> (https://simbo.de)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,84 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Simbo's Browserslist Configuration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
📦
|
|
4
|
+
[**`@simbo/browserslist-config`**](https://npmjs.com/package/@simbo/browserslist-config)
|
|
5
|
+
|
|
6
|
+
A shared [Browserslist](https://github.com/browserslist/browserslist)
|
|
7
|
+
configuration.
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
Requires Node.js `^24.15.0 || >=26.0.0`.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install `@simbo/browserslist-config` from the npm registry:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm i -D @simbo/browserslist-config
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Extend the shared configuration in your `package.json`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"browserslist": ["extends @simbo/browserslist-config"]
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Tools that read Browserslist, such as Autoprefixer, Babel, Lightning CSS or Vite
|
|
32
|
+
plugins, pick up the configuration from there.
|
|
33
|
+
|
|
34
|
+
## Queries
|
|
35
|
+
|
|
36
|
+
The configuration consists of a single query:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
baseline widely available with downstream
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[Baseline Widely Available](https://web.dev/baseline) covers the browser
|
|
43
|
+
versions that have supported the web platform features for at least 30 months.
|
|
44
|
+
`with downstream` adds browsers that are built on the same engines, such as
|
|
45
|
+
Samsung Internet, Opera or Chromium-based Android browsers.
|
|
46
|
+
|
|
47
|
+
The lower bound moves with updates of the Browserslist data: as features become
|
|
48
|
+
widely available, older browser versions drop out of the list. Keep
|
|
49
|
+
`caniuse-lite` and `baseline-browser-mapping` up to date to get the current
|
|
50
|
+
list, for example with:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npx update-browserslist-db@latest
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
To see which browsers the configuration currently resolves to in your project:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx browserslist
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Deviating From the Shared Configuration
|
|
63
|
+
|
|
64
|
+
Additional queries widen the list, and queries starting with `not` narrow it:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"browserslist": [
|
|
69
|
+
"extends @simbo/browserslist-config",
|
|
70
|
+
"safari >= 15",
|
|
71
|
+
"not op_mini all"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## TypeScript Target
|
|
77
|
+
|
|
78
|
+
Browserslist does not affect TypeScript. The TypeScript `target` of
|
|
79
|
+
`@simbo/tsconfig/browser` is set independently. A project that supports older
|
|
80
|
+
browsers than the shared configuration sets a lower `target` itself.
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
[MIT © Simon Lepel](https://simbo.mit-license.org/2026/)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["baseline widely available with downstream"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simbo/browserslist-config",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Simbo's shared Browserslist configuration.",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"browserslist",
|
|
7
|
+
"browserslist-config",
|
|
8
|
+
"browsers",
|
|
9
|
+
"baseline",
|
|
10
|
+
"config",
|
|
11
|
+
"configuration",
|
|
12
|
+
"shared",
|
|
13
|
+
"preset"
|
|
14
|
+
],
|
|
15
|
+
"author": "Simon Lepel <simbo@simbo.de> (https://simbo.de)",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"homepage": "https://github.com/simbo/packages/tree/main/packages/browserslist-config",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/simbo/packages.git",
|
|
21
|
+
"directory": "packages/browserslist-config"
|
|
22
|
+
},
|
|
23
|
+
"bugs": "https://github.com/simbo/packages/issues",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": "^24.15.0 || >=26.0.0"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./browserslist-config.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"CHANGELOG.md",
|
|
33
|
+
"LICENSE.md",
|
|
34
|
+
"README.md",
|
|
35
|
+
"browserslist-config.json"
|
|
36
|
+
],
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@simbo/tsconfig": "4.0.0",
|
|
39
|
+
"@types/node": "^24.19.2",
|
|
40
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
41
|
+
"@vitest/ui": "^5.1.1",
|
|
42
|
+
"browserslist": "^4.29.6",
|
|
43
|
+
"typescript": "^6.0.3",
|
|
44
|
+
"vitest": "^5.1.1"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"check": "pnpm run check:types",
|
|
48
|
+
"check:pack": "node ../../scripts/check-pack.js",
|
|
49
|
+
"check:types": "tsc --noEmit",
|
|
50
|
+
"clean": "pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
|
|
51
|
+
"clean:node_modules": "rm -rf node_modules",
|
|
52
|
+
"clean:turbo": "rm -rf .turbo",
|
|
53
|
+
"clean:coverage": "rm -rf coverage",
|
|
54
|
+
"test": "vitest run --coverage",
|
|
55
|
+
"test:ui": "pnpm run test:watch --ui",
|
|
56
|
+
"test:watch": "vitest dev --coverage"
|
|
57
|
+
}
|
|
6
58
|
}
|