Skip to content

Commit

Permalink
Publish packages
Browse files Browse the repository at this point in the history
Update version number and CHANGELOG.md.

- @appsignal/javascript@1.5.0
- @appsignal/plugin-breadcrumbs-console@1.1.35
  • Loading branch information
unflxw committed Nov 28, 2024
1 parent cb289c8 commit 6810b54
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 48 deletions.
38 changes: 0 additions & 38 deletions packages/javascript/.changesets/custom-backtrace-sanitization.md

This file was deleted.

This file was deleted.

46 changes: 46 additions & 0 deletions packages/javascript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# AppSignal for JavaScript changelog

## 1.5.0

_Published on 2024-11-28._

### Added

- Allow custom backtrace sanitization.

> **Warning:** This is an advanced feature meant for specific use cases. For most use cases, you should not need this functionality. If in doubt, leave `matchBacktracePaths` unset.
>
> **Using `matchBacktracePaths` will cause public sourcemap detection to fail.** If using `matchBacktracePaths`, use our private sourcemap API to upload sourcemaps to AppSignal.
Some applications, such as those running on Electron or React Native environments, emit backtrace lines containing paths relative to the device in which the application is running.

The unpredictability of these backtrace line paths interferes with the correct functioning of backtrace error grouping, and makes it impossible to upload sourcemaps for these files using our private sourcemap API, as it is not possible to know the expected path beforehand.

You can set the `matchBacktracePaths` configuration to a list of one or more regexes, which will be used to attempt to match the relevant section of the backtrace line path.

For example, suppose you have an Electron application, which your users install at unpredictable locations. Your backtrace line paths may look something like this, with the username changing for each installation:

```sh
/Users/${USERNAME}/Applications/CoolBeans.app/Contents/Resources/app/index.js
```

To ignore these parts of the path that are not predictable, you can configure AppSignal to ignore everything before the `app` folder as follows:

```js
const appsignal = new AppSignal({
matchBacktracePaths: [
new RegExp("CoolBeans\\.app/Contents/Resources/(.*)$")
]
})
```

If set, the `matchBacktracePaths` configuration option must contain a regular expression, or an array of one or more regular expressions, which attempt to match the whole backtrace line path. These regular expressions must have one or more match groups, such as `(.*)` in the example above, which attempt to match against the relevant segments of the backtrace line path.

AppSignal will attempt to match the whole backtrace line path against these regular expressions in order. If any of the regular expression matches and produces a match group, AppSignal will replace the path in the backtrace line with the matched segment.

Make sure your regular expressions provide unique and stable points of reference in the path, such as `CoolBeans.app/Contents/Resources` in the example above.

(minor [7d9bf42](https://github.com/appsignal/appsignal-javascript/commit/7d9bf427d5d29715a851590d09fba2e8a1e4725c), [d527ce3](https://github.com/appsignal/appsignal-javascript/commit/d527ce36d8f10d301276d36d80898143497e18e6), [ea9b9d3](https://github.com/appsignal/appsignal-javascript/commit/ea9b9d3dd12d8a20b159a4035519f10303f26248))

### Fixed

- Fix an issue when regexes with the `g` global flag are used on `ignoreErrors`. Before this change, after successfully matching on an error to ignore, if the following error would also match the same regular expression, the regular expression would then fail to match it. (patch [385e9c2](https://github.com/appsignal/appsignal-javascript/commit/385e9c2ff46e11e2f8489b63f582cc753d8206d3))

## 1.4.1

_Published on 2024-11-12._
Expand Down
2 changes: 1 addition & 1 deletion packages/javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appsignal/javascript",
"version": "1.4.1",
"version": "1.5.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/javascript/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Do not touch this file, auto-generated by scripts/create-version
export const VERSION = "1.4.1"
export const VERSION = "1.5.0"
8 changes: 8 additions & 0 deletions packages/plugin-breadcrumbs-console/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# AppSignal for plugin-breadcrumbs-console changelog

## 1.1.35

_Published on 2024-11-28._

### Changed

- Update @appsignal/javascript dependency to 1.5.0. (patch)

## 1.1.34

_Published on 2024-11-12._
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-breadcrumbs-console/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appsignal/plugin-breadcrumbs-console",
"version": "1.1.34",
"version": "1.1.35",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"repository": {
Expand All @@ -25,7 +25,7 @@
"access": "public"
},
"dependencies": {
"@appsignal/javascript": "=1.4.1"
"@appsignal/javascript": "=1.5.0"
},
"devDependencies": {
"@appsignal/types": "=3.0.1"
Expand Down

0 comments on commit 6810b54

Please sign in to comment.