baseline-browser-mapping 2.0.0 → 2.1.0
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/CONTRIBUTING.md +21 -0
- package/README.md +3 -5
- package/package.json +9 -9
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Contributing to `baseline-browser-mapping`
|
|
2
|
+
|
|
3
|
+
## Bugs
|
|
4
|
+
|
|
5
|
+
If you find a functional bug in `baseline-browser-mapping`, please create an issue in this repository. Any detail you can include, including as console errors, expected and actual output, is welcome. If you've already figured out how to solve the issue, please create a PR.
|
|
6
|
+
|
|
7
|
+
## Downstream browser data accuracy and completeness
|
|
8
|
+
|
|
9
|
+
The data for [Chromium downstream browsers](/README.md#limitations) not included in `@mdn/browser-compat-data` is provided on a best effort basis in [`src/data/downstream-browsers.json`](src/data/downstream-browsers.json). If you have an accurate source for the Chromium versions implemented by the browsers already in this module (UC Mobile, QQ Mobile, Yandex Browser), or if you have data for a browser not included in this module, we welcome issues or PRs to discuss including that data.
|
|
10
|
+
|
|
11
|
+
## Working with `baseline-browser-mapping` locally
|
|
12
|
+
|
|
13
|
+
To work with `baseline-browser-mapping` locally, clone this repository and install its dependencies:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone https://github.com/web-platform-dx/baseline-browser-mapping
|
|
17
|
+
cd baseline-browser-mapping
|
|
18
|
+
npm install
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
If you make changes to the code, make sure to run `nmp run prepare` before you test your changes from another package.
|
package/README.md
CHANGED
|
@@ -112,8 +112,7 @@ Returns the following versions:
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
> [!NOTE]
|
|
115
|
-
> The minimum version of each browser is not necessarily the final version released in that calendar year. In the above example, Firefox 84 was the final version released in 2020; however Firefox 83 supported all of the features that were interoperable at the end of 2020.
|
|
116
|
-
|
|
115
|
+
> The minimum version of each browser is not necessarily the final version released in that calendar year. In the above example, Firefox 84 was the final version released in 2020; however Firefox 83 supported all of the features that were interoperable at the end of 2020.
|
|
117
116
|
> [!WARNING]
|
|
118
117
|
> You cannot use `targetYear` and `widelyAavailableDate` together. Please only use one of these options at a time.
|
|
119
118
|
|
|
@@ -200,7 +199,6 @@ This data is updated on a daily basis using a [script](https://github.com/web-pl
|
|
|
200
199
|
> [!NOTE]
|
|
201
200
|
> All the non-core browsers currently included implement Chromium. Their inclusion in any of the above methods is based on the Baseline feature set supported by the Chromium version they implement, not their release date.
|
|
202
201
|
|
|
203
|
-
##
|
|
202
|
+
## Contributing
|
|
204
203
|
|
|
205
|
-
`baseline-browser-mapping` is part of the W3C WebDX Community Group's web-features project.
|
|
206
|
-
Go to [web-platform-dx/web-features](https://github.com/web-platform-dx/web-features/) for more information on contributing or getting help.
|
|
204
|
+
`baseline-browser-mapping` is part of the W3C WebDX Community Group's web-features project. To learn more about contributing to this module, see [CONTRIBUTING](/CONTRIBUTING.md).
|
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baseline-browser-mapping",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A library for obtaining browser versions with their maximum supported Baseline feature set and Widely Available status.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
|
-
"dist",
|
|
9
|
+
"dist/*",
|
|
10
10
|
"LICENSE.txt",
|
|
11
|
-
"README.md"
|
|
11
|
+
"README.md",
|
|
12
|
+
"CONTRIBUTING.md"
|
|
12
13
|
],
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
14
15
|
"type": "module",
|
|
15
16
|
"scripts": {
|
|
16
17
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
|
-
"prepare": "rm -rf dist; prettier . --write; tsc"
|
|
18
|
+
"prepare": "rm -rf dist; prettier . --write; tsc",
|
|
19
|
+
"refresh-downstream": "npx tsx scripts/refresh-downstream.ts"
|
|
18
20
|
},
|
|
19
21
|
"license": "Apache-2.0",
|
|
20
22
|
"dependencies": {
|
|
@@ -23,10 +25,8 @@
|
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
27
|
"@types/node": "^22.13.5",
|
|
26
|
-
"typescript": "^5.7.2"
|
|
28
|
+
"typescript": "^5.7.2",
|
|
29
|
+
"prettier": "^3.5.3"
|
|
27
30
|
},
|
|
28
|
-
"repository":
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/tonypconway/web-features/tree/main/packages/baseline-browser-mapping"
|
|
31
|
-
}
|
|
31
|
+
"repository": "web-platform-dx/baseline-browser-mapping"
|
|
32
32
|
}
|