dart-sass/pkg/sass_api/CHANGELOG.md
Jennifer Thakar d419df7d9c
Add shared interfaces for various AST nodes (#1445)
Fixes #1401 and #1414.

Adds `Dependency`, `SassDeclaration`, and `SassReference` interfaces,
which expose some getters that multiple AST nodes have in common with a
single type.

These also add getters for common subspans (URL, name, and namespace) to
the interfaces.
2021-08-23 16:33:36 -07:00

32 lines
1.1 KiB
Markdown

## 1.0.0-beta.4
* `UseRule`, `ForwardRule`, and `DynamicImport` now share a common `Dependency`
interface that exposes a `url` getter and a `urlSpan` getter.
* `VariableDeclaration`, `MixinRule`, `FunctionRule`, `Argument`, and
`ConfiguredVariable` now share a common `SassDeclaration` interface that
exposes a `name` getter (with underscores converted to hyphens) and a
`nameSpan` getter.
* Function calls with interpolation have now been split into their own AST node:
`InterpolatedFunctionExpression`. `FunctionExpression.name` is now always a
string (with underscores converted to hyphens). `FunctionExpression` also now
has an `originalName` getter, which leaves underscores as-is.
* `VariableExpression`, `IncludeRule`, and `FunctionExpression` now share a
common `SassReference` interface that exposes a `namespace` getter and a
`name` getter (with underscores converted to hyphens), as well as
corresponding `namespaceSpan` and `nameSpan` getters.
## 1.0.0-beta.3
* No user-visible changes.
## 1.0.0-beta.2
* No user-visible changes.
## 1.0.0-beta.1
* Initial beta release.