@sentry/rollup-plugin 2.6.2 → 2.7.1

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.
package/README.md CHANGED
@@ -45,8 +45,7 @@ export default {
45
45
  org: process.env.SENTRY_ORG,
46
46
  project: process.env.SENTRY_PROJECT,
47
47
 
48
- // Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
49
- // and need `project:releases` and `org:read` scopes
48
+ // Auth tokens can be obtained from https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/
50
49
  authToken: process.env.SENTRY_AUTH_TOKEN,
51
50
  }),
52
51
  ],
@@ -105,7 +104,7 @@ This value can also be specified via the `SENTRY_PROJECT` environment variable.
105
104
 
106
105
  Type: `string`
107
106
 
108
- The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: project:releases (and org:read if setCommits option is used).
107
+ The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/.
109
108
 
110
109
  This value can also be specified via the `SENTRY_AUTH_TOKEN` environment variable.
111
110
 
package/dist/cjs/index.js CHANGED
@@ -16,6 +16,12 @@ function rollupDebugIdInjectionPlugin() {
16
16
  rollup: bundlerPluginCore.createRollupDebugIdInjectionHooks()
17
17
  };
18
18
  }
19
+ function rollupModuleMetadataInjectionPlugin(injectionCode) {
20
+ return {
21
+ name: "sentry-rollup-module-metadata-injection-plugin",
22
+ rollup: bundlerPluginCore.createRollupModuleMetadataInjectionHooks(injectionCode)
23
+ };
24
+ }
19
25
  function rollupDebugIdUploadPlugin(upload) {
20
26
  return {
21
27
  name: "sentry-rollup-debug-id-upload-plugin",
@@ -25,6 +31,7 @@ function rollupDebugIdUploadPlugin(upload) {
25
31
  var sentryUnplugin = bundlerPluginCore.sentryUnpluginFactory({
26
32
  releaseInjectionPlugin: rollupReleaseInjectionPlugin,
27
33
  debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,
34
+ moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,
28
35
  debugIdUploadPlugin: rollupDebugIdUploadPlugin
29
36
  });
30
37
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","debugIdUploadPlugin","sentryRollupPlugin"],"mappings":";;;;;;AASA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,mDAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,4BAA4BA,GAAoB;EACvD,OAAO;AACLH,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEG,mDAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLN,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEM,gDAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEZ,4BAA4B;AACpDa,EAAAA,sBAAsB,EAAER,4BAA4B;AACpDS,EAAAA,mBAAmB,EAAEP,yBAAAA;AACvB,CAAC,CAAC,CAAA;;AAEF;AACaQ,IAAAA,kBAA6C,GAAGL,cAAc,CAACP;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","sentryRollupPlugin"],"mappings":";;;;;;AAUA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,mDAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,4BAA4BA,GAAoB;EACvD,OAAO;AACLH,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEG,mDAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACN,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEK,0DAAwC,CAACP,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASQ,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLR,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEQ,gDAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,sBAAsB,EAAEV,4BAA4B;AACpDW,EAAAA,6BAA6B,EAAET,mCAAmC;AAClEU,EAAAA,mBAAmB,EAAER,yBAAAA;AACvB,CAAC,CAAC,CAAA;;AAEF;AACaS,IAAAA,kBAA6C,GAAGN,cAAc,CAACT;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { sentryUnpluginFactory, createRollupReleaseInjectionHooks, createRollupDebugIdInjectionHooks, createRollupDebugIdUploadHooks } from '@sentry/bundler-plugin-core';
1
+ import { sentryUnpluginFactory, createRollupReleaseInjectionHooks, createRollupDebugIdInjectionHooks, createRollupModuleMetadataInjectionHooks, createRollupDebugIdUploadHooks } from '@sentry/bundler-plugin-core';
2
2
  export { sentryCliBinaryExists } from '@sentry/bundler-plugin-core';
3
3
 
4
4
  function rollupReleaseInjectionPlugin(injectionCode) {
@@ -13,6 +13,12 @@ function rollupDebugIdInjectionPlugin() {
13
13
  rollup: createRollupDebugIdInjectionHooks()
14
14
  };
15
15
  }
16
+ function rollupModuleMetadataInjectionPlugin(injectionCode) {
17
+ return {
18
+ name: "sentry-rollup-module-metadata-injection-plugin",
19
+ rollup: createRollupModuleMetadataInjectionHooks(injectionCode)
20
+ };
21
+ }
16
22
  function rollupDebugIdUploadPlugin(upload) {
17
23
  return {
18
24
  name: "sentry-rollup-debug-id-upload-plugin",
@@ -22,6 +28,7 @@ function rollupDebugIdUploadPlugin(upload) {
22
28
  var sentryUnplugin = sentryUnpluginFactory({
23
29
  releaseInjectionPlugin: rollupReleaseInjectionPlugin,
24
30
  debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,
31
+ moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,
25
32
  debugIdUploadPlugin: rollupDebugIdUploadPlugin
26
33
  });
27
34
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","debugIdUploadPlugin","sentryRollupPlugin"],"mappings":";;;AASA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,iCAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,4BAA4BA,GAAoB;EACvD,OAAO;AACLH,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEG,iCAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLN,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEM,8BAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEZ,4BAA4B;AACpDa,EAAAA,sBAAsB,EAAER,4BAA4B;AACpDS,EAAAA,mBAAmB,EAAEP,yBAAAA;AACvB,CAAC,CAAC,CAAA;;AAEF;AACaQ,IAAAA,kBAA6C,GAAGL,cAAc,CAACP;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","sentryRollupPlugin"],"mappings":";;;AAUA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,iCAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,4BAA4BA,GAAoB;EACvD,OAAO;AACLH,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEG,iCAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACN,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEK,wCAAwC,CAACP,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASQ,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLR,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEQ,8BAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,sBAAsB,EAAEV,4BAA4B;AACpDW,EAAAA,6BAA6B,EAAET,mCAAmC;AAClEU,EAAAA,mBAAmB,EAAER,yBAAAA;AACvB,CAAC,CAAC,CAAA;;AAEF;AACaS,IAAAA,kBAA6C,GAAGN,cAAc,CAACT;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/rollup-plugin",
3
- "version": "2.6.2",
3
+ "version": "2.7.1",
4
4
  "description": "Official Sentry Rollup plugin",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/rollup-plugin",
@@ -49,7 +49,7 @@
49
49
  "prepack": "ts-node ./src/prepack.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@sentry/bundler-plugin-core": "2.6.2",
52
+ "@sentry/bundler-plugin-core": "2.7.1",
53
53
  "unplugin": "1.0.1"
54
54
  },
55
55
  "peerDependencies": {
@@ -61,8 +61,8 @@
61
61
  "@babel/preset-typescript": "7.17.12",
62
62
  "@rollup/plugin-babel": "5.3.1",
63
63
  "@rollup/plugin-node-resolve": "13.3.0",
64
- "@sentry-internal/eslint-config": "2.6.2",
65
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "2.6.2",
64
+ "@sentry-internal/eslint-config": "2.7.1",
65
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "2.7.1",
66
66
  "@swc/core": "^1.2.205",
67
67
  "@swc/jest": "^0.2.21",
68
68
  "@types/jest": "^28.1.3",