Socket
Socket
Sign inDemoInstall

postcss-image-set-function

Package Overview
Dependencies
5
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.1 to 6.0.2

103

CHANGELOG.md
# Changes to PostCSS image-set() Function
### 6.0.2
_December 15, 2023_
- Fix type definitions
### 6.0.1

@@ -15,97 +21,2 @@

### 5.0.2
_February 8, 2023_
- Reduce the amount of duplicate fallback CSS.
### 5.0.1
_January 28, 2023_
- Improve `types` declaration in `package.json`
### 5.0.0
_January 24, 2023_
- Updated: Support for Node v14+ (major).
- Changed: `oninvalid` plugin option to `onInvalid` to match other plugins with similar options (breaking).
### 4.0.7
_July 8, 2022_
- Fix case insensitive matching.
### 4.0.6
_February 5, 2022_
- Improved `es module` and `commonjs` compatibility
### 4.0.5
_January 31, 2022_
- Fix sourcemaps for `image-set()` function
### 4.0.4
_January 2, 2022_
- Removed Sourcemaps from package tarball.
- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
### 4.0.3
_December 13, 2021_
- Changed: now uses `postcss-value-parser` for parsing.
- Updated: documentation
- Added: support for lists of `image-set` functions.
- Fixed: `url` function is now always added around string values in `image-set` functions.
### 4.0.2
_November 19, 2021_
- Updated: `postcss-value-parser` to 6.0.1 (patch)
### 4.0.1
_November 18, 2021_
- Added: Safeguards against postcss-values-parser potentially throwing an error.
### 4.0.0
_September 17, 2021_
- Updated: Support for PostCS 8+ (major).
- Updated: Support for Node 12+ (major).
### 3.0.1
_September 18, 2018_
- Updated: PostCSS Values Parser 2
### 3.0.0
_September 17, 2018_
- Updated: Support for PostCSS 7+
- Updated: Support for Node 6+
### 2.0.0
_May 7, 2018_
- Sort images by DPR and use the lowest as the default
### 1.0.0
_May 2, 2018_
- Initial version
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function/CHANGELOG.md)

10

dist/index.d.ts
import type { PluginCreator } from 'postcss';
declare const creator: PluginCreator<pluginOptions>;
export default creator;
/** postcss-image-set-function plugin options */
export type pluginOptions = {
export declare type pluginOptions = {
/** Preserve the original notation. default: true */

@@ -14,3 +18,3 @@ preserve?: boolean;

};
declare const creator: PluginCreator<pluginOptions>;
export default creator;
export { }
{
"name": "postcss-image-set-function",
"description": "Display resolution-dependent images using the image-set() function in CSS",
"version": "6.0.1",
"version": "6.0.2",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",

@@ -20,11 +20,14 @@ "license": "MIT-0",

},
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"default": "./dist/index.cjs"
}
}

@@ -44,13 +47,2 @@ },

},
"devDependencies": {
"@csstools/postcss-tape": "*"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
"docs": "node ../../.github/bin/generate-docs/install.mjs",
"lint": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run build && npm run test",
"test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
},
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function#readme",

@@ -74,10 +66,3 @@ "repository": {

"responsive"
],
"csstools": {
"exportName": "postcssImageSetFunction",
"humanReadableName": "PostCSS image-set() Function"
},
"volta": {
"extends": "../../package.json"
}
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc