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

Release v7.9.2 #1351

Merged
merged 10 commits into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## v7.9.2 (2021-04-06)

### Changed

- (react-native): Update bugsnag-cocoa to v6.8.1
- Fix unreliable ordering of breadcrumbs. [bugsnag-cocoa#1049](https://github.com/bugsnag/bugsnag-cocoa/pull/1049)
- (react-native): Update bugsnag-android to v5.9.0
- Bump compileSdkVersion to apiLevel 30 [bugsnag-android#1202](https://github.com/bugsnag/bugsnag-android/pull/1202)
- Collect whether the system has restricted background work for the app [bugsnag-android#1211](https://github.com/bugsnag/bugsnag-android/pull/1211)
- Improve detection of rooted devices [bugsnag-android#1194](https://github.com/bugsnag/bugsnag-android/pull/1194)
[bugsnag-android#1195](https://github.com/bugsnag/bugsnag-android/pull/1195)
[bugsnag-android#1198](https://github.com/bugsnag/bugsnag-android/pull/1198)
[bugsnag-android#1200](https://github.com/bugsnag/bugsnag-android/pull/1200)
[bugsnag-android#1201](https://github.com/bugsnag/bugsnag-android/pull/1201)

## v7.9.1 (2021-03-25)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "7.9.1"
"version": "7.9.2-alpha.0"
}
2 changes: 1 addition & 1 deletion packages/browser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/browser",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "dist/bugsnag.js",
"types": "types/bugsnag.d.ts",
"description": "Bugsnag error reporter for browser JavaScript",
Expand All @@ -23,38 +23,38 @@
"size": "./bin/size",
"clean": "rm -fr dist && mkdir dist",
"build": "npm run clean && npm run build:dist && npm run build:dist:min",
"build:dist": "NODE_ENV=production IS_BROWSER=yes ../../bin/bundle src/notifier.js --standalone=Bugsnag | ../../bin/extract-source-map dist/bugsnag.js",
"build:dist:min": "NODE_ENV=production IS_BROWSER=yes ../../bin/bundle src/notifier.js --standalone=Bugsnag | ../../bin/minify dist/bugsnag.min.js",
"build:dist": "NODE_ENV=production ../../bin/bundle src/notifier.js --standalone=Bugsnag | ../../bin/extract-source-map dist/bugsnag.js",
"build:dist:min": "NODE_ENV=production ../../bin/bundle src/notifier.js --standalone=Bugsnag | ../../bin/minify dist/bugsnag.min.js",
"cdn-upload": "./bin/cdn-upload",
"postversion": "npm run build"
},
"author": "Bugsnag",
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.0.1",
"@bugsnag/delivery-x-domain-request": "^7.9.0",
"@bugsnag/delivery-xml-http-request": "^7.9.0",
"@bugsnag/plugin-app-duration": "^7.9.0",
"@bugsnag/plugin-browser-context": "^7.9.0",
"@bugsnag/plugin-browser-device": "^7.9.0",
"@bugsnag/plugin-browser-request": "^7.9.0",
"@bugsnag/plugin-browser-session": "^7.9.0",
"@bugsnag/plugin-client-ip": "^7.9.0",
"@bugsnag/plugin-console-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-inline-script-content": "^7.9.0",
"@bugsnag/plugin-interaction-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-navigation-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-network-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-simple-throttle": "^7.9.0",
"@bugsnag/plugin-strip-query-string": "^7.9.0",
"@bugsnag/plugin-window-onerror": "^7.9.0",
"@bugsnag/plugin-window-unhandled-rejection": "^7.9.0",
"@bugsnag/delivery-x-domain-request": "^7.9.2-alpha.0",
"@bugsnag/delivery-xml-http-request": "^7.9.2-alpha.0",
"@bugsnag/plugin-app-duration": "^7.9.2-alpha.0",
"@bugsnag/plugin-browser-context": "^7.9.2-alpha.0",
"@bugsnag/plugin-browser-device": "^7.9.2-alpha.0",
"@bugsnag/plugin-browser-request": "^7.9.2-alpha.0",
"@bugsnag/plugin-browser-session": "^7.9.2-alpha.0",
"@bugsnag/plugin-client-ip": "^7.9.2-alpha.0",
"@bugsnag/plugin-console-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-inline-script-content": "^7.9.2-alpha.0",
"@bugsnag/plugin-interaction-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-navigation-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-network-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-simple-throttle": "^7.9.2-alpha.0",
"@bugsnag/plugin-strip-query-string": "^7.9.2-alpha.0",
"@bugsnag/plugin-window-onerror": "^7.9.2-alpha.0",
"@bugsnag/plugin-window-unhandled-rejection": "^7.9.2-alpha.0",
"cloudfront": "^0.4.1",
"knox": "^0.9.2",
"mime": "1.4.1",
"semver": "^5.5.1"
},
"dependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
}
}
6 changes: 4 additions & 2 deletions packages/core/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const map = require('./lib/es-utils/map')
const reduce = require('./lib/es-utils/reduce')
const filter = require('./lib/es-utils/filter')
const assign = require('./lib/es-utils/assign')
const jsRuntime = require('./lib/js-runtime')
const metadataDelegate = require('./lib/metadata-delegate')
const isError = require('./lib/iserror')

Expand Down Expand Up @@ -35,7 +34,7 @@ class Event {
{
errorClass: ensureString(errorClass),
errorMessage: ensureString(errorMessage),
type: jsRuntime,
type: Event.__type,
stacktrace: reduce(stacktrace, (accum, frame) => {
const f = formatStackframe(frame)
// don't include a stackframe if none of its properties are defined
Expand Down Expand Up @@ -246,6 +245,9 @@ const normaliseError = (maybeError, tolerateNonErrors, component, logger) => {
return [error, internalFrames]
}

// default value for stacktrace.type
Event.__type = 'browserjs'

const hasNecessaryFields = error =>
(typeof error.name === 'string' || typeof error.errorClass === 'string') &&
(typeof error.message === 'string' || typeof error.errorMessage === 'string')
Expand Down
5 changes: 0 additions & 5 deletions packages/core/lib/js-runtime.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bugsnag/core",
"main": "index.js",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"types": "types/index.d.ts",
"description": "Core classes and utilities for Bugsnag notifiers",
"homepage": "https://www.bugsnag.com/",
Expand Down
2 changes: 1 addition & 1 deletion packages/delivery-expo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/delivery-expo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/delivery-expo",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "delivery.js",
"description": "@bugsnag/js delivery mechanism to send events and sessions from Expo, using the FileSystem API to cache and retry sending failed payloads",
"homepage": "https://www.bugsnag.com/",
Expand All @@ -22,7 +22,7 @@
"expo-file-system": "~9.3.0"
},
"devDependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/delivery-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/delivery-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/delivery-node",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "delivery.js",
"description": "@bugsnag/node delivery mechanism",
"homepage": "https://www.bugsnag.com/",
Expand All @@ -17,7 +17,7 @@
"author": "Bugsnag",
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/delivery-react-native/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/delivery-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/delivery-react-native",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "delivery.js",
"description": "@bugsnag/js delivery mechanism for React Native",
"homepage": "https://www.bugsnag.com/",
Expand All @@ -17,7 +17,7 @@
"author": "Bugsnag",
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/delivery-x-domain-request/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/delivery-x-domain-request/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/delivery-x-domain-request",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "delivery.js",
"description": "@bugsnag/js delivery mechanism for IE 8, 9 and 10",
"homepage": "https://www.bugsnag.com/",
Expand All @@ -17,7 +17,7 @@
"author": "Bugsnag",
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/delivery-xml-http-request/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/delivery-xml-http-request/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/delivery-xml-http-request",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "delivery.js",
"description": "@bugsnag/js delivery mechanism for most browsers",
"homepage": "https://www.bugsnag.com/",
Expand All @@ -17,7 +17,7 @@
"author": "Bugsnag",
"license": "MIT",
"devDependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/expo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/expo",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "src/notifier.js",
"types": "types/bugsnag.d.ts",
"description": "Bugsnag error reporter for Expo applications",
Expand Down Expand Up @@ -32,19 +32,19 @@
"author": "Bugsnag",
"license": "MIT",
"dependencies": {
"@bugsnag/core": "^7.9.0",
"@bugsnag/delivery-expo": "^7.9.0",
"@bugsnag/plugin-browser-session": "^7.9.0",
"@bugsnag/plugin-console-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-expo-app": "^7.9.0",
"@bugsnag/plugin-expo-device": "^7.9.0",
"@bugsnag/plugin-network-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-react": "^7.9.0",
"@bugsnag/plugin-react-native-app-state-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-react-native-connectivity-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-react-native-global-error-handler": "^7.9.0",
"@bugsnag/plugin-react-native-orientation-breadcrumbs": "^7.9.0",
"@bugsnag/plugin-react-native-unhandled-rejection": "^7.9.0",
"@bugsnag/core": "^7.9.2-alpha.0",
"@bugsnag/delivery-expo": "^7.9.2-alpha.0",
"@bugsnag/plugin-browser-session": "^7.9.2-alpha.0",
"@bugsnag/plugin-console-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-expo-app": "^7.9.2-alpha.0",
"@bugsnag/plugin-expo-device": "^7.9.2-alpha.0",
"@bugsnag/plugin-network-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-react": "^7.9.2-alpha.0",
"@bugsnag/plugin-react-native-app-state-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-react-native-connectivity-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-react-native-global-error-handler": "^7.9.2-alpha.0",
"@bugsnag/plugin-react-native-orientation-breadcrumbs": "^7.9.2-alpha.0",
"@bugsnag/plugin-react-native-unhandled-rejection": "^7.9.2-alpha.0",
"@bugsnag/source-maps": "^1.0.1",
"bugsnag-build-reporter": "^1.0.1",
"expo-constants": "~9.3.3"
Expand Down
2 changes: 2 additions & 0 deletions packages/expo/src/notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const Event = require('@bugsnag/core/event')
const Session = require('@bugsnag/core/session')
const Breadcrumb = require('@bugsnag/core/breadcrumb')

Event.__type = 'expojs'

const delivery = require('@bugsnag/delivery-expo')

const schema = { ...require('@bugsnag/core/config').schema, ...require('./config') }
Expand Down
2 changes: 1 addition & 1 deletion packages/in-flight/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/in-flight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/in-flight",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "src/in-flight.js",
"types": "types/bugsnag-in-flight.d.ts",
"description": "Internal package to keep track of in-flight requests to Bugsnag",
Expand All @@ -22,7 +22,7 @@
"@bugsnag/cuid": "^3.0.0"
},
"devDependencies": {
"@bugsnag/core": "^7.9.0"
"@bugsnag/core": "^7.9.2-alpha.0"
},
"peerDependencies": {
"@bugsnag/core": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bugsnag/js",
"version": "7.9.0",
"version": "7.9.2-alpha.0",
"main": "node/notifier.js",
"browser": "browser/notifier.js",
"types": "types.d.ts",
Expand Down Expand Up @@ -33,8 +33,8 @@
"author": "Bugsnag",
"license": "MIT",
"dependencies": {
"@bugsnag/browser": "^7.9.0",
"@bugsnag/node": "^7.9.0"
"@bugsnag/browser": "^7.9.2-alpha.0",
"@bugsnag/node": "^7.9.2-alpha.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading