- Notifications
You must be signed in to change notification settings - Fork280
Releases: stacktracejs/stacktrace.js
v2.0.2
v2.0.1
- Update dependencies
- Update TypeScript typings
Assets2
Uh oh!
There was an error while loading.Please reload this page.
v2.0.0
ES6 Support
ES6 code is now parsed and enhanced!
Extensible StackFrames
StackFrames returned are now able to report on whether a function call was aConstructor,native code, oreval code.
MIT License
The communityhas voted to change the license of the project to theMIT License
Breaking Changes
- StackFrame now has a different, more extensible API that allows frames to be marked as
native,constructor, oreval. - stacktrace.js now ships withno polyfills of any kind. Some Array polyfills were provided for old IE browsers in v1.x, these have been removed.
Assets2
Uh oh!
There was an error while loading.Please reload this page.
v1.3.0
Synchronous Stack Traces
Due to popular demand, we've provided a synchronous way to get stack traces.
StackTrace.getSync()
HEADS UP: Doesnot enhance stack traces with source maps or guess anonymous functions likeStackTrace.get() does.
Assets8
Uh oh!
There was an error while loading.Please reload this page.
v1.2.0
Error Messages in Reports
StackTrace.report() now accepts an optional message
varstackframes=[StackFrame(...),StackFrame(...)]varurl='https://reporting.yourservice.com/jserror'varmessage='undefined is not an Object'StackTrace.report(stackframes,url,message)
Example JSON POSTed:
{ message: 'undefined is not an Object', stack: [ {functionName: 'fn', fileName: 'file.js', lineNumber: 32, columnNumber: 1}, {functionName: 'fn2', fileName: 'file.js', lineNumber: 543, columnNumber: 32} ]}Assets2
Uh oh!
There was an error while loading.Please reload this page.
v1.1.0
Better parsing
Updatederror-stack-parser to v1.3 which parses eval stack entries in a better way and fixes a bunch of bugs.
Better resource handling
Updatedstacktrace-gps. Now reuses the same instance to avoid duplicate requests for the same resource by default.
Better dev experience
JSCS and automated PR testing have been implemented to ensure consistent styles and quick feedback.
Possibly breaking changes: ErrorStackParser now provides it's own polyfill for
Array.mapandArray.filter.evalinformation is will display differently in stack traces.
Assets6
Uh oh!
There was an error while loading.Please reload this page.
v1.0.1
Bug fixes update
- Prevent duplicate in-flight network requests for the same resource (stacktracejs/stacktrace-gps#19)
- Improve POST body handling of
StackTrace.report(#135) - Fix bower dependencies (#136)
Polyfills version necessary for browsers that don't support nativePromises orJSON.stringify
Assets6
Uh oh!
There was an error while loading.Please reload this page.
v1.0.0
stacktrace.js is reborn
stacktrace.js is now modularized into 5 projects:
- stacktrace-gps - turn partial code location into precise code location
- error-stack-parser - extract meaning from JS Errors
- stack-generator - generate artificial backtrace in old browsers
- stackframe - JS Object representation of a stack frame
... and putting it all together:stacktrace.js for instrumenting your code and generating stack traces!
Key Features
- Fully asynchronous API, usingPromises. Use your own polyfill or useour distribution with polyfills included. See theMigration Guide
- Source Maps support
- Forward-compatible: stacktrace.js no longer assumes a given browser formats Error stacks in a given way. This prevents new browser versions from breaking error parsing
- Stack entries are now fully parsed and returned asStackFrame objects. Prefer the old format? - just call
.toString()! - Use only what you need. All 5 projects work independently as well as together!
- iOS 8+ Safari support
Available everywhere
npm install stacktrace-jsbower install stacktrace-jscomponent install stacktracejs/stacktrace.jshttps://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.0.0/stacktrace.min.jsBetter for contributors
- gulp build
- TravisCI + Sauce for testing a bunch of browsers
- EditorConfig for style adherence
Polyfills version necessary for browsers that don't supportPromises orJSON.stringify
Assets6
Uh oh!
There was an error while loading.Please reload this page.
v0.6.4
Added un-minified sources for CDN distribution
Assets3
Uh oh!
There was an error while loading.Please reload this page.