styles-config 2.0.0-alpha.8 → 2.0.0-alpha.9

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/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  **A shared configuration schema and loader for styling tools (Jess, Less, Sass,
4
4
  Tailwind, …).**
5
5
 
6
- `styles-config` is part of the [Jess](https://github.com/jesscss/jess) project
7
- (Less.js v5, a ground-up rewrite of the Less CSS preprocessor). It is published
8
- **unscoped** — the package name is `styles-config`, not `@jesscss/config`.
6
+ `styles-config` is part of the [Jess](https://github.com/jesscss/jess) project.
7
+ It is published **unscoped** the package name is `styles-config`, not
8
+ `@jesscss/config`.
9
9
 
10
10
  ## Overview
11
11
 
@@ -46,8 +46,9 @@ interface StylesConfig {
46
46
  searchPaths?: string[];
47
47
  enableJavaScript?: boolean;
48
48
  mathMode?: 'always' | 'parens-division' | 'parens' | 'strict';
49
- unitMode?: 'loose' | 'strict';
50
- equalityMode?: 'coerce' | 'strict';
49
+ unitMode?: 'loose' | 'preserve' | 'strict';
50
+ functionMode?: 'preserve' | 'error';
51
+ equalityMode?: 'less' | 'sass' | 'exact';
51
52
  };
52
53
  input?: InputOptions | InputOptions[];
53
54
  output?: OutputOptions | OutputOptions[];
@@ -85,7 +86,7 @@ export default {
85
86
  compile: {
86
87
  mathMode: 'parens-division',
87
88
  unitMode: 'loose',
88
- equalityMode: 'coerce',
89
+ equalityMode: 'less',
89
90
  searchPaths: ['./src/styles', './node_modules']
90
91
  },
91
92
  input: [
package/lib/types.d.ts CHANGED
@@ -7,14 +7,16 @@ export type MathMode = 'always' | 'parens-division' | 'parens' | 'strict';
7
7
  */
8
8
  export type UnitMode = 'loose' | 'preserve' | 'strict';
9
9
  /**
10
- * Function-call resolution modes — mirrors {@link UnitMode}. Governs an optional
11
- * (global) function call that matched a registered function but couldn't be
12
- * evaluated: `preserve` renders it as-is (+ warning), `error` throws.
10
+ * Function-call resolution modes — compiler input to the shared evaluator.
11
+ * Governs an optional (global) function call that matched a registered function
12
+ * but couldn't be evaluated: `preserve` renders it as-is (+ warning), `error`
13
+ * throws.
13
14
  */
14
15
  export type FunctionMode = 'preserve' | 'error';
15
16
  /**
16
- * Equality dialects for guard comparisons named by dialect (Less 4.x and Sass
17
- * diverge in opposite directions), not by strictness:
17
+ * Equality compatibility modes for the shared guard evaluator. The names retain
18
+ * their source-compatibility meaning (Less 4.x and Sass diverge in opposite
19
+ * directions), not separate runtime semantics:
18
20
  * - `less`: Less 4.x equality (numeric coercion; quoted vs unquoted distinct)
19
21
  * - `sass`: Dart Sass equality (unit-strict; quote-insensitive strings)
20
22
  * - `exact`: no coercion — operands must be the same node type
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "2.0.0-alpha.8",
7
+ "version": "2.0.0-alpha.9",
8
8
  "description": "General-purpose configuration for styling frameworks (Jess, Less, Sass, Tailwind, etc.)",
9
9
  "main": "lib/index.cjs",
10
10
  "types": "lib/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "cosmiconfig": "^9.0.0",
23
23
  "picomatch": "^4.0.2",
24
- "@jesscss/core": "2.0.0-alpha.8"
24
+ "@jesscss/core": "2.0.0-alpha.9"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.10.2",