Skip to content

Update to match latest from MindscapeHQ/raygun4node#1

Open
cryptojuice wants to merge 487 commits intoshake-apps:masterfrom
MindscapeHQ:master
Open

Update to match latest from MindscapeHQ/raygun4node#1
cryptojuice wants to merge 487 commits intoshake-apps:masterfrom
MindscapeHQ:master

Conversation

@cryptojuice
Copy link
Copy Markdown

No description provided.

Widdershin and others added 30 commits May 21, 2020 16:39
Previously, we took the transport as an argument to `.init`. This meant
that it was possible for the transport to be undefined if we attempted
to send a message from the offline transport before calling `.init`.

Now, the transport is passed through the constructor, so it will always
be present assuming that the callsite is using strict mode typescript,
which we are.
…lback

Previously, if you attempted to pass raygunClient.send directly as an
argument, it would cause a runtime error when called due to the this
binding being lost.

Now, the send method is always bound so it can be freely passed
around.
Previously, you needed to provide the first three arguments for send,
when in reality only the first one is strictly necessary.

As part of making these changes, I shifted the uncertainty away from the
body of the function to the callsite to keep the signatures as simple as possible.
This requires we generate a correlationId that we can pass both to the
crash reporting endpoint, and to the APM module if it's available.
Saves both the UUID computation and transport bytes for the id if we're
not going to use it in the end.
fix: Move express types to dependencies
This is a fix for a regression I introduced during the TypeScript
overhaul.

Previously we would always call this.user, even if the request was null
or undefined. The regressed behavior would only call this.user if the
request was present, either from the middleware or if it was passed
manually.

This commit reverts the behavior back to what it was previously, and
adds a unit test to guard against future unintended changes to this
behaviour.
Fix raygunClient.user not being called if request is missing
dependabot bot and others added 30 commits October 1, 2024 09:03
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#323)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Timeouts for non-batch mode

* Modifications to logging

* Fixing an unrelated [object object] message in breadcrumbs.

* Wired-in DEFAULT_TIMOUT for 5000ms (this seems to be the *internal* default of Node's http/https libs as well)

* Adding dedicated batchTimeout

* Clarifying timeout behaviour

* Prettier

* Addressing PR comments

* Documentation

* Prettier
…ess-sample (#328)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…nd offline. (#332)

* Make HTTP in SendOptions optional

* To avoid an error being displayed in the express sample when the provider is offline

* Building up lighter SendOptions where possible

* Prettier

* Linting

* Linting and Prettier

* prettier takes care of indentation formatting, ignore rule in tseslint config

* prettier run

* remove commented out line

* remove extra coma

---------

Co-authored-by: Miguel Beltran <[email protected]>
#333)

* Some documentation improvements around online/offline behaviour.

* Addressing PR comments

* Update README.md

Change suggested by @sumitramanga

* Update README.md

Another tweak.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…344)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s-sample (#345)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Miguel Beltran <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 9.16.0 to 9.17.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.16.0...v9.17.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [debug](https://github.com/debug-js/debug) from 4.3.7 to 4.4.0.
- [Release notes](https://github.com/debug-js/debug/releases)
- [Commits](debug-js/debug@4.3.7...4.4.0)

---
updated-dependencies:
- dependency-name: debug
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.17.0 to 8.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.19.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.3 to 5.7.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.6.3...v5.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants