- Added support for parsing Wasm frames of Chrome (V8), Firefox, Safari.
- Require Dart 3.4 or greater
- Make use of
@pragma('vm:awaiter-link')
to make package work better with Dart VM's builtin awaiter stack unwinding. No other changes.
- Added the parameter
zoneValues
toChain.capture
to be able to use custom zone values with therunZoned
internal calls. - Populate the pubspec
repository
field. - Require Dart 2.18 or greater
- Stable release for null safety.
- Fix broken test,
test/chain/vm_test.dart
, which incorrectly handles asynchronous suspension gap markers at the end of stack traces.
- Fix bug parsing asynchronous suspension gap markers at the end of stack
traces, when parsing with
Trace.parse
andChain.parse
. - Update SDK constraints to
>=2.12.0-0 <3.0.0
based on beta release guidelines.
- Allow prerelease versions of the 2.12 sdk.
- Allow the
2.10.0
stable and dev SDKs.
- Fix bug parsing asynchronous suspension gap markers at the end of stack traces.
- Forward fix for a change in SDK type promotion behavior.
- Allow 2.10 stable and 2.11.0 dev SDK versions.
- Opt in to null safety.
- Fix bug parsing asynchronous suspension gap markers at the end of stack traces. (Also fixed separately in 1.10.0-nullsafety.3)
- Fix bug parsing asynchronous suspension gap markers at the end of stack
traces, when parsing with
Trace.parse
andChain.parse
. (Also fixed separately in 1.10.0-nullsafety.6)
- Parse the format for
data:
URIs that the Dart VM has used since2.2.0
.
- Add support for firefox anonymous stack traces.
- Add support for chrome eval stack traces without a column.
- Change the argument type to
Chain.capture
fromFunction(dynamic, Chain)
toFunction(Object, Chain)
. Existing functions which takedynamic
are still fine, but new uses can have a safer type.
- Set max SDK version to
<3.0.0
.
- Fix Dart 2.0 runtime cast failure in test.
- Preserve the original chain for a trace to handle cases where an error is rethrown.
- Add an
errorZone
parameter toChain.capture()
that makes it avoid creating an error zone.
-
Chain.forTrace()
now returns a full stack chain for allStackTrace
s withinChain.capture()
, even those that haven't been processed bydart:async
yet. -
Chain.forTrace()
now uses the Dart VM's stack chain information when called synchronously withinChain.capture()
. This matches the existing behavior outsideChain.capture()
. -
Chain.forTrace()
now trims the VM's stack chains for the innermost stack trace withinChain.capture()
(unless it's called synchronously, as above). This avoids duplicated frames and makes the format of the innermost traces consistent with the other traces in the chain.
- Update to use strong-mode clean Zone API.
-
Use official generic function syntax.
-
Updated minimum SDK to 1.23.0.
- Add a
Trace.original
field to provide access to the originalStackTrace
s from which theTrace
was created, and a matching constructor parameter tonew Trace()
.
- Always run
onError
callbacks forChain.capture()
in the parent zone.
- Fix broken links in the README.
-
Trace.foldFrames()
andChain.foldFrames()
now remove the outermost folded frame. This matches the behavior of.terse
with core frames. -
Fix bug parsing a friendly frame with spaces in the member name.
-
Fix bug parsing a friendly frame where the location is a data url.
- Make
Trace.parse()
,Chain.parse()
, treat the VM's new causal asynchronous stack traces as chains. Outside of aChain.capture()
block,new Chain.current()
will return a stack chain constructed from the asynchronous stack traces.
-
Add a
Chain.disable()
function that disables stack-chain tracking. -
Fix a bug where
Chain.capture(..., when: false)
would throw if an error was emitted without a stack trace.
- Add a note to the documentation of
Chain.terse
andTrace.terse
.
- Fix a bug where
new Frame.caller()
returned the wrong depth of frame on Dartium.
new Trace.current()
andnew Chain.current()
now skip an extra frame when run in a JS context. This makes their return values match the VM context.
- Really fix strong mode warnings.
- Fix a syntax error introduced in 1.6.3.
- Make
Chain.capture()
generic. Its signature is nowT Chain.capture<T>(T callback(), ...)
.
- Fix all strong mode warnings.
- Use
StackTrace.current
in Dart SDK 1.14 to get the current stack trace.
-
Add a
when
parameter toChain.capture()
. This allows capturing to be easily enabled and disabled based on whether the application is running in debug/development mode or not. -
Deprecate the
ChainHandler
typedef. This didn't provide any value over directly annotating the function argument, and it made the documentation less clear.
- Fix a crash in
Chain.foldFrames()
andChain.terse
when one of the chain's traces has no frames.
-
new Chain.parse()
now parses all the stack trace formats supported bynew Trace.parse()
. Formats other than that emitted byChain.toString()
will produce single-element chains. -
new Trace.parse()
now parses the output ofChain.toString()
. It produces the same result asChain.parse().toTrace()
.
- Improve the display of
data:
URIs in stack traces.
- Fix a crashing bug in
UnparsedFrame.toString()
.
-
new Trace.parse()
and related constructors will no longer throw an exception if they encounter an unparseable stack frame. Instead, they will generate anUnparsedFrame
, which exposes no metadata but preserves the frame's original text. -
Properly parse native-code V8 frames.
- Properly shorten library names for pathnames of folded frames on Windows.
- No longer say that stack chains aren't supported on dart2js now that sdk#15171 is fixed. Note that this fix only applies to Dart 1.12.
-
When a
null
stack trace is passed to a completer or stream controller in nestedChain.capture()
blocks, substitute the inner block's chain rather than the outer block's. -
Add support for empty chains and chains of empty traces to
Chain.parse()
. -
Don't crash when parsing stack traces from Dart VM stack overflows.
- Don't crash when running
Trace.terse
on empty stack traces.
- Support more types of JavaScriptCore stack frames.
- Support stack traces generated by JavaScriptCore. They can be explicitly
parsed via
new Trace.parseJSCore
andnew Frame.parseJSCore
.
- Fix a type annotation in
LazyTrace
.
- Fix a crash in
Chain.parse
.
-
Don't print the first folded frame of terse stack traces. This frame is always just an internal isolate message handler anyway. This improves the readability of stack traces, especially in stack chains.
-
Remove the line numbers and specific files in all terse folded frames, not just those from core libraries.
-
Make padding consistent across all stack traces for
Chain.toString()
.
-
Add
terse
toLazyTrace.foldFrames()
. -
Further improve stack chains when using the VM's async/await implementation.
- Add a
terse
argument toTrace.foldFrames()
andChain.foldFrames()
. This allows them to inherit the behavior ofTrace.terse
andChain.terse
without having to duplicate the logic.
- Produce nicer-looking stack chains when using the VM's async/await implementation.
-
Support VM frames without line or column numbers, which async/await programs occasionally generate.
-
Replace
<<anonymous closure>_async_body>
in VM frames' members with the terser<async>
.
- Widen the SDK constraint to include 1.7.0-dev.4.0.
-
Unify the parsing of Safari and Firefox stack traces. This fixes an error in Firefox trace parsing.
-
Deprecate
Trace.parseSafari6_0
,Trace.parseSafari6_1
,Frame.parseSafari6_0
, andFrame.parseSafari6_1
. -
Add
Frame.parseSafari
.
- Use
Zone.errorCallback
to attach stack chains to all errors without the need forChain.track
, which is now deprecated.
- Remove a workaround for issue 17083.
- Synchronous errors in the [Chain.capture] callback are now handled correctly.
- No API changes, just declared stable.
-
Update the dependency on path.
-
Improve the formatting of library URIs in stack traces.
- If an error is thrown in
Chain.capture
'sonError
handler, that error is handled by the parent zone. This matches the behavior ofrunZoned
indart:async
.
-
Add a
Chain.foldFrames
method that parallelsTrace.foldFrames
. -
Record anonymous method frames in IE10 as "".