Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose CompileResult publicly, along with methods that return it #1398

Merged
merged 8 commits into from Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,22 @@
## 1.36.0

### 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 `includedUrls` object which lists the
nex3 marked this conversation as resolved.
Show resolved Hide resolved
canonical URLs accessed during a compilation. This information was
previously unavailable except through the JS API.

## 1.35.2

* **Potentially breaking bug fix**: Properly throw an error for Unicode ranges
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