@sentry/esbuild-plugin 0.6.0 → 0.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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +6 -5
package/README.md CHANGED
@@ -54,10 +54,11 @@ The Sentry Esbuild Plugin takes an options argument with the following propertie
54
54
 
55
55
  | Option | Type | Required | Description |
56
56
  | ------------------------------------ | -------------------------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
- | include | `string`/`array`/`object` | required | One or more paths that the plugin should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. Other file types can be uploaded by using the `ext` option. Each path can be given as a string or an object with path-specific options. See [table below](#include) for details. |
58
57
  | org | `string` | optional | The slug of the Sentry organization associated with the app. Can also be specified via the `SENTRY_ORG` environment variable. |
59
58
  | project | `string` | optional | The slug of the Sentry project associated with the app. Can also be specified via the `SENTRY_PROJECT` environment variable. |
60
59
  | authToken | `string` | optional | 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). Can also be specified via the `SENTRY_AUTH_TOKEN` env variable. |
60
+ | sourcemaps.assets | string \| string[] | optional | A glob or an array of globs that specify the build artifacts that should be uploaded to Sentry. Leave this option undefined if you do not want to upload source maps to Sentry. The globbing patterns follow the implementation of the [`glob`](https://www.npmjs.com/package/glob) package. Use the `debug` option to print information about which files end up being uploaded. |
61
+ | sourcemaps.ignore | string \| string[] | optional | A glob or an array of globs that specify which build artifacts should not be uploaded to Sentry. The globbing patterns follow the implementation of the [`glob`](https://www.npmjs.com/package/glob) package. Use the `debug` option to print information about which files end up being uploaded. Default: `[]` |
61
62
  | url | `string` | optional | The base URL of your Sentry instance. Use this if you are using a self-hosted or Sentry instance other than sentry.io. This value can also be set via the `SENTRY_URL` environment variable. Defaults to https://sentry.io/, which is the correct value for SaaS customers. |
62
63
  | headers | `Record<string, string>` | optional | Headers added to every outgoing network request. |
63
64
  | vcsRemote | `string` | optional | Version control system remote name. This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable. Defaults to `'origin'`. |
@@ -87,6 +88,7 @@ The Sentry Esbuild Plugin takes an options argument with the following propertie
87
88
  | injectReleasesMap | `boolean` | optional | If set to true, the plugin will inject an additional `SENTRY_RELEASES` variable that maps from `{org}@{project}` to the `release` value. This might be helpful for webpack module federation or micro frontend setups. Defaults to `false`. |
88
89
  | uploadSourceMaps | `boolean` | optional | Whether the plugin should upload source maps to Sentry. Defaults to `true`. |
89
90
  | telemetry | `boolean` | optional | If set to true, internal plugin errors and performance data will be sent to Sentry. At Sentry we like to use Sentry ourselves to deliver faster and more stable products. We're very careful of what we're sending. We won't collect anything other than error and high-level performance data. We will never collect your code or any details of the projects in which you're using this plugin. Defaults to `true`. |
91
+ | include | `string`/`array`/`object` | required | One or more paths that the plugin should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. Other file types can be uploaded by using the `ext` option. Each path can be given as a string or an object with path-specific options. See [table below](#include) for details. (Note: This option is deprecated. Please use the `sourcemap` option instead) |
90
92
  | \_experiments.injectBuildInformation | `boolean` | optional | If set to true, the plugin will inject an additional `SENTRY_BUILD_INFO` variable that contains information about the build that can be used to improve SDK functionality. Defaults to `false`. |
91
93
 
92
94
  #### <a name="include"></a>options.include:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/esbuild-plugin",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Official Sentry esbuild 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/esbuild-plugin",
@@ -21,7 +21,8 @@
21
21
  "exports": {
22
22
  ".": {
23
23
  "import": "./dist/esm/index.mjs",
24
- "require": "./dist/cjs/index.js"
24
+ "require": "./dist/cjs/index.js",
25
+ "types": "./dist/types/index.d.ts"
25
26
  }
26
27
  },
27
28
  "main": "dist/cjs/index.js",
@@ -46,7 +47,7 @@
46
47
  "lint": "eslint ./src ./test"
47
48
  },
48
49
  "dependencies": {
49
- "@sentry/bundler-plugin-core": "0.6.0"
50
+ "@sentry/bundler-plugin-core": "0.7.1"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@babel/core": "7.18.5",
@@ -56,8 +57,8 @@
56
57
  "@rollup/plugin-commonjs": "22.0.1",
57
58
  "@rollup/plugin-json": "4.1.0",
58
59
  "@rollup/plugin-node-resolve": "13.3.0",
59
- "@sentry-internal/eslint-config": "0.6.0",
60
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "0.6.0",
60
+ "@sentry-internal/eslint-config": "0.7.1",
61
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "0.7.1",
61
62
  "@swc/core": "^1.2.205",
62
63
  "@swc/jest": "^0.2.21",
63
64
  "@types/jest": "^28.1.3",