Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amedia/browserslist-config

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amedia/browserslist-config - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

60

CHANGELOG.md
# @amedia/browserslist-config
## 2.0.0
### Major Changes
- d6346cc: Kragl 4.x
_Get ready: This release breaks the world._
ESLint 9 introduces a new configuration format (flat config files)[^1]
so as we move to ESLint 9 we need to re-do all the ESLint configuration
both in this package, and in downstream repos.
See the configuration docs for how to setup kragl for your project.
[^1]: https://eslint.org/docs/latest/use/configure/configuration-files
We are all-in on ECMAScript Modules at Amedia, but have been held back
in this repo due to the tools we depend on have lagged behind. Now the
world is ready, and we are making the move.
Changes that hit the consumer are things like `.prettierrc.cjs` will not
work with the `@amedia/prettier-config` package and the consumer needs
to move to `prettier.config.js` with ESM syntax.
`@amedia/eslint-config` exports an helper function that generates an
ESLint configuration that complies with our standards, it supports both
toggling options and full-on custom configuration.
For example, a TypeScript + Svelte project:
```
import eslintConfig from '@amedia/eslint-config';
export default eslintConfig({
typescript: true,
svelte: true,
});
```
We have had a long-standing issue of the LSP hanging when interacting
with our Prettier configuration. This was likely due to our Prettier
configuration dynamically loading the Svelte plugin if it was necessary.
Some versions of Prettier struggle with that, so for kragl 4.x the
consumer manually decides if the standard or svelte prettier
configuration should be used.
Standard:
```
// prettier.config.js
export { default } from '@amedia/prettier-config';
```
Svelte:
```
// prettier.config.js
export { svelte as default } from '@amedia/prettier-config';
```
## 1.0.2

@@ -4,0 +64,0 @@

11

package.json
{
"name": "@amedia/browserslist-config",
"version": "1.0.2",
"version": "2.0.0",
"description": "Browserslist config for Amedia",
"type": "commonjs",
"main": "./index.cjs",
"exports": {
".": {
"require": "./index.cjs"
}
},
"author": "",
"license": "ISC",
"devDependencies": {
"browserslist": "4.21.5"
},
"peerDependencies": {

@@ -13,0 +14,0 @@ "browserslist": "4.x"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc