sass-embedded 1.0.0-rc.1 → 1.49.7

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/CHANGELOG.md CHANGED
@@ -1,71 +1,2397 @@
1
+ ## 1.49.7
2
+
3
+ ### Embedded Sass
4
+
5
+ * First stable release the `sass-embedded` npm package that contains the Node.js
6
+ Embedded Host.
7
+
8
+ * First stable release of the `sass_embedded` pub package that contains the
9
+ Embedded Dart Sass compiler.
10
+
11
+ ## 1.49.6
12
+
13
+ * No user-visible changes.
14
+
15
+ ## 1.49.5
16
+
17
+ * No user-visible changes.
18
+
19
+ ## 1.49.4
20
+
21
+ * No user-visible changes.
22
+
23
+ ## 1.49.3
24
+
25
+ * No user-visible changes.
26
+
27
+ ## 1.49.2
28
+
29
+ * No user-visible changes.
30
+
31
+ ## 1.49.1
32
+
33
+ * Stop supporting non-LTS Node.js versions.
34
+
35
+ ## 1.49.0
36
+
37
+ * Fix a bug in `string.insert` with certain negative indices.
38
+
39
+ ### JS API
40
+
41
+ * Add support for the `sourceMapIncludeSources` option in the new JS API.
42
+
43
+ #### TypeScript Declarations
44
+
45
+ * Fix a bug where `LegacyPluginThis.options.linefeed` was typed to return
46
+ abbreviations when it actually returned literal linefeed characters.
47
+
48
+ ## 1.48.0
49
+
50
+ ### JS API
51
+
52
+ * **Potentially breaking bug fix:** Match the specification of the new JS API by
53
+ setting `LegacyResult.map` to `undefined` rather than `null`.
54
+
55
+ #### TypeScript Declarations
56
+
57
+ * Add a declaration for the `NULL` constant.
58
+
59
+ ## 1.47.0
60
+
61
+ ### JS API
62
+
63
+ #### TypeScript Declarations
64
+
65
+ * Add declarations for the `TRUE` and `FALSE` constants.
66
+
67
+ ## 1.46.0
68
+
69
+ ### JS API
70
+
71
+ * **Potentially breaking bug fix:** Match the specification of the new JS API by
72
+ passing `undefined` rather than `null` to `Logger.warn()` for an unset `span`.
73
+
74
+ #### TypeScript Declarations
75
+
76
+ * Add a declaration for the `LegacyPluginThis.options.context` field.
77
+
78
+ * Update the definition of `LegacyAsyncFunction` to include explicit definitions
79
+ with zero through six arguments before the `done` parameter. This makes it
80
+ possible for TypeScript users to pass in callbacks that take a specific number
81
+ of arguments, rather than having to declare a callback that takes an arbitrary
82
+ number.
83
+
84
+ * Add a declaration for `types.Error`, a legacy API class that can be returned
85
+ by asynchronous functions to signal asynchronous errors.
86
+
87
+ * Add a `LegacyAsyncFunctionDone` type for the `done` callback that's passed to
88
+ `LegacyAsyncFunction`.
89
+
90
+ ## 1.45.2
91
+
92
+ ### JS API
93
+
94
+ * **Potentially breaking bug fix:** Change the default value of the `separator`
95
+ parameter for `new SassArgumentList()` to `','` rather than `null`. This
96
+ matches the API specification.
97
+
98
+ ## 1.45.1
99
+
100
+ * **Potentially breaking bug fix:** Properly parse custom properties in
101
+ `@supports` conditions. Note that this means that SassScript expressions on
102
+ the right-hand side of custom property `@supports` queries now need to be
103
+ interpolated, as per https://sass-lang.com/d/css-vars.
104
+
105
+ * **Potentially breaking bug fix:** Fix a bug where `inspect()` was not
106
+ properly printing nested, empty, bracketed lists.
107
+
108
+ ## 1.45.0
109
+
110
+ ### JS API
111
+
112
+ This release includes an entirely new JavaScript API, designed to be more
113
+ idiomatic, performant, and usable. The old API will continue to be supported
114
+ until Dart Sass 2.0.0, but it is now considered deprecated and should be avoided
115
+ for new code.
116
+
117
+ The new API includes:
118
+
119
+ * `compile()` and `compileAsync()` functions that take Sass file paths and
120
+ return the result of compiling them to CSS. The async function returns a
121
+ `Promise` rather than using a callback-based API.
122
+
123
+ * `compileString()` and `compileStringAsync()` functions that take a string of
124
+ Sass source and compiles it to CSS. As above, the async function returns a
125
+ `Promise`.
126
+
127
+ * A new importer API that more closely matches the Sass specification's logic
128
+ for resolving loads. This makes it much easier for Sass to cache information
129
+ across `@import` and `@use` rules, which substantially improves performance
130
+ for applications that rely heavily on repeated `@import`s.
131
+
132
+ * A new custom function API, including much more usable JS representations of
133
+ Sass value types complete with type-assertion functions, easy map and list
134
+ lookups, and compatibility with the [`immutable`] package. **Unlike in the
135
+ legacy API,** function callbacks now take one argument which contains an array
136
+ of Sass values (rather than taking a separate JS argument for each Sass
137
+ argument).
138
+
139
+ [`immutable`]: https://immutable-js.com/
140
+
141
+ For full documentation of this API, please see [the Sass website][js-api].
142
+
143
+ [js-api]: https://sass-lang.com/documentation/js-api
144
+
145
+ This release also adds TypeScript type definitions.
146
+
147
+ ## 1.44.0
148
+
149
+ * Suggest `calc()` as an alternative in `/`-as-division deprecation messages.
150
+
151
+ ### Dart API
152
+
153
+ * Add `SassNumber.convert()` and `SassNumber.convertValue()`. These work like
154
+ `SassNumber.coerce()` and `SassNumber.coerceValue()`, except they don't treat
155
+ unitless numbers as universally compatible.
156
+
157
+ * Fix a bug where `SassNumber.coerceToMatch()` and
158
+ `SassNumber.coerceValueToMatch()` wouldn't coerce single-unit numbers to
159
+ match unitless numbers.
160
+
161
+ ## 1.43.5
162
+
163
+ * Fix a bug where calculations with different operators were incorrectly
164
+ considered equal.
165
+
166
+ * Properly parse attribute selectors with empty namespaces.
167
+
168
+ ### JS API
169
+
170
+ * Print more detailed JS stack traces. This is mostly useful for the Sass team's
171
+ own debugging purposes.
172
+
173
+ ## 1.43.4
174
+
175
+ ### JS API
176
+
177
+ * Fix a bug where the `logger` option was ignored for the `render()` function.
178
+
179
+ ## 1.43.3
180
+
181
+ * Improve performance.
182
+
183
+ ## 1.43.2
184
+
185
+ * Improve the error message when the default namespace of a `@use` rule is not
186
+ a valid identifier.
187
+
188
+ ## 1.43.1
189
+
190
+ * No user-visible changes.
191
+
192
+ ## 1.43.0
193
+
194
+ ### JS API
195
+
196
+ * Add support for the `logger` option. This takes an object that can define
197
+ `warn` or `debug` methods to add custom handling for messages emitted by the
198
+ Sass compiler. See [the JS API docs] for details.
199
+
200
+ [the JS API docs]: https://sass-lang.com/documentation/js-api/interfaces/Logger
201
+
202
+ * Add a `Logger.silent` object that can be passed to the `logger` option to
203
+ silence all messages from the Sass compiler.
204
+
205
+ ## 1.42.1
206
+
207
+ * Fix a bug where Sass variables and function calls in calculations weren't
208
+ being resolved correctly if there was a parenthesized interpolation elsewhere
209
+ in the file.
210
+
211
+ ## 1.42.0
212
+
213
+ * `min()` and `max()` expressions are once again parsed as calculations as long
214
+ as they contain only syntax that's allowed in calculation expressions. To
215
+ avoid the backwards-compatibility issues that were present in 1.40.0, they now
216
+ allow unitless numbers to be mixed with numbers with units just like the
217
+ global `min()` and `max()` functions. Similarly, `+` and `-` operations within
218
+ `min()` and `max()` functions allow unitless numbers to be mixed with numbers
219
+ with units.
220
+
221
+ ## 1.41.1
222
+
223
+ * Preserve parentheses around `var()` functions in calculations, because they
224
+ could potentially be replaced with sub-expressions that might need to be
225
+ parenthesized.
226
+
227
+ ## 1.41.0
228
+
229
+ * Calculation values can now be combined with strings using the `+` operator.
230
+ This was an error in 1.40.0, but this broke stylesheets that were relying on
231
+ `$value + ""` expressions to generically convert values to strings. (Note that
232
+ the Sass team recommends the use of `"#{$value}"` or `inspect($value)` for
233
+ that use-case.)
234
+
235
+ * The `selector.unify()` function now correctly returns `null` when one selector
236
+ is a `:host` or `:host-context` and the other is a selector that's guaranteed
237
+ to be within the current shadow DOM. The `@extend` logic has been updated
238
+ accordingly as well.
239
+
240
+ * Fix a bug where extra whitespace in `min()`, `max()`, `clamp()`, and `calc()`
241
+ expressions could cause bogus parse errors.
242
+
243
+ * Fix a bug where the right-hand operand of a `-` in a calculation could
244
+ incorrectly be stripped of parentheses.
245
+
246
+ ### Dart API
247
+
248
+ * `SassCalculation.plus()` now allows `SassString` arguments.
249
+
250
+ ## 1.40.1
251
+
252
+ * **Potentially breaking bug fix:** `min()` and `max()` expressions outside of
253
+ calculations now behave the same way they did in 1.39.2, returning unquoted
254
+ strings if they contain no Sass-specific features and calling the global
255
+ `min()` and `max()` functions otherwise. Within calculations, they continue to
256
+ behave how they did in 1.40.0.
257
+
258
+ This fixes an unintended breaking change added in 1.40.0, wherein passing a
259
+ unitless number and a number without units to `min()` or `max()` now produces
260
+ an error. Since this breakage affects a major Sass library, we're temporarily
261
+ reverting support for `min()` and `max()` calculations while we work on
262
+ designing a longer-term fix.
263
+
264
+ ## 1.40.0
265
+
266
+ * Add support for first-class `calc()` expressions (as well as `clamp()` and
267
+ plain-CSS `min()` and `max()`). This means:
268
+
269
+ * `calc()` expressions will be parsed more thoroughly, and errors will be
270
+ highlighted where they weren't before. **This may break your stylesheets,**
271
+ but only if they were already producing broken CSS.
272
+
273
+ * `calc()` expressions will be simplified where possible, and may even return
274
+ numbers if they can be simplified away entirely.
275
+
276
+ * `calc()` expressions that can't be simplified to numbers return a new data
277
+ type known as "calculations".
278
+
279
+ * Sass variables and functions can now be used in `calc()` expressions.
280
+
281
+ * New functions `meta.calc-name()` and `meta.calc-args()` can now inspect
282
+ calculations.
283
+
284
+ ### Dart API
285
+
286
+ * Add a new value type, `SassCalculation`, that represents calculations.
287
+
288
+ * Add new `CalculationOperation`, `CalculationOperator`, and
289
+ `CalculationInterpolation` types to represent types of arguments that may
290
+ exist as part of a calculation.
291
+
292
+ * Add a new `Value.assertCalculation()` method.
293
+
294
+ * Add a new `Number.hasCompatibleUnits()` method.
295
+
296
+ ## 1.39.2
297
+
298
+ * Fix a bug where configuring with `@use ... with` would throw an error when
299
+ that variable was defined in a module that also contained `@forward ... with`.
300
+
301
+ ## 1.39.1
302
+
303
+ * Partial fix for a bug where `@at-root` does not work properly in nested
304
+ imports that contain `@use` rules. If the only `@use` rules in the nested
305
+ import are for built-in modules, `@at-root` should now work properly.
306
+
307
+ ## 1.39.0
308
+
309
+ ### JS API
310
+
311
+ * Add a `charset` option that controls whether or not Sass emits a
312
+ `@charset`/BOM for non-ASCII stylesheets.
313
+
314
+ ## 1.38.2
315
+
316
+ * No user-visible changes
317
+
318
+ ## 1.38.1
319
+
320
+ * No user-visible changes
321
+
322
+ ## 1.38.0
323
+
324
+ * In expanded mode, emit characters in Unicode private-use areas as escape
325
+ sequences rather than literal characters.
326
+
327
+ * Fix a bug where quotes would be omitted for an attribute selector whose value
328
+ was a single backslash.
329
+
330
+ * Properly consider numbers that begin with `.` as "plain CSS" for the purposes
331
+ of parsing plain-CSS `min()` and `max()` functions.
332
+
333
+ * Allow `if` to be used as an unquoted string.
334
+
335
+ * Properly parse backslash escapes within `url()` expressions.
336
+
337
+ * Fix a couple bugs where `@extend`s could be marked as unsatisfied when
338
+ multiple identical `@extend`s extended selectors across `@use` rules.
339
+
340
+ ### Command Line Interface
341
+
342
+ * Strip CRLF newlines from snippets of the original stylesheet that are included
343
+ in the output when an error occurs.
344
+
345
+ ### JS API
346
+
347
+ * Don't crash when a Windows path is returned by a custom Node importer at the
348
+ same time as file contents.
349
+
350
+ * Don't crash when an error occurs in a stylesheet loaded via a custom importer
351
+ with a custom URL scheme.
352
+
353
+ ### Dart API
354
+
355
+ * Add a `SassArgumentList.keywordsWithoutMarking` getter to access the keyword
356
+ arguments of an argument list without marking them accessed.
357
+
358
+ ## 1.37.5
359
+
360
+ * No user-visible changes.
361
+
362
+ ## 1.37.4
363
+
364
+ * No user-visible changes.
365
+
366
+ ## 1.37.3
367
+
368
+ * No user-visible changes.
369
+
370
+ ## 1.37.2
371
+
372
+ * No user-visible changes.
373
+
374
+ ## 1.37.1
375
+
376
+ * No user-visible changes.
377
+
378
+ ## 1.37.0
379
+
380
+ ### Dart API
381
+
382
+ * **Potentially breaking bug fix:** `SassNumber.asSlash`,
383
+ `SassNumber.withSlash()`, and `SassNumber.withoutSlash()` have been marked as
384
+ `@internal`. They were never intended to be used outside the `sass` package.
385
+
386
+ * **Potentially breaking bug fix:** `SassException` has been marked as `@sealed`
387
+ to formally indicate that it's not intended to be extended outside of the
388
+ `sass` package.
389
+
390
+ * Add a `Value.withListContents()` method that returns a new Sass list with the
391
+ same list separator and brackets as the current value, interpreted as a list.
392
+
393
+ ## 1.36.0
394
+
395
+ ### Dart API
396
+
397
+ * Added `compileToResult()`, `compileStringToResult()`,
398
+ `compileToResultAsync()`, and `compileStringToResultAsync()` methods. These
399
+ are intended to replace the existing `compile*()` methods, which are now
400
+ deprecated. Rather than returning a simple string, these return a
401
+ `CompileResult` object, which will allow us to add additional information
402
+ about the compilation without having to introduce further deprecations.
403
+
404
+ * Instead of passing a `sourceMaps` callback to `compile*()`, pass
405
+ `sourceMaps: true` to `compile*ToResult()` and access
406
+ `CompileResult.sourceMap`.
407
+
408
+ * The `CompileResult` object exposes a `loadedUrls` object which lists the
409
+ canonical URLs accessed during a compilation. This information was
410
+ previously unavailable except through the JS API.
411
+
412
+ ## 1.35.2
413
+
414
+ * **Potentially breaking bug fix**: Properly throw an error for Unicode ranges
415
+ that have too many `?`s after hexadecimal digits, such as `U+12345??`.
416
+
417
+ * **Potentially breaking bug fix:** Fixed a bug where certain local variable
418
+ declarations nested within multiple `@if` statements would incorrectly
419
+ override a global variable. It's unlikely that any real stylesheets were
420
+ relying on this bug, but if so they can simply add `!global` to the variable
421
+ declaration to preserve the old behavior.
422
+
423
+ * **Potentially breaking bug fix:** Fix a bug where imports of root-relative
424
+ URLs (those that begin with `/`) in `@import` rules would be passed to
425
+ both Dart and JS importers as `file:` URLs.
426
+
427
+ * Properly support selector lists for the `$extendee` argument to
428
+ `selector.extend()` and `selector.replace()`.
429
+
430
+ * Fix an edge case where `@extend` wouldn't affect a selector within a
431
+ pseudo-selector such as `:is()` that itself extended other selectors.
432
+
433
+ * Fix a race condition where `meta.load-css()` could trigger an internal error
434
+ when running in asynchronous mode.
435
+
436
+ ### Dart API
437
+
438
+ * Use the `@internal` annotation to indicate which `Value` APIs are available
439
+ for public use.
440
+
441
+ ## 1.35.1
442
+
443
+ * Fix a bug where the quiet dependency flag didn't silence warnings in some
444
+ stylesheets loaded using `@import`.
445
+
446
+ ## 1.35.0
447
+
448
+ * Fix a couple bugs that could prevent some members from being found in certain
449
+ files that use a mix of imports and the module system.
450
+
451
+ * Fix incorrect recommendation for migrating division expressions that reference
452
+ namespaced variables.
453
+
454
+ ### JS API
455
+
456
+ * Add a `quietDeps` option which silences compiler warnings from stylesheets
457
+ loaded through importers and load paths.
458
+
459
+ * Add a `verbose` option which causes the compiler to emit all deprecation
460
+ warnings, not just 5 per feature.
461
+
462
+ ## 1.34.1
463
+
464
+ * Fix a bug where `--update` would always compile any file that depends on a
465
+ built-in module.
466
+
467
+ * Fix the URL for the `@-moz-document` deprecation message.
468
+
469
+ * Fix a bug with `@for` loops nested inside property declarations.
470
+
471
+ ## 1.34.0
472
+
473
+ * Don't emit the same warning in the same location multiple times.
474
+
475
+ * Cap deprecation warnings at 5 per feature by default.
476
+
477
+ ### Command Line Interface
478
+
479
+ * Add a `--quiet-deps` flag which silences compiler warnings from stylesheets
480
+ loaded through `--load-path`s.
481
+
482
+ * Add a `--verbose` flag which causes the compiler to emit all deprecation
483
+ warnings, not just 5 per feature.
484
+
485
+ ### Dart API
486
+
487
+ * Add a `quietDeps` argument to `compile()`, `compileString()`,
488
+ `compileAsync()`, and `compileStringAsync()` which silences compiler warnings
489
+ from stylesheets loaded through importers, load paths, and `package:` URLs.
490
+
491
+ * Add a `verbose` argument to `compile()`, `compileString()`, `compileAsync()`,
492
+ and `compileStringAsync()` which causes the compiler to emit all deprecation
493
+ warnings, not just 5 per feature.
494
+
495
+ ## 1.33.0
496
+
497
+ * Deprecate the use of `/` for division. The new `math.div()` function should be
498
+ used instead. See [this page][] for details.
499
+
500
+ [this page]: https://sass-lang.com/documentation/breaking-changes/slash-div
501
+
502
+ * Add a `list.slash()` function that returns a slash-separated list.
503
+
504
+ * **Potentially breaking bug fix:** The heuristics around when potentially
505
+ slash-separated numbers are converted to slash-free numbers—for example, when
506
+ `1/2` will be printed as `0.5` rather than `1/2`—have been slightly expanded.
507
+ Previously, a number would be made slash-free if it was passed as an argument
508
+ to a *user-defined function*, but not to a *built-in function*. Now it will be
509
+ made slash-free in both cases. This is a behavioral change, but it's unlikely
510
+ to affect any real-world stylesheets.
511
+
512
+ * [`:is()`][] now behaves identically to `:matches()`.
513
+
514
+ [`:is()`]: https://developer.mozilla.org/en-US/docs/Web/CSS/:is
515
+
516
+ * Fix a bug where non-integer numbers that were very close to integer
517
+ values would be incorrectly formatted in CSS.
518
+
519
+ * Fix a bug where very small number and very large negative numbers would be
520
+ incorrectly formatted in CSS.
521
+
522
+ ### JS API
523
+
524
+ * The `this` context for importers now has a `fromImport` field, which is `true`
525
+ if the importer is being invoked from an `@import` and `false` otherwise.
526
+ Importers should only use this to determine whether to load [import-only
527
+ files].
528
+
529
+ [import-only files]: https://sass-lang.com/documentation/at-rules/import#import-only-files
530
+
531
+ ### Dart API
532
+
533
+ * Add an `Importer.fromImport` getter, which is `true` if the current
534
+ `Importer.canonicalize()` call comes from an `@import` rule and `false`
535
+ otherwise. Importers should only use this to determine whether to load
536
+ [import-only files].
537
+
538
+ ## 1.32.13
539
+
540
+ * **Potentially breaking bug fix:** Null values in `@use` and `@forward`
541
+ configurations no longer override the `!default` variable, matching the
542
+ behavior of the equivalent code using `@import`.
543
+
544
+ * Use the proper parameter names in error messages about `string.slice`
545
+
546
+ ## 1.32.12
547
+
548
+ * Fix a bug that disallowed more than one module from extending the same
549
+ selector from a module if that selector itself extended a selector from
550
+ another upstream module.
551
+
552
+ ## 1.32.11
553
+
554
+ * Fix a bug where bogus indented syntax errors were reported for lines that
555
+ contained only whitespace.
556
+
557
+ ## 1.32.10
558
+
559
+ * No user-visible changes.
560
+
561
+ ## 1.32.9
562
+
563
+ * Fix a typo in a deprecation warning.
564
+
565
+ ### JavaScript API
566
+
567
+ * Drop support for Chokidar 2.x. This version was incompatible with Node 14, but
568
+ due to shortcomings in npm's version resolver sometimes still ended up
569
+ installed anyway. Only declaring support for 3.0.0 should ensure compatibility
570
+ going forward.
571
+
572
+ ### Dart API
573
+
574
+ * Allow the null safety release of args and watcher.
575
+
576
+ ### Command Line Interface
577
+
578
+ * Add a `-w` shorthand for the `--watch` flag.
579
+
580
+ ## 1.32.8
581
+
582
+ * Update chokidar version for Node API tests.
583
+
584
+ ### JavaScript API
585
+
586
+ * Allow a custom function to access the `render()` options object within its
587
+ local context, as `this.options`.
588
+
589
+ ## 1.32.7
590
+
591
+ * Allow the null safety release of stream_transform.
592
+
593
+ * Allow `@forward...with` to take arguments that have a `!default` flag without
594
+ a trailing comma.
595
+
596
+ * Improve the performance of unitless and single-unit numbers.
597
+
598
+ ## 1.32.6
599
+
600
+ ### Node JS API
601
+
602
+ * Fix Electron support when `nodeIntegration` is disabled.
603
+
604
+ ### Dart API
605
+
606
+ * All range checks for `SassColor` constructors now throw `RangeError`s with
607
+ `start` and `end` set.
608
+
609
+ ## 1.32.5
610
+
611
+ * **Potentially breaking bug fix:** When using `@for` with numbers that have
612
+ units, the iteration variable now matches the unit of the initial number. This
613
+ matches the behavior of Ruby Sass and LibSass.
614
+
615
+ ### Node JS API
616
+
617
+ * Fix a few infrequent errors when calling `render()` with `fiber` multiple
618
+ times simultaneously.
619
+
620
+ * Avoid possible mangled error messages when custom functions or importers throw
621
+ unexpected exceptions.
622
+
623
+ * Fix Electron support when `nodeIntegration` is disabled.
624
+
625
+ ## 1.32.4
626
+
627
+ * No user-visible changes.
628
+
629
+ ## 1.32.3
630
+
631
+ * Optimize `==` for numbers that have different units.
632
+
633
+ ## 1.32.2
634
+
635
+ * Print the actual number that was received in unit deprecation warnings for
636
+ color functions.
637
+
638
+ ## 1.32.1
639
+
640
+ * Don't emit permissions errors on Windows and OS X when trying to determine the
641
+ real case of path names.
642
+
643
+ ## 1.32.0
644
+
645
+ * Deprecate passing non-`%` numbers as lightness and saturation to `hsl()`,
646
+ `hsla()`, `color.adjust()`, and `color.change()`. This matches the CSS
647
+ specification, which also requires `%` for all lightness and saturation
648
+ parameters. See [the Sass website][color-units] for more details.
649
+
650
+ * Deprecate passing numbers with units other than `deg` as the hue to `hsl()`,
651
+ `hsla()`, `adjust-hue()`, `color.adjust()`, and `color.change()`. Unitless
652
+ numbers *are* still allowed here, since they're allowed by CSS. See [the Sass
653
+ website][color-units] for more details.
654
+
655
+ * Improve error messages about incompatible units.
656
+
657
+ * Properly mark some warnings emitted by `sass:color` functions as deprecation
658
+ warnings.
659
+
660
+ ### Dart API
661
+
662
+ * Rename `SassNumber.valueInUnits()` to `SassNumber.coerceValue()`. The old name
663
+ remains, but is now deprecated.
664
+
665
+ * Rename `SassNumber.coerceValueToUnit()`, a shorthand for
666
+ `SassNumber.coerceValue()` that takes a single numerator unit.
667
+
668
+ * Add `SassNumber.coerceToMatch()` and `SassNumber.coerceValueToMatch()`, which
669
+ work like `SassNumber.coerce()` and `SassNumber.coerceValue()` but take a
670
+ `SassNumber` whose units should be matched rather than taking the units
671
+ explicitly. These generate better error messages than `SassNumber.coerce()`
672
+ and `SassNumber.coerceValue()`.
673
+
674
+ * Add `SassNumber.convertToMatch()` and `SassNumber.convertValueToMatch()`,
675
+ which work like `SassNumber.coerceToMatch()` and
676
+ `SassNumber.coerceValueToMatch()` except they throw exceptions when converting
677
+ unitless values to or from units.
678
+
679
+ * Add `SassNumber.compatibleWithUnit()`, which returns whether the number can be
680
+ coerced to a single numerator unit.
681
+
682
+ ## 1.31.0
683
+
684
+ * Add support for parsing `clamp()` as a special math function, the same way
685
+ `calc()` is parsed.
686
+
687
+ * Properly load files in case-sensitive Windows directories with upper-case
688
+ names.
689
+
690
+ ## 1.30.0
691
+
692
+ * Fix a bug where `@at-root (without: all)` wouldn't properly remove a
693
+ `@keyframes` context when parsing selectors.
694
+
695
+ ### Node JS API
696
+
697
+ * The generated `main()` function in `sass.js` now returns a `Promise` that
698
+ completes when the executable is finished running.
699
+
700
+ ### Dart API
701
+
702
+ * Fix a bug that prevented importers from returning null when loading from a
703
+ URL that they had already canonicalized.
704
+
705
+ ## 1.29.0
706
+
707
+ * Support a broader syntax for `@supports` conditions, based on the latest
708
+ [Editor's Draft of CSS Conditional Rules 3]. Almost all syntax will be allowed
709
+ (with interpolation) in the conditions' parentheses, as well as function
710
+ syntax such as `@supports selector(...)`.
711
+
712
+ [Editor's Draft of CSS Conditional Rules 3]: https://drafts.csswg.org/css-conditional-3/#at-supports
713
+
714
+ ## 1.28.0
715
+
716
+ * Add a [`color.hwb()`] function to `sass:color` that can express colors in [HWB] format.
717
+
718
+ [`color.hwb()`]: https://sass-lang.com/documentation/modules/color#hwb
719
+ [HWB]: https://en.wikipedia.org/wiki/HWB_color_model
720
+
721
+ * Add [`color.whiteness()`] and [`color.blackness()`] functions to `sass:color`
722
+ to get a color's [HWB] whiteness and blackness components.
723
+
724
+ [`color.whiteness()`]: https://sass-lang.com/documentation/modules/color#whiteness
725
+ [`color.blackness()`]: https://sass-lang.com/documentation/modules/color#blackness
726
+
727
+ * Add `$whiteness` and `$blackness` parameters to [`color.adjust()`],
728
+ [`color.change()`], and [`color.scale()`] to modify a color's [HWB] whiteness
729
+ and blackness components.
730
+
731
+ [`color.adjust()`]: https://sass-lang.com/documentation/modules/color#adjust
732
+ [`color.change()`]: https://sass-lang.com/documentation/modules/color#change
733
+ [`color.scale()`]: https://sass-lang.com/documentation/modules/color#scale
734
+
735
+ ### Dart API
736
+
737
+ * Add [HWB] support to the `SassColor` class, including a `SassColor.hwb()`
738
+ constructor, `whiteness` and `blackness` getters, and a `changeHwb()` method.
739
+
740
+ [HWB]: https://en.wikipedia.org/wiki/HWB_color_model
741
+
742
+ ## 1.27.2
743
+
744
+ * No user-visible changes.
745
+
746
+ ## 1.27.1
747
+
748
+ * **Potentially breaking bug fix:** `meta.load-css()` now correctly uses the
749
+ name `$url` for its first argument, rather than `$module`.
750
+
751
+ * Don't crash when using `Infinity` or `NaN` as a key in a map.
752
+
753
+ * Emit a proper parse error for a `=` with no right-hand side in a function.
754
+
755
+ * Avoid going exponential on certain recursive `@extend` edge cases.
756
+
757
+ ## 1.27.0
758
+
759
+ * Adds an overload to `map.merge()` that supports merging a nested map.
760
+
761
+ `map.merge($map1, $keys..., $map2)`: The `$keys` form a path to the nested map
762
+ in `$map1`, into which `$map2` gets merged.
763
+
764
+ See [the Sass documentation][map-merge] for more details.
765
+
766
+ [map-merge]: https://sass-lang.com/documentation/modules/map#merge
767
+
768
+ * Adds an overloaded `map.set()` function.
769
+
770
+ `map.set($map, $key, $value)`: Adds to or updates `$map` with the specified
771
+ `$key` and `$value`.
772
+
773
+ `map.set($map, $keys..., $value)`: Adds to or updates a map that is nested
774
+ within `$map`. The `$keys` form a path to the nested map in `$map`, into
775
+ which `$value` is inserted.
776
+
777
+ See [the Sass documentation][map-set] for more details.
778
+
779
+ [map-set]: https://sass-lang.com/documentation/modules/map#set
780
+
781
+ * Add support for nested maps to `map.get()`.
782
+ For example, `map.get((a: (b: (c: d))), a, b, c)` would return `d`.
783
+ See [the documentation][map-get] for more details.
784
+
785
+ [map-get]: https://sass-lang.com/documentation/modules/map#get
786
+
787
+ * Add support for nested maps in `map.has-key`.
788
+ For example, `map.has-key((a: (b: (c: d))), a, b, c)` would return true.
789
+ See [the documentation][map-has-key] for more details.
790
+
791
+ [map-has-key]: https://sass-lang.com/documentation/modules/map#has-key
792
+
793
+ * Add a `map.deep-merge()` function. This works like `map.merge()`, except that
794
+ nested map values are *also* recursively merged. For example:
795
+
796
+ ```
797
+ map.deep-merge(
798
+ (color: (primary: red, secondary: blue),
799
+ (color: (secondary: teal)
800
+ ) // => (color: (primary: red, secondary: teal))
801
+ ```
802
+
803
+ See [the Sass documentation][map-deep-merge] for more details.
804
+
805
+ [map-deep-merge]: https://sass-lang.com/documentation/modules/map#deep-merge
806
+
807
+ * Add a `map.deep-remove()` function. This allows you to remove keys from
808
+ nested maps by passing multiple keys. For example:
809
+
810
+ ```
811
+ map.deep-remove(
812
+ (color: (primary: red, secondary: blue)),
813
+ color, primary
814
+ ) // => (color: (secondary: blue))
815
+ ```
816
+
817
+ See [the Sass documentation][map-deep-remove] for more details.
818
+
819
+ [map-deep-remove]: https://sass-lang.com/documentation/modules/map#deep-remove
820
+
821
+ * Fix a bug where custom property values in plain CSS were being parsed as
822
+ normal property values.
823
+
824
+ ### Dart API
825
+
826
+ * Add a `Value.tryMap()` function which returns the `Value` as a `SassMap` if
827
+ it's a valid map, or `null` otherwise. This allows function authors to safely
828
+ retrieve maps even if they're internally stored as empty lists, without having
829
+ to catch exceptions from `Value.assertMap()`.
830
+
831
+ ## 1.26.12
832
+
833
+ * Fix a bug where nesting properties beneath a Sass-syntax custom property
834
+ (written as `#{--foo}: ...`) would crash.
835
+
836
+ ## 1.26.11
837
+
838
+ * **Potentially breaking bug fix:** `selector.nest()` now throws an error
839
+ if the first arguments contains the parent selector `&`.
840
+
841
+ * Fixes a parsing bug with inline comments in selectors.
842
+
843
+ * Improve some error messages for edge-case parse failures.
844
+
845
+ * Throw a proper error when the same built-in module is `@use`d twice.
846
+
847
+ * Don't crash when writing `Infinity` in JS mode.
848
+
849
+ * Produce a better error message for positional arguments following named
850
+ arguments.
851
+
852
+ ## 1.26.10
853
+
854
+ * Fixes a bug where two adjacent combinators could cause an error.
855
+
856
+ ## 1.26.9
857
+
858
+ * Use an updated version of `node_preamble` when compiling to JS.
859
+
860
+ ## 1.26.8
861
+
862
+ * Fixes an error when emitting source maps to stdout.
863
+
864
+ ## 1.26.7
865
+
866
+ * No user-visible changes.
867
+
868
+ ## 1.26.6
869
+
870
+ * Fix a bug where escape sequences were improperly recognized in `@else` rules.
871
+
872
+ ### JavaScript API
873
+
874
+ * Add `sass.NULL`, `sass.TRUE`, and `sass.FALSE` constants to match Node Sass's
875
+ API.
876
+
877
+ * If a custom Node importer returns both `file` and `contents`, don't attempt to
878
+ read the `file`. Instead, use the `contents` provided by the importer, with
879
+ `file` as the canonical url.
880
+
881
+ ## 1.26.5
882
+
883
+ * No user-visible changes.
884
+
885
+ ## 1.26.4
886
+
887
+ * Be more memory-efficient when handling `@forward`s through `@import`s.
888
+
889
+ ## 1.26.3
890
+
891
+ * Fix a bug where `--watch` mode could go into an infinite loop compiling CSS
892
+ files to themselves.
893
+
894
+ ## 1.26.2
895
+
896
+ * More aggressively eliminate redundant selectors in the `selector.extend()` and
897
+ `selector.replace()` functions.
898
+
899
+ ## 1.26.1
900
+
901
+ ### Command Line Interface
902
+
903
+ * Fix a longstanding bug where `--watch` mode could enter into a state where
904
+ recompilation would not occur after a syntax error was introduced into a
905
+ dependency and then fixed.
906
+
907
+ ## 1.26.0
908
+
909
+ * **Potentially breaking bug fix:** `@use` rules whose URLs' basenames begin
910
+ with `_` now correctly exclude that `_` from the rules' namespaces.
911
+
912
+ * Fix a bug where imported forwarded members weren't visible in mixins and
913
+ functions that were defined before the `@import`.
914
+
915
+ * Don't throw errors if the exact same member is loaded or forwarded from
916
+ multiple modules at the same time.
917
+
918
+ ## 1.25.2
919
+
920
+ * Fix a bug where, under extremely rare circumstances, a valid variable could
921
+ become unassigned.
922
+
923
+ ## 1.25.0
924
+
925
+ * Add functions to the built-in "sass:math" module.
926
+
927
+ * `clamp($min, $number, $max)`. Clamps `$number` in between `$min` and `$max`.
928
+
929
+ * `hypot($numbers...)`. Given *n* numbers, outputs the length of the
930
+ *n*-dimensional vector that has components equal to each of the inputs.
931
+
932
+ * Exponential. All inputs must be unitless.
933
+ * `log($number)` or `log($number, $base)`. If no base is provided, performs
934
+ a natural log.
935
+ * `pow($base, $exponent)`
936
+ * `sqrt($number)`
937
+
938
+ * Trigonometric. The input must be an angle. If no unit is given, the input is
939
+ assumed to be in `rad`.
940
+ * `cos($number)`
941
+ * `sin($number)`
942
+ * `tan($number)`
943
+
944
+ * Inverse trigonometric. The output is in `deg`.
945
+ * `acos($number)`. Input must be unitless.
946
+ * `asin($number)`. Input must be unitless.
947
+ * `atan($number)`. Input must be unitless.
948
+ * `atan2($y, $x)`. `$y` and `$x` must have compatible units or be unitless.
949
+
950
+ * Add the variables `$pi` and `$e` to the built-in "sass:math" module.
951
+
952
+ ### JavaScript API
953
+
954
+ * `constructor.value` fields on value objects now match their Node Sass
955
+ equivalents.
956
+
957
+ ## 1.24.5
958
+
959
+ * Highlight contextually-relevant sections of the stylesheet in error messages,
960
+ rather than only highlighting the section where the error was detected.
961
+
962
+ ## 1.24.4
963
+
964
+ ### JavaScript API
965
+
966
+ * Fix a bug where source map generation would crash with an absolute source map
967
+ path and a custom importer that returns string file contents.
968
+
969
+ ## 1.24.3
970
+
971
+ ### Command Line Interface
972
+
973
+ * Fix a bug where `sass --version` would crash for certain executable
974
+ distributions.
975
+
976
+ ## 1.24.2
977
+
978
+ ### JavaScript API
979
+
980
+ * Fix a bug introduced in the previous release that prevented custom importers
981
+ in Node.js from loading import-only files.
982
+
983
+ ## 1.24.1
984
+
985
+ * Fix a bug where the wrong file could be loaded when the same URL is used by
986
+ both a `@use` rule and an `@import` rule.
987
+
988
+ ## 1.24.0
989
+
990
+ * Add an optional `with` clause to the `@forward` rule. This works like the
991
+ `@use` rule's `with` clause, except that `@forward ... with` can declare
992
+ variables as `!default` to allow downstream modules to reconfigure their
993
+ values.
994
+
995
+ * Support configuring modules through `@import` rules.
996
+
997
+ ## 1.23.8
998
+
999
+ * **Potentially breaking bug fix:** Members loaded through a nested `@import`
1000
+ are no longer ever accessible outside that nested context.
1001
+
1002
+ * Don't throw an error when importing two modules that both forward members with
1003
+ the same name. The latter name now takes precedence over the former, as per
1004
+ the specification.
1005
+
1006
+ ### Dart API
1007
+
1008
+ * `SassFormatException` now implements `SourceSpanFormatException` (and thus
1009
+ `FormatException`).
1010
+
1011
+ ## 1.23.7
1012
+
1013
+ * No user-visible changes
1014
+
1015
+ ## 1.23.6
1016
+
1017
+ * No user-visible changes.
1018
+
1019
+ ## 1.23.5
1020
+
1021
+ * Support inline comments in the indented syntax.
1022
+
1023
+ * When an overloaded function receives the wrong number of arguments, guess
1024
+ which overload the user actually meant to invoke, and display the invalid
1025
+ argument error for that overload.
1026
+
1027
+ * When `@error` is used in a function or mixin, print the call site rather than
1028
+ the location of the `@error` itself to better match the behavior of calling a
1029
+ built-in function that throws an error.
1030
+
1031
+ ## 1.23.4
1032
+
1033
+ ### Command-Line Interface
1034
+
1035
+ * Fix a bug where `--watch` wouldn't watch files referred to by `@forward`
1036
+ rules.
1037
+
1038
+ ## 1.23.3
1039
+
1040
+ * Fix a bug where selectors were being trimmed over-eagerly when `@extend`
1041
+ crossed module boundaries.
1042
+
1043
+ ## 1.23.2
1044
+
1045
+ ### Command-Line Interface
1046
+
1047
+ * Fix a bug when compiling all Sass files in a directory where a CSS file could
1048
+ be compiled to its own location, creating an infinite loop in `--watch` mode.
1049
+
1050
+ * Properly compile CSS entrypoints in directories outside of `--watch` mode.
1051
+
1052
+ ## 1.23.1
1053
+
1054
+ * Fix a bug preventing built-in modules from being loaded within a configured
1055
+ module.
1056
+
1057
+ * Fix a bug preventing an unconfigured module from being loaded from within two
1058
+ different configured modules.
1059
+
1060
+ * Fix a bug when `meta.load-css()` was used to load some files that included
1061
+ media queries.
1062
+
1063
+ * Allow `saturate()` in plain CSS files, since it can be used as a plain CSS
1064
+ filter function.
1065
+
1066
+ * Improve the error messages for trying to access functions like `lighten()`
1067
+ from the `sass:color` module.
1068
+
1069
+ ## 1.23.0
1070
+
1071
+ * **Launch the new Sass module system!** This adds:
1072
+
1073
+ * The [`@use` rule][], which loads Sass files as *modules* and makes their
1074
+ members available only in the current file, with automatic namespacing.
1075
+
1076
+ [`@use` rule]: https://sass-lang.com/documentation/at-rules/use
1077
+
1078
+ * The [`@forward` rule][], which makes members of another Sass file available
1079
+ to stylesheets that `@use` the current file.
1080
+
1081
+ [`@forward` rule]: https://sass-lang.com/documentation/at-rules/forward
1082
+
1083
+ * Built-in modules named `sass:color`, `sass:list`, `sass:map`, `sass:math`,
1084
+ `sass:meta`, `sass:selector`, and `sass:string` that provide access to all
1085
+ the built-in Sass functions you know and love, with automatic module
1086
+ namespaces.
1087
+
1088
+ * The [`meta.load-css()` mixin][], which includes the CSS contents of a module
1089
+ loaded from a (potentially dynamic) URL.
1090
+
1091
+ [`meta.load-css()` mixin]: https://sass-lang.com/documentation/modules/meta#load-css
1092
+
1093
+ * The [`meta.module-variables()` function][], which provides access to the
1094
+ variables defined in a given module.
1095
+
1096
+ [`meta.module-variables()` function]: https://sass-lang.com/documentation/modules/meta#module-variables
1097
+
1098
+ * The [`meta.module-functions()` function][], which provides access to the
1099
+ functions defined in a given module.
1100
+
1101
+ [`meta.module-functions()` function]: https://sass-lang.com/documentation/modules/meta#module-functions
1102
+
1103
+ Check out [the Sass blog][migrator blog] for more information on the new
1104
+ module system. You can also use the new [Sass migrator][] to automatically
1105
+ migrate your stylesheets to the new module system!
1106
+
1107
+ [migrator blog]: https://sass-lang.com/blog/the-module-system-is-launched
1108
+ [Sass migrator]: https://sass-lang.com/documentation/cli/migrator
1109
+
1110
+ ## 1.22.12
1111
+
1112
+ * **Potentially breaking bug fix:** character sequences consisting of two or
1113
+ more hyphens followed by a number (such as `--123`), or two or more hyphens on
1114
+ their own (such as `--`), are now parsed as identifiers [in accordance with
1115
+ the CSS spec][ident-token-diagram].
1116
+
1117
+ [ident-token-diagram]: https://drafts.csswg.org/css-syntax-3/#ident-token-diagram
1118
+
1119
+ The sequence `--` was previously parsed as multiple applications of the `-`
1120
+ operator. Since this is unlikely to be used intentionally in practice, we
1121
+ consider this bug fix safe.
1122
+
1123
+ ### Command-Line Interface
1124
+
1125
+ * Fix a bug where changes in `.css` files would be ignored in `--watch` mode.
1126
+
1127
+ ### JavaScript API
1128
+
1129
+ * Allow underscore-separated custom functions to be defined.
1130
+
1131
+ * Improve the performance of Node.js compilation involving many `@import`s.
1132
+
1133
+ ## 1.22.11
1134
+
1135
+ * Don't try to load unquoted plain-CSS indented-syntax imports.
1136
+
1137
+ * Fix a couple edge cases in `@extend` logic and related selector functions:
1138
+
1139
+ * Recognize `:matches()` and similar pseudo-selectors as superselectors of
1140
+ matching complex selectors.
1141
+
1142
+ * Recognize `::slotted()` as a superselector of other `::slotted()` selectors.
1143
+
1144
+ * Recognize `:current()` with a vendor prefix as a superselector.
1145
+
1146
+ ## 1.22.10
1147
+
1148
+ * Fix a bug in which `get-function()` would fail to find a dash-separated
1149
+ function when passed a function name with underscores.
1150
+
1151
+ ## 1.22.9
1152
+
1153
+ * Include argument names when reporting range errors and selector parse errors.
1154
+
1155
+ * Avoid double `Error:` headers when reporting selector parse errors.
1156
+
1157
+ * Clarify the error message when the wrong number of positional arguments are
1158
+ passed along with a named argument.
1159
+
1160
+ ### JavaScript API
1161
+
1162
+ * Re-add support for Node Carbon (8.x).
1163
+
1164
+ ## 1.22.8
1165
+
1166
+ ### JavaScript API
1167
+
1168
+ * Don't crash when running in a directory whose name contains URL-sensitive
1169
+ characters.
1170
+
1171
+ * Drop support for Node Carbon (8.x), which doesn't support `url.pathToFileURL`.
1172
+
1173
+ ## 1.22.7
1174
+
1175
+ * Restrict the supported versions of the Dart SDK to `^2.4.0`.
1176
+
1177
+ ## 1.22.6
1178
+
1179
+ * **Potentially breaking bug fix:** The `keywords()` function now converts
1180
+ underscore-separated argument names to hyphen-separated names. This matches
1181
+ LibSass's behavior, but not Ruby Sass's.
1182
+
1183
+ * Further improve performance for logic-heavy stylesheets.
1184
+
1185
+ * Improve a few error messages.
1186
+
1187
+ ## 1.22.5
1188
+
1189
+ ### JavaScript API
1190
+
1191
+ * Improve performance for logic-heavy stylesheets.
1192
+
1193
+ ## 1.22.4
1194
+
1195
+ * Fix a bug where at-rules imported from within a style rule would appear within
1196
+ that style rule rather than at the root of the document.
1197
+
1198
+ ## 1.22.3
1199
+
1200
+ * **Potentially breaking bug fix:** The argument name for the `saturate()`
1201
+ function is now `$amount`, to match the name in LibSass and originally in Ruby
1202
+ Sass.
1203
+
1204
+ * **Potentially breaking bug fix:** The `invert()` function now properly returns
1205
+ `#808080` when passed `$weight: 50%`. This matches the behavior in LibSass and
1206
+ originally in Ruby Sass, as well as being consistent with other nearby values
1207
+ of `$weight`.
1208
+
1209
+ * **Potentially breaking bug fix:** The `invert()` function now throws an error
1210
+ if it's used [as a plain CSS function][plain-CSS invert] *and* the Sass-only
1211
+ `$weight` parameter is passed. This never did anything useful, so it's
1212
+ considered a bug fix rather than a full breaking change.
1213
+
1214
+ [plain-CSS invert]: https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/invert
1215
+
1216
+ * **Potentially breaking bug fix**: The `str-insert()` function now properly
1217
+ inserts at the end of the string if the `$index` is `-1`. This matches the
1218
+ behavior in LibSass and originally in Ruby Sass.
1219
+
1220
+ * **Potentially breaking bug fix**: An empty map returned by `map-remove()` is
1221
+ now treated as identical to the literal value `()`, rather than being treated
1222
+ as though it had a comma separator. This matches the original behavior in Ruby
1223
+ Sass.
1224
+
1225
+ * The `adjust-color()` function no longer throws an error when a large `$alpha`
1226
+ value is combined with HSL adjustments.
1227
+
1228
+ * The `alpha()` function now produces clearer error messages when the wrong
1229
+ number of arguments are passed.
1230
+
1231
+ * Fix a bug where the `str-slice()` function could produce invalid output when
1232
+ passed a string that contains characters that aren't represented as a single
1233
+ byte in UTF-16.
1234
+
1235
+ * Improve the error message for an unknown separator name passed to the `join()`
1236
+ or `append()` functions.
1237
+
1238
+ * The `zip()` function no longer deadlocks if passed no arguments.
1239
+
1240
+ * The `map-remove()` function can now take a `$key` named argument. This matches
1241
+ the signature in LibSass and originally in Ruby Sass.
1242
+
1243
+ ## 1.22.2
1244
+
1245
+ ### JavaScript API
1246
+
1247
+ * Avoid re-assigning the `require()` function to make the code statically
1248
+ analyzable by Webpack.
1249
+
1250
+ ## 1.22.1
1251
+
1252
+ ### JavaScript API
1253
+
1254
+ * Expand the dependency on `chokidar` to allow 3.x.
1255
+
1256
+ ## 1.22.0
1257
+
1258
+ * Produce better stack traces when importing a file that contains a syntax
1259
+ error.
1260
+
1261
+ * Make deprecation warnings for `!global` variable declarations that create new
1262
+ variables clearer, especially in the case where the `!global` flag is
1263
+ unnecessary because the variables are at the top level of the stylesheet.
1264
+
1265
+ ### Dart API
1266
+
1267
+ * Add a `Value.realNull` getter, which returns Dart's `null` if the value is
1268
+ Sass's null.
1269
+
1270
+ ## 1.21.0
1271
+
1272
+ ### Dart API
1273
+
1274
+ * Add a `sass` executable when installing the package through `pub`.
1275
+
1276
+ * Add a top-level `warn()` function for custom functions and importers to print
1277
+ warning messages.
1278
+
1279
+ ## 1.20.3
1280
+
1281
+ * No user-visible changes.
1282
+
1283
+ ## 1.20.2
1284
+
1285
+ * Fix a bug where numbers could be written using exponential notation in
1286
+ Node.js.
1287
+
1288
+ * Fix a crash that would appear when writing some very large integers to CSS.
1289
+
1290
+ ### Command-Line Interface
1291
+
1292
+ * Improve performance for stand-alone packages on Linux and Mac OS.
1293
+
1294
+ ### JavaScript API
1295
+
1296
+ * Pass imports to custom importers before resolving them using `includePaths` or
1297
+ the `SASS_PATH` environment variable. This matches Node Sass's behavior, so
1298
+ it's considered a bug fix.
1299
+
1300
+ ## 1.20.1
1301
+
1302
+ * No user-visible changes.
1303
+
1304
+ ## 1.20.0
1305
+
1306
+ * Support attribute selector modifiers, such as the `i` in `[title="test" i]`.
1307
+
1308
+ ### Command-Line Interface
1309
+
1310
+ * When compilation fails, Sass will now write the error message to the CSS
1311
+ output as a comment and as the `content` property of a `body::before` rule so
1312
+ it will show up in the browser (unless compiling to standard output). This can
1313
+ be disabled with the `--no-error-css` flag, or forced even when compiling to
1314
+ standard output with the `--error-css` flag.
1315
+
1316
+ ### Dart API
1317
+
1318
+ * Added `SassException.toCssString()`, which returns the contents of a CSS
1319
+ stylesheet describing the error, as above.
1320
+
1321
+ ## 1.19.0
1322
+
1323
+ * Allow `!` in `url()`s without quotes.
1324
+
1325
+ ### Dart API
1326
+
1327
+ * `FilesystemImporter` now doesn't change its effective directory if the working
1328
+ directory changes, even if it's passed a relative argument.
1329
+
1330
+ ## 1.18.0
1331
+
1332
+ * Avoid recursively listing directories when finding the canonical name of a
1333
+ file on case-insensitive filesystems.
1334
+
1335
+ * Fix importing files relative to `package:`-imported files.
1336
+
1337
+ * Don't claim that "package:" URLs aren't supported when they actually are.
1338
+
1339
+ ### Command-Line Interface
1340
+
1341
+ * Add a `--no-charset` flag. If this flag is set, Sass will never emit a
1342
+ `@charset` declaration or a byte-order mark, even if the CSS file contains
1343
+ non-ASCII characters.
1344
+
1345
+ ### Dart API
1346
+
1347
+ * Add a `charset` option to `compile()`, `compileString()`, `compileAsync()` and
1348
+ `compileStringAsync()`. If this option is set to `false`, Sass will never emit
1349
+ a `@charset` declaration or a byte-order mark, even if the CSS file contains
1350
+ non-ASCII characters.
1351
+
1352
+ * Explicitly require that importers' `canonicalize()` methods be able to take
1353
+ paths relative to their outputs as valid inputs. This isn't considered a
1354
+ breaking change because the importer infrastructure already required this in
1355
+ practice.
1356
+
1357
+ ## 1.17.4
1358
+
1359
+ * Consistently parse U+000C FORM FEED, U+000D CARRIAGE RETURN, and sequences of
1360
+ U+000D CARRIAGE RETURN followed by U+000A LINE FEED as individual newlines.
1361
+
1362
+ ### JavaScript API
1363
+
1364
+ * Add a `sass.types.Error` constructor as an alias for `Error`. This makes our
1365
+ custom function API compatible with Node Sass's.
1366
+
1367
+ ## 1.17.3
1368
+
1369
+ * Fix an edge case where slash-separated numbers were written to the stylesheet
1370
+ with a slash even when they're used as part of another arithmetic operation,
1371
+ such as being concatenated with a string.
1372
+
1373
+ * Don't put style rules inside empty `@keyframes` selectors.
1374
+
1375
+ ## 1.17.2
1376
+
1377
+ * Deprecate `!global` variable assignments to variables that aren't yet defined.
1378
+ This deprecation message can be avoided by assigning variables to `null` at
1379
+ the top level before globally assigning values to them.
1380
+
1381
+ ### Dart API
1382
+
1383
+ * Explicitly mark classes that were never intended to be subclassed or
1384
+ implemented as "sealed".
1385
+
1386
+ ## 1.17.1
1387
+
1388
+ * Properly quote attribute selector values that start with identifiers but end
1389
+ with a non-identifier character.
1390
+
1391
+ ## 1.17.0
1392
+
1393
+ * Improve error output, particularly for errors that cover multiple lines.
1394
+
1395
+ * Improve source locations for some parse errors. Rather than pointing to the
1396
+ next token that wasn't what was expected, they point *after* the previous
1397
+ token. This should generally provide more context for the syntax error.
1398
+
1399
+ * Produce a better error message for style rules that are missing the closing
1400
+ `}`.
1401
+
1402
+ * Produce a better error message for style rules and property declarations
1403
+ within `@function` rules.
1404
+
1405
+ ### Command-Line Interface
1406
+
1407
+ * Passing a directory on the command line now compiles all Sass source files in
1408
+ the directory to CSS files in the same directory, as though `dir:dir` were
1409
+ passed instead of just `dir`.
1410
+
1411
+ * The new error output uses non-ASCII Unicode characters by default. Add a
1412
+ `--no-unicode` flag to disable this.
1413
+
1414
+ ## 1.16.1
1415
+
1416
+ * Fix a performance bug where stylesheet evaluation could take a very long time
1417
+ when many binary operators were used in sequence.
1418
+
1419
+ ## 1.16.0
1420
+
1421
+ * `rgb()` and `hsl()` now treat unquoted strings beginning with `env()`,
1422
+ `min()`, and `max()` as special number strings like `calc()`.
1423
+
1424
+ ## 1.15.3
1425
+
1426
+ * Properly merge `all and` media queries. These queries were previously being
1427
+ merged as though `all` referred to a specific media type, rather than all
1428
+ media types.
1429
+
1430
+ * Never remove units from 0 values in compressed mode. This wasn't safe in
1431
+ general, since some properties (such as `line-height`) interpret `0` as a
1432
+ `<number>` rather than a `<length>` which can break CSS transforms. It's
1433
+ better to do this optimization in a dedicated compressor that's aware of CSS
1434
+ property semantics.
1435
+
1436
+ * Match Ruby Sass's behavior in some edge-cases involving numbers with many
1437
+ significant digits.
1438
+
1439
+ * Emit escaped tab characters in identifiers as `\9` rather than a backslash
1440
+ followed by a literal tab.
1441
+
1442
+ ### Command-Line Interface
1443
+
1444
+ * The source map generated for a stylesheet read from standard input now uses a
1445
+ `data:` URL to include that stylesheet's contents in the source map.
1446
+
1447
+ ### Node JS API
1448
+
1449
+ * `this.includePaths` for a running importer is now a `;`-separated string on
1450
+ Windows, rather than `:`-separated. This matches Node Sass's behavior.
1451
+
1452
+ ### Dart API
1453
+
1454
+ * The URL used in a source map to refer to a stylesheet loaded from an importer
1455
+ is now `ImportResult.sourceMapUrl` as documented.
1456
+
1457
+ ## 1.15.2
1458
+
1459
+ ### Node JS API
1460
+
1461
+ * When `setValue()` is called on a Sass string object, make it unquoted even if
1462
+ it was quoted originally, to match the behavior of Node Sass.
1463
+
1464
+ ## 1.15.1
1465
+
1466
+ * Always add quotes to attribute selector values that begin with `--`, since IE
1467
+ 11 doesn't consider them to be identifiers.
1468
+
1469
+ ## 1.15.0
1470
+
1471
+ * Add support for passing arguments to `@content` blocks. See [the
1472
+ proposal][content-args] for details.
1473
+
1474
+ * Add support for the new `rgb()` and `hsl()` syntax introduced in CSS Colors
1475
+ Level 4, such as `rgb(0% 100% 0% / 0.5)`. See [the proposal][color-4-rgb-hsl]
1476
+ for more details.
1477
+
1478
+ * Add support for interpolation in at-rule names. See [the
1479
+ proposal][at-rule-interpolation] for details.
1480
+
1481
+ * Add paths from the `SASS_PATH` environment variable to the load paths in the
1482
+ command-line interface, Dart API, and JS API. These load paths are checked
1483
+ just after the load paths explicitly passed by the user.
1484
+
1485
+ * Allow saturation and lightness values outside of the `0%` to `100%` range in
1486
+ the `hsl()` and `hsla()` functions. They're now clamped to be within that
1487
+ range rather than producing an error if they're outside it.
1488
+
1489
+ * Properly compile selectors that end in escaped whitespace.
1490
+
1491
+ [content-args]: https://github.com/sass/language/blob/master/accepted/content-args.md
1492
+ [color-4-rgb-hsl]: https://github.com/sass/language/blob/master/accepted/color-4-rgb-hsl.md
1493
+ [at-rule-interpolation]: https://github.com/sass/language/blob/master/accepted/at-rule-interpolation.md
1494
+
1495
+ ### JavaScript API
1496
+
1497
+ * Always include the error location in error messages.
1498
+
1499
+ ## 1.14.4
1500
+
1501
+ * Properly escape U+0009 CHARACTER TABULATION in unquoted strings.
1502
+
1503
+ ## 1.14.3
1504
+
1505
+ * Treat `:before`, `:after`, `:first-line`, and `:first-letter` as
1506
+ pseudo-elements for the purposes of `@extend`.
1507
+
1508
+ * When running in compressed mode, remove spaces around combinators in complex
1509
+ selectors, so a selector like `a > b` is output as `a>b`.
1510
+
1511
+ * Properly indicate the source span for errors involving binary operation
1512
+ expressions whose operands are parenthesized.
1513
+
1514
+ ## 1.14.2
1515
+
1516
+ * Fix a bug where loading the same stylesheet from two different import paths
1517
+ could cause its imports to fail to resolve.
1518
+
1519
+ * Properly escape U+001F INFORMATION SEPARATOR ONE in unquoted strings.
1520
+
1521
+ ### Command-Line Interface
1522
+
1523
+ * Don't crash when using `@debug` in a stylesheet passed on standard input.
1524
+
1525
+ ### Dart API
1526
+
1527
+ * `AsyncImporter.canonicalize()` and `Importer.canonicalize()` must now return
1528
+ absolute URLs. Relative URLs are still supported, but are deprecated and will
1529
+ be removed in a future release.
1530
+
1531
+ ## 1.14.1
1532
+
1533
+ * Canonicalize escaped digits at the beginning of identifiers as hex escapes.
1534
+
1535
+ * Properly parse property declarations that are both *in* content blocks and
1536
+ written *after* content blocks.
1537
+
1538
+ ### Command-Line Interface
1539
+
1540
+ * Print more readable paths in `--watch` mode.
1541
+
1542
+ ## 1.14.0
1543
+
1544
+ ### BREAKING CHANGE
1545
+
1546
+ In accordance with our [compatibility policy][], breaking changes made for CSS
1547
+ compatibility reasons are released as minor version revision after a three-month
1548
+ deprecation period.
1549
+
1550
+ [compatibility policy]: README.md#compatibility-policy
1551
+
1552
+ * Tokens such as `#abcd` that are now interpreted as hex colors with alpha
1553
+ channels, rather than unquoted ID strings.
1554
+
1555
+ ## 1.13.4
1556
+
1557
+ ### Node JS
1558
+
1559
+ * Tweak JS compilation options to substantially improve performance.
1560
+
1561
+ ## 1.13.3
1562
+
1563
+ * Properly generate source maps for stylesheets that emit `@charset`
1564
+ declarations.
1565
+
1566
+ ### Command-Line Interface
1567
+
1568
+ * Don't error out when passing `--embed-source-maps` along with
1569
+ `--embed-sources` for stylesheets that contain non-ASCII characters.
1570
+
1571
+ ## 1.13.2
1572
+
1573
+ * Properly parse `:nth-child()` and `:nth-last-child()` selectors with
1574
+ whitespace around the argument.
1575
+
1576
+ * Don't emit extra whitespace in the arguments for `:nth-child()` and
1577
+ `:nth-last-child()` selectors.
1578
+
1579
+ * Fix support for CSS hacks in plain CSS mode.
1580
+
1581
+ ## 1.13.1
1582
+
1583
+ * Allow an IE-style single equals operator in plain CSS imports.
1584
+
1585
+ ## 1.13.0
1586
+
1587
+ * Allow `@extend` to be used with multiple comma-separated simple selectors.
1588
+ This is already supported by other implementations, but fell through the
1589
+ cracks for Dart Sass until now.
1590
+
1591
+ * Don't crash when a media rule contains another media rule followed by a style
1592
+ rule.
1593
+
1594
+ ## 1.12.0
1595
+
1596
+ ### Dart API
1597
+
1598
+ * Add a `SassException` type that provides information about Sass compilation
1599
+ failures.
1600
+
1601
+ ### Node JS API
1602
+
1603
+ * Remove the source map comment from the compiled JS. We don't ship with the
1604
+ source map, so this pointed to nothing.
1605
+
1606
+ ## 1.11.0
1607
+
1608
+ * Add support for importing plain CSS files. They can only be imported *without*
1609
+ an extension—for example, `@import "style"` will import `style.css`. Plain CSS
1610
+ files imported this way only support standard CSS features, not Sass
1611
+ extensions.
1612
+
1613
+ See [the proposal][css-import] for details.
1614
+
1615
+ * Add support for CSS's `min()` and `max()` [math functions][]. A `min()` and
1616
+ `max()` call will continue to be parsed as a Sass function if it involves any
1617
+ Sass-specific features like variables or function calls, but if it's valid
1618
+ plain CSS (optionally with interpolation) it will be emitted as plain CSS instead.
1619
+
1620
+ See [the proposal][css-min-max] for details.
1621
+
1622
+ * Add support for range-format media features like `(10px < width < 100px)`. See
1623
+ [the proposal][media-ranges] for details.
1624
+
1625
+ * Normalize escape codes in identifiers so that, for example, `éclair` and
1626
+ `\E9clair` are parsed to the same value. See
1627
+ [the proposal][identifier-escapes] for details.
1628
+
1629
+ * Don't choke on a [byte-order mark][] at the beginning of a document when
1630
+ running in JavaScript.
1631
+
1632
+ [math functions]: https://drafts.csswg.org/css-values/#math-function
1633
+ [css-import]: https://github.com/sass/language/blob/master/accepted/css-imports.md
1634
+ [css-min-max]: https://github.com/sass/language/blob/master/accepted/min-max.md
1635
+ [media-ranges]: https://github.com/sass/language/blob/master/accepted/media-ranges.md
1636
+ [identifier-escapes]: https://github.com/sass/language/blob/master/accepted/identifier-escapes.md
1637
+ [byte-order mark]: https://en.wikipedia.org/wiki/Byte_order_mark
1638
+
1639
+ ### Command-Line Interface
1640
+
1641
+ * The `--watch` command now continues to recompile a file after a syntax error
1642
+ has been detected.
1643
+
1644
+ ### Dart API
1645
+
1646
+ * Added a `Syntax` enum to indicate syntaxes for Sass source files.
1647
+
1648
+ * The `compile()` and `compileAsync()` functions now parse files with the `.css`
1649
+ extension as plain CSS.
1650
+
1651
+ * Added a `syntax` parameter to `compileString()` and `compileStringAsync()`.
1652
+
1653
+ * Deprecated the `indented` parameter to `compileString()` and `compileStringAsync()`.
1654
+
1655
+ * Added a `syntax` parameter to `new ImporterResult()` and a
1656
+ `ImporterResult.syntax` getter to set the syntax of the source file.
1657
+
1658
+ * Deprecated the `indented` parameter to `new ImporterResult()` and the
1659
+ `ImporterResult.indented` getter in favor of `syntax`.
1660
+
1661
+ ## 1.10.4
1662
+
1663
+ ### Command-Line Interface
1664
+
1665
+ * Fix a Homebrew installation failure.
1666
+
1667
+ ## 1.10.3
1668
+
1669
+ ### Command-Line Interface
1670
+
1671
+ * Run the Chocolatey script with the correct arguments so it doesn't crash.
1672
+
1673
+ ## 1.10.2
1674
+
1675
+ * No user-visible changes.
1676
+
1677
+ ## 1.10.1
1678
+
1679
+ ### Node JS API
1680
+
1681
+ * Don't crash when passing both `includePaths` and `importer`.
1682
+
1683
+ ## 1.10.0
1684
+
1685
+ * When two `@media` rules' queries can't be merged, leave nested rules in place
1686
+ for browsers that support them.
1687
+
1688
+ * Fix a typo in an error message.
1689
+
1690
+ ## 1.9.2
1691
+
1692
+ ### Node JS API
1693
+
1694
+ * Produce more readable filesystem errors, such as when a file doesn't exist.
1695
+
1696
+ ## 1.9.1
1697
+
1698
+ ### Command-Line Interface
1699
+
1700
+ * Don't emit ANSI codes to Windows terminals that don't support them.
1701
+
1702
+ * Fix a bug where `--watch` crashed on Mac OS.
1703
+
1704
+ ## 1.9.0
1705
+
1706
+ ### Node API
1707
+
1708
+ * Add support for `new sass.types.Color(argb)` for creating colors from ARGB hex
1709
+ numbers. This was overlooked when initially adding support for Node Sass's
1710
+ JavaScript API.
1711
+
1712
+ ## 1.8.0
1713
+
1714
+ ### Command-Line Interface
1715
+
1716
+ * Add a `--poll` flag to make `--watch` mode repeatedly check the filesystem for
1717
+ updates rather than relying on native filesystem notifications.
1718
+
1719
+ * Add a `--stop-on-error` flag to stop compiling additional files once an error
1720
+ is encountered.
1721
+
1722
+ ## 1.7.3
1723
+
1724
+ * No user-visible changes.
1725
+
1726
+ ## 1.7.2
1727
+
1728
+ * Add a deprecation warning for `@-moz-document`, except for cases where only an
1729
+ empty `url-prefix()` is used. Support is [being removed from Firefox][] and
1730
+ will eventually be removed from Sass as well.
1731
+
1732
+ [being removed from Firefox]: https://www.fxsitecompat.com/en-CA/docs/2018/moz-document-support-has-been-dropped-except-for-empty-url-prefix/
1733
+
1734
+ * Fix a bug where `@-moz-document` functions with string arguments weren't being
1735
+ parsed.
1736
+
1737
+ ### Command-Line Interface
1738
+
1739
+ * Don't crash when a syntax error is added to a watched file.
1740
+
1741
+ ## 1.7.1
1742
+
1743
+ * Fix crashes in released binaries.
1744
+
1745
+ ## 1.7.0
1746
+
1747
+ * Emit deprecation warnings for tokens such as `#abcd` that are ambiguous
1748
+ between ID strings and hex colors with alpha channels. These will be
1749
+ interpreted as colors in a release on or after 19 September 2018.
1750
+
1751
+ * Parse unambiguous hex colors with alpha channels as colors.
1752
+
1753
+ * Fix a bug where relative imports from files on the load path could look in the
1754
+ incorrect location.
1755
+
1756
+ ## 1.6.2
1757
+
1758
+ ### Command-Line Interface
1759
+
1760
+ * Fix a bug where the source map comment in the generated CSS could refer to the
1761
+ source map file using an incorrect URL.
1762
+
1763
+ ## 1.6.1
1764
+
1765
+ * No user-visible changes.
1766
+
1767
+ ## 1.6.0
1768
+
1769
+ * Produce better errors when expected tokens are missing before a closing brace.
1770
+
1771
+ * Avoid crashing when compiling a non-partial stylesheet that exists on the
1772
+ filesystem next to a partial with the same name.
1773
+
1774
+ ### Command-Line Interface
1775
+
1776
+ * Add support for the `--watch`, which watches for changes in Sass files on the
1777
+ filesystem and ensures that the compiled CSS is up-to-date.
1778
+
1779
+ * When using `--update`, surface errors when an import doesn't exist even if the
1780
+ file containing the import hasn't been modified.
1781
+
1782
+ * When compilation fails, delete the output file rather than leaving an outdated
1783
+ version.
1784
+
1785
+ ## 1.5.1
1786
+
1787
+ * Fix a bug where an absolute Windows path would be considered an `input:output`
1788
+ pair.
1789
+
1790
+ * Forbid custom properties that have no values, like `--foo:;`, since they're
1791
+ forbidden by the CSS spec.
1792
+
1793
+ ## 1.5.0
1794
+
1795
+ * Fix a bug where an importer would be passed an incorrectly-resolved URL when
1796
+ handling a relative import.
1797
+
1798
+ * Throw an error when an import is ambiguous due to a partial and a non-partial
1799
+ with the same name, or multiple files with different extensions. This matches
1800
+ the standard Sass behavior.
1801
+
1802
+ ### Command-Line Interface
1803
+
1804
+ * Add an `--interactive` flag that supports interactively running Sass
1805
+ expressions (thanks to [Jen Thakar][]!).
1806
+
1807
+ [Jen Thakar]: https://github.com/jathak
1808
+
1809
+ ## 1.4.0
1810
+
1811
+ * Improve the error message for invalid semicolons in the indented syntax.
1812
+
1813
+ * Properly disallow semicolons after declarations in the indented syntax.
1814
+
1815
+ ### Command-Line Interface
1816
+
1817
+ * Add support for compiling multiple files at once by writing
1818
+ `sass input.scss:output.css`. Note that unlike Ruby Sass, this *always*
1819
+ compiles files by default regardless of when they were modified.
1820
+
1821
+ This syntax also supports compiling entire directories at once. For example,
1822
+ `sass templates/stylesheets:public/css` compiles all non-partial Sass files
1823
+ in `templates/stylesheets` to CSS files in `public/css`.
1824
+
1825
+ * Add an `--update` flag that tells Sass to compile only stylesheets that have
1826
+ been (transitively) modified since the CSS file was generated.
1827
+
1828
+ ### Dart API
1829
+
1830
+ * Add `Importer.modificationTime()` and `AsyncImporter.modificationTime()` which
1831
+ report the last time a stylesheet was modified.
1832
+
1833
+ ### Node API
1834
+
1835
+ * Generate source maps when the `sourceMaps` option is set to a string and the
1836
+ `outFile` option is not set.
1837
+
1838
+ ## 1.3.2
1839
+
1840
+ * Add support for `@elseif` as an alias of `@else if`. This is not an
1841
+ intentional feature, so using it will cause a deprecation warning. It will be
1842
+ removed at some point in the future.
1843
+
1844
+ ## 1.3.1
1845
+
1846
+ ### Node API
1847
+
1848
+ * Fix loading imports relative to stylesheets that were themselves imported
1849
+ though relative include paths.
1850
+
1851
+ ## 1.3.0
1852
+
1853
+ ### Command-Line Interface
1854
+
1855
+ * Generate source map files by default when writing to disk. This can be
1856
+ disabled by passing `--no-source-map`.
1857
+
1858
+ * Add a `--source-map-urls` option to control whether the source file URLs in
1859
+ the generated source map are relative or absolute.
1860
+
1861
+ * Add an `--embed-sources` option to embed the contents of all source files in
1862
+ the generated source map.
1863
+
1864
+ * Add an `--embed-source-map` option to embed the generated source map as a
1865
+ `data:` URL in the generated CSS.
1866
+
1867
+ ### Dart API
1868
+
1869
+ * Add a `sourceMap` parameter to `compile()`, `compileString()`,
1870
+ `compileAsync()`, and `compileStringAsync()`. This takes a callback that's
1871
+ called with a [`SingleMapping`][] that contains the source map information for
1872
+ the compiled CSS file.
1873
+
1874
+ [`SingleMapping`]: https://www.dartdocs.org/documentation/source_maps/latest/source_maps.parser/SingleMapping-class.html
1875
+
1876
+ ### Node API
1877
+
1878
+ * Added support for the `sourceMap`, `omitSourceMapUrl`, `outFile`,
1879
+ `sourceMapContents`, `sourceMapEmbed`, and `sourceMapRoot` options to
1880
+ `render()` and `renderSync()`.
1881
+
1882
+ * Fix a bug where passing a relative path to `render()` or `renderSync()` would
1883
+ cause relative imports to break.
1884
+
1885
+ * Fix a crash when printing warnings in stylesheets compiled using `render()` or
1886
+ `renderSync()`.
1887
+
1888
+ * Fix a bug where format errors were reported badly on Windows.
1889
+
1890
+ ## 1.2.1
1891
+
1892
+ * Always emit units in compressed mode for `0` dimensions other than lengths and
1893
+ angles.
1894
+
1895
+ ## 1.2.0
1896
+
1897
+ * The command-line executable will now create the directory for the resulting
1898
+ CSS if that directory doesn't exist.
1899
+
1900
+ * Properly parse `#{$var} -#{$var}` as two separate values in a list rather than
1901
+ one value being subtracted from another.
1902
+
1903
+ * Improve the error message for extending compound selectors.
1904
+
1905
+ ## 1.1.1
1906
+
1907
+ * Add a commit that was accidentally left out of 1.1.0.
1908
+
1909
+ ## 1.1.0
1910
+
1911
+ * The command-line executable can now be used to write an output file to disk
1912
+ using `sass input.scss output.css`.
1913
+
1914
+ * Use a POSIX-shell-compatible means of finding the location of the `sass` shell
1915
+ script.
1916
+
1917
+ ## 1.0.0
1918
+
1919
+ **Initial stable release.**
1920
+
1921
+ ### Changes Since 1.0.0-rc.1
1922
+
1923
+ * Allow `!` in custom property values ([#260][]).
1924
+
1925
+ [#260]: https://github.com/sass/dart-sass/issues/260
1926
+
1927
+ #### Dart API
1928
+
1929
+ * Remove the deprecated `render()` function.
1930
+
1931
+ #### Node API
1932
+
1933
+ * Errors are now subtypes of the `Error` type.
1934
+
1935
+ * Allow both the `data` and `file` options to be passed to `render()` and
1936
+ `renderSync()` at once. The `data` option will be used as the contents of the
1937
+ stylesheet, and the `file` option will be used as the path for error reporting
1938
+ and relative imports. This matches Node Sass's behavior.
1939
+
1
1940
  ## 1.0.0-rc.1
2
1941
 
3
- * Add support for the legacy `render()` and `renderSync()` functions and the
4
- legacy `sass.types` namespace.
1942
+ * Add support for importing an `_index.scss` or `_index.sass` file when
1943
+ importing a directory.
1944
+
1945
+ * Add a `--load-path` command-line option (alias `-I`) for passing additional
1946
+ paths to search for Sass files to import.
1947
+
1948
+ * Add a `--quiet` command-line option (alias `-q`) for silencing warnings.
1949
+
1950
+ * Add an `--indented` command-line option for using the indented syntax with a
1951
+ stylesheet from standard input.
1952
+
1953
+ * Don't merge the media queries `not type` and `(feature)`. We had previously
1954
+ been generating `not type and (feature)`, but that's not actually the
1955
+ intersection of the two queries.
1956
+
1957
+ * Don't crash on `$x % 0`.
1958
+
1959
+ * The standalone executable distributed on GitHub is now named `sass` rather
1960
+ than `dart-sass`. The `dart-sass` executable will remain, with a deprecation
1961
+ message, until 1.0.0 is released.
1962
+
1963
+ ### Dart API
1964
+
1965
+ * Add a `Logger` class that allows users to control how messages are printed by
1966
+ stylesheets.
1967
+
1968
+ * Add a `logger` parameter to `compile()`, `compileAsync()`, `compileString()`,
1969
+ and `compileStringAsync()`.
5
1970
 
6
- ## 1.0.0-beta.8
1971
+ ### Node JS API
7
1972
 
8
- * Fully support the new JS API:
9
- * Support custom importers for the new JS API.
10
- * Support custom loggers for the new JS API.
11
- * Support the `SassArgumentList` value type.
12
- * Support the `SassFunction` value type.
1973
+ * Import URLs passed to importers are no longer normalized. For example, if a
1974
+ stylesheet contains `@import "./foo.scss"`, importers will now receive
1975
+ `"./foo.scss"` rather than `"foo.scss"`.
13
1976
 
14
- ## 1.0.0-beta.7
1977
+ ## 1.0.0-beta.5.3
15
1978
 
16
- * Expose the `Exception` class and ensure that syntax errors match the official
17
- JS API.
1979
+ * Support hard tabs in the indented syntax.
18
1980
 
19
- * Add support for the `style`, `alertColor`, `alertAscii`, `quietDeps`,
20
- `verbose`, and `functions` options in `compile()`, `compileString()`,
21
- `compileAsync()`, and `compileStringAsync()`.
1981
+ * Improve the formatting of comments that don't start on the same line as the
1982
+ opening `/*`.
22
1983
 
23
- * Add support for `CompileResult.loadedUrls`.
1984
+ * Preserve whitespace after `and` in media queries in compressed mode.
24
1985
 
25
- ## 1.0.0-beta.6
1986
+ ### Indented Syntax
26
1987
 
27
- * Expose (as yet incomplete) `compile()`, `compileString()`, `compileAsync()`,
28
- and `compileStringAsync()` functions.
1988
+ * Properly parse multi-line selectors.
29
1989
 
30
- * Include the official TypeScript definition files.
1990
+ * Don't deadlock on `/*` comments.
31
1991
 
32
- ## 1.0.0-beta.5
1992
+ * Don't add an extra `*/` to comments that already have it.
33
1993
 
34
- - Function and Values API
35
- - Add `SassColor` class.
36
- - Add `SassList` and `SassMap` classes.
1994
+ * Preserve empty lines in `/*` comments.
37
1995
 
38
- - Add `indentedSyntax` option to `render()`
1996
+ ## 1.0.0-beta.5.2
1997
+
1998
+ * Fix a bug where some colors would crash `compressed` mode.
1999
+
2000
+ ## 1.0.0-beta.5.1
2001
+
2002
+ * Add a `compressed` output style.
2003
+
2004
+ * Emit a warning when `&&` is used, since it's probably not what the user means.
2005
+
2006
+ * `round()` now returns the correct results for negative numbers that should
2007
+ round down.
2008
+
2009
+ * `var()` may now be passed in place of multiple arguments to `rgb()`, `rgba()`,
2010
+ `hsl()` and `hsla()`.
2011
+
2012
+ * Fix some cases where equivalent numbers wouldn't count as the same keys in
2013
+ maps.
2014
+
2015
+ * Fix a bug where multiplication like `(1/1px) * (1px/1)` wouldn't properly
2016
+ cancel out units.
2017
+
2018
+ * Fix a bug where dividing by a compatible unit would produce an invalid
2019
+ result.
2020
+
2021
+ * Remove a non-`sh`-compatible idiom from the standalone shell script.
2022
+
2023
+ ### Dart API
2024
+
2025
+ * Add a `functions` parameter to `compile()`, `compleString()`,
2026
+ `compileAsync()`, and `compileStringAsync()`. This allows users to define
2027
+ custom functions in Dart that can be invoked from Sass stylesheets.
2028
+
2029
+ * Expose the `Callable` and `AsyncCallable` types, which represent functions
2030
+ that can be invoked from Sass.
2031
+
2032
+ * Expose the `Value` type and its subclasses, as well as the top-level
2033
+ `sassTrue`, `sassFalse`, and `sassNull` values, which represent Sass values
2034
+ that may be passed into or returned from custom functions.
2035
+
2036
+ * Expose the `OutputStyle` enum, and add a `style` parameter to `compile()`,
2037
+ `compleString()`, `compileAsync()`, and `compileStringAsync()` that allows
2038
+ users to control the output style.
2039
+
2040
+ ### Node JS API
2041
+
2042
+ * Support the `functions` option.
2043
+
2044
+ * Support the `"compressed"` value for the `outputStyle` option.
39
2045
 
40
2046
  ## 1.0.0-beta.4
41
2047
 
42
- - Allow installing on arm64.
2048
+ * Support unquoted imports in the indented syntax.
2049
+
2050
+ * Fix a crash when `:not(...)` extends a selector that appears in
2051
+ `:not(:not(...))`.
2052
+
2053
+ ### Node JS API
43
2054
 
44
- - Function and Values API
45
- - Add `sassTrue` and `sassFalse` singletons.
46
- - Add `SassColor` class.
47
- - Add `SassNumber` class.
48
- - Add `SassString` class.
2055
+ * Add support for asynchronous importers to `render()` and `renderSync()`.
2056
+
2057
+ ### Dart API
2058
+
2059
+ * Add `compileAsync()` and `compileStringAsync()` methods. These run
2060
+ asynchronously, which allows them to take asynchronous importers (see below).
2061
+
2062
+ * Add an `AsyncImporter` class. This allows imports to be resolved
2063
+ asynchronously in case no synchronous APIs are available. `AsyncImporter`s are
2064
+ only compatible with `compileAysnc()` and `compileStringAsync()`.
49
2065
 
50
2066
  ## 1.0.0-beta.3
51
2067
 
52
- - Properly handle `data:` URIs in sourceMap sources.
2068
+ * Properly parse numbers with exponents.
2069
+
2070
+ * Don't crash when evaluating CSS variables whose names are entirely
2071
+ interpolated (for example, `#{--foo}: ...`).
53
2072
 
54
- - Function and Values API
55
- - Add `Value` abstract class.
56
- - Add `sassNull` singleton.
2073
+ ### Node JS API
2074
+
2075
+ * Add support for the `importer` option to `render()` and `renderSync()`.
2076
+ Only synchronous importers are currently supported.
2077
+
2078
+ ### Dart API
2079
+
2080
+ * Added an `Importer` class. This can be extended by users to provide support
2081
+ for custom resolution for `@import` rules.
2082
+
2083
+ * Added built-in `FilesystemImporter` and `PackageImporter` implementations that
2084
+ support resolving `file:` and `package:` URLs, respectively.
2085
+
2086
+ * Added an `importers` argument to the `compile()` and `compileString()`
2087
+ functions that provides `Importer`s to use when resolving `@import` rules.
2088
+
2089
+ * Added a `loadPaths` argument to the `compile()` and `compileString()`
2090
+ functions that provides paths to search for stylesheets when resolving
2091
+ `@import` rules. This is a shorthand for passing `FilesystemImporter`s to the
2092
+ `importers` argument.
57
2093
 
58
2094
  ## 1.0.0-beta.2
59
2095
 
60
- - No user visible changes.
2096
+ * Add support for the `::slotted()` pseudo-element.
2097
+
2098
+ * Generated transparent colors will now be emitted as `rgba(0, 0, 0, 0)` rather
2099
+ than `transparent`. This works around a bug wherein IE incorrectly handles the
2100
+ latter format.
2101
+
2102
+ ### Command-Line Interface
2103
+
2104
+ * Improve the logic for whether to use terminal colors by default.
2105
+
2106
+ ### Node JS API
2107
+
2108
+ * Add support for `data`, `includePaths`, `indentedSyntax`, `lineFeed`,
2109
+ `indentWidth`, and `indentType` options to `render()` and `renderSync()`.
2110
+
2111
+ * The result object returned by `render()` and `renderSync()` now includes the
2112
+ `stats` object which provides metadata about the compilation process.
2113
+
2114
+ * The error object thrown by `render()` and `renderSync()` now includes `line`,
2115
+ `column`, `file`, `status`, and `formatted` fields. The `message` field and
2116
+ `toString()` also provide more information.
2117
+
2118
+ ### Dart API
2119
+
2120
+ * Add a `renderString()` method for rendering Sass source that's not in a file
2121
+ on disk.
61
2122
 
62
2123
  ## 1.0.0-beta.1
63
2124
 
64
- - Download the compiler binary to the correct directory on Windows.
2125
+ * Drop support for the reference combinator. This has been removed from the
2126
+ spec, and will be deprecated and eventually removed in other implementations.
2127
+
2128
+ * Trust type annotations when compiling to JavaScript, which makes it
2129
+ substantially faster.
2130
+
2131
+ * Compile to minified JavaScript, which decreases the code size substantially
2132
+ and makes startup a little faster.
2133
+
2134
+ * Fix a crash when inspecting a string expression that ended in "\a".
2135
+
2136
+ * Fix a bug where declarations and `@extend` were allowed outside of a style
2137
+ rule in certain circumstances.
2138
+
2139
+ * Fix `not` in parentheses in `@supports` conditions.
2140
+
2141
+ * Allow `url` as an identifier name.
2142
+
2143
+ * Properly parse `/***/` in selectors.
2144
+
2145
+ * Properly parse unary operators immediately after commas.
2146
+
2147
+ * Match Ruby Sass's rounding behavior for all functions.
2148
+
2149
+ * Allow `\` at the beginning of a selector in the indented syntax.
2150
+
2151
+ * Fix a number of `@extend` bugs:
2152
+
2153
+ * `selector-extend()` and `selector-replace()` now allow compound selector
2154
+ extendees.
2155
+
2156
+ * Remove the universal selector `*` when unifying with other selectors.
2157
+
2158
+ * Properly unify the result of multiple simple selectors in the same compound
2159
+ selector being extended.
2160
+
2161
+ * Properly handle extensions being extended.
2162
+
2163
+ * Properly follow the [first law of `@extend`][laws].
2164
+
2165
+ * Fix selector specificity tracking to follow the
2166
+ [second law of `@extend`][laws].
2167
+
2168
+ * Allow extensions that match selectors but fail to unify.
2169
+
2170
+ * Partially-extended selectors are no longer used as parent selectors.
2171
+
2172
+ * Fix an edge case where both the extender and the extended selector
2173
+ have invalid combinator sequences.
2174
+
2175
+ * Don't crash with a "Bad state: no element" error in certain edge cases.
2176
+
2177
+ [laws]: https://github.com/sass/sass/issues/324#issuecomment-4607184
2178
+
2179
+ ## 1.0.0-alpha.9
2180
+
2181
+ * Elements without a namespace (such as `div`) are no longer unified with
2182
+ elements with the empty namespace (such as `|div`). This unification didn't
2183
+ match the results returned by `is-superselector()`, and was not guaranteed to
2184
+ be valid.
2185
+
2186
+ * Support `&` within `@at-root`.
2187
+
2188
+ * Properly error when a compound selector is followed immediately by `&`.
2189
+
2190
+ * Properly handle variable scoping in `@at-root` and nested properties.
2191
+
2192
+ * Properly handle placeholder selectors in selector pseudos.
2193
+
2194
+ * Properly short-circuit the `or` and `and` operators.
2195
+
2196
+ * Support `--$variable`.
2197
+
2198
+ * Don't consider unitless numbers equal to numbers with units.
2199
+
2200
+ * Warn about using named colors in interpolation.
2201
+
2202
+ * Don't emit loud comments in functions.
2203
+
2204
+ * Detect import loops.
2205
+
2206
+ * Fix `@import` with a `supports()` clause.
2207
+
2208
+ * Forbid functions named "and", "or", and "not".
2209
+
2210
+ * Fix `type-of()` with a function.
2211
+
2212
+ * Emit a nicer error for invalid tokens in a selector.
2213
+
2214
+ * Fix `invert()` with a `$weight` parameter.
2215
+
2216
+ * Fix a unit-parsing edge-cases.
2217
+
2218
+ * Always parse imports with queries as plain CSS imports.
2219
+
2220
+ * Support `&` followed by a non-identifier.
2221
+
2222
+ * Properly handle split media queries.
2223
+
2224
+ * Properly handle a placeholder selector that isn't at the beginning of a
2225
+ compound selector.
2226
+
2227
+ * Fix more `str-slice()` bugs.
2228
+
2229
+ * Fix the `%` operator.
2230
+
2231
+ * Allow whitespace between `=` and the mixin name in the indented syntax.
2232
+
2233
+ * Fix some slash division edge cases.
2234
+
2235
+ * Fix `not` when used like a function.
2236
+
2237
+ * Fix attribute selectors with single-character values.
2238
+
2239
+ * Fix some bugs with the `call()` function.
2240
+
2241
+ * Properly handle a backslash followed by a CRLF sequence in a quoted string.
2242
+
2243
+ * Fix numbers divided by colors.
2244
+
2245
+ * Support slash-separated numbers in arguments to plain CSS functions.
2246
+
2247
+ * Error out if a function is passed an unknown named parameter.
2248
+
2249
+ * Improve the speed of loading large files on Node.
2250
+
2251
+ * Don't consider browser-prefixed selector pseudos to be superselectors of
2252
+ differently- or non-prefixed selector pseudos with the same base name.
2253
+
2254
+ * Fix an `@extend` edge case involving multiple combinators in a row.
2255
+
2256
+ * Fix a bug where a `@content` block could get incorrectly passed to a mixin.
2257
+
2258
+ * Properly isolate the lexical environments of different calls to the same mixin
2259
+ and function.
2260
+
2261
+ ## 1.0.0-alpha.8
2262
+
2263
+ * Add the `content-exists()` function.
2264
+
2265
+ * Support interpolation in loud comments.
2266
+
2267
+ * Fix a bug where even valid semicolons and exclamation marks in custom property
2268
+ values were disallowed.
2269
+
2270
+ * Disallow invalid function names.
2271
+
2272
+ * Disallow extending across media queries.
2273
+
2274
+ * Properly parse whitespace after `...` in argument declaration lists.
2275
+
2276
+ * Support terse mixin syntax in the indented syntax.
2277
+
2278
+ * Fix `@at-root` query parsing.
2279
+
2280
+ * Support special functions in `@-moz-document`.
2281
+
2282
+ * Support `...` after a digit.
2283
+
2284
+ * Fix some bugs when treating a map as a list of pairs.
2285
+
2286
+ ## 1.0.0-alpha.7
2287
+
2288
+ * Fix `function-exists()`, `variable-exists()`, and `mixin-exists()` to use the
2289
+ lexical scope rather than always using the global scope.
2290
+
2291
+ * `str-index()` now correctly inserts at negative indices.
2292
+
2293
+ * Properly parse `url()`s that contain comment-like text.
2294
+
2295
+ * Fix a few more small `@extend` bugs.
2296
+
2297
+ * Fix a bug where interpolation in a quoted string was being dropped in some
2298
+ circumstances.
2299
+
2300
+ * Properly handle `@for` rules where each bound has a different unit.
2301
+
2302
+ * Forbid mixins and functions from being defined in control directives.
2303
+
2304
+ * Fix a superselector-computation edge case involving `:not()`.
2305
+
2306
+ * Gracefully handle input files that are invalid UTF-8.
2307
+
2308
+ * Print a Sass stack trace when a file fails to load.
2309
+
2310
+ ## 1.0.0-alpha.6
2311
+
2312
+ * Allow `var()` to be passed to `rgb()`, `rgba()`, `hsl()`, and `hsla()`.
2313
+
2314
+ * Fix conversions between numbers with `dpi`, `dpcm`, and `dppx` units.
2315
+ Previously these conversions were inverted.
2316
+
2317
+ * Don't crash when calling `str-slice()` with an `$end-at` index lower than the
2318
+ `$start-at` index.
2319
+
2320
+ * `str-slice()` now correctly returns `""` when `$end-at` is negative and points
2321
+ before the beginning of the string.
2322
+
2323
+ * Interpolation in quoted strings now properly preserves newlines.
2324
+
2325
+ * Don't crash when passing only `$hue` or no keyword arguments to
2326
+ `adjust-color()`, `scale-color()`, or `change-color()`.
2327
+
2328
+ * Preserve escapes in identifiers. This used to only work for identifiers in
2329
+ SassScript.
2330
+
2331
+ * Fix a few small `@extend` bugs.
2332
+
2333
+ ## 1.0.0-alpha.5
2334
+
2335
+ * Fix bounds-checking for `opacify()`, `fade-in()`, `transparentize()`, and
2336
+ `fade-out()`.
2337
+
2338
+ * Fix a bug with `@extend` superselector calculations.
2339
+
2340
+ * Fix some cases where `#{...}--` would fail to parse in selectors.
2341
+
2342
+ * Allow a single number to be passed to `saturate()` for use in filter contexts.
2343
+
2344
+ * Fix a bug where `**/` would fail to close a loud comment.
2345
+
2346
+ * Fix a bug where mixin and function calls could set variables incorrectly.
2347
+
2348
+ * Move plain CSS `@import`s to the top of the document.
2349
+
2350
+ ## 1.0.0-alpha.4
2351
+
2352
+ * Add support for bracketed lists.
2353
+
2354
+ * Add support for Unicode ranges.
2355
+
2356
+ * Add support for the Microsoft-style `=` operator.
2357
+
2358
+ * Print the filename for `@debug` rules.
2359
+
2360
+ * Fix a bug where `1 + - 2` and similar constructs would crash the parser.
2361
+
2362
+ * Fix a bug where `@extend` produced the wrong result when used with
2363
+ selector combinators.
2364
+
2365
+ * Fix a bug where placeholder selectors were not allowed to be unified.
2366
+
2367
+ * Fix the `mixin-exists()` function.
2368
+
2369
+ * Fix `:nth-child()` and `:nth-last-child()` parsing when they contain `of
2370
+ selector`.
2371
+
2372
+ ## 1.0.0-alpha.3
2373
+
2374
+ * Fix a bug where color equality didn't take the alpha channel into account.
2375
+
2376
+ * Fix a bug with converting some RGB colors to HSL.
2377
+
2378
+ * Fix a parent selector resolution bug.
2379
+
2380
+ * Properly declare the arguments for `opacify()` and related functions.
2381
+
2382
+ * Add a missing dependency on the `stack_trace` package.
2383
+
2384
+ * Fix broken Windows archives.
2385
+
2386
+ * Emit colors using their original representation if possible.
2387
+
2388
+ * Emit colors without an original representation as names if possible.
2389
+
2390
+ ## 1.0.0-alpha.2
2391
+
2392
+ * Fix a bug where variables, functions, and mixins were broken in imported
2393
+ files.
65
2394
 
66
- ## 1.0.0-beta.0
2395
+ ## 1.0.0-alpha.1
67
2396
 
68
- - Release Embedded Host beta with limited support for `render()`, which compiles
69
- Sass files and strings by communicating with the Embedded Compiler via the
70
- Embedded protocol. Does not yet support the entire `render` API, including
71
- custom functions and importers.
2397
+ * Initial alpha release.