Skip to content

Commit

Permalink
Merge pull request #1398 from sass/compile-to-result
Browse files Browse the repository at this point in the history
Expose CompileResult publicly, along with methods that return it
  • Loading branch information
nex3 committed Jul 23, 2021
2 parents 426277e + 10ac094 commit 87e93a1
Show file tree
Hide file tree
Showing 18 changed files with 413 additions and 208 deletions.
19 changes: 17 additions & 2 deletions CHANGELOG.md
@@ -1,6 +1,21 @@
## 1.35.3
## 1.36.0

* No user-facing changes.
### Dart API

* Added `compileToResult()`, `compileStringToResult()`,
`compileToResultAsync()`, and `compileStringToResultAsync()` methods. These
are intended to replace the existing `compile*()` methods, which are now
deprecated. Rather than returning a simple string, these return a
`CompileResult` object, which will allow us to add additional information
about the compilation without having to introduce further deprecations.

* Instead of passing a `sourceMaps` callback to `compile*()`, pass
`sourceMaps: true` to `compile*ToResult()` and access
`CompileResult.sourceMap`.

* The `CompileResult` object exposes a `loadedUrls` object which lists the
canonical URLs accessed during a compilation. This information was
previously unavailable except through the JS API.

## 1.35.2

Expand Down
1 change: 1 addition & 0 deletions analysis/lib/analysis_options.yaml
@@ -1,4 +1,5 @@
analyzer:
exclude: [build/**]
strong-mode:
implicit-casts: false
language:
Expand Down

0 comments on commit 87e93a1

Please sign in to comment.