@unocss/postcss 65.4.3 → 66.0.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.
Files changed (2) hide show
  1. package/dist/esm.mjs +2 -2
  2. package/package.json +6 -6
package/dist/esm.mjs CHANGED
@@ -98,7 +98,7 @@ async function parseScreen(root, uno, directiveName) {
98
98
  breakpoints = uno.userConfig.theme.breakpoints;
99
99
  if (!breakpoints)
100
100
  breakpoints = uno.config.theme.breakpoints;
101
- return breakpoints ? Object.entries(breakpoints).sort((a, b) => Number.parseInt(a[1].replace(/[a-z]+/gi, "")) - Number.parseInt(b[1].replace(/[a-z]+/gi, ""))).map(([point, size]) => ({ point, size })) : undefined;
101
+ return breakpoints ? Object.entries(breakpoints).sort((a, b) => Number.parseInt(a[1].replace(/[a-z]+/gi, "")) - Number.parseInt(b[1].replace(/[a-z]+/gi, ""))).map(([point, size]) => ({ point, size })) : void 0;
102
102
  };
103
103
  const variantEntries = (resolveBreakpoints() ?? []).map(({ point, size }, idx) => [point, size, idx]);
104
104
  const generateMediaQuery = (breakpointName2, prefix2) => {
@@ -268,7 +268,7 @@ function createPlugin(options) {
268
268
  root.walkAtRules(directiveMap.unocss, (rule) => {
269
269
  if (!rule.params) {
270
270
  const source = rule.source;
271
- const css = postcss.parse(c.getLayers(undefined, excludes) || "");
271
+ const css = postcss.parse(c.getLayers(void 0, excludes) || "");
272
272
  css.walkDecls((declaration) => {
273
273
  declaration.source = source;
274
274
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
3
  "type": "module",
4
- "version": "65.4.3",
4
+ "version": "66.0.0",
5
5
  "description": "PostCSS plugin for UnoCSS",
6
6
  "author": "sibbng <sibbngheid@gmail.com>",
7
7
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "homepage": "https://unocss.dev",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/unocss/unocss",
12
+ "url": "git+https://github.com/unocss/unocss",
13
13
  "directory": "packages-integrations/postcss"
14
14
  },
15
15
  "bugs": {
@@ -55,11 +55,11 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "css-tree": "^3.1.0",
58
- "postcss": "^8.5.1",
58
+ "postcss": "^8.5.2",
59
59
  "tinyglobby": "^0.2.10",
60
- "@unocss/config": "65.4.3",
61
- "@unocss/core": "65.4.3",
62
- "@unocss/rule-utils": "65.4.3"
60
+ "@unocss/core": "66.0.0",
61
+ "@unocss/config": "66.0.0",
62
+ "@unocss/rule-utils": "66.0.0"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "unbuild",