@mondaydotcomorg/browserslist-config 0.0.1 → 1.0.0-bug-moshe-fix-remix-utils-version-ad69211
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/.eslintignore +1 -0
- package/.eslintrc.js +12 -0
- package/.tridentrc.js +10 -0
- package/CHANGELOG.md +35 -0
- package/LICENSE.md +29 -0
- package/README.md +63 -0
- package/dist/__tests__/config.test.d.ts +2 -0
- package/dist/__tests__/config.test.d.ts.map +1 -0
- package/dist/esm/__tests__/config.test.d.ts +2 -0
- package/dist/esm/__tests__/config.test.d.ts.map +1 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.mjs +12 -0
- package/dist/esm/targets.d.ts +6 -0
- package/dist/esm/targets.d.ts.map +1 -0
- package/dist/esm/targets.mjs +7 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/targets.d.ts +6 -0
- package/dist/targets.d.ts.map +1 -0
- package/dist/targets.js +9 -0
- package/package.json +38 -5
- package/src/__tests__/config.test.ts +26 -0
- package/src/index.ts +14 -0
- package/src/targets.ts +5 -0
- package/tsconfig.json +14 -0
- package/index.js +0 -1
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dist
|
package/.eslintrc.js
ADDED
package/.tridentrc.js
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
## `1.0.0` (February 1, 2026, 09:07)
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- [#584](https://github.com/DaPulse/client-core/pull/584) feat(browserslist-config)!:bump package to major (@YossiSaadi)
|
|
8
|
+
|
|
9
|
+
- Added: JSDoc-style comment block at the top of the Browserslist config file, providing context and a reference link to the Browserslist query syntax documentation. This change improves code clarity and helps users understand the purpose and usage of the configuration.
|
|
10
|
+
- No changes to the public-facing API or the structure of the exported `config` object; the `production` and `development` browser targets remain unchanged. No migration is required for existing consumers.
|
|
11
|
+
|
|
12
|
+
## `0.1.0` (January 29, 2026, 13:23)
|
|
13
|
+
|
|
14
|
+
### New Features
|
|
15
|
+
|
|
16
|
+
- [#583](https://github.com/DaPulse/client-core/pull/583) feat: add @mondaydotcomorg/browserslist-config shared library (@YossiSaadi)
|
|
17
|
+
|
|
18
|
+
- Added: New `browserslist-config` package with a default export containing browser support targets for production and development environments. The config object includes:
|
|
19
|
+
```ts
|
|
20
|
+
const config = {
|
|
21
|
+
production: ['chrome >= 113', 'edge >= 113', 'firefox >= 121', 'safari >= 17.2'],
|
|
22
|
+
development: ['last 2 chrome version'],
|
|
23
|
+
};
|
|
24
|
+
export default config;
|
|
25
|
+
```
|
|
26
|
+
- Added: Named exports `production` and `development` for CommonJS compatibility, allowing direct import of environment-specific browser lists. Example usage:
|
|
27
|
+
```ts
|
|
28
|
+
import { production, development } from 'browserslist-config';
|
|
29
|
+
// or for CJS:
|
|
30
|
+
const { production, development } = require('browserslist-config');
|
|
31
|
+
```
|
|
32
|
+
- Added: New `targets.ts` file exporting the recommended ES target for TypeScript/esbuild/babel compilation, aligned with the browser support targets:
|
|
33
|
+
```ts
|
|
34
|
+
export const esTarget = 'es2022' as const;
|
|
35
|
+
```
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021, monday.com
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# `@mondaydotcomorg/browserslist-config`
|
|
2
|
+
|
|
3
|
+
This package serves as monday.com's shared [Browserslist](https://github.com/browserslist/browserslist) configuration, to reduce duplication, and make sure all entities build for the same target environments.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add -D @mondaydotcomorg/browserslist-config
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Add the following to your `package.json`:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"browserslist": ["extends @mondaydotcomorg/browserslist-config"]
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or use in `.browserslistrc`:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
extends @mondaydotcomorg/browserslist-config
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Browserslist automatically picks the `production` or `development` environment based on `NODE_ENV` or `BROWSERSLIST_ENV`.
|
|
28
|
+
|
|
29
|
+
## Supported Environments
|
|
30
|
+
|
|
31
|
+
### Production
|
|
32
|
+
|
|
33
|
+
- Chrome >= 113
|
|
34
|
+
- Edge >= 113
|
|
35
|
+
- Firefox >= 121
|
|
36
|
+
- Safari >= 17.2
|
|
37
|
+
|
|
38
|
+
### Development
|
|
39
|
+
|
|
40
|
+
- Last 2 Chrome versions
|
|
41
|
+
|
|
42
|
+
## ES Target
|
|
43
|
+
|
|
44
|
+
The package also exports a recommended ES target for TypeScript/esbuild/babel compilation that aligns with our browser support:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { esTarget } from '@mondaydotcomorg/browserslist-config/targets';
|
|
48
|
+
// esTarget = "es2022"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Use this in your build tools configuration to ensure consistent compilation targets across projects.
|
|
52
|
+
|
|
53
|
+
## Keeping caniuse-lite Updated
|
|
54
|
+
|
|
55
|
+
Browserslist uses the `caniuse-lite` database to resolve browser queries. This database should be updated periodically in your project to ensure accurate browser data.
|
|
56
|
+
|
|
57
|
+
If you see the warning `Browserslist: caniuse-lite is outdated`, run:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx update-browserslist-db@latest
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
This updates the `caniuse-lite` database in your project's lockfile.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/config.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/config.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browserslist configuration for monday.com projects.
|
|
3
|
+
* @see https://browsersl.ist/ for query syntax
|
|
4
|
+
*/
|
|
5
|
+
declare const config: {
|
|
6
|
+
production: string[];
|
|
7
|
+
development: string[];
|
|
8
|
+
};
|
|
9
|
+
export default config;
|
|
10
|
+
export declare const production: string[], development: string[];
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,QAAA,MAAM,MAAM;;;CAGX,CAAC;AAGF,eAAe,MAAM,CAAC;AAGtB,eAAO,MAAQ,UAAU,YAAE,WAAW,UAAW,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browserslist configuration for monday.com projects.
|
|
3
|
+
* @see https://browsersl.ist/ for query syntax
|
|
4
|
+
*/
|
|
5
|
+
const config = {
|
|
6
|
+
production: ['chrome >= 113', 'edge >= 113', 'firefox >= 121', 'safari >= 17.2'],
|
|
7
|
+
development: ['last 2 chrome version'],
|
|
8
|
+
};
|
|
9
|
+
// Named exports for CJS compatibility (browserslist uses require() internally)
|
|
10
|
+
const { production, development } = config;
|
|
11
|
+
|
|
12
|
+
export { config as default, development, production };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../src/targets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAG,QAAiB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browserslist configuration for monday.com projects.
|
|
3
|
+
* @see https://browsersl.ist/ for query syntax
|
|
4
|
+
*/
|
|
5
|
+
declare const config: {
|
|
6
|
+
production: string[];
|
|
7
|
+
development: string[];
|
|
8
|
+
};
|
|
9
|
+
export default config;
|
|
10
|
+
export declare const production: string[], development: string[];
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,QAAA,MAAM,MAAM;;;CAGX,CAAC;AAGF,eAAe,MAAM,CAAC;AAGtB,eAAO,MAAQ,UAAU,YAAE,WAAW,UAAW,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Browserslist configuration for monday.com projects.
|
|
5
|
+
* @see https://browsersl.ist/ for query syntax
|
|
6
|
+
*/
|
|
7
|
+
const config = {
|
|
8
|
+
production: ['chrome >= 113', 'edge >= 113', 'firefox >= 121', 'safari >= 17.2'],
|
|
9
|
+
development: ['last 2 chrome version'],
|
|
10
|
+
};
|
|
11
|
+
// Named exports for CJS compatibility (browserslist uses require() internally)
|
|
12
|
+
const { production, development } = config;
|
|
13
|
+
|
|
14
|
+
exports.default = config;
|
|
15
|
+
exports.development = development;
|
|
16
|
+
exports.production = production;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../src/targets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAG,QAAiB,CAAC"}
|
package/dist/targets.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Recommended ES target for TypeScript/esbuild/babel compilation.
|
|
5
|
+
* This aligns with our browser support targets.
|
|
6
|
+
*/
|
|
7
|
+
const esTarget = 'es2022';
|
|
8
|
+
|
|
9
|
+
exports.esTarget = esTarget;
|
package/package.json
CHANGED
|
@@ -1,8 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/browserslist-config",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "1.0.0-bug-moshe-fix-remix-utils-version-ad69211",
|
|
4
|
+
"description": "This package serves as monday.com's shared Browserslist configuration, to reduce duplication, and make sure all entities build for the same target environments.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/esm/index.mjs",
|
|
9
|
+
"require": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"./targets": {
|
|
13
|
+
"import": "./dist/esm/targets.mjs",
|
|
14
|
+
"require": "./dist/targets.js",
|
|
15
|
+
"types": "./dist/targets.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "trident-library test",
|
|
21
|
+
"lint": "trident-library lint",
|
|
22
|
+
"build": "trident-library build",
|
|
23
|
+
"watch": "trident-library build -w"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"browserslist",
|
|
27
|
+
"browserslist-config",
|
|
28
|
+
"monday"
|
|
29
|
+
],
|
|
30
|
+
"license": "BSD-3-Clause",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@mondaydotcomorg/trident-library": "^1.8.8",
|
|
33
|
+
"browserslist": "^4.28.1",
|
|
34
|
+
"typescript": "^5.7.2"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/DaPulse/client-core.git",
|
|
39
|
+
"directory": "packages/browserslist-config"
|
|
40
|
+
}
|
|
8
41
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as browserslist from 'browserslist';
|
|
2
|
+
import config from '../index';
|
|
3
|
+
import { esTarget } from '../targets';
|
|
4
|
+
|
|
5
|
+
describe('browserslist-config', () => {
|
|
6
|
+
it('should have valid production queries', () => {
|
|
7
|
+
expect(() => browserslist(config.production)).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('should have valid development queries', () => {
|
|
11
|
+
expect(() => browserslist(config.development)).not.toThrow();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('should export production and development environments', () => {
|
|
15
|
+
expect(config).toHaveProperty('production');
|
|
16
|
+
expect(config).toHaveProperty('development');
|
|
17
|
+
expect(Array.isArray(config.production)).toBe(true);
|
|
18
|
+
expect(Array.isArray(config.development)).toBe(true);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
describe('targets', () => {
|
|
23
|
+
it('should export a valid esTarget', () => {
|
|
24
|
+
expect(esTarget).toBe('es2022');
|
|
25
|
+
});
|
|
26
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browserslist configuration for monday.com projects.
|
|
3
|
+
* @see https://browsersl.ist/ for query syntax
|
|
4
|
+
*/
|
|
5
|
+
const config = {
|
|
6
|
+
production: ['chrome >= 113', 'edge >= 113', 'firefox >= 121', 'safari >= 17.2'],
|
|
7
|
+
development: ['last 2 chrome version'],
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// Default export for ESM
|
|
11
|
+
export default config;
|
|
12
|
+
|
|
13
|
+
// Named exports for CJS compatibility (browserslist uses require() internally)
|
|
14
|
+
export const { production, development } = config;
|
package/src/targets.ts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// If you need to use a different tsconfig file for your build, you can use the "build.tsconfig" configuration option in Trident's configuration
|
|
2
|
+
// Read more here - https://trident.monday.beer/docs/library/usage/configuration#build
|
|
3
|
+
|
|
4
|
+
{
|
|
5
|
+
"extends": "../../tsconfig.json",
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"baseUrl": ".",
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"rootDir": "src",
|
|
10
|
+
"target": "ES2020",
|
|
11
|
+
"module": "ESNext"
|
|
12
|
+
},
|
|
13
|
+
"include": ["src"]
|
|
14
|
+
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = {};
|