sass-embedded 1.57.1 → 1.58.2

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