tag:github.com,2008:https://github.com/stacktracejs/stacktrace.js/releasesRelease notes from stacktrace.js2020-01-07T04:37:06Ztag:github.com,2008:Repository/480804/v2.0.22024-04-09T15:57:42Zv2.0.2<ul>
<li>Update dependencies</li>
<li>Fix sourcemaps generation config.(<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/stacktracejs/stacktrace.js/commit/c597ba11db3c90c1af7be9a3cffbc556ed50c20b/hovercard" href="https://github.com/stacktracejs/stacktrace.js/commit/c597ba11db3c90c1af7be9a3cffbc556ed50c20b"><tt>c597ba1</tt></a>) <a href="https://github.com/stacktracejs/stacktrace.js/commit/c597ba11db3c90c1af7be9a3cffbc556ed50c20b">Fixes</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="335355427" data-permission-text="Title is private" data-url="https://github.com/stacktracejs/stacktrace.js/issues/208" data-hovercard-type="issue" data-hovercard-url="/stacktracejs/stacktrace.js/issues/208/hovercard" href="https://github.com/stacktracejs/stacktrace.js/issues/208">#208</a></li>
</ul>eriwentag:github.com,2008:Repository/480804/v2.0.12024-04-09T15:56:00Zv2.0.1<ul>
<li>Update dependencies</li>
<li>Update TypeScript typings</li>
</ul>eriwentag:github.com,2008:Repository/480804/v2.0.02017-05-01T04:39:14Zv2.0.0<h3>ES6 Support</h3>
<p>ES6 code is now parsed and enhanced!</p>
<h3>Extensible StackFrames</h3>
<p>StackFrames returned are now able to report on whether a function call was a <code>Constructor</code>, <code>native</code> code, or <code>eval</code> code.</p>
<h3>MIT License</h3>
<p>The community <a href="https://github.com/stacktracejs/stacktrace.js/issues/187" data-hovercard-type="issue" data-hovercard-url="/stacktracejs/stacktrace.js/issues/187/hovercard">has voted</a> to change the license of the project to the <a href="https://opensource.org/licenses/MIT" rel="nofollow">MIT License</a></p>
<h3>Breaking Changes</h3>
<ul>
<li><a href="https://www.stacktracejs.com/#!/docs/stackframe" rel="nofollow">StackFrame</a> now has a different, more extensible API that allows frames to be marked as <code>native</code>, <code>constructor</code>, or <code>eval</code>.</li>
<li>stacktrace.js now ships with <em>no polyfills of any kind</em>. Some Array polyfills were provided for old IE browsers in v1.x, these have been removed.</li>
</ul>eriwentag:github.com,2008:Repository/480804/v1.3.12016-08-09T05:05:37Zv1.3.1<p>1.3.1</p>eriwentag:github.com,2008:Repository/480804/v1.3.02016-06-13T14:59:15Zv1.3.0<h3>Synchronous Stack Traces</h3>
<p>Due to popular demand, we've provided a synchronous way to get stack traces.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="StackTrace.getSync()"><pre><span class="pl-v">StackTrace</span><span class="pl-kos">.</span><span class="pl-en">getSync</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
<p><strong>HEADS UP</strong>: Does <em>not</em> enhance stack traces with source maps or guess anonymous functions like <code>StackTrace.get()</code> does.</p>eriwentag:github.com,2008:Repository/480804/v1.2.02016-06-13T15:05:25Zv1.2.0<h3>Error Messages in Reports</h3>
<p><code>StackTrace.report()</code> now accepts an optional message</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var stackframes = [StackFrame(...), StackFrame(...)]
var url = 'https://reporting.yourservice.com/jserror'
var message = 'undefined is not an Object'
StackTrace.report(stackframes, url, message)"><pre><span class="pl-k">var</span> <span class="pl-s1">stackframes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-v">StackFrame</span><span class="pl-kos">(</span>...<span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">StackFrame</span><span class="pl-kos">(</span>...<span class="pl-kos">)</span><span class="pl-kos">]</span>
<span class="pl-k">var</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'https://reporting.yourservice.com/jserror'</span>
<span class="pl-k">var</span> <span class="pl-s1">message</span> <span class="pl-c1">=</span> <span class="pl-s">'undefined is not an Object'</span>
<span class="pl-v">StackTrace</span><span class="pl-kos">.</span><span class="pl-en">report</span><span class="pl-kos">(</span><span class="pl-s1">stackframes</span><span class="pl-kos">,</span> <span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-s1">message</span><span class="pl-kos">)</span></pre></div>
<p>Example JSON POSTed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
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}
]
}"><pre class="notranslate"><code>{
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}
]
}
</code></pre></div>eriwentag:github.com,2008:Repository/480804/v1.1.32016-05-15T21:51:49Zv1.1.3<p>1.1.3</p>eriwentag:github.com,2008:Repository/480804/v1.1.22016-05-04T03:40:22Zv1.1.2<p>1.1.2</p>eriwentag:github.com,2008:Repository/480804/v1.1.12016-04-24T05:45:25Zv1.1.1<p>v1.1.1</p>eriwentag:github.com,2008:Repository/480804/1.1.02016-04-01T21:22:04Zv1.1.0<h3>Better parsing</h3>
<p>Updated <a href="https://github.com/stacktracejs/error-stack-parser">error-stack-parser</a> to v1.3 which parses eval stack entries in a better way and fixes a bunch of bugs.</p>
<h3>Better resource handling</h3>
<p>Updated <a href="https://github.com/stacktracejs/stacktrace-gps">stacktrace-gps</a>. Now reuses the same instance to avoid duplicate requests for the same resource by default.</p>
<h3>Better dev experience</h3>
<p>JSCS and automated PR testing have been implemented to ensure consistent styles and quick feedback.</p>
<blockquote>
<p>Possibly breaking changes: ErrorStackParser now provides it's own polyfill for <code>Array.map</code> and <code>Array.filter</code>. <code>eval</code> information is will display differently in stack traces.</p>
</blockquote>eriwen