@sentry/typescript 5.20.0 → 10.58.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.
package/LICENSE CHANGED
@@ -1,29 +1,21 @@
1
- BSD 3-Clause License
1
+ MIT License
2
2
 
3
- Copyright (c) 2019, Sentry
4
- All rights reserved.
3
+ Copyright (c) 2019 Functional Software, Inc. dba Sentry
5
4
 
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions are met:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
8
11
 
9
- * Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
11
14
 
12
- * Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
15
-
16
- * Neither the name of the copyright holder nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  <p align="center">
2
- <a href="https://sentry.io" target="_blank" align="center">
3
- <img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
2
+ <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
3
+ <img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280" height="84">
4
4
  </a>
5
- <br />
6
5
  </p>
7
6
 
8
7
  # Sentry TypeScript Configuration
@@ -11,12 +10,14 @@
11
10
  [![npm dm](https://img.shields.io/npm/dm/@sentry/typescript.svg)](https://www.npmjs.com/package/@sentry/typescript)
12
11
  [![npm dt](https://img.shields.io/npm/dt/@sentry/typescript.svg)](https://www.npmjs.com/package/@sentry/typescript)
13
12
 
14
- [![typedoc](https://img.shields.io/badge/docs-typedoc-blue.svg)](http://getsentry.github.io/sentry-javascript/)
13
+ > [!NOTE]
14
+ > This package is an internal library published for use by Sentry-owned JavaScript SDK packages and repositories. It is
15
+ > not part of the public API contract and may change in any release. Do not rely on SemVer compatibility if you depend on
16
+ > it directly.
15
17
 
16
18
  ## Links
17
19
 
18
20
  - [Official SDK Docs](https://docs.sentry.io/quickstart/)
19
- - [TypeDoc](http://getsentry.github.io/sentry-javascript/)
20
21
 
21
22
  ## General
22
23
 
@@ -36,14 +37,6 @@ npm install --save-dev @sentry/typescript
36
37
 
37
38
  Add the following config files to your project's root directory:
38
39
 
39
- **tslint.json**:
40
-
41
- ```json
42
- {
43
- "extends": "@sentry/typescript/tslint"
44
- }
45
- ```
46
-
47
40
  **tsconfig.json**:
48
41
 
49
42
  ```json
@@ -56,3 +49,6 @@ Add the following config files to your project's root directory:
56
49
  }
57
50
  }
58
51
  ```
52
+
53
+ For an example of how to use this package in a monorepo, check out this package's own parent repo,
54
+ https://github.com/getsentry/sentry-javascript.
package/package.json CHANGED
@@ -1,24 +1,25 @@
1
1
  {
2
2
  "name": "@sentry/typescript",
3
- "version": "5.20.0",
3
+ "version": "10.58.0",
4
4
  "description": "Typescript configuration used at Sentry",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/typescript",
7
7
  "author": "Sentry",
8
- "license": "BSD-3-Clause",
9
- "private": false,
8
+ "license": "MIT",
10
9
  "publishConfig": {
11
10
  "access": "public"
12
11
  },
13
- "dependencies": {
14
- "tslint-config-prettier": "^1.18.0",
15
- "tslint-consistent-codestyle": "^1.15.1"
16
- },
12
+ "files": [
13
+ "tsconfig.json"
14
+ ],
17
15
  "peerDependencies": {
18
- "tslint": "5.16.0",
19
- "typescript": "^3.2.0"
16
+ "typescript": "~5.8.0"
20
17
  },
21
18
  "scripts": {
22
- "link:yarn": "yarn link"
19
+ "clean": "yarn rimraf sentry-typescript-*.tgz",
20
+ "build:tarball": "npm pack"
21
+ },
22
+ "volta": {
23
+ "extends": "../../package.json"
23
24
  }
24
25
  }
package/tsconfig.json CHANGED
@@ -1,36 +1,23 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "alwaysStrict": false,
4
3
  "declaration": true,
5
4
  "declarationMap": true,
6
5
  "downlevelIteration": true,
7
- "inlineSources": true,
8
6
  "importHelpers": true,
9
- "lib": ["es6", "dom"],
10
- "module": "commonjs",
7
+ "inlineSources": true,
8
+ "isolatedModules": true,
9
+ "lib": ["es2020"],
11
10
  "moduleResolution": "node",
12
- "noEmitHelpers": true,
11
+ "noErrorTruncation": true,
13
12
  "noFallthroughCasesInSwitch": true,
14
- "noImplicitAny": true,
15
13
  "noImplicitReturns": true,
16
- "noImplicitUseStrict": true,
17
- "noImplicitThis": true,
18
- "noUnusedLocals": true,
19
- "noUnusedParameters": true,
20
- "pretty": true,
14
+ "noUnusedLocals": false,
15
+ "noUnusedParameters": false,
16
+ "preserveWatchOutput": true,
21
17
  "sourceMap": true,
22
18
  "strict": true,
23
- "target": "es5",
24
19
  "strictBindCallApply": false,
25
- "plugins": [
26
- {
27
- "name": "typescript-tslint-plugin",
28
- "alwaysShowRuleFailuresAsWarnings": false,
29
- "ignoreDefinitionFiles": true,
30
- "configFile": "./tslint.json",
31
- "suppressWhileTypeErrorsPresent": false,
32
- "mockTypeScriptVersion": false
33
- }
34
- ]
20
+ "target": "es2020",
21
+ "noUncheckedIndexedAccess": true
35
22
  }
36
23
  }
package/tslint.json DELETED
@@ -1,87 +0,0 @@
1
- {
2
- "extends": ["tslint:all", "tslint-config-prettier", "tslint-consistent-codestyle"],
3
- "rules": {
4
- // This rule has side effects and must be disabled
5
- "no-unused-variable": false,
6
-
7
- "no-submodule-imports": false,
8
- "no-null-keyword": false,
9
- // We don't want these
10
- "newline-before-return": false,
11
- "no-any": false,
12
- "no-magic-numbers": false,
13
- "no-parameter-properties": false,
14
- "no-require-imports": false,
15
- "prefer-function-over-method": [false],
16
- "strict-boolean-expressions": false,
17
- "no-inferrable-types": false,
18
- "ban-ts-ignore": false,
19
- "increment-decrement": false,
20
- "promise-function-async": false,
21
- "ban-types": [true, ["async", "Use Promises instead, it add a lot to bundle size."]],
22
- // These are too strict in tslint:all
23
- "comment-format": [true, "check-space"],
24
- "completed-docs": [
25
- true,
26
- {
27
- "classes": {
28
- "tags": {
29
- "content": {},
30
- "existence": ["inheritDoc", "hidden"]
31
- }
32
- },
33
- "enums": {
34
- "tags": {
35
- "content": {},
36
- "existence": ["inheritDoc", "hidden"]
37
- }
38
- },
39
- "enum-members": {
40
- "tags": {
41
- "content": {},
42
- "existence": ["inheritDoc", "hidden"]
43
- }
44
- },
45
- "functions": {
46
- "tags": {
47
- "content": {},
48
- "existence": ["inheritDoc", "hidden"]
49
- }
50
- },
51
- "interfaces": {
52
- "tags": {
53
- "content": {},
54
- "existence": ["inheritDoc", "hidden"]
55
- }
56
- },
57
- "methods": {
58
- "tags": {
59
- "content": {},
60
- "existence": ["inheritDoc", "hidden"]
61
- }
62
- },
63
- "properties": {
64
- "tags": {
65
- "content": {},
66
- "existence": ["inheritDoc", "hidden"]
67
- },
68
- "locations": "instance"
69
- }
70
- }
71
- ],
72
- "interface-name": [true, "never-prefix"],
73
- "member-ordering": [true, "statics-first"],
74
- "no-console": [true, "log"],
75
- "only-arrow-functions": [true, "allow-named-functions"],
76
- "typedef": [true, "call-signature", "parameter", "property-declaration", "member-variable-declaration"],
77
- "variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
78
- "naming-convention": [
79
- true,
80
- // this config will apply to properties AND methods, if you only need it for properties, use "property" instead of "member"
81
- { "type": "member", "modifiers": "protected", "leadingUnderscore": "require" },
82
- { "type": "member", "modifiers": "private", "leadingUnderscore": "require" }
83
- ],
84
- // we cannot use Promises as they are not IE10-11 compatibile, so we had to create our own implementation
85
- "await-promise": [true, "PromiseLike"]
86
- }
87
- }