@workleap/browserslist-config 2.0.0 → 2.0.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @workleap/browserslist-config
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#230](https://github.com/gsoft-inc/wl-web-configs/pull/230) [`0a4279c`](https://github.com/gsoft-inc/wl-web-configs/commit/0a4279c40b7c2ea76c7e1884a8e2fd744ca9b7c1) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Packages now includes the source codes and sourcemap.
8
+
9
+ ## 2.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#179](https://github.com/gsoft-inc/wl-web-configs/pull/179) [`61d3721`](https://github.com/gsoft-inc/wl-web-configs/commit/61d37216198083ba78cd4b1480e38c8d772a6119) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.
14
+
3
15
  ## 2.0.0
4
16
 
5
17
  ### Major Changes
package/README.md CHANGED
@@ -11,14 +11,6 @@ View the [user's documentation](https://gsoft-inc.github.io/wl-web-configs/).
11
11
 
12
12
  View the [contributor's documentation](../../CONTRIBUTING.md).
13
13
 
14
- ### Notes
15
-
16
- #### CJS support
17
-
18
- To support CJS projects, this package is build for ESM and CJS formats. To support CJS, `type: "module"` has been temporary removed from the `package.json` file.
19
-
20
- Once browserslist and all third parties using browserslist supports ESM, CJS support can be removed.
21
-
22
14
  ## License
23
15
 
24
16
  Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/workleap-license/blob/master/LICENSE.
package/dist/index.js CHANGED
@@ -1,22 +1,9 @@
1
- 'use strict';
2
-
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __commonJS = (cb, mod) => function __require() {
5
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6
- };
7
-
8
- // src/index.ts
9
- var require_src = __commonJS({
10
- "src/index.ts"(exports, module) {
11
- var config = [
12
- "last 2 versions",
13
- "> 0.2%",
14
- "Firefox ESR",
15
- "not dead"
16
- ];
17
- module.exports = config;
18
- }
19
- });
20
- var index = require_src();
21
-
22
- module.exports = index;
1
+ "use strict";
2
+ const config = [
3
+ "last 2 versions",
4
+ "> 0.2%",
5
+ "Firefox ESR",
6
+ "not dead"
7
+ ];
8
+ module.exports = config;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,GAAa;IACrB,iBAAiB;IACjB,QAAQ;IACR,aAAa;IACb,UAAU;CACb,CAAC;AAKF,iBAAS,MAAM,CAAC"}
package/package.json CHANGED
@@ -2,41 +2,40 @@
2
2
  "name": "@workleap/browserslist-config",
3
3
  "author": "Workleap",
4
4
  "description": "Workleap recommended Browserslist configuration.",
5
- "version": "2.0.0",
5
+ "version": "2.0.2",
6
6
  "license": "Apache-2.0",
7
- "keywords": [
8
- "workleap",
9
- "browserslist"
10
- ],
11
7
  "repository": {
12
8
  "type": "git",
13
9
  "url": "git+https://github.com/gsoft-inc/wl-web-configs.git",
14
10
  "directory": "packages/browserslist-config"
15
11
  },
12
+ "publishConfig": {
13
+ "access": "public",
14
+ "provenance": true
15
+ },
16
16
  "exports": {
17
17
  ".": {
18
18
  "require": "./dist/index.js",
19
- "import": "./dist/index.mjs",
20
- "types": "./dist/index.d.ts",
21
- "default": "./dist/index.js"
19
+ "import": "./dist/index.js"
22
20
  }
23
21
  },
24
22
  "files": [
23
+ "src",
25
24
  "dist",
26
25
  "CHANGELOG.md",
27
26
  "README.md"
28
27
  ],
29
28
  "devDependencies": {
30
- "tsup": "6.7.0",
31
- "@workleap/eslint-plugin": "2.0.0",
32
- "@workleap/tsup-configs": "3.0.0",
33
- "@workleap/typescript-configs": "3.0.0"
34
- },
35
- "publishConfig": {
36
- "access": "public",
37
- "provenance": true
29
+ "@typescript-eslint/parser": "8.20.0",
30
+ "eslint": "8.57.0",
31
+ "rimraf": "6.0.1",
32
+ "@workleap/eslint-plugin": "3.2.6",
33
+ "@workleap/typescript-configs": "3.0.2"
38
34
  },
39
35
  "scripts": {
40
- "build": "tsup"
36
+ "prebuild": "rimraf dist",
37
+ "build": "tsc --project tsconfig.build.json",
38
+ "eslint": "eslint . --max-warnings=-0 --cache --cache-location node_modules/.cache/eslint",
39
+ "typecheck": "tsc"
41
40
  }
42
41
  }
package/src/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ const config: string[] = [
2
+ "last 2 versions",
3
+ "> 0.2%",
4
+ "Firefox ESR",
5
+ "not dead"
6
+ ];
7
+
8
+ // Using TypeScript "export" keyword until browserlist support ESM.
9
+ // Otherwise we must deal with a weird CommonJS output from esbuild which is not worth it.
10
+ // For more info, see: https://github.com/evanw/esbuild/issues/1079
11
+ export = config;
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare const config: string[];
2
-
3
- export { config as default };
package/dist/index.mjs DELETED
@@ -1,20 +0,0 @@
1
- var __getOwnPropNames = Object.getOwnPropertyNames;
2
- var __commonJS = (cb, mod) => function __require() {
3
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
- };
5
-
6
- // src/index.ts
7
- var require_src = __commonJS({
8
- "src/index.ts"(exports, module) {
9
- var config = [
10
- "last 2 versions",
11
- "> 0.2%",
12
- "Firefox ESR",
13
- "not dead"
14
- ];
15
- module.exports = config;
16
- }
17
- });
18
- var index = require_src();
19
-
20
- export { index as default };