@sentry/gatsby 6.19.6 → 7.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/gatsby-browser.js CHANGED
@@ -6,12 +6,11 @@ exports.onClientEntry = function (_, pluginParams) {
6
6
  const areOptionsDefined = areSentryOptionsDefined(pluginParams);
7
7
 
8
8
  if (isIntialized) {
9
- window.Sentry = Sentry; // For backwards compatibility
10
9
  if (areOptionsDefined) {
11
10
  console.warn(
12
11
  'Sentry Logger [Warn]: The SDK was initialized in the Sentry config file, but options were found in the Gatsby config. ' +
13
- 'These have been ignored, merge them to the Sentry config if you want to use them.\n' +
14
- 'Learn more about the Gatsby SDK on https://docs.sentry.io/platforms/javascript/guides/gatsby/',
12
+ 'These have been ignored, merge them to the Sentry config if you want to use them.\n' +
13
+ 'Learn more about the Gatsby SDK on https://docs.sentry.io/platforms/javascript/guides/gatsby/',
15
14
  );
16
15
  }
17
16
  return;
@@ -20,7 +19,7 @@ exports.onClientEntry = function (_, pluginParams) {
20
19
  if (!areOptionsDefined) {
21
20
  console.error(
22
21
  'Sentry Logger [Error]: No config for the Gatsby SDK was found.\n' +
23
- 'Learn how to configure it on https://docs.sentry.io/platforms/javascript/guides/gatsby/',
22
+ 'Learn how to configure it on https://docs.sentry.io/platforms/javascript/guides/gatsby/',
24
23
  );
25
24
  return;
26
25
  }
@@ -32,7 +31,6 @@ exports.onClientEntry = function (_, pluginParams) {
32
31
  dsn: __SENTRY_DSN__,
33
32
  ...pluginParams,
34
33
  });
35
- window.Sentry = Sentry; // For backwards compatibility
36
34
  };
37
35
 
38
36
  function isSentryInitialized() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/gatsby",
3
- "version": "6.19.6",
3
+ "version": "7.0.0-alpha.0",
4
4
  "description": "Official Sentry SDK for Gatsby.js",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby",
@@ -11,17 +11,17 @@
11
11
  "gatsby-plugin"
12
12
  ],
13
13
  "engines": {
14
- "node": ">=6"
14
+ "node": ">=8"
15
15
  },
16
- "main": "dist/index.js",
16
+ "main": "cjs/index.js",
17
17
  "module": "esm/index.js",
18
18
  "types": "types/index.d.ts",
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@sentry/react": "6.19.6",
24
- "@sentry/tracing": "6.19.6",
23
+ "@sentry/react": "7.0.0-alpha.0",
24
+ "@sentry/tracing": "7.0.0-alpha.0",
25
25
  "@sentry/webpack-plugin": "1.18.8"
26
26
  },
27
27
  "peerDependencies": {
@@ -29,7 +29,7 @@
29
29
  "react": "15.x || 16.x || 17.x || 18.x"
30
30
  },
31
31
  "devDependencies": {
32
- "@sentry/types": "6.19.6",
32
+ "@sentry/types": "7.0.0-alpha.0",
33
33
  "@testing-library/react": "^13.0.0",
34
34
  "react": "^18.0.0"
35
35
  },