Skip to content

Releases: getsentry/sentry-javascript

4.0.6

Choose a tag to compare

@HazAT HazAT released this 28 Sep 08:44
  • [browser] fix: Fallback to Error object when rejection reason is not available
  • [browser] feat: Support Bluebird's detail.reason for promise rejections
  • [types] fix: Use correct type for event's repos attribute

4.0.5

Choose a tag to compare

@HazAT HazAT released this 25 Sep 13:54
  • [browser] ref: Expose ReportDialogOptions
  • [browser] ref: Use better default message for ReportingObserver
  • [browser] feat: Capture wrapped function arguments as extra
  • [browser] ref: Unify integrations options and set proper defaults
  • [browser] fix: Array.from is not available in old mobile browsers
  • [browser] fix: Check for anonymous function before getting its name for mechanism
  • [browser] test: Add loader + integration tests
  • [core] ref: Move SDKInformation integration into core prepareEvent method
  • [core] ref: Move debug initialization as the first step
  • [node] fix: Make handlers types compatibile with Express
  • [utils] fix: Dont break when non-string is passed to truncate
  • [hub] feat: Add run function that makes this hub the current global one

4.0.4

Choose a tag to compare

@HazAT HazAT released this 21 Sep 06:54
  • [browser] feat: Add forceLoad and onLoad function to be compatible with loader API

4.0.3

Choose a tag to compare

@HazAT HazAT released this 20 Sep 11:14
  • [browser] feat: Better dedupe integration event description
  • [core] ref: Move Dedupe, FunctionString, InboundFilters and SdkInformation integrations to the core package
  • [core] feat: Provide correct platform and make a place to override event internals
  • [browser] feat: UserAgent integration

4.0.2

Choose a tag to compare

@HazAT HazAT released this 19 Sep 14:38
  • [browser] fix: Dont filter captured messages when they have no stacktraces

4.0.1

Choose a tag to compare

@HazAT HazAT released this 19 Sep 14:13
  • [browser] feat: Show dropped event url in blacklistUrl/whitelistUrl debug mode
  • [browser] feat: Use better event description instead of event_id for user-facing logs
  • [core] ref: Create common integrations that are exposed on @sentry/core and reexposed through browser/node
  • [core] feat: Debug integration
  • [browser] ref: Port TraceKit to TypeScript and disable TraceKit's remote fetching for now

4.0.0

Choose a tag to compare

@HazAT HazAT released this 18 Sep 12:22

This is the release of our new SDKs, @sentry/browser, @sentry/node. While there are too many changes to list for this release, we will keep a consistent changelog for upcoming new releases. raven-js (our legacy JavaScript/Browser SDK) and raven (our legacy Node.js SDK) will still reside in this repo, but they will receive their own changelog.

We generally guide people to use our new SDKs from this point onward. The migration should be straightforward if you were only using the basic features of our previous SDKs.

raven-js and raven will both still receive bugfixes but all the new features implemented will only work in the new SDKs. The new SDKs are completely written in TypeScript, which means all
functions, classes and properties are typed.

Links

Migration

Here are some examples of how the new SDKs work. Please note that the API for all JavaScript SDKs is the same.

Installation

Old:

Raven.config('___PUBLIC_DSN___', {
  release: '1.3.0',
}).install();

New:

Sentry.init({
  dsn: '___PUBLIC_DSN___',
  release: '1.3.0',
});

Set a global tag

Old:

Raven.setTagsContext({ key: 'value' });

New:

Sentry.configureScope(scope => {
  scope.setTag('key', 'value');
});

Capture custom exception

Old:

try {
  throwingFunction();
} catch (e) {
  Raven.captureException(e, { extra: { debug: false } });
}

New:

try {
  throwingFunction();
} catch (e) {
  Sentry.withScope(scope => {
    scope.setExtra('debug', false);
    Sentry.captureException(e);
  });
}

Capture a message

Old:

Raven.captureMessage('test', 'info', { extra: { debug: false } });

New:

Sentry.withScope(scope => {
  scope.setExtra('debug', false);
  Sentry.captureMessage('test', 'info');
});

Breadcrumbs

Old:

Raven.captureBreadcrumb({
  message: 'Item added to shopping cart',
  category: 'action',
  data: {
    isbn: '978-1617290541',
    cartSize: '3',
  },
});

New:

Sentry.addBreadcrumb({
  message: 'Item added to shopping cart',
  category: 'action',
  data: {
    isbn: '978-1617290541',
    cartSize: '3',
  },
});

raven-node@2.6.4

Choose a tag to compare

@kamilogorek kamilogorek released this 04 Sep 14:36
  • fix: Updated uuid module (#1481)

raven-js@3.27.0

Choose a tag to compare

@kamilogorek kamilogorek released this 04 Sep 14:35
  • CHANGE: Remove keepalive: true as a default fetch option (reference: getsentry/sentry-docs#310)
  • FIX: Use objectMerge util instead of Object.assign for IE10/11
  • FIX: Updated setUserContext type definition
  • FIX: Updated sanitizeKeys type definition
  • FIX: Update license template to use correct license url

raven-js@3.26.4

Choose a tag to compare

@kamilogorek kamilogorek released this 20 Jul 09:10
  • FEAT: Add options to customize showReportDialog language