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

Feature/typescript typings #1183

Merged
merged 3 commits into from
Jan 10, 2018

Commits on Dec 30, 2017

  1. Updates to typescript types definitions.

    * Update captureException to match support of ErrorEvent and string as permitted inputs for the exception (fixes issue getsentry#1167).
    * Update setExtraContext to allow using setExtraContext() to clear the extra data.
    * Update setTagsContext to allow using setTagsContext() to clear the tags data.
    * Add tests for the above changes.
    * Add additional test calls for the Raven.context and Raven.wrap to take a function that throws an ErrorEvent.
    * Update minimum Typescript version to 2.3.0, as the type definitions for ErrorEvent are incorrect/unusable in versions of Typescript less than 2.3.0.
    dawnmist committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    df89ac9 View commit details
    Browse the repository at this point in the history
  2. Update usage documentation.

    Add documentation for how to remove a tag from the tag context data, and how to remove a value from the extra context data, as described in issue getsentry#614.
    dawnmist committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    5be67e9 View commit details
    Browse the repository at this point in the history
  3. Add missing console log levels to LogLevel.

    Raven's autoBreadcrumbs function for console messages uses the console's log levels. This means that the list of loglevels used for console breadcrumbs is 'debug', 'info', 'warn', 'error', 'log'. The values 'warn' and 'log' were missing in the list of possible LogLevels.
    dawnmist committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    f4e82a4 View commit details
    Browse the repository at this point in the history