@unocss/postcss 0.65.4 → 65.4.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/dist/esm.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { stat, readFile } from 'node:fs/promises';
2
2
  import { normalize } from 'node:path';
3
3
  import process from 'node:process';
4
- import { createRecoveryConfigLoader } from '@unocss/config';
5
4
  import { expandVariantGroup, notNull, regexScopePlaceholder, createGenerator } from '@unocss/core';
5
+ import { createRecoveryConfigLoader } from '@unocss/config';
6
6
  import { transformThemeFn, hasThemeFn } from '@unocss/rule-utils';
7
7
  import postcss from 'postcss';
8
8
  import { glob } from 'tinyglobby';
@@ -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 })) : void 0;
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;
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(void 0, excludes) || "");
271
+ const css = postcss.parse(c.getLayers(undefined, excludes) || "");
272
272
  css.walkDecls((declaration) => {
273
273
  declaration.source = source;
274
274
  });
package/dist/index.d.cts CHANGED
@@ -26,5 +26,4 @@ declare namespace unocss {
26
26
  export { _a as default };
27
27
  }
28
28
 
29
- export = unocss;
30
- export { type UnoPostcssPluginOptions };
29
+ export { type UnoPostcssPluginOptions, unocss as default };
package/dist/index.d.ts CHANGED
@@ -26,5 +26,4 @@ declare namespace unocss {
26
26
  export { _a as default };
27
27
  }
28
28
 
29
- export = unocss;
30
- export { type UnoPostcssPluginOptions };
29
+ export { type UnoPostcssPluginOptions, unocss as default };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
3
  "type": "module",
4
- "version": "0.65.4",
4
+ "version": "65.4.2",
5
5
  "description": "PostCSS plugin for UnoCSS",
6
6
  "author": "sibbng <sibbngheid@gmail.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/antfu",
9
- "homepage": "https://github.com/unocss/unocss/tree/main/packages/postcss#readme",
9
+ "homepage": "https://unocss.dev",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/unocss/unocss",
13
- "directory": "packages/postcss"
13
+ "directory": "packages-integrations/postcss"
14
14
  },
15
15
  "bugs": {
16
16
  "url": "https://github.com/unocss/unocss/issues"
@@ -55,11 +55,11 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "css-tree": "^3.1.0",
58
- "postcss": "^8.4.49",
58
+ "postcss": "^8.5.1",
59
59
  "tinyglobby": "^0.2.10",
60
- "@unocss/rule-utils": "0.65.4",
61
- "@unocss/core": "0.65.4",
62
- "@unocss/config": "0.65.4"
60
+ "@unocss/config": "65.4.2",
61
+ "@unocss/core": "65.4.2",
62
+ "@unocss/rule-utils": "65.4.2"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "unbuild",