sass 1.77.7 → 1.78.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.
- package/LICENSE +2 -3
- package/package.json +1 -1
- package/sass.dart.js +5158 -5246
- package/sass.default.js +1 -0
- package/sass.node.mjs +5 -0
- package/types/deprecations.d.ts +8 -1
- package/types/index.d.ts +1 -1
- package/types/legacy/options.d.ts +40 -0
- package/types/logger/index.d.ts +32 -16
package/sass.default.js
CHANGED
|
@@ -45,3 +45,4 @@ export const types = _cliPkgExports.types;
|
|
|
45
45
|
export const NodePackageImporter = _cliPkgExports.NodePackageImporter;
|
|
46
46
|
export const deprecations = _cliPkgExports.deprecations;
|
|
47
47
|
export const Version = _cliPkgExports.Version;
|
|
48
|
+
export const parser_ = _cliPkgExports.parser_;
|
package/sass.node.mjs
CHANGED
|
@@ -39,6 +39,7 @@ export const types = cjs.types;
|
|
|
39
39
|
export const NodePackageImporter = cjs.NodePackageImporter;
|
|
40
40
|
export const deprecations = cjs.deprecations;
|
|
41
41
|
export const Version = cjs.Version;
|
|
42
|
+
export const parser_ = cjs.parser_;
|
|
42
43
|
|
|
43
44
|
let printedDefaultExportDeprecation = false;
|
|
44
45
|
function defaultExportDeprecation() {
|
|
@@ -206,4 +207,8 @@ export default {
|
|
|
206
207
|
defaultExportDeprecation();
|
|
207
208
|
return cjs.Version;
|
|
208
209
|
},
|
|
210
|
+
get parser_() {
|
|
211
|
+
defaultExportDeprecation();
|
|
212
|
+
return cjs.parser_;
|
|
213
|
+
},
|
|
209
214
|
};
|
package/types/deprecations.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface Deprecations {
|
|
8
8
|
// START AUTOGENERATED LIST
|
|
9
|
-
// Checksum:
|
|
9
|
+
// Checksum: dd5c6aa0f1431fa9fc88bb71a96f832adbc165f5
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Deprecation for passing a string directly to meta.call().
|
|
@@ -120,6 +120,13 @@ export interface Deprecations {
|
|
|
120
120
|
*/
|
|
121
121
|
'mixed-decls': Deprecation<'mixed-decls'>;
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Deprecation for meta.feature-exists
|
|
125
|
+
*
|
|
126
|
+
* This deprecation became active in Dart Sass 1.78.0.
|
|
127
|
+
*/
|
|
128
|
+
'feature-exists': Deprecation<'feature-exists'>;
|
|
129
|
+
|
|
123
130
|
/**
|
|
124
131
|
* Deprecation for @import rules.
|
|
125
132
|
*
|
package/types/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
ImporterResult,
|
|
30
30
|
NodePackageImporter,
|
|
31
31
|
} from './importer';
|
|
32
|
-
export {Logger, SourceSpan, SourceLocation} from './logger';
|
|
32
|
+
export {Logger, LoggerWarnOptions, SourceSpan, SourceLocation} from './logger';
|
|
33
33
|
export {
|
|
34
34
|
CustomFunction,
|
|
35
35
|
Options,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DeprecationOrId, Version} from '../deprecations';
|
|
1
2
|
import {Logger} from '../logger';
|
|
2
3
|
import {LegacyImporter} from './importer';
|
|
3
4
|
import {LegacyFunction} from './function';
|
|
@@ -483,6 +484,45 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
|
|
483
484
|
*/
|
|
484
485
|
quietDeps?: boolean;
|
|
485
486
|
|
|
487
|
+
/**
|
|
488
|
+
* A set of deprecations to treat as fatal.
|
|
489
|
+
*
|
|
490
|
+
* If a deprecation warning of any provided type is encountered during
|
|
491
|
+
* compilation, the compiler will error instead.
|
|
492
|
+
*
|
|
493
|
+
* If a `Version` is provided, then all deprecations that were active in that
|
|
494
|
+
* compiler version will be treated as fatal.
|
|
495
|
+
*
|
|
496
|
+
* @category Messages
|
|
497
|
+
* @compatiblity dart: "1.78.0", node: false
|
|
498
|
+
*/
|
|
499
|
+
fatalDeprecations?: (DeprecationOrId | Version)[];
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* A set of future deprecations to opt into early.
|
|
503
|
+
*
|
|
504
|
+
* Future deprecations passed here will be treated as active by the compiler,
|
|
505
|
+
* emitting warnings as necessary.
|
|
506
|
+
*
|
|
507
|
+
* @category Messages
|
|
508
|
+
* @compatiblity dart: "1.78.0", node: false
|
|
509
|
+
*/
|
|
510
|
+
futureDeprecations?: DeprecationOrId[];
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* A set of active deprecations to ignore.
|
|
514
|
+
*
|
|
515
|
+
* If a deprecation warning of any provided type is encountered during
|
|
516
|
+
* compilation, the compiler will ignore it instead.
|
|
517
|
+
*
|
|
518
|
+
* **Heads up!** The deprecated functionality you're depending on will
|
|
519
|
+
* eventually break.
|
|
520
|
+
*
|
|
521
|
+
* @category Messages
|
|
522
|
+
* @compatiblity dart: "1.78.0", node: false
|
|
523
|
+
*/
|
|
524
|
+
silenceDeprecations?: DeprecationOrId[];
|
|
525
|
+
|
|
486
526
|
/**
|
|
487
527
|
* By default, Dart Sass will print only five instances of the same
|
|
488
528
|
* deprecation warning per compilation to avoid deluging users in console
|
package/types/logger/index.d.ts
CHANGED
|
@@ -4,6 +4,35 @@ import {SourceSpan} from './source_span';
|
|
|
4
4
|
export {SourceLocation} from './source_location';
|
|
5
5
|
export {SourceSpan} from './source_span';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* The options passed to {@link Logger.warn}.
|
|
9
|
+
*
|
|
10
|
+
* * `deprecation`: Whether this is a deprecation warning.
|
|
11
|
+
*
|
|
12
|
+
* * `deprecationType`: The type of deprecation. Only set if `deprecation` is
|
|
13
|
+
* true.
|
|
14
|
+
*
|
|
15
|
+
* * `span`: The location in the Sass source code that generated this warning.
|
|
16
|
+
* This may be unset if the warning didn't come from Sass source, for
|
|
17
|
+
* example if it's from a deprecated JavaScript option.
|
|
18
|
+
*
|
|
19
|
+
* * `stack`: The Sass stack trace at the point the warning was issued. This may
|
|
20
|
+
* be unset if the warning didn't come from Sass source, for example if it's
|
|
21
|
+
* from a deprecated JavaScript option.
|
|
22
|
+
*
|
|
23
|
+
* @category Logger
|
|
24
|
+
*/
|
|
25
|
+
export type LoggerWarnOptions = (
|
|
26
|
+
| {
|
|
27
|
+
deprecation: true;
|
|
28
|
+
deprecationType: Deprecation;
|
|
29
|
+
}
|
|
30
|
+
| {deprecation: false}
|
|
31
|
+
) & {
|
|
32
|
+
span?: SourceSpan;
|
|
33
|
+
stack?: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
7
36
|
/**
|
|
8
37
|
* An object that can be passed to {@link LegacySharedOptions.logger} to control
|
|
9
38
|
* how Sass emits warnings and debug messages.
|
|
@@ -42,24 +71,11 @@ export interface Logger {
|
|
|
42
71
|
*
|
|
43
72
|
* If this is `undefined`, Sass will print warnings to standard error.
|
|
44
73
|
*
|
|
74
|
+
* `options` may contain the following fields:
|
|
75
|
+
*
|
|
45
76
|
* @param message - The warning message.
|
|
46
|
-
* @param options.deprecation - Whether this is a deprecation warning.
|
|
47
|
-
* @param options.deprecationType - The type of deprecation this warning is
|
|
48
|
-
* for, if any.
|
|
49
|
-
* @param options.span - The location in the Sass source code that generated this
|
|
50
|
-
* warning.
|
|
51
|
-
* @param options.stack - The Sass stack trace at the point the warning was issued.
|
|
52
77
|
*/
|
|
53
|
-
warn?(
|
|
54
|
-
message: string,
|
|
55
|
-
options: (
|
|
56
|
-
| {
|
|
57
|
-
deprecation: true;
|
|
58
|
-
deprecationType: Deprecation;
|
|
59
|
-
}
|
|
60
|
-
| {deprecation: false}
|
|
61
|
-
) & {span?: SourceSpan; stack?: string}
|
|
62
|
-
): void;
|
|
78
|
+
warn?(message: string, options: LoggerWarnOptions): void;
|
|
63
79
|
|
|
64
80
|
/**
|
|
65
81
|
* This method is called when Sass emits a debug message due to a [`@debug`
|