sass-embedded 1.0.0-beta.7 → 1.49.8

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